/* --- Font Face Declarations --- */
@font-face {
    font-family: 'Dream Avenue';
    src: url('../fonts/FontsFree-Net-Dream-Avenue.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Droid Serif';
    src: url('../fonts/DroidSerif-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Droid Serif';
    src: url('../fonts/DroidSerif-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Droid Serif';
    src: url('../fonts/DroidSerif-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
 
@font-face {
    font-family: 'Droid Serif';
    src: url('../fonts/DroidSerif-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'CMU Serif';
    src: url('../fonts/cmunrm.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CMU Serif';
    src: url('../fonts/cmunbl.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'CMU Serif';
    src: url('../fonts/cmunci.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'CMU Serif';
    src: url('../fonts/cmunbi.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* --- Custom Properties --- */
:root {
    --emerald-dark: #0D2B24;
    --emerald-medium: #10403B;
    --gold-accent: #C9A959;
    --light-cream: #F4F1EA;
    --text-dark: #1a1a1a;
    --font-heading: 'Dream Avenue', serif; /* UPDATED */
    --font-subtitle: 'Droid Serif', serif; /* NEW */
    --font-body: 'CMU Serif', serif;       /* UPDATED */
}

html {
    scroll-behavior: smooth;
}

/* --- Base & Typography --- */
html, body {
    height: 100%;
    overflow: hidden; 
    background-color: var(--emerald-dark);
    color: var(--light-cream);
    font-family: var(--font-body); /* UPDATED */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading); /* UPDATED */
    font-weight: 600; /* Note: Dream Avenue may not have different weights */
    color: var(--light-cream);
    letter-spacing: 1px;
}

h1 { font-size: 5rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
h2 { font-size: 3.5rem; }
h3 { font-size: 2rem; color: var(--gold-accent); }
h4 { font-size: 1.8rem; color: var(--gold-accent); }

p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    font-family: var(--font-body); /* UPDATED */
}

/* Subtitle Styling */
.lead {
    font-family: var(--font-subtitle); /* UPDATED */
}

/* Numeric Font Styling */
.font-numeric {
    font-family: var(--font-heading); /* Dream Avenue for numbers */
}

.gold-text { color: var(--gold-accent); }

/* --- Scroll Container --- */
.scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar { display: none; }
.scroll-container { -ms-overflow-style: none;  scrollbar-width: none; }

.scroll-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.scroll-section:not(:first-child) {
    padding-top: 100px;
    box-sizing: border-box;
}

.content-section {
    background-color: var(--light-cream);
    color: var(--text-dark);
}

.content-section h2, .content-section h3, .content-section h4 {
    color: var(--emerald-dark);
}
.content-section h3, .content-section h4 {
    color: var(--emerald-medium);
}

/* --- Hero Sound Controls --- */
.hero-sound-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-sound-controls p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: none;
}

#hero-sound-toggle-btn {
    border: none;
    background: transparent;
    width: auto;
    height: auto;
    color:  var(--light-cream);
    font-size: 1.2rem;
    padding: 5px;
}

#hero-sound-toggle-btn:hover {
    background: transparent;
    color: var(--light-cream);
    transform: scale(1.1);
}

/* --- Video Background --- */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 43, 36, 0.7);
    z-index: 2;
}

.scroll-section > .container {
     position: relative;
     z-index: 3;
}

/* --- Header / Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.5s ease, padding 0.5s ease;
}

.main-header .nav-toggle { justify-self: start; }
.main-header .logo { justify-self: center; }
.main-header .language-switcher { justify-self: end; }

.main-header.scrolled {
    padding: 1.5rem 3rem;
}

.main-header .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-accent);
    text-decoration: none;
    letter-spacing: 2px;
    z-index: 1001;
}

.nav-toggle {
    background-color: transparent;
    color: var(--gold-accent);
    border: 1px solid var(--gold-accent);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-toggle:hover {
    background-color: var(--gold-accent);
    color: var(--emerald-dark);
    border-color: var(--gold-accent);
}

.nav-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- Language Switcher Styles --- */
.language-switcher {
    position: relative;
    padding-bottom: 0.5rem;
}

.language-switcher .current-lang {
    background-color: transparent;
    color: var(--gold-accent);
    border: 1px solid var(--gold-accent);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.language-switcher:hover .current-lang {
    background-color: var(--gold-accent);
    color: var(--emerald-dark);
    border-color: var(--gold-accent);
}

.language-switcher .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    background-color: rgba(13, 43, 36, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
    min-width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1002;
}

.language-switcher:hover .lang-dropdown {
    display: block;
}

.language-switcher .lang-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--light-cream);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
}

.language-switcher .lang-dropdown a:hover {
    background-color: var(--gold-accent);
    color: var(--emerald-dark);
}


/* --- Scroll Down Hint --- */
.scroll-down-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 60px;
    height: 60px;
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    font-size: 1.5rem;
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -15px);
  }
  60% {
    transform: translate(-50%, -7px);
  }
}

.scroll-section:not(#home) .scroll-down-hint {
    display: none;
}


/* --- Reusable Gold Outline Button --- */
.btn-outline-gold {
    background: transparent;
    color: var(--gold-accent);
    border: 1px solid var(--gold-accent);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-gold:hover {
    background: var(--gold-accent);
    color: var(--emerald-dark);
}

/* --- Header Right Controls & Mute Button --- */
.header-right-controls {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-self: end;
}

.video-mute-btn {
    background: transparent;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-mute-btn:hover {
    background: var(--gold-accent);
    color: var(--emerald-dark);
}

/* --- Restored Contact Button Style for Modals --- */
.btn-contact {
    background-color: var(--gold-accent);
    color: var(--emerald-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-contact:hover {
    background-color: transparent;
    color: var(--gold-accent);
    border-color: var(--gold-accent);
}

/* --- Side Navigation Panel --- */
.nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: rgba(13, 43, 36, 0.72);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.3);
}

.nav-panel.active {
    transform: translateX(0);
}

.nav-panel .nav-close {
    position: absolute;
    top: 2.5rem;
    right: 3rem;
    font-size: 2rem;
    color: var(--light-cream);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-panel .nav-close:hover {
     color: var(--gold-accent);
     transform: rotate(90deg);
}

.nav-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.nav-panel ul li a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--light-cream);
    text-decoration: none;
    padding: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.nav-panel ul li a:hover {
    color: var(--gold-accent);
    transform: translateX(10px);
}

/* --- Section Specific Styles --- */
.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.card-img-placeholder {
    height: 220px;
    background-color: var(--emerald-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
}
.service-card .card-body { padding: 2rem; }
.service-card h4 { font-size: 1.5rem; color: var(--emerald-dark); }
.service-card p { color: #555; font-size: 1rem; }

.bio-section {
    background-color: var(--emerald-dark);
}

.img-placeholder-bio {
    width: 100%;
    padding-top: 150%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.team-group-photo {
    width: 90%;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-form {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 89, 0.2);
}

/* --- Scrollable Content Div --- */
.scrollable-content-wrapper {
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    padding: 2rem 2rem 4rem;
    width: 100%;
}
.scrollable-content-wrapper::-webkit-scrollbar { width: 8px; }
.scrollable-content-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; }
.scrollable-content-wrapper::-webkit-scrollbar-thumb { background: var(--gold-accent); border-radius: 4px; }
.scrollable-content-wrapper::-webkit-scrollbar-thumb:hover { background: #dab65b; }

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-section.is-active .reveal {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.scroll-section.is-active .reveal.d-1 { transition-delay: 0.3s; }
.scroll-section.is-active .reveal.d-2 { transition-delay: 0.4s; }
.scroll-section.is-active .reveal.d-3 { transition-delay: 0.5s; }
.scroll-section.is-active .reveal.d-4 { transition-delay: 0.6s; }


/* --- Legal Links & Modal Styles --- */
.legal-links {
    margin-top: 1.5rem;
    font-family: var(--font-body);
}

.legal-link {
    color: rgba(244, 241, 234, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--gold-accent);
    text-decoration: underline;
}

.legal-text h2 {
    font-size: 1.5rem;
    color: var(--emerald-dark);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* --- Modal Styles --- */
.modal-open {
    overflow: hidden;
}

.service-card-clickable {
    cursor: pointer;
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 43, 36, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}
.modal-content {
    position: relative;
    background-color: var(--light-cream);
    color: var(--text-dark);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 2;

    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-container.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 1;
    font-weight: 300;
    color: var(--emerald-dark);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold-accent);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 90vh;
}

.modal-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    height: 350px;
}

.modal-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text-content {
    padding: 2.5rem 3rem;
    overflow-y: auto;
}

.modal-text-content h3 {
    font-size: 2.5rem;
    color: var(--emerald-dark);
    margin-bottom: 1rem;
}

.modal-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-contact-btn {
    display: inline-block;
    background-color: var(--gold-accent);
    color: var(--emerald-dark);
}

.modal-contact-btn:hover {
    background-color: var(--emerald-dark);
    color: var(--light-cream);
    border-color: transparent;
}

.emerald-text {
    color: var(--emerald-medium);
    font-weight: 900;
}

.card-img-placeholder {
    height: 220px;
    background-color: var(--emerald-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    background-size: cover;
    background-position: center;
}

/* --- Modal Image Loader Styles --- */
.modal-images {
    position: relative;
}

.modal-images .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(13, 43, 36, 0.2);
    border-top-color: var(--gold-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.modal-images.is-loading .loader {
    opacity: 1;
    visibility: visible;
}

.modal-images.is-loading img {
    visibility: hidden;
}

/* --- Z-Index Fix for Scrollable Video Sections --- */
.video-section .scrollable-content-wrapper {
    position: relative;
    z-index: 3;
}

/* --- Main Footer --- */
.main-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 1rem 3rem;
    color: var(--light-cream);
    background: rgba(13, 43, 36, 0.5);
    backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-content .legal-links {
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-content .legal-link {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--light-cream);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--gold-accent);
    transform: scale(1.1);
}

#contact .scrollable-content-wrapper {
    padding-bottom: 120px; 
}

/* --- Form Message Styles --- */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 500;
}
.form-message-success {
    background-color: rgba(13, 43, 36, 0.8); /* Dark Emerald */
    color: var(--gold-accent);
    border: 1px solid var(--gold-accent);
}
.form-message-error {
    background-color: rgba(200, 50, 50, 0.8); /* Red */
    color: #fff;
    border: 1px solid #fff;
}
.form-message-info {
    background-color: rgba(0,0,0,0.5);
    color: var(--light-cream);
}


/* Mobile adjustments for footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 0.75rem 1rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    .footer-content .legal-links {
        gap: 1rem;
        font-size: 0.8rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    html, body {
        overflow: auto;
    }

    .scroll-container {
        overflow: visible;
        height: auto;
    }

    .scroll-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .nav-toggle-text {
        display: none;
    }

    .nav-toggle {
        padding: 0;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    .language-switcher .current-lang {
        padding: 0.5rem 1rem;
    }

    .modal-body {
        flex-direction: column;
    }
    .modal-images {
        height: 250px;
    }
    .modal-text-content {
        padding: 2rem;
    }
    .modal-text-content h3 {
        font-size: 2rem;
    }

    .btn-contact {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .team-group-photo {
        width: 80%;
    }

    .scroll-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .scrollable-content-wrapper {
        padding: 2rem 1rem;
    }

    .contact-form {
        padding: 2rem;
    }
}