﻿/* general.css - Complete File */
@font-face {
    font-family: 'Parastoo';
    src: url('/config/Fonts/Parastoo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sahel';
    src: url('/config/Fonts/Sahel.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Samim';
    src: url('/config/Fonts/Samim.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Shabnam';
    src: url('/config/Fonts/Shabnam.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tanha';
    src: url('/config/Fonts/Tanha.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('/config/Fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Yekan';
    src: url('/config/Fonts/Yekan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --teal-950: #042f2e;
    --teal-900: #134e4a;
    --teal-800: #115e59;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --teal-200: #99f6e4;
    --teal-100: #ccfbf1;
    --teal-50: #f0fdf9;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --green-700: #047857;
    --green-600: #059669;
    --teal-600-rgb: 13, 148, 136;
    --teal-500-rgb: 20, 184, 166;
    --cyan-600-rgb: 8, 145, 178;
    --green-600-rgb: 5, 150, 105;
    --dark: #0a1628;
    --dark-2: #1a2840;
    --err: #dc2626;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-colored: 0 8px 30px rgb(var(--teal-600-rgb) / 0.25);
    --font-heading: 'Vazir', sans-serif;
    --font-body: 'Vazir', sans-serif;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --max-width: 1260px;
}

[data-font="parastoo"] {
    --font-heading: 'Parastoo', sans-serif;
    --font-body: 'Parastoo', sans-serif;
}

[data-font="sahel"] {
    --font-heading: 'Sahel', sans-serif;
    --font-body: 'Sahel', sans-serif;
}

[data-font="samim"] {
    --font-heading: 'Samim', sans-serif;
    --font-body: 'Samim', sans-serif;
}

[data-font="shabnam"] {
    --font-heading: 'Shabnam', sans-serif;
    --font-body: 'Shabnam', sans-serif;
}

[data-font="tanha"] {
    --font-heading: 'Tanha', sans-serif;
    --font-body: 'Tanha', sans-serif;
}

[data-font="vazir"] {
    --font-heading: 'Vazir', sans-serif;
    --font-body: 'Vazir', sans-serif;
}

[data-font="yekan"] {
    --font-heading: 'Yekan', sans-serif;
    --font-body: 'Yekan', sans-serif;
}

[data-theme="teal"] {
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-600-rgb: 13,148,136;
}

[data-theme="ocean"] {
    --teal-600: #0284c7;
    --teal-500: #0ea5e9;
    --teal-400: #38bdf8;
    --teal-600-rgb: 2,132,199;
}

[data-theme="violet"] {
    --teal-600: #7c3aed;
    --teal-500: #8b5cf6;
    --teal-400: #a78bfa;
    --teal-600-rgb: 124,58,237;
}

[data-theme="amber"] {
    --teal-600: #d97706;
    --teal-500: #f59e0b;
    --teal-400: #fbbf24;
    --teal-600-rgb: 217,119,6;
}

[data-theme="rose"] {
    --teal-600: #e11d48;
    --teal-500: #f43f5e;
    --teal-400: #fb7185;
    --teal-600-rgb: 225,29,72;
}

[data-theme="emerald"] {
    --teal-600: #059669;
    --teal-500: #10b981;
    --teal-400: #34d399;
    --teal-600-rgb: 5,150,105;
}

*, *::before, *::after {
    font-family: var(--font-body);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

.ui-autocomplete {
    z-index: 9999 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 126px;
    width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgb(var(--teal-600-rgb) / 0.4);
    }

    .btn-primary.btn-lg {
        padding: 1rem 2.25rem;
        font-size: 1rem;
    }

    .btn-primary.btn-full {
        width: 100%;
        justify-content: center;
    }

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--teal-600);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--teal-600);
    cursor: pointer;
    transition: var(--transition);
}

    .btn-outline:hover {
        background: var(--teal-600);
        color: white;
        transform: translateY(-2px);
    }

.section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-tag {
    display: inline-block;
    background: var(--teal-100);
    color: var(--teal-700);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

    .section-title .accent {
        color: var(--teal-600);
    }

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 540px;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    color: var(--text);
    display: block;
    margin-bottom: 1rem;
    background: white;
}

    .form-input:focus, .form-select:focus {
        border-color: var(--teal-500);
    }

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.topbar {
    background: var(--teal-900);
    color: rgba(255,255,255,0.85);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    padding: 0.6rem 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    gap: 1.5rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-link {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

    .topbar-link:hover {
        color: var(--teal-400);
    }

.btn-register {
    background: var(--teal-600);
    color: white !important;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

    .social-icons a {
        color: rgba(255,255,255,0.7);
        transition: color 0.2s;
        display: flex;
        align-items: center;
    }

        .social-icons a:hover {
            color: var(--teal-400);
        }

.theme-switcher {
    position: relative;
    display: inline-flex;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

    .theme-toggle-btn:hover {
        color: var(--teal-400);
        background: rgba(255,255,255,0.08);
    }

    .theme-toggle-btn svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

.theme-panel {
    min-width: 220px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 300;
    border: 1px solid var(--border);
}

    .theme-panel.open {
        display: flex;
    }

.theme-panel-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-panel-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.theme-panel-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.font-swatch {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

    .font-swatch:hover {
        border-color: var(--teal-500);
    }

    .font-swatch.active {
        background: var(--teal-600);
        border-color: var(--teal-600);
        color: white;
    }

.theme-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    padding: 0;
}

    .theme-swatch:hover {
        transform: scale(1.12);
    }

    .theme-swatch.active {
        border-color: var(--dark);
    }

    .theme-swatch[data-swatch="teal"] {
        background: linear-gradient(135deg, #0d9488, #06b6d4);
    }

    .theme-swatch[data-swatch="ocean"] {
        background: linear-gradient(135deg, #0284c7, #06b6d4);
    }

    .theme-swatch[data-swatch="violet"] {
        background: linear-gradient(135deg, #7c3aed, #a855f7);
    }

    .theme-swatch[data-swatch="amber"] {
        background: linear-gradient(135deg, #d97706, #f97316);
    }

    .theme-swatch[data-swatch="rose"] {
        background: linear-gradient(135deg, #e11d48, #ec4899);
    }

    .theme-swatch[data-swatch="emerald"] {
        background: linear-gradient(135deg, #059669, #22c55e);
    }

[dir="rtl"] .theme-panel {
    right: auto;
    left: 0;
}

.icon-inline {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}

.stat-icon svg, .hcard-icon svg, .service-icon, .ci-icon svg {
    color: var(--teal-600);
}

.service-card-featured .service-icon {
    color: white;
}

.ci-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

    .ci-icon svg {
        width: 20px;
        height: 20px;
        color: var(--teal-400);
    }

.gradient-a {
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
}

.gradient-b {
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
}

.gradient-c {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
}

.gradient-d {
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-700));
}

.gradient-e {
    background: linear-gradient(135deg, var(--green-600), var(--teal-600));
}

.gradient-f {
    background: linear-gradient(135deg, var(--teal-700), var(--cyan-600));
}

.avatar-a {
    background: var(--teal-600);
}

.avatar-b {
    background: var(--cyan-600);
}

.avatar-c {
    background: var(--green-600);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

    .header::before {
        content: '';
        position: absolute;
        inset: 0;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: -1;
    }

    .header.scrolled {
        box-shadow: var(--shadow);
    }

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    flex-wrap: nowrap;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--teal-600);
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(2px);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

.nav-mobile-header {
    display: none;
}

.nav-link-icon {
    display: none;
    color: var(--teal-600);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        width: min(320px, 82vw);
        background: white;
        z-index: 200;
        padding: 0 1.25rem 2rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        gap: 0.25rem;
    }

        .nav.open {
            transform: translateX(0);
        }

    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 0;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-mobile-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-family: var(--font-heading);
        font-weight: 800;
        color: var(--teal-600);
    }

        .nav-mobile-logo img {
            width: 32px;
            max-width: 32px;
        }

    .nav-close {
        background: var(--surface);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text);
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

        .nav-close:hover {
            background: var(--teal-100);
            color: var(--teal-700);
        }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1rem;
        padding: 0.85rem 0.75rem;
        border-radius: var(--radius);
        opacity: 0;
        transform: translateX(20px);
    }

    .nav.open .nav-link {
        animation: navLinkIn 0.4s ease forwards;
    }

    .nav-link.active {
        background: var(--teal-50);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active {
        display: none;
    }
}

@keyframes navLinkIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav.open ~ .nav-link:nth-child(2) {
    animation-delay: 0.05s;
}

.nav {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

    .nav-link:hover, .nav-link.active {
        color: var(--teal-600);
        background: var(--teal-50);
    }

.nav-cta {
    margin-left: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    position: relative;
    z-index: 250;
}

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: var(--transition);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

.nav.open {
    z-index: 200;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer {
    background: var(--dark);
    padding: 5rem 0 0;
    color: rgba(255,255,255,0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.fsocial {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

    .fsocial:hover {
        background: var(--teal-600);
        transform: translateY(-3px);
    }

    .fsocial img {
        width: 22px;
    }

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

    .footer-col ul a {
        font-family: var(--font-heading);
        font-size: 0.875rem;
        color: rgba(255,255,255,0.6);
        transition: color 0.2s;
    }

        .footer-col ul a:hover {
            color: var(--teal-400);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

    .footer-bottom-links a {
        color: rgba(255,255,255,0.5);
        transition: color 0.2s;
    }

        .footer-bottom-links a:hover {
            color: var(--teal-400);
        }

[data-bg] {
    background-color: var(--surface);
    background-position: center !important;
    background-size: cover !important;
    transition: opacity 0.4s ease;
}

    [data-bg]:not(.bg-loaded) {
        opacity: 0;
    }

    [data-bg].bg-loaded {
        opacity: 1;
    }

@keyframes skeletonPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.skeleton {
    background: var(--border);
    border-radius: var(--radius);
    animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.skeleton-img {
    height: 180px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 0.6rem;
    border-radius: 6px;
}

    .skeleton-line.short {
        width: 60%;
    }

    .skeleton-line.title {
        height: 16px;
        width: 80%;
        margin-bottom: 0.85rem;
    }

.skeleton-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.skeleton-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.skeleton-gallery-item {
    height: 252px;
    border-radius: var(--radius);
}

.stat-card, .service-card, .news-card, .gallery-item, .testi-card, .student-card, .event-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
}

    .stat-card.is-visible, .service-card.is-visible, .news-card.is-visible,
    .gallery-item.is-visible, .testi-card.is-visible, .student-card.is-visible, .event-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@supports (animation-timeline: scroll()) {
    .header {
        animation: headerShadow linear;
        animation-timeline: scroll(root);
        animation-range: 0 100px;
    }
}

@keyframes headerShadow {
    from {
        box-shadow: none;
    }

    to {
        box-shadow: var(--shadow);
    }
}

@media (max-width: 768px) {
    .skeleton-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 200;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }

        .nav.open .nav-link {
            font-size: 0.95rem;
        }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .topbar-left {
        display: none;
        flex-direction: column;
        gap: 0.4rem;
    }

    .topbar-right {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
}

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .topbar-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .topbar-left {
    flex-direction: row-reverse;
}

[dir="rtl"] .topbar-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-cta {
    margin-right: 1rem;
    margin-left: 0;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .footer-col ul {
    text-align: right;
}

[dir="rtl"] .footer-bottom-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-bottom-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-social {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-input {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .nav.open .nav-link {
    text-align: center;
}

[dir="rtl"] .topbar-left span {
    direction: ltr;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-colored);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 999;
}

    .back-to-top.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .back-to-top:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 40px rgb(var(--teal-600-rgb) / 0.4);
    }

.glass-card {
    /*background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.8);*/
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .glass-card:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    }

.gallery-masonry {
    columns: 3 280px;
    column-gap: 1.5rem;
}

    .gallery-masonry .gallery-item {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }

.section-light {
    background: var(--white) !important;
}

.section-dark {
    background: var(--surface) !important;
}

.section-gradient {
    background: linear-gradient(160deg, var(--teal-900) 0%, var(--dark-2) 100%);
}

.section-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

    .section-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
    }

.faq-section {
    padding: 6rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    gap: 1rem;
}

    .faq-question:hover {
        background: var(--teal-50);
    }

    .faq-question[aria-expanded="true"] {
        background: var(--teal-50);
    }

    .faq-question svg {
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .faq-question[aria-expanded="true"] svg {
        transform: rotate(-90deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    animation: fadeInUp 0.7s ease 0.5s both;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
}

    .trust-badge svg {
        color: var(--teal-600);
    }

.floating-card {
    animation: floatCard 3s ease-in-out infinite;
}

.floating-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 4s ease-in-out infinite;
}

.particle-1 {
    width: 8px;
    height: 8px;
    background: var(--teal-400);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 12px;
    height: 12px;
    background: var(--cyan-500);
    bottom: 25%;
    left: 15%;
    animation-delay: 1.5s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    background: var(--green-600);
    top: 60%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.7s ease 1s both;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--teal-600);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(16px);
        opacity: 0.3;
    }
}

.hero-premium {
    position: relative;
    background: linear-gradient(160deg, var(--teal-50) 0%, #e0f7ff 40%, var(--teal-50) 100%);
    padding: 6rem 0 4rem;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--teal-400), transparent 70%);
    top: -200px;
    right: -200px;
    animation: blobFloat 12s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-500), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: blobFloat 14s ease-in-out infinite reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--green-600), transparent 70%);
    top: 40%;
    left: 30%;
    animation: blobFloat 16s ease-in-out infinite;
}

.blob-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--teal-300), transparent 70%);
    bottom: 20%;
    right: 30%;
    animation: blobFloat 10s ease-in-out infinite 2s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-left: 3px solid var(--teal-600);
    white-space: nowrap;
    animation: typing 3s steps(30) 0.5s 1 normal both, blink 0.75s step-end infinite;
    max-width: 0;
}

@keyframes typing {
    from {
        max-width: 0;
    }

    to {
        max-width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        border-color: var(--teal-600);
    }

    50% {
        border-color: transparent;
    }
}

.hero-text-line {
    display: block;
}

.hero-desc-icon {
    display: inline-block;
    animation: spinIcon 8s linear infinite;
}

@keyframes spinIcon {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
}

    .search-suggestions.active {
        display: block;
    }

    .search-suggestions .suggestion-item {
        padding: 0.75rem 1rem;
        cursor: pointer;
        font-family: var(--font-heading);
        font-size: 0.9rem;
        transition: var(--transition);
    }

        .search-suggestions .suggestion-item:hover {
            background: var(--teal-50);
            color: var(--teal-600);
        }

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .typing-text {
        white-space: normal;
        border-left: none;
        animation: none;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        columns: 2 160px;
    }

    .blob-1, .blob-2, .blob-3 {
        display: none;
    }
}
