:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --secondary-alpha: rgb(15, 23, 42, 0.3);
    --accent: #06b6d4;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --text-inverse: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;


    --img-team-strong: url('../img/Nürnberg_dental_labor_Art-Dent_Team.jpg');
    --img-team-happy: url('../img/Nürnberg_dental_labor_Art-Dent_Team_smile.jpg');
    --img-team-work: url('../img/Nürnberg_dental_labor_Art-Dent_Team_Aktion.jpg');
    --img-page-stats-before: url('../img/Nürnberg_dental_labor_Art-Dent_Team_Aktion.jpg');

    --img-logo-brand-drk: url('../img/logo/art-dent_drk.png');
    --img-logo-brand-wht: url('../img/logo/art-dent_wht.png');
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

.hidden {
    display: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background: var(--surface);
    color: var(--secondary);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Top Bar for Dentists */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    z-index: 1001;
    transition: transform var(--transition);
}

#top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.top-bar-links a:hover {
    color: var(--primary-light);
}

.top-bar-links a i {
    margin-right: 0.35rem;
    color: var(--accent);
}

.top-bar-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Header */
#main-header {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
    padding: 1rem 0;
}

#main-header.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.625rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    transition: color var(--transition);
}

#main-header.scrolled .brand {
    color: var(--secondary);
}

.brand-icon {
    width: 44px;
    height: 44px;
    transition: all var(--transition);
    color: var(--primary);
}

#main-header.scrolled .brand-icon {
    width: 32px;
    height: 32px;
}

.brand-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: -4px;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

#main-header.scrolled .nav-link {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

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

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

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

.nav-cta .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
}

#menu-toggle {
    font-size: 2rem;
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: .7rem;
    color: white;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

#main-header.scrolled #menu-toggle {
    color: var(--secondary);
}

.tooth-toggle {
    width: 32px;
    height: 32px;
    animation: toothIdle 3s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#menu-toggle.active .tooth-toggle {
    animation: none;
    /* transform: rotate(90deg) scale(1.15); */
    color: var(--secondary);
}

@keyframes toothIdle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    33% {
        transform: scale(1.06) rotate(-4deg);
    }

    66% {
        transform: scale(1.06) rotate(4deg);
    }
}

@media (max-width: 1024px) {
    #menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2.5rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    }

    #nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        color: var(--secondary) !important;
        font-weight: 600;
    }

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

    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================
        HERO SECTION WITH SLIDESHOW
        ========================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, rgb(12, 74, 110, 0.3) 100%);
    overflow: hidden;
    padding-top: 120px;
}

/* Slideshow Container */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlideFade 18s infinite;
    mix-blend-mode: luminosity;
}

/* Slide 1: Dental tools/lab */
.hero-slide:nth-child(1) {
    background-image: var(--img-team-strong);
    animation-delay: 0s;
}

/* Slide 2: Microscope/dental tech */
.hero-slide:nth-child(2) {
    background-image: var(--img-team-happy);
    animation-delay: 6s;
}

/* Slide 3: Close-up dental work */
.hero-slide:nth-child(3) {
    background-image: var(--img-team-work);
    animation-delay: 12s;
}

/* Fade + Slide (Ken Burns) Animation */
@keyframes heroSlideFade {
    0% {
        opacity: 0;
        transform: scale(1.08) translateX(2%);
    }

    8% {
        opacity: 0.80;
        transform: scale(1.04) translateX(1%);
    }

    33% {
        opacity: 0.40;
        transform: scale(1.04) translateX(-1%);
    }

    41% {
        opacity: 0;
        transform: scale(1.08) translateX(-2%);
    }

    100% {
        opacity: 0;
        transform: scale(1.08) translateX(2%);
    }
}

/* Darkening overlay for text readability */
.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1;
}

/* Radial glow accent */
.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 60%);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: var(--text-inverse);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.hero-badge i {
    color: var(--accent);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 3s;
}

.hero-float-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.hero-float-card div strong {
    display: block;
    color: var(--secondary);
    font-size: 0.875rem;
}

.hero-float-card div span {
    font-size: 0.75rem;
    color: var(--text-light);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-float-card {
        display: none;
    }

    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    #hero {
        padding-top: 100px;
    }
}

/* Dentist Benefits Section */
#dentist-benefits {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg), white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.benefit-card .benefit-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About */
#about {
    padding: 6rem 0;
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 4px solid var(--bg);
    box-shadow: var(--shadow-lg);
}

.about-img-secondary img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content>p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    flex-shrink: 0;
}

.about-feature h4 {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-secondary {
        display: none;
    }
}

/* Services */
#services {
    padding: 6rem 0;
    background: linear-gradient(to bottom, white, var(--bg));
}

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

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

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

/* Technology */
#technology {
    padding: 6rem 0;
    background: var(--surface);
}

.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.tech-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-row:nth-child(even) {
    direction: rtl;
}

.tech-row:nth-child(even)>* {
    direction: ltr;
}

.tech-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.tech-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.tech-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent 60%);
}

.tech-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.tech-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
}

.tech-list i {
    color: var(--accent);
    font-size: 0.875rem;
}

@media (max-width: 768px) {

    .tech-row,
    .tech-row:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .tech-row:nth-child(even)>* {
        direction: ltr;
    }
}

