/* ==========================================================================
   #BASE STYLES & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --midnight-navy: #0b1124;
    --deep-indigo: #101d35;
    --dawn-gold: #f5c76d;
    --light-text: #e9eef5;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    
    /* Shadows */
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 12px rgba(245, 199, 109, 0.3);
}

:root {
    /* Animation timings */
    --animation-duration: 0.8s;
    --animation-delay: 0s;
    --animation-timing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--light-text);
    line-height: 1.6;
    background: var(--midnight-navy);
    overflow-x: hidden;
    /* Standard scrollbar for Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--deep-indigo) var(--midnight-navy);
}

/* Webkit (Chrome, Safari, Edge) scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--midnight-navy);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--deep-indigo);
    border-radius: 6px;
    border: 2px solid var(--midnight-navy);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a2847;
}

::-webkit-scrollbar-thumb:active {
    background: #2a3a5c;
}

::-webkit-scrollbar-corner {
    background: var(--midnight-navy);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { 
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 { 
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin: 2rem 0 1.5rem;
}

h3 { 
    font-size: 1.4rem;
    color: var(--dawn-gold);
    line-height: 1.4;
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--dawn-gold);
    transition: var(--transition);
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
}

/* Modal Styles (Minimal) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    background: var(--midnight-navy);
    margin: 2rem auto;
    padding: 2rem;
    max-width: 90%;
    width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.close-modal:hover {
    color: var(--dawn-gold);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Utility Classes */
.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    color: var(--dawn-gold);
}

.services .section-title,
.footer-cta .section-title {
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--dawn-gold), transparent);
    border-radius: var(--radius-sm);
}

.philosophy h2 .underline {
    position: relative;
    display: inline-block;
}

.philosophy h2 .underline {
    position: relative;
    display: inline-block;
}

.philosophy h2 .underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--dawn-gold), transparent);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
}

.btn--primary {
    background: var(--dawn-gold);
    color: var(--midnight-navy);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn--secondary {
    background: transparent;
    color: var(--dawn-gold);
    border: 1px solid var(--dawn-gold);
}

.btn--secondary:hover {
    background: rgba(245, 199, 109, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   #NAVIGATION
   ========================================================================== */
/* Header */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 17, 36, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sticky-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    max-width: 1440px;
    margin: 0 auto;
    height: 80px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dawn-gold);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
    cursor: default;
    height: 100%;
    padding: 0.5rem 0;
    position: relative;
    z-index: 10;
}

.logo:hover {
    text-decoration: none !important;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo span {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    opacity: 0;
    animation: slideInFromLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

/* Logo animation keyframes */
@keyframes circleAppear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes imageAppear {
    0% { transform: scale(0.5) rotate(-90deg); opacity: 0; }
    100% { transform: scale(1.5) rotate(0deg); opacity: 1; }
}

@keyframes slideInFromLeft {
    0% { 
        transform: translateX(-20px);
        opacity: 0;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

.logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    animation: circleAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
    padding-top: 4px; /* Specific top padding to match footer alignment */
}

.logo-img img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transform: translateY(1px); /* Fine-tuned vertical alignment */
    animation: imageAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
    opacity: 0;
    transform-origin: center;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-logo .logo:hover {
    color: var(--primary-color);
}

.footer-logo .logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-logo .logo-img img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transform: translateY(1px); /* Fine-tuned vertical alignment */
}

.footer-logo .logo:hover .logo-img img {
    transform: scale(1.1);
}

.footer-logo .logo span {
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    position: relative;
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.35rem 0.6rem 0.25rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background-color: var(--dawn-gold);
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--dawn-gold);
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Remove underline effect for contact button */
.nav-links .nav-cta::after {
    display: none;
}

.nav-cta {
    background-color: var(--dawn-gold);
    color: var(--midnight-navy) !important;
    padding: 0.7rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 199, 109, 0.3);
    transition: var(--transition-bounce);
    margin-left: 1rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    white-space: nowrap;
    min-width: 120px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 199, 109, 0.4);
    color: var(--midnight-navy) !important;
    text-decoration: none !important;
}

/* Mobile Navigation Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    background: none;
    border: none;
    position: relative;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.3s ease-in-out;
    position: relative;
}

.hamburger .bar:not(:last-child) {
    margin-bottom: 5px;
}

/* Active state for hamburger */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Checkbox styles */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  opacity: 1;
  position: static;
  cursor: pointer;
  -moz-appearance: checkbox;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

/* Navigation styles */
.sticky-nav {
    padding: 1rem 0;
    background: var(--deep-indigo);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--dawn-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dawn-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Navigation CTA Button */
.nav-cta {
    background: var(--dawn-gold);
    color: var(--midnight-navy) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover,
.nav-cta:focus {
    background: #e6b84e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 199, 109, 0.3);
}

.nav-cta::after {
    display: none;
}

/* Hide nav links on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* ==========================================================================
   #HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height */
    display: flex;
    align-items: center;
    padding: 9rem 0 6rem;
    overflow: hidden;
    background: var(--midnight-navy);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/header.webp') center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero__title {
    color: var(--dawn-gold);
    margin: 0 0 1.75rem 0;
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero__subtitle {
    color: var(--light-text);
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0 0 3rem 0;
    max-width: 90%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero__cta {
    display: inline-flex;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

@media (max-width: 1400px) {
    .hero__title {
        font-size: 3.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .hero__title {
        font-size: 3.25rem;
    }
    
    .hero__subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        text-align: center;
        padding: 8rem 0 5rem;
    }
    
    .hero__content {
        margin: 0 auto;
        text-align: center;
        padding: 0 2rem;
    }
    
    .hero__title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .hero__subtitle {
        font-size: 1.3rem;
        margin: 0 auto 2.5rem;
        max-width: 90%;
        line-height: 1.6;
    }
    
    .hero__cta {
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 5rem;
    }
    
    .hero__title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.15;
    }
    
    .hero__subtitle {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }
    
    .hero__cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.8rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Key Questions */
.key-questions {
    margin: var(--spacing-xl) 0;
    position: relative;
    padding-left: 0;
}

.question {
    display: flex;
    align-items: flex-start;
    padding: 1.4rem 0 1.4rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.02);
}

.question:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, 
        rgba(245, 199, 109, 0.1), 
        rgba(245, 199, 109, 0.05));
    color: var(--dawn-gold);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: var(--spacing-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light-text);
    margin: 0;
    padding-right: var(--spacing-sm);
    opacity: 0.9;
}

.question.highlight {
    background: rgba(245, 199, 109, 0.1);
    border-left: 3px solid var(--dawn-gold);
    box-shadow: var(--shadow-gold);
}

.question.highlight .question-text {
    color: #fff;
    font-weight: 500;
    opacity: 1;
}

.question.highlight .question-number {
    background: linear-gradient(135deg, var(--dawn-gold), #e6b74a);
    color: var(--midnight-navy);
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0 3rem; /* 6rem top, 0 sides, 3rem bottom */
    position: relative;
    overflow: hidden;
    background-color: var(--deep-indigo);
    scroll-margin-top: 2rem; /* Reduced from 6rem to 2rem */
}

.philosophy .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.philosophy h2 {
    color: var(--dawn-gold);
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.philosophy .text-content {
    padding-right: var(--spacing-lg);
}

.philosophy p {
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.right-column {
    position: relative;
    margin-top: 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 3.5rem auto 1.5rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    transition: var(--transition);
}

.philosophy-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.video-container:hover .philosophy-video {
    transform: scale(1.03);
}

.philosophy-conclusion {
    margin-top: 38px;
    padding: 14px 70px;
    text-align: center;
}

.philosophy-conclusion p {
    margin-bottom: 0;
}

.philosophy-cta {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--spacing-xl);
    position: relative;
    padding-top: 2.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .philosophy {
        padding: var(--spacing-xl) 0;
    }
    
    .philosophy .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        display: flex;
        flex-direction: column;
    }
    
    .philosophy .text-content {
        order: 1;
        padding-right: 0;
        width: 100%;
    }
    
    .right-column {
        order: 2;
        width: 100%;
        margin: 0 auto;
    }
    
    .video-container {
        max-width: 280px;
        margin: 0 auto 3.5rem;
    }
    
    .philosophy-conclusion {
        margin: var(--spacing-md) 0 0;
        order: 3;
    }
    
    .philosophy-cta {
        order: 4;
        margin-top: 0;
        padding-top: 0;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* Sections */
section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Remove bottom border from last section */
section:last-child {
    border-bottom: none;
}

/* Add extra spacing for sections with background */
.philosophy,
.contact {
    padding: 4rem 0;
}

/* Ensure services padding is not overridden and remove bottom border */
section#services.services {
    padding: 3rem 0 !important;
    border-bottom: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--midnight-navy);
    isolation: isolate; /* Create a new stacking context */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(11, 17, 36, 0.9) 0%,
        rgba(15, 23, 42, 0.8) 100%
    );
    z-index: 2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    /* Optimize for LCP */
    opacity: 1;
    backface-visibility: hidden;
    perspective: 1000px;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 1.5rem 100px;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
}

.hero-title {
    overflow: hidden;
    font-size: 3.5rem; /* Base font size for the h1 element */
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    font-weight: 700;
}

.hero-title .line {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn var(--animation-duration, 0.8s) var(--animation-timing, ease) forwards;
    animation-delay: var(--animation-delay, 0s);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-1 {
    --animation-delay: 0.3s;
    margin-bottom: 0.5rem;
    background: linear-gradient(120deg, #fff 0%, #f5c76d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-title .line-2 {
    --animation-delay: 0.6s;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #f5c76d 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.9s;
    margin: 0 0 2.5rem;
    font-size: 1.25rem;
    max-width: 650px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-button-container {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

.hero-button {
    display: inline-block;
    position: relative;
    z-index: 1;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--midnight-navy);
    background: var(--dawn-gold);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-button:active {
    transform: translateY(0);
}

.hero-button:hover::before {
    width: 200px;
    height: 200px;
}

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

/* Services Section */
.services {
    min-height: 40vh;
    padding: 0;
    background-color: var(--midnight-navy);
    margin: 0;
    opacity: 1;
    visibility: visible;
    text-align: center;
}

.services h2 {
    margin-bottom: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
    text-align: center;
}

.services .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.service-card {
    background: var(--deep-indigo);
    padding: 3rem 2.5rem; /* Increased padding to accommodate larger icons */
    border-radius: 15px;
    transition: all 0.6s ease;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }

.services-grid.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 16rem; /* Increased from 12rem */
    color: var(--dawn-gold);
    margin-bottom: 2.5rem; /* Increased from 2rem */
    display: inline-block;
    transition: var(--transition);
    line-height: 1; /* Ensure consistent height */
    height: 1em; /* Ensure consistent height */
}

.service-card h3 {
    color: var(--dawn-gold);
    margin-bottom: 1rem;
}

/* Footer CTA */
.footer-cta {
    background-color: var(--deep-indigo);
    position: relative;
    overflow: visible;
    padding: 0;
    margin-top: 2rem;
}

.footer-cta > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-cta h2 {
    color: #ffffff; /* White text for better visibility */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    opacity: 1; /* Make text fully visible */
    transform: translateY(0); /* Remove initial transform */
    transition: all 0.6s ease 0.2s;
}

.footer-cta .cta-button {
    background-color: var(--midnight-navy);
    color: var(--dawn-gold);
    border: 2px solid var(--midnight-navy);
    margin-bottom: 2rem;
}

.footer-cta .cta-button:hover {
    background-color: transparent;
    color: var(--midnight-navy);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--midnight-navy);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: var(--dawn-sand);
    transform: translateY(-3px);
}

.footer-main {
    background-color: var(--midnight-navy-dark);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 32px;
    width: 32px;
    border-radius: 0;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dawn-gold);
    letter-spacing: -0.5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dawn-gold);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--dawn-gold);
    opacity: 1;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links .privacy-policy-link {
    color: var(--dawn-gold);
    font-weight: 600;
}

.footer-links .privacy-policy-link:hover {
    color: var(--dawn-gold-light);
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-legal p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dawn-sand-70);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
        margin: 0 auto;
    }
    
    .footer-links a {
        white-space: nowrap;
        padding: 0.25rem 0.5rem;
    }
    
    .footer-cta h2 {
        font-size: 2rem;
    }
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--dawn-gold);
}

