/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors (Default) */
    --primary-color: #1a4d7a;
    --secondary-color: #2c6b9e;
    --accent-color: #d4a574;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-main: #ffffff;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
}

[data-theme="dark"] {
    /* Dark Mode Colors - Improved Visibility */
    --primary-color: #5ba3f5;
    --secondary-color: #6bb5ff;
    --accent-color: #f4c97a;
    --text-dark: #f5f5f5;
    --text-light: #d0d0d0;
    --bg-light: #0f1419;
    --bg-main: #0a0e13;
    --white: #1a1f26;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.8);
    --border-color: #2a3441;
    --card-bg: #1a1f26;
    --input-bg: #1a1f26;
    --input-border: #2a3441;
}

/* Dark mode specific adjustments - Night Theme */
[data-theme="dark"] body {
    background: linear-gradient(180deg, #0a0e13 0%, #0f1419 50%, #0a0e13 100%);
    background-attachment: fixed;
    position: relative;
}

[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.8), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: stars 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes stars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .hero-image-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(244, 201, 122, 0.3);
}

[data-theme="dark"] .hero-image-note {
    background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.85) 100%);
    border-top: 2px solid rgba(244, 201, 122, 0.3);
}

/* Mobile view - Dark mode styles for better text visibility */
@media (max-width: 768px) {
    [data-theme="dark"] .hero-image-note {
        background: linear-gradient(to top, rgba(26, 31, 38, 0.98) 0%, rgba(26, 31, 38, 0.95) 50%, rgba(26, 31, 38, 0.90) 100%);
        color: #ffffff !important;
        border-top: 2px solid rgba(244, 201, 122, 0.3);
    }

    [data-theme="dark"] .hero-image-note .note-icon {
        color: #f4c97a;
    }

    [data-theme="dark"] .hero-image-note h3 {
        color: #f4c97a !important;
        text-shadow: 0 0 10px rgba(244, 201, 122, 0.3);
        border-bottom: 1px solid rgba(244, 201, 122, 0.2);
    }

    [data-theme="dark"] .hero-image-note .description-scroll p {
        color: #e0e0e0 !important;
    }
}

@media (max-width: 480px) {
    [data-theme="dark"] .hero-image-note {
        background: linear-gradient(to top, rgba(26, 31, 38, 0.98) 0%, rgba(26, 31, 38, 0.95) 50%, rgba(26, 31, 38, 0.90) 100%);
        color: #ffffff !important;
        border-top: 2px solid rgba(244, 201, 122, 0.3);
    }

    [data-theme="dark"] .hero-image-note .note-icon {
        color: #f4c97a;
    }

    [data-theme="dark"] .hero-image-note h3 {
        color: #f4c97a !important;
        text-shadow: 0 0 10px rgba(244, 201, 122, 0.3);
        border-bottom: 1px solid rgba(244, 201, 122, 0.2);
    }

    [data-theme="dark"] .hero-image-note .description-scroll p {
        color: #e0e0e0 !important;
    }
}