/* Process */
#process {
    padding: 6rem 0;
    background: var(--bg);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.step:hover .step-number {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

.step h4 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-light);
    max-width: 180px;
}

@media (max-width: 640px) {
    #main-header {
        top: 0.4rem;
    }

    #main-header.scrolled {
        top: 1.5rem;
        padding: 0.4rem;
        background-color: rgba(208, 208, 208, 0.9);
    }

    .process-steps {
        flex-direction: column;
        gap: 2.5rem;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
        flex-shrink: 0;
        margin-bottom: 0;
    }
}

/* Stats */
#stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    position: relative;
    overflow: hidden;
}

#stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--img-page-stats-before);
    background-size: cover;
    opacity: 0.08;
    mix-blend-mode: luminosity;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Testimonials */
#testimonials {
    padding: 5rem 0;
    background: var(--surface);
}

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

.testimonial-card {

    min-height: 23rem;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.15;
    font-family: Georgia, serif;
}

.testimonial-text {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    min-height: 5rem;
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.testimonial-author div strong {
    display: block;
    color: var(--secondary);
    font-weight: 600;
}

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

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Contact */
#contact {
    padding: 6rem 0;
    background: linear-gradient(to bottom, white, var(--bg));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-wrapper {
    height: 440px;
    background: var(--surface);
    padding: .5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.form-success {
    display: none;
    padding: 1rem;
    background: #dcfce7;
    color: #166534;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success.visible {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-card i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-card h4 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* Gallery Section */
#gallery {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg), white);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.animating {
    animation: galleryFadeIn 0.5s ease forwards;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: white;
    transform: translateY(10px);
    transition: transform var(--transition);
    width: 100%;
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    background: transparent;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.gallery-overlay-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-overlay-content p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.gallery-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
    transform: scale(0.8);
}

.gallery-item:hover .gallery-zoom {
    opacity: .01;
    transform: scale(1);
}

.gallery-zoom:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1) !important;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1.5rem;
    max-width: 600px;
}

.lightbox-caption span {
    display: block;
    font-size: 0.875rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.lightbox-caption h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lightbox-caption p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.25rem;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Partners & Suppliers Section */
#partners {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg), white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.partner-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-logo {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    opacity: 0.7;
    background-color: #FFF;
    filter: grayscale(100%);
    transition: all var(--transition);
}

.partner-logo svg {
    width: 100%;
    max-width: 140px;
    height: auto;
}

.partner-logo img {
    width: 100%;
    max-width: 140px;
    height: auto;
}

.partner-card:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.partner-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.partner-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .partner-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr 1fr;
    }

    .partner-logo {
        height: 48px;
    }

    .partner-info h4 {
        font-size: 0.95rem;
    }

    .partner-info p {
        font-size: 0.8rem;
    }
}

/* Certificates & Education Section */
#certificates {
    padding: 6rem 0;
    background: linear-gradient(to bottom, white, var(--bg));
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.certificate-card {
    background: var(--surface);
    border-radius: var(--radius);
    max-height: 180px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.certificate-image {
    position: relative;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.08);
}

.certificate-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
    transition: transform var(--transition);
}

.certificate-card:hover .certificate-badge {
    transform: scale(1.1) rotate(-5deg);
}

.certificate-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.certificate-tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.certificate-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.certificate-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.certificate-meta {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-light);
}

.certificate-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.certificate-meta i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Education Policy Banner */
.education-policy {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: var(--radius);
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.education-policy::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.education-policy-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.education-policy-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.education-policy-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.education-policy-content p {
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.education-policy-content strong {
    color: var(--accent);
    font-weight: 600;
}

.education-stats {
    display: flex;
    gap: 2.5rem;
}

.edu-stat {
    display: flex;
    flex-direction: column;
}

.edu-stat strong {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.edu-stat span {
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .education-policy {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .education-policy-icon {
        margin: 0 auto;
    }

    .education-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .edu-stat strong {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .certificate-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer */
footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .brand {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    #top-bar {
        visibility: hidden;
    }

    .hero-slide {
        background-position: 20% center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Social Bar */
#social-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 998;
    transform: translateY(100%);
    transition: transform var(--transition);
    border-top: 1px solid var(--border);
}

#social-bar.visible {
    transform: translateY(0);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 600;
    transition: all var(--transition);
}

.social-link i {
    font-size: 1.25rem;
    transition: transform var(--transition);
}

.social-link:hover {
    color: var(--primary);
}

.social-link:hover i {
    transform: translateY(-3px);
}

@media (min-width: 769px) {
    #social-bar {
        left: auto;
        right: 1.5rem;
        bottom: 30%;
        width: auto;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 0.875rem;
        border-radius: 50px;
        transform: translateY(300);
        opacity: 0;
        pointer-events: none;
    }

    #social-bar.visible {
        opacity: 1;
        pointer-events: all;
    }

    .social-link span {
        display: none;
    }

    .social-link i {
        font-size: 1.1rem;
    }
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0);
}

[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-slide {
        animation: none !important;
        opacity: 0.12 !important;
        transform: none !important;
    }

    .hero-slide:nth-child(1) {
        opacity: 0.12 !important;
    }

    .hero-slide:nth-child(2),
    .hero-slide:nth-child(3) {
        opacity: 0 !important;
    }
}