:root {
    /* Color Palette */
    --primary: #4a9eff; /* Electric Blue */
    --primary-dark: #2d7ed9;
    --accent: #ff8c00; /* Vibrant Orange */
    --text-main: #e8e8e8;
    --text-dark: #1a1a1a;
    --text-muted: #a0a0a0;
    --bg-white: #1e1e1e;
    --bg-light: #141414;
    --bg-dark: #0a0a0a;
    --border-color: #2a2a2a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --section-padding: 80px 20px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero entrance animations */
.hero-content img {
    animation: scaleIn 0.8s ease-out 0.2s both;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-btns {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Staggered animations for grid items */
.benefit-item,
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.benefit-item.animate-in,
.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Certificate stagger - initial hidden state set here,
   hover transition handled in .certificate-placeholder block below */

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

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

/* Header */
header {
    height: var(--header-height);
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* White text when transparent (over dark hero) */
header:not(.scrolled) .logo,
header:not(.scrolled) .logo span,
header:not(.scrolled) .nav-links li a:not(.btn) {
    color: #ffffff;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    z-index: 1000;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Mobile Nav definitions moved to media query below */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    text-align: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    will-change: opacity;
    transform: scale(1);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45));
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: left;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Features Section */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-row.reverse .feature-image {
    order: 2;
}

.feature-row.reverse .feature-text {
    order: 1;
}


.feature-image {
    width: 100%;
    height: 400px;
    background-color: var(--bg-light);
    border-radius: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature-row.reverse .feature-image {
    transform: translateX(18px);
}

.feature-text {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.feature-row.reverse .feature-text {
    transform: translateX(-18px);
}

.feature-image.feature-visible,
.feature-text.feature-visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows the full image without cropping */
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Appointment Page */
.appointment-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-color: var(--bg-light); 
    padding-top: var(--header-height);
}

.appointment-container {
    display: flex;
    width: 100%;
    background: var(--bg-light);
    overflow: hidden;
    position: relative;
}

.appointment-form-side {
    flex: 1;
    padding: 100px 5% 100px 10%;
    background-color: var(--bg-light);
}

.appointment-form-side h1, .appointment-form-side h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.form-group label {
    color: var(--text-main);
}

.appointment-form-side p {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #1e1e1e;
    color: var(--text-main);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.appointment-image-side {
    flex: 1;
    position: relative;
    background-color: var(--bg-light); /* Matched to global section background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 10% 100px 5%;
}

.appointment-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
    z-index: 1;
}

.appointment-image-wrapper {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

.appointment-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.75);
}

@media (max-width: 1024px) {
    .appointment-container {
        flex-direction: column;
    }
    .appointment-image-side::before {
        clip-path: none;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Certificates */
.certificate-placeholder {
    transition: all 0.5s ease-out;
    background-color: var(--bg-light);
    opacity: 0;
    transform: translateY(20px);
}

.certificate-placeholder.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.certificate-placeholder:hover {
    border-color: var(--primary) !important;
    transform: scale(1.02);
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Why Choose Us */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background-color: var(--accent);
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-info h4 {
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-info p {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444444;
    text-align: center;
    color: #aaaaaa;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    /* Nav */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        align-items: center;
        gap: 30px;
        padding-top: var(--header-height);
        /* Animation stuff */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header.scrolled .nav-links {
        background: var(--bg-light);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: inline-block;
        padding: 14px 35px;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-main) !important;
        background-color: #1e1e1e;
        border-radius: 50px;
        transition: all 0.3s ease;
        min-width: 220px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .nav-links li a:hover {
        background-color: var(--primary);
        color: #ffffff !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
    }

    .nav-links li a.btn {
        background-color: var(--primary);
        border: none;
        border-radius: 50px;
        padding: 14px 35px;
        min-width: 220px;
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
        margin-top: 10px;
    }
    
    .nav-links li a.btn:hover {
        background-color: var(--primary-dark);
        color: #ffffff !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 61, 128, 0.5);
    }

    .mobile-menu-btn {
        display: block;
        color: #ffffff;
        position: relative;
        z-index: 1000;
    }

    header.scrolled .mobile-menu-btn {
        color: var(--primary);
    }

    /* Global section padding */
    section {
        padding: 50px 16px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 200px;
        text-align: center;
    }

    /* Services: 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 20px 14px;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    /* Benefits: 2 columns */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Feature rows: stack, centered, no slide animation */
    .feature-row,
    .feature-row.reverse {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .feature-row.reverse .feature-image,
    .feature-row.reverse .feature-text {
        order: unset;
    }

    .feature-image {
        height: 220px;
        margin-bottom: 20px;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .feature-text {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .feature-text h3 {
        font-size: 1.4rem;
    }

    .feature-text p {
        font-size: 0.95rem;
    }

    /* Certificates */
    .certificate-placeholder {
        width: 100% !important;
        max-width: 280px;
        height: 360px !important;
    }

    /* Contact form */
    .appointment-container {
        flex-direction: column;
    }

    .appointment-image-side {
        display: none;
    }

    .appointment-form-side {
        padding: 50px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    /* Footer */
    footer {
        padding: 40px 16px;
        text-align: center;
    }
}