[data-theme="dark"] .hero-image-note {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-image-note h3 {
    color: #f4c97a !important;
    text-shadow: 0 0 10px rgba(244, 201, 122, 0.3);
}

[data-theme="dark"] .hero-image-note p {
    color: #ffffff !important;
    opacity: 0.95;
}

[data-theme="dark"] .hero::before {
    opacity: 0.1;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

[data-theme="dark"] .hero-overlay {
    background: radial-gradient(circle at 30% 50%, rgba(244, 201, 122, 0.2) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(91, 163, 245, 0.15) 0%, transparent 50%);
}

[data-theme="dark"] .hero::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><filter id="glow"><feGaussianBlur stdDeviation="2" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><circle cx="100" cy="100" r="85" fill="none" stroke="rgba(244,201,122,0.15)" stroke-width="1.5"/><circle cx="100" cy="100" r="65" fill="none" stroke="rgba(244,201,122,0.12)" stroke-width="1.2"/><circle cx="100" cy="100" r="45" fill="none" stroke="rgba(244,201,122,0.1)" stroke-width="1"/><g stroke="rgba(244,201,122,0.18)" stroke-width="1.8" fill="none" stroke-linecap="round"><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(45 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(22.5 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(67.5 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(11.25 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(33.75 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(56.25 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(78.75 100 100)"/></g><circle cx="100" cy="100" r="12" fill="rgba(244,201,122,0.18)"/></svg>');
    opacity: 0.18;
}

[data-theme="dark"] .hero-name {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(244, 201, 122, 0.5),
                 0 0 40px rgba(91, 163, 245, 0.3),
                 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(244, 201, 122, 0.5),
                     0 0 40px rgba(91, 163, 245, 0.3),
                     2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 0 0 30px rgba(244, 201, 122, 0.7),
                     0 0 60px rgba(91, 163, 245, 0.5),
                     2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

[data-theme="dark"] .hero-tagline {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(244, 201, 122, 0.2),
                 1px 1px 2px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .tagline-accent {
    color: #f4c97a;
    text-shadow: 0 0 15px rgba(244, 201, 122, 0.5);
}

[data-theme="dark"] .hero-subtitle {
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-badge {
    background: rgba(244, 201, 122, 0.15);
    border: 1px solid rgba(244, 201, 122, 0.4);
    color: #f4c97a;
    text-shadow: 0 0 10px rgba(244, 201, 122, 0.3);
}

[data-theme="dark"] .btn-secondary {
    background: #5BA3F5;
    color: var(--white);
    border: 2px solid #5BA3F5;
    box-shadow: 0 4px 15px rgba(91, 163, 245, 0.4);
}

[data-theme="dark"] .btn-secondary:hover {
    background: #4a8fd8;
    border-color: #4a8fd8;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(91, 163, 245, 0.6),
                0 0 30px rgba(91, 163, 245, 0.3);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 20px rgba(244, 201, 122, 0.4),
                0 0 30px rgba(244, 201, 122, 0.2);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(244, 201, 122, 0.6),
                0 0 40px rgba(244, 201, 122, 0.4);
}

[data-theme="dark"] .hero-stat .stat-number {
    color: #f4c97a;
    text-shadow: 0 0 15px rgba(244, 201, 122, 0.4);
    transition: all 0.3s ease;
}

[data-theme="dark"] .hero-stat:hover .stat-number {
    text-shadow: 0 0 25px rgba(244, 201, 122, 0.6);
    transform: scale(1.05);
}

[data-theme="dark"] .hero-stat .stat-label {
    color: #d0d0d0;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 31, 38, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .nav-brand h1 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(91, 163, 245, 0.3);
}

[data-theme="dark"] .nav-subtitle {
    color: #d0d0d0;
}

[data-theme="dark"] .nav-link {
    color: #e0e0e0;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #f4c97a;
}

[data-theme="dark"] .timeline-content ul li::before {
    color: var(--accent-color);
}

[data-theme="dark"] .section-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(91, 163, 245, 0.2);
}

[data-theme="dark"] .section-title::after {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(244, 201, 122, 0.5);
}

[data-theme="dark"] .section-subtitle {
    color: #d0d0d0;
}

[data-theme="dark"] .footer {
    background: linear-gradient(180deg, #0f1419 0%, #0a0e13 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    color: #ffffff !important; /* Keep all text white in dark mode */
}

[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4 {
    color: #f4c97a !important;
    text-shadow: 0 0 10px rgba(244, 201, 122, 0.3);
}

[data-theme="dark"] .footer-section p {
    color: #ffffff !important;
    opacity: 0.9;
}

[data-theme="dark"] .footer-section ul li {
    color: #ffffff !important;
    opacity: 0.9;
}

[data-theme="dark"] .footer-section ul li a {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-section ul li a:hover {
    color: #f4c97a !important;
}

[data-theme="dark"] .footer-section address {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-section address p {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-section address a {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-section address a:hover {
    color: #f4c97a !important;
}

[data-theme="dark"] .footer-advocate-title {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .footer-bottom p {
    color: #ffffff !important;
    opacity: 0.9;
}

[data-theme="dark"] .footer-disclaimer {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.7;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .stat-item {
    background: rgba(26, 31, 38, 0.8);
    border: 1px solid rgba(42, 52, 65, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .testimonial-card:hover {
    background: rgba(26, 31, 38, 0.95);
    border-color: rgba(244, 201, 122, 0.4);
    box-shadow: 0 8px 25px rgba(244, 201, 122, 0.2),
                0 0 20px rgba(91, 163, 245, 0.1);
    transform: translateY(-5px);
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .testimonial-card blockquote p {
    color: #f5f5f5;
}

[data-theme="dark"] .about-text h3 {
    color: #ffffff;
}

[data-theme="dark"] .about-text p {
    color: #d0d0d0;
}

[data-theme="dark"] .timeline-content h3 {
    color: #ffffff;
}

[data-theme="dark"] .timeline-content h4 {
    color: #d0d0d0;
}

[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .timeline-content ul li {
    color: #d0d0d0;
}

[data-theme="dark"] .contact-info h3 {
    color: #ffffff;
}

[data-theme="dark"] .contact-info > p {
    color: #d0d0d0;
}

[data-theme="dark"] .contact-item strong {
    color: #f4c97a;
}

[data-theme="dark"] .contact-item p {
    color: #d0d0d0;
}

[data-theme="dark"] .contact-form h3 {
    color: #ffffff;
}

[data-theme="dark"] .form-group label {
    color: #f5f5f5;
}

html {
    transition: background-color 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    padding-top: 70px; /* Space for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 0;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.theme-toggle:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.theme-icon {
    transition: transform 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .hamburger span {
    background: var(--primary-color);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 140px 20px;
    padding-top: 180px; /* Extra padding to account for fixed navbar */
    min-height: 650px;
    position: relative;
    overflow: hidden;
    margin-top: -70px; /* Offset body padding */
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* National Emblem Background - Ashoka Chakra */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><filter id="glow"><feGaussianBlur stdDeviation="2" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><circle cx="100" cy="100" r="85" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/><circle cx="100" cy="100" r="65" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1.2"/><circle cx="100" cy="100" r="45" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="1"/><g stroke="rgba(255,255,255,0.12)" stroke-width="1.8" fill="none" stroke-linecap="round"><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(45 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(22.5 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(67.5 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(11.25 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(33.75 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(56.25 100 100)"/><path d="M100 15 L100 35 M100 165 L100 185 M15 100 L35 100 M165 100 L185 100" transform="rotate(78.75 100 100)"/></g><circle cx="100" cy="100" r="12" fill="rgba(255,255,255,0.12)"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(212, 165, 116, 0.2);
    animation: float 6s ease-in-out infinite;
    aspect-ratio: 3 / 4;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    aspect-ratio: 3 / 4;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

/* Desktop: Clean image without overlays */
@media (min-width: 769px) {
    .hero-image-container {
        overflow: hidden;
    }
    
    .hero-image {
        border-radius: 0;
    }
}

.hero-image-note {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 77, 122, 0.95) 0%, rgba(26, 77, 122, 0.85) 100%);
    padding: 2rem;
    color: var(--white);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease;
    height: 25%; /* Take only bottom 1/4 portion */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

/* Desktop: description-scroll should not affect layout */
.hero-image-note .description-scroll {
    overflow: visible;
    max-height: none;
}

.hero-image-note .description-scroll p {
    margin: 0;
}

.hero-image-container:hover .hero-image-note {
    transform: translateY(0);
}

.hero-image-note .note-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-image-note h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
}

.hero-image-note p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
    color: #ffffff;
}

/* Desktop view - description-scroll behaves normally (no scroll) */
.hero-image-note .description-scroll {
    overflow: visible;
    max-height: none;
    -webkit-overflow-scrolling: auto;
    padding: 0;
}

.hero-image-note .description-scroll p {
    margin: 0;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 165, 116, 0.2);
    border: 1px solid rgba(212, 165, 116, 0.4);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.1s both;
    backdrop-filter: blur(10px);
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.2s both;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 14px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #4a8fd8;
    border-color: #4a8fd8;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(91, 163, 245, 0.6),
                0 0 30px rgba(91, 163, 245, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* Section Styles */
main {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] main {
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] section {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--bg-main);
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Practice Areas / Services Section */
.practice-areas {
    background: var(--bg-light);
    transition: background-color 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Experience Section */
.experience {
    background: var(--bg-main);
    transition: background-color 0.3s ease;
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.timeline-year {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content ul li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.timeline-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
    transition: background-color 0.3s ease;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    flex-grow: 1;
    margin: 0 0 1.5rem 0;
    padding: 0;
    border: none;
}

.testimonial-card blockquote p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    font-size: 1rem;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.testimonial-author cite {
    font-style: normal;
    display: block;
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--bg-main);
    transition: background-color 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-style: normal;
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-advocate-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem !important;
    font-weight: 500;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section address {
    font-style: normal;
    line-height: 1.8;
}

.footer-section address a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section address a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-disclaimer {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hero {
        padding: 100px 20px;
        padding-top: 140px; /* Account for fixed navbar */
        min-height: 550px;
        margin-top: -70px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 0;
    }

    .hero-image-container {
        max-width: 400px;
        width: 100%;
        position: relative;
        aspect-ratio: auto; /* Remove fixed aspect ratio for mobile */
        min-height: 500px;
        border-radius: 20px; /* Ensure all corners are rounded */
        overflow: hidden; /* Important for rounded corners */
    }

    .hero-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain; /* Show full image without cropping */
        object-position: center center;
        min-height: 500px;
        border-radius: 20px 20px 0 0; /* Top corners rounded, bottom will be covered by note */
    }

    .hero-image-note {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 35%; /* More height for scrollable content */
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.90) 100%);
        color: #333;
        padding: 0;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(10px);
        border-top: 2px solid rgba(26, 77, 122, 0.2);
    }

    .hero-image-note .note-icon {
        padding: 1rem 1.5rem 0.5rem;
        flex-shrink: 0;
    }

    .hero-image-note h3 {
        color: var(--primary-color);
        padding: 0 1.5rem 0.75rem;
        margin: 0;
        flex-shrink: 0;
        font-size: 1.3rem;
        border-bottom: 1px solid rgba(26, 77, 122, 0.1);
    }

    .hero-image-note .description-scroll {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1.5rem 1.5rem;
        max-height: 150px;
    }

    .hero-image-note .description-scroll p {
        color: #555;
        margin: 0;
        line-height: 1.6;
        font-size: 0.9rem;
    }

    /* Dark mode override for tablet */
    [data-theme="dark"] .hero-image-note {
        background: linear-gradient(to top, rgba(26, 31, 38, 0.98) 0%, rgba(26, 31, 38, 0.95) 50%, rgba(26, 31, 38, 0.90) 100%) !important;
        color: #ffffff !important;
        border-top: 2px solid rgba(244, 201, 122, 0.3);
    }

    [data-theme="dark"] .hero-image-note h3 {
        color: #f4c97a !important;
        text-shadow: 0 0 10px rgba(244, 201, 122, 0.3);
        border-bottom: 1px solid rgba(244, 201, 122, 0.2);
    }

    [data-theme="dark"] .hero-image-note .description-scroll p {
        color: #e0e0e0 !important;
    }

    /* Scrollbar styling for tablet */
    .hero-image-note .description-scroll::-webkit-scrollbar {
        width: 4px;
    }

    .hero-image-note .description-scroll::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .hero-image-note .description-scroll::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .hero::after {
        width: 300px;
        height: 300px;
        opacity: 0.1;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-large,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 14px 30px;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat .stat-number {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .experience-timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px;
        padding-top: 120px; /* Account for fixed navbar */
        min-height: 500px;
        margin-top: -70px;
    }

    .hero-wrapper {
        gap: 1.5rem;
    }

    .hero-image-container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        position: relative;
        aspect-ratio: auto; /* Remove fixed aspect ratio */
        min-height: 450px;
        border-radius: 20px; /* Ensure all corners are rounded */
        overflow: hidden; /* Important for rounded corners */
    }

    .hero-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain; /* Show full image without cropping */
        object-position: center center;
        min-height: 450px;
        border-radius: 20px 20px 0 0; /* Top corners rounded, bottom will be covered by note */
    }

    .hero-image-note {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 40%; /* More height for smaller screens */
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.90) 100%);
        color: #333;
        padding: 0;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(10px);
        border-top: 2px solid rgba(26, 77, 122, 0.2);
    }

    .hero-image-note .note-icon {
        padding: 0.8rem 1.2rem 0.4rem;
        flex-shrink: 0;
        font-size: 1.8rem;
    }

    .hero-image-note h3 {
        font-size: 1.1rem;
        color: var(--primary-color);
        padding: 0 1.2rem 0.6rem;
        margin: 0;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(26, 77, 122, 0.1);
    }

    .hero-image-note .description-scroll {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.8rem 1.2rem 1.2rem;
        max-height: 120px;
    }

    .hero-image-note .description-scroll p {
        font-size: 0.8rem;
        color: #555;
        line-height: 1.5;
        margin: 0;
    }

    /* Dark mode override for mobile */
    [data-theme="dark"] .hero-image-note {
        background: linear-gradient(to top, rgba(26, 31, 38, 0.98) 0%, rgba(26, 31, 38, 0.95) 50%, rgba(26, 31, 38, 0.90) 100%) !important;
        color: #ffffff !important;
        border-top: 2px solid rgba(244, 201, 122, 0.3);
    }

    [data-theme="dark"] .hero-image-note h3 {
        color: #f4c97a !important;
        text-shadow: 0 0 10px rgba(244, 201, 122, 0.3);
        border-bottom: 1px solid rgba(244, 201, 122, 0.2);
    }

    [data-theme="dark"] .hero-image-note .description-scroll p {
        color: #e0e0e0 !important;
    }

    /* Scrollbar styling for mobile */
    .hero-image-note .description-scroll::-webkit-scrollbar {
        width: 3px;
    }

    .hero-image-note .description-scroll::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .hero-image-note .description-scroll::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .hero::after {
        width: 250px;
        height: 250px;
        opacity: 0.08;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat .stat-number {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Booking Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.booking-form label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 122, 0.1);
}

.booking-form select {
    cursor: pointer;
}

.booking-summary {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.booking-summary p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.booking-summary strong {
    color: var(--primary-color);
}

#consultationFee {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Dark Mode Modal */
[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    border-color: rgba(244, 201, 122, 0.2);
}

[data-theme="dark"] .modal-close {
    color: var(--white);
}

[data-theme="dark"] .modal-close:hover {
    background: rgba(244, 201, 122, 0.1);
    color: var(--accent-color);
}

[data-theme="dark"] .booking-form input,
[data-theme="dark"] .booking-form select,
[data-theme="dark"] .booking-form textarea {
    background: rgba(15, 20, 25, 0.5);
    border-color: rgba(244, 201, 122, 0.2);
    color: var(--white);
}

[data-theme="dark"] .booking-form input:focus,
[data-theme="dark"] .booking-form select:focus,
[data-theme="dark"] .booking-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(244, 201, 122, 0.2);
}

[data-theme="dark"] .booking-summary {
    background: rgba(15, 20, 25, 0.5);
    border-color: rgba(244, 201, 122, 0.3);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.25rem 1rem;
        width: 95%;
        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .booking-form {
        gap: 0.875rem;
    }
}
