/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Signika Negative', sans-serif;
    font-size: 1.2rem;
    color: #333;
    background-color: #dadbc9;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: #426666;
}

/* Typography */
h2 {
    border-bottom: 2px solid #d4af37;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 15px;
}

h4 {
    font-size: 1.2rem;
    margin-top: 15px;
}

.date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.content {
    font-size: 1rem;
    text-align: justify;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #dadbc9;
    width: calc(100% - 80px);
    height: 80px;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(9, 238, 170, 0.1);
}

header h1 {
    font-family: 'Lobster', cursive;
    font-size: 4rem;
    margin: 0;
    color: #426666;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    font-family: 'Libre Baskerville', serif;
    text-decoration: none;
    font-size: 1.3rem;
    color: #426666;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #d4af37;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav a:hover::after {
    transform: scaleX(1);
}

nav a:focus {
    outline: 2px solid #426666;
    outline-offset: 2px;
}

nav a:active {
    color: #606fa7;
    transform: scale(0.95);
}

/* Container */
.container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
}

/* Images */
.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.top-image {
    width: 40%;
    margin: 20px auto;
    display: block;
}

.side-image {
    width: 25%;
    margin: 5px 15px;
}

.right-image {
    float: right;
}

.left-image {
    float: left;
}

.bottom-image {
    width: 35%;
    margin: 20px auto;
    display: block;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

.gallery img {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Social Icons */
.social-icons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 6;
}



.social-icons img {
    width: 32px;
    height: 32px;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
}

.audio-player audio {
    width: 200px;
    height: 30px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 5px;
}


/* Utility Classes */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Blog Styles */
.blog-header {
    text-align: center;
    padding: 35px 0;
    background-color: #dadbc9;
    margin-bottom: 10px;
}

.blog-subtitle {
    color: #666;
    font-style: italic;
}

/* Basic styling for the blog preview section */
#blog-preview {
    padding: 20px;
    background-color: #f8f8f8;
    /* Light background color */
    margin-bottom: 20px;
}

#blog-preview h2 {
    text-align: center;
    margin-bottom: 10px;
}

.blog-preview-post {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    /* Light border */
    border-radius: 5px;
}

.blog-preview-post h3 {
    margin-top: 0;
    /* Remove default margin */
}

.blog-preview-post a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #426666;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    color: #666;
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button.facebook {
    background-color: #1877f2;
}

.share-button.twitter {
    background-color: #000000;
}

.share-button.linkedin {
    background-color: #0a66c2;
}

.share-button i {
    font-size: 16px;
}

.categories a {
    color: #426666;
    text-decoration: none;
    padding: 4px 8px;
    background-color: #dadbc9;
    border-radius: 4px;
    margin-right: 8px;
}

.table-of-contents {
    background-color: #dadbc9;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents a {
    color: #426666;
    text-decoration: none;
    line-height: 1.8;
}