.footer-legal {
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-top: 1rem;
}

.footer-legal p {
    margin-bottom: 1rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--dawn-gold);
}

.divider {
    color: rgba(255, 255, 255, 0.1);
}

/* Policy Pages */
.policy-page {
    padding: 8rem 0;
    background-color: var(--midnight-navy);
    color: var(--light-text);
}

.policy-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.policy-page h1 {
    color: var(--dawn-gold);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.policy-page .last-updated {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    display: block;
    font-size: 0.9rem;
}

.policy-page h2 {
    color: var(--dawn-gold);
    margin: 3rem 0 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.policy-page h3 {
    color: var(--light-text);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.policy-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.policy-page ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.policy-page ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.policy-page a {
    color: var(--dawn-gold);
    text-decoration: none;
    transition: var(--transition);
}

.policy-page a:hover {
    text-decoration: underline;
}

/* Cookie Consent Banner */
/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--midnight-navy);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    border-top: 2px solid var(--dawn-gold);
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cookie-content p {
    margin: 0 1rem 0 0;
    flex: 1;
    min-width: 280px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-consent .cookie-text a,
.cookie-policy-link {
    color: var(--dawn-gold);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.cookie-consent .cookie-text a:hover,
.cookie-policy-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.cookie-content a {
    color: var(--dawn-gold);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cookie-content a:hover {
    opacity: 0.8;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Cookie Consent Buttons */
.cookie-buttons .btn {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

/* Primary Button */
.cookie-buttons .btn-primary {
    background: var(--dawn-gold);
    color: var(--deep-indigo);
    border-color: var(--dawn-gold);
}

.cookie-buttons .btn-primary:hover {
    background: #ffd78c;
    border-color: #ffd78c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 140, 0.3);
}

/* Outline Button */
.cookie-buttons .btn-outline {
    background: transparent;
    color: var(--dawn-gold);
    border: 2px solid var(--dawn-gold);
}

.cookie-buttons .btn-outline:hover {
    background: rgba(255, 215, 140, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 140, 0.15);
}

/* Focus states */
.cookie-buttons .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 140, 0.4);
}

/* Active states */
.cookie-buttons .btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

/* Policy Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal.show {
    display: block;
}

.modal-content {
    background: var(--deep-indigo);
    margin: 2rem auto;
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    color: var(--dawn-gold);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    opacity: 0.7;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--dawn-gold);
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
}

.policy-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 2rem;
    background: rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 5;
}

.tab-btn {
    padding: 1.2rem 1.8rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.tab-btn:hover {
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dawn-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--dawn-gold);
    font-weight: 600;
}

.tab-btn.active:after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: 2.5rem;
    animation: fadeIn 0.3s ease;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

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

.tab-content.active {
    display: block;
}

/* Policy Content Styling */
.tab-content h4 {
    color: var(--dawn-gold);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.tab-content h5 {
    color: var(--light-text);
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
}

.tab-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
}

.tab-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: var(--deep-indigo);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-cta .cta-button {
        width: auto;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
    }
    
    .policy-tabs {
        flex-wrap: wrap;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-height: 800px) {
    .footer-cta > .container {
        min-height: 30vh;
        padding: 2rem 0;
    }
    
    .footer-cta h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .footer-logo {
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    .footer-links {
        margin-bottom: 0;
    }
    
    .footer-legal {
        text-align: right;
    }
    
    .legal-links {
        justify-content: flex-end;
    }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--dawn-gold);
    color: var(--midnight-navy);
    padding: 1rem 2.5rem;
    margin-top: 1rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.cta-button:hover {
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 199, 109, 0.4);
}

/* Secondary CTA Button */
.cta-button--secondary {
    background-color: transparent;
    color: var(--dawn-gold);
    border: 2px solid var(--dawn-gold);
    margin: 1rem auto 0;
    display: block;
    width: fit-content;
    min-width: 200px;
    text-align: center;
    padding: 0.8rem 1.5rem;
}

.cta-button--secondary:hover {
    background-color: var(--midnight-navy);
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Social Links */
.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--dawn-gold);
    border-radius: 50%;
    color: var(--dawn-gold);
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.social-links.visible a {
    opacity: 1;
    transform: translateY(0);
}

.social-links a:nth-child(1) { transition-delay: 0.6s; }
.social-links a:nth-child(2) { transition-delay: 0.7s; }
.social-links a:nth-child(3) { transition-delay: 0.8s; }

.social-links a:hover {
    background-color: var(--dawn-gold);
    color: var(--midnight-navy);
    transform: translateY(-3px);
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .philosophy .container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .text-content, .illustration {
        width: 100%;
    }
    
    .illustration {
        height: 400px;
    }
    
    /* Services section mobile adjustments */
    .services {
        padding: 4rem 0;
    }
    
    .services h2 {
        margin-bottom: 2.5rem;
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .service-card {
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .philosophy-cta {
        margin-top: 0;
        padding-top: 0;
        width: 100%;
    }
    
    .philosophy-cta .cta-button--secondary {
        width: 100%;
        max-width: 100%;
        margin: 1rem 0 0;
    }
}

/* Contact Form Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 17, 36, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    padding: 2rem 1rem;
}

.modal-content {
    background-color: var(--deep-indigo);
    padding: 0;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    position: relative;
    border: 1px solid rgba(245, 199, 109, 0.2);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    margin: auto;
    max-height: 90vh;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-body {
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
    flex: 1;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--dawn-gold);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #e6b74a;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--light-text);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    background: none;
    border: none;
    padding: 0.5rem;
}

.close-modal:hover {
    color: var(--dawn-gold);
}

.modal h2 {
    color: var(--dawn-gold);
    margin: 0 0 1.5rem 0;
    font-size: 2.2rem;
    line-height: 1.2;
}

.modal p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
    flex: 1;
    padding: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-form label {
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: #ff6b6b;
    margin-left: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Focus states for all form elements */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--dawn-gold);
    box-shadow: 0 0 0 2px rgba(245, 199, 109, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Form validation styles */
.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.05);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.form-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(40, 199, 111, 0.15);
    color: #28c76f;
    border-left: 3px solid #28c76f;
}

.form-message.error {
    background-color: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-left: 3px solid #ff6b6b;
}

/* Loading state for submit button */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

button[type="submit"]:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.contact-form textarea {
    min-height: 100px;
    max-height: 200px;
    resize: vertical;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Checkbox styles removed - using default browser styling */

.contact-form .cta-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.contact-form .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 199, 109, 0.3);
}

/* Responsive styles */
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--midnight-navy);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--dawn-gold);
}

.mobile-nav-cta {
    background-color: var(--dawn-gold);
    color: var(--midnight-navy) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:focus {
    background-color: #e6b84e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 199, 109, 0.3);
}

/* Overlay when mobile menu is open */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hide desktop contact button on mobile */
.desktop-only {
    display: block;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Hide desktop nav on mobile */
    }
    
    .mobile-menu-toggle {
        display: block; /* Show mobile menu button */
    }
    
    .desktop-only {
        display: none; /* Hide desktop-only elements */
    }
}

@media (max-width: 767px) {
    .footer-cta .cta-button {
        margin: 2rem 0;
    }
    
    .sticky-nav .container {
        padding: 0 1.5rem;
        height: 70px;
        justify-content: space-between;
    }
    
    .logo {
        padding: 0.75rem 0;
    }
    
    .logo span {
        display: none; /* Hide the text on mobile */
    }
    
    .logo-img {
        height: 40px;
        width: 40px;
        margin: 0;
    }
    
    .logo-img img {
        width: 26px;
        height: 26px;
    }
    
    .modal {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem auto;
    }
    
    .modal h2 {
        font-size: 1.75rem;
    }
    
    .close-modal {
        top: 1rem;
        right: 1rem;
    }
    
    h1 { font-size: 2.625rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--midnight-navy);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .philosophy, .services, .footer-cta {
        padding: 5rem 0;
    }
    
    .illustration {
        height: 300px;
    }
}

/* SVG Icons */
.svg-inline--fa {
    height: 2em !important;
    width: auto !important;
    vertical-align: -0.2em !important;
}