.share-button {
    display: inline-block;
    padding: 2px 4px;
    margin: 0 4px;
    background-color: #426666;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.related-posts {
    margin-top: 40px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-post {
    text-decoration: none;
    color: inherit;
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post h5 {
    margin: 10px 0;
    color: #426666;
}

/* Animations */
@keyframes backgroundSlide {
    0% {
        background-position: center top;
    }

    50% {
        background-position: center center;
    }

    100% {
        background-position: center bottom;
    }
}

@keyframes fadeInDescription {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 2s ease-in forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 2s ease-in forwards 1s;
}

.fade-in-delay-2 {
    animation: fadeIn 2s ease-in forwards 2s;
}

.content-section {
    opacity: 1;
    padding: 2rem 1rem;
    visibility: visible;
    transform: none;
    padding-top: 80px;
    scroll-margin-top: 80px;
}

.linked-section {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Optional: Add a delay for subsequent sections */
.content-section:nth-child(2) {
    animation-delay: 0.2s;
}

.content-section:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1px 20px;
        width: calc(100% - 40px);
        height: auto;
        min-height: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1px;
        gap: 3px;
        width: 100%;
    }

    header h1 {
        font-size: 3rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .side-image {
        width: 100%;
        margin: 15px 0;
        float: none;
    }

    .top-image,
    .bottom-image {
        width: 100%;
    }

    .hero {
        background-attachment: scroll;
        height: calc(100vh - 60px);
        margin-top: 100px;
    }

    .social-icons {
        bottom: 20px;
        gap: 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: calc(100vh - 120px);
    }

    .container {
        margin-top: 100px;
    }

    header {
        min-height: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none;
    }

    .hero-content {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding-top: 120px;
        scroll-margin-top: 120px;
    }

    .linked-section {
        scroll-padding-top: 120px;
    }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #e0e0e0;
    /* Darker gray background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Table Header Styles */
table th {
    background-color: #426666;
    /* Darker primary color */
    color: white;
    /* White text for contrast */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 12px 15px;
    border-bottom: 2px solid #426666;
    /* Slightly darker border for definition */
}

/* Table Cell Styles */
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    color: #426666;
    font-size: 1.2rem;
}

/* Alternating Row Colors */
table tr:nth-child(even) {
    background-color: #d5d5d5;
    /* Slightly darker gray for even rows */
}

table tr:nth-child(odd) {
    background-color: #e0e0e0;
    /* Base darker gray for odd rows */
}

/* Hover Effect for Rows */
table tr:hover {
    background-color: #c0c0c0;
    /* Even darker gray on hover */
}


/* Links in Table Cells */
table td a {
    text-decoration: none;
}

table td a:hover {
    text-decoration: underline;
}

/* Contact Section Styles */
#contact {
    padding: 40px 20px;
    background-color: #f0f0e0;
    /* Soft beige background */
    border-radius: 8px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Contact Information Grid */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.contact-info div {
    background-color: #e0e0d0;
    /* Slightly darker beige for cards */
    padding: 10px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-info div strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-info div img {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

/* Form Styles */
#contact form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #e0e0d0;
    /* Slightly darker beige for form */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contact form label {
    display: block;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

#contact form input,
#contact form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background-color: #f5f5e0;
    /* Light beige for input fields */
}

#contact form textarea {
    height: 120px;
    resize: vertical;
}

#contact form button {
    background-color: #426666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#contact form button:hover {
    background-color: #551A8B;
    /* Darker shade of primary color */
}

#contact form textarea {
    height: 120px;
    resize: vertical;
}

/* Button Styling */
button {
    border-radius: 5px;
    background-color: #d4af37;
    color: white;
    padding: 10px 15px;
    border: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

button, a {
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

button:focus, a:focus {
    outline: 2px solid #426666;
    outline-offset: 2px;
}

button:hover {
    background-color: #b7950b;
}

/* Add ARIA labels for better accessibility */
.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
}

.rotating-gallery {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto 40px auto;
    overflow: hidden;
}

.rotating-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.rotating-gallery img.active {
    opacity: 1;
}

a:hover {
    color: #d4af37; /* Darker shade for hover */
    text-decoration: none; /* Optional: Remove underline on hover */
    transition: color 0.3s ease;
}

/* Video Preview Styles */
.video-preview {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.video-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.video-link video {
    display: block;
    transition: transform 0.3s ease;
}

.video-link:hover video {
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.play-button::after {
    content: "";
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #333;
}

.video-link:hover .play-button {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button::after {
        border-top-width: 12px;
        border-bottom-width: 12px;
        border-left-width: 20px;
    }
}

/* ========================================
   ENHANCED HERO SECTION WITH VIDEO BACKGROUND
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    margin-top: 80px;
    display: flex;
    text-align: center;
    overflow: hidden;
    background-color: #dadbc9; /* Fallback color */
}

/* Video Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Individual Video Elements */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

/* Overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.35); /* Subtle white overlay */
    z-index: 1;
    pointer-events: none;
}

/* Hero Content - keep text on top */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    opacity: 1;
    animation: fadeIn 2s ease-in-out forwards;
}

.hero h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color:white;
    animation: fadeInText 2s forwards;
    margin-bottom: 1rem;
}

.hero p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: white;;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

/* Video Control Button */
.hero-video-control {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
    background-color: rgba(66, 102, 102, 0.75);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-video-control:hover {
    background-color: rgba(212, 175, 55, 0.85);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero-video-control:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}

/* Social Icons - keep above video */
.social-icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}

/* Fallback for no JavaScript */
.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}



/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    
    .hero {
        background-image: url('./images/cover.webp');
        background-size: cover;
        background-position: center;
    }
    
    .hero-video-control {
        display: none;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ABOUT ME SECTION - PROFILE PHOTOS
   ======================================== */

/* Profile Photos Container */
.profile-photos-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px auto 40px;
    flex-wrap: wrap;
}

.profile-photo-card {
    text-align: center;
    flex: 0 1 320px;
    transition: transform 0.3s ease;
}

.profile-photo-card:hover {
    transform: translateY(-5px);
}

.profile-photo {
    width: 100%;
    max-width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(66, 102, 102, 0.2);
    border: 3px solid #d4af37;
    transition: all 0.3s ease;
}

.profile-photo:hover {
    box-shadow: 0 12px 32px rgba(66, 102, 102, 0.3);
    border-color: #426666;
}

.photo-caption {
    margin-top: 12px;
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #426666;
    font-weight: 600;
}

.bio-content {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-photos-container {
        gap: 20px;
        margin: 20px auto 30px;
    }
    
    .profile-photo-card {
        flex: 0 1 100%;
    }
    
    .profile-photo {
        max-width: 280px;
        height: 350px;
    }
    
    .bio-content {
        padding: 20px;
    }
}
