/* ========================================
   Aria Al Hadid - Modern & Beautiful Design
   ======================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    /* رنگ‌های اصلی - از تنظیمات سایت مقدار می‌گیرند (در فایل CSS داینامیک override می‌شوند) */
    --primary-color: #1e40af;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --success-color: #43e97b;
    --danger-color: #f5576c;
    --warning-color: #fee140;
    --info-color: #4facfe;

    /* رنگ‌های پس‌زمینه و متن */
    --background-color: #f8fafc;
    --background-dark-color: #0f172a;
    --surface-color: color-mix(in srgb, var(--background-color) 92%, #ffffff 8%);
    --surface-strong: color-mix(in srgb, var(--background-dark-color) 10%, var(--background-color) 90%);
    --text-color: #1e293b;
    --text-light-color: #94a3b8;
    --text-light: #e2e8f0;
    --text-contrast: #ffffff;
    --white: #ffffff;
    --light-bg: color-mix(in srgb, var(--background-color) 95%, #f8fafc 5%);
    --dark-bg: var(--background-dark-color);
    --dark-secondary: color-mix(in srgb, var(--background-dark-color) 80%, #1f2937 20%);
    --dark-tertiary: color-mix(in srgb, var(--background-dark-color) 60%, #334155 40%);
    --text-muted: var(--text-light-color);

    /* سایه و گرادیان‌ها */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        color-mix(in srgb, var(--primary-color) 70%, var(--secondary-color) 30%) 45%,
        var(--secondary-color) 100%
    );
    --gradient-secondary: linear-gradient(
        135deg,
        color-mix(in srgb, var(--secondary-color) 75%, #ffffff 25%) 0%,
        var(--secondary-color) 100%
    );
    --gradient-dark: linear-gradient(
        135deg,
        var(--background-dark-color) 0%,
        color-mix(in srgb, var(--background-dark-color) 70%, #111827 30%) 100%
    );
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', 'Segoe UI', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Emoji Support for Flag Icons */
.flag-icon,
.lang-flag-item {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols", "EmojiOne Mozilla", "Twemoji Mozilla", "Segoe UI", system-ui, sans-serif !important;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== MODERN HEADER & NAVIGATION ===== */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    overflow: visible;
    background: color-mix(in srgb, var(--background-color) 85%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--secondary-color), 
        transparent
    );
    opacity: 0.3;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Animated Background Elements */
.header-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    bottom: -80px;
    left: -80px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 50%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: var(--info-color);
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.gradient-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: orbMove 25s infinite ease-in-out;
}

.orb-1 {
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    background: radial-gradient(circle, var(--secondary-color), transparent);
    bottom: 20%;
    left: 15%;
    animation-delay: 12s;
}

@keyframes orbMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(50px, -50px);
    }
    66% {
        transform: translate(-30px, 40px);
    }
}

/* Top Bar Modern */
.header-topbar-modern {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--primary-color) 8%, transparent),
        color-mix(in srgb, var(--secondary-color) 5%, transparent)
    );
    padding: 0.5rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: color-mix(in srgb, var(--background-color) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.topbar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, 
        color-mix(in srgb, var(--primary-color) 20%, transparent), 
        transparent
    );
    transition: left 0.5s;
}

.topbar-link:hover::before {
    left: 100%;
}

.topbar-link:hover {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.topbar-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
}

.topbar-text {
    position: relative;
    z-index: 1;
}

.pulse-on-hover:hover .topbar-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 70%, transparent);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px transparent;
    }
}

.social-links-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link-modern {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.social-link-modern i {
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.social-link-modern:hover .social-link-bg {
    opacity: 1;
    transform: scale(1);
}

.social-link-modern:hover {
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

/* Main Navigation Container */
.header-nav-container {
    position: relative;
    z-index: 1;
    padding: 1rem 0;
    background: color-mix(in srgb, var(--background-color) 70%, transparent);
    overflow: visible;
}

.nav-links-modern {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-links-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.mobile-only {
    display: none;
}

.navbar-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    flex-wrap: nowrap;
}

.navbar-modern > .navbar-brand-modern {
    order: 1;
    flex-shrink: 0;
    margin-right: 1rem;
}

.navbar-modern > .nav-links-modern {
    order: 2;
    flex: 1;
    min-width: 0;
}

.navbar-modern > .lang-switcher-modern {
    order: 3;
    margin-inline-start: auto;
}

.navbar-modern > .navbar-toggler-modern {
    order: 4;
}

.navbar-brand-modern {
    text-decoration: none;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand-modern:hover {
    transform: translateY(-2px);
}

.brand-logo {
    height: 48px;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.navbar-brand-modern:hover .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.brand-icon-modern {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 35%, transparent);
    transition: all 0.3s;
}

.navbar-brand-modern:hover .brand-icon-modern {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--primary-color) 50%, transparent);
}

.brand-icon-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color), transparent);
    opacity: 0.3;
    animation: iconGlow 3s infinite;
    border-radius: 50%;
}

@keyframes iconGlow {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}


.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: relative;
    z-index: 1;
}

.brand-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-light-color);
    line-height: 1.2;
}

/* Navigation Links */
.navbar-nav-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item-modern {
    position: relative;
}

.nav-link-modern {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--primary-color) 15%, transparent),
        color-mix(in srgb, var(--secondary-color) 10%, transparent)
    );
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.nav-link-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    font-size: 0.85rem;
    transition: all 0.3s;
}

.nav-link-modern:hover .nav-link-bg {
    opacity: 1;
    transform: scale(1);
}

.nav-link-modern:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link-modern:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-link-modern.active .nav-link-bg {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color)
    );
}

.nav-link-modern.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color)
    ) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link-modern.active .nav-icon {
    color: #ffffff !important;
}

.nav-link-modern.active .nav-text {
    color: #ffffff !important;
}

/* Mobile Toggle */
.navbar-toggler-modern {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    background: color-mix(in srgb, var(--background-color) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1110;
}

.toggler-line {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler-modern:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border-color: var(--primary-color);
}

.navbar-toggler-modern:hover .toggler-line {
    background: var(--primary-color);
}

.navbar-toggler-modern[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggler-modern[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggler-modern[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Language Switcher - Modern Style */
.lang-switcher-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding-left: 1rem;
    position: relative;
    z-index: 1110;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--background-color) 95%, transparent),
        color-mix(in srgb, var(--primary-color) 5%, transparent)
    );
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 10%, transparent);
    flex-shrink: 0;
    overflow: visible;
}

.lang-switcher-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent,
        color-mix(in srgb, var(--primary-color) 8%, transparent),
        transparent
    );
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.lang-switcher-modern:hover::before {
    opacity: 1;
}

.lang-flag-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: visible;
    padding: 3px;
    background: color-mix(in srgb, var(--background-color) 80%, transparent);
    border: 2px solid transparent;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.lang-flag-item::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.8);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--background-dark-color) 98%, transparent),
        color-mix(in srgb, var(--primary-color) 20%, transparent)
    );
    color: var(--text-light);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 
                0 0 0 2px color-mix(in srgb, var(--primary-color) 30%, transparent);
    backdrop-filter: blur(15px);
    border: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
    z-index: 2100;
    letter-spacing: 0.5px;
}

.lang-flag-item::before {
    content: '';
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px) rotate(45deg);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--background-dark-color) 98%, transparent),
        color-mix(in srgb, var(--primary-color) 20%, transparent)
    );
    border-left: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 2100;
}

.lang-flag-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.lang-flag-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) rotate(45deg);
}

.flag-icon {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) 
            brightness(1) 
            saturate(1);
    vertical-align: middle;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.flag-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent,
        color-mix(in srgb, var(--primary-color) 15%, transparent)
    );
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-flag-item:hover {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--primary-color) 20%, transparent),
        color-mix(in srgb, var(--secondary-color) 15%, transparent)
    );
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    transform: translateY(-4px) rotateX(5deg);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color) 30%, transparent),
                0 0 20px color-mix(in srgb, var(--primary-color) 20%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lang-flag-item:hover .flag-icon {
    transform: scale(1.3) rotateY(5deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) 
            brightness(1.1) 
            saturate(1.2);
}

.lang-flag-item:hover .flag-icon::before {
    opacity: 0.3;
}

.lang-flag-item:active {
    transform: translateY(-2px) rotateX(2deg) scale(0.95);
    transition: all 0.1s ease;
}

.lang-flag-item.active {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--primary-color) 25%, transparent),
        color-mix(in srgb, var(--secondary-color) 20%, transparent)
    );
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 35%, transparent),
                0 0 15px color-mix(in srgb, var(--primary-color) 25%, transparent),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    animation: flagPulse 2s ease-in-out infinite;
}

.lang-flag-item.active .flag-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25)) 
            brightness(1.05) 
            saturate(1.1);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2500;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes flagPulse {
    0%, 100% {
        box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 35%, transparent),
                    0 0 15px color-mix(in srgb, var(--primary-color) 25%, transparent);
    }
    50% {
        box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 45%, transparent),
                    0 0 25px color-mix(in srgb, var(--primary-color) 35%, transparent);
    }
}

/* Medium screens - ensure proper spacing for English */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav-modern {
        gap: 0.4rem;
    }
    
    .nav-link-modern {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .lang-switcher-modern {
        padding-left: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 991px) {
    html.mobile-menu-open,
    body.mobile-menu-open {
        overflow: hidden;
        height: 100%;
        touch-action: none;
    }

    .header-nav-container {
        padding: 0.65rem 0.75rem;
        background: color-mix(in srgb, var(--background-color) 96%, transparent);
        box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 12%, transparent);
        border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .navbar-modern {
        flex-wrap: nowrap;
        gap: 0.75rem;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .navbar-modern > .navbar-brand-modern {
        padding-inline-end: 0.25rem;
    }

    .navbar-modern > .lang-switcher-modern {
        order: 2;
        display: flex;
        width: auto;
        padding: 0.25rem 0.5rem;
        margin: 0;
        justify-content: center;
        gap: 0.35rem;
        border-radius: 14px;
        background: color-mix(in srgb, var(--background-color) 96%, transparent);
        border: 1px solid color-mix(in srgb, var(--primary-color) 8%, transparent);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
        transform: translateY(-1px);
        z-index: 1120;
    }

    .navbar-modern > .navbar-toggler-modern {
        order: 4;
        margin-inline-start: auto;
        flex: 0 0 auto;
        display: flex;
    }

    .nav-links-modern {
        position: fixed;
        inset: 0;
        padding: 1.25rem;
        align-items: flex-start;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 2700;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-links-modern.is-open {
        display: flex;
        opacity: 1;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html.mobile-menu-open .nav-links-modern,
    body.mobile-menu-open .nav-links-modern {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: min(520px, 100%);
        background: var(--background-color);
        border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
        border-radius: 18px;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
        padding: 1rem 1.15rem 1.35rem;
        transform: translateY(18px) scale(0.98);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        position: relative;
        z-index: 1;
    }

    .nav-links-modern.is-open .nav-links-panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    html.mobile-menu-open .nav-links-panel,
    body.mobile-menu-open .nav-links-panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .mobile-nav-overlay {
        z-index: 2600;
    }

    html.mobile-menu-open .mobile-nav-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-nav-modern {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
        margin: 0;
        padding: 0;
        align-items: stretch;
    }
    
    .nav-link-modern {
        width: 100%;
        justify-content: flex-start;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
    }

    .mobile-close-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
        background: color-mix(in srgb, var(--background-color) 96%, transparent);
        color: var(--text-color);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .mobile-close-btn:hover {
        background: color-mix(in srgb, var(--primary-color) 12%, transparent);
        color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .mobile-menu-topbar {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .mobile-contact-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .contact-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.55rem 0.85rem;
        border-radius: 12px;
        border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
        background: color-mix(in srgb, var(--background-color) 96%, transparent);
        color: var(--text-color);
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .contact-chip:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        box-shadow: 0 8px 22px color-mix(in srgb, var(--primary-color) 12%, transparent);
    }

    .mobile-social-links {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .mobile-lang-switcher {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-lang-title {
        font-weight: 700;
        color: var(--text-color);
        font-size: 0.95rem;
    }

    .mobile-lang-switcher .lang-switcher-modern {
        width: 100%;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .lang-flag-item {
        width: 32px;
        height: 24px;
    }

    .topbar-content {
        justify-content: center;
    }
    
    .topbar-left {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .brand-icon-modern {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .brand-title {
        font-size: 0.9rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .topbar-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
    
    .brand-logo {
        height: 40px;
        max-width: 180px;
    }
    
    .lang-switcher-modern {
        gap: 0.25rem;
    }
    
    .lang-flag-item {
        width: 28px;
        height: 28px;
    }
    
    .flag-icon {
        font-size: 18px;
    }
}

/* Scroll Effect */
.modern-header.scrolled {
    background: color-mix(in srgb, var(--background-color) 95%, transparent);
    backdrop-filter: blur(30px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
}

.modern-header.scrolled .header-nav-container {
    padding: 0.75rem 0;
}

/* Header Animation on Load */
.modern-header.header-entrance {
    animation: headerEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes headerEntrance {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== OLD HEADER STYLES (Keeping for backward compatibility) ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: color-mix(in srgb, var(--background-color) 94%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    transition: var(--transition);
}

.main-header.hang-prepare {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.main-header.hang-animate {
    animation: headerHang 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes headerHang {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-topbar {
    background: color-mix(in srgb, var(--primary-color) 8%, var(--background-color));
    padding: 0.3rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.topbar-info .info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: color-mix(in srgb, var(--background-color) 95%, var(--primary-color) 5%);
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.info-chip i {
    color: var(--primary-color);
}

.info-chip a {
    color: var(--text-color);
    text-decoration: none;
}

.topbar-actions {
    align-items: center;
}

.social-compact {
    display: inline-flex;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--background-color) 95%, var(--primary-color) 5%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.social-compact a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 0.875rem;
}

.social-compact a:hover {
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--primary-color);
}

.nav-wrapper {
    padding: 0.4rem 0;
}

.nav-glass {
    background: color-mix(in srgb, var(--surface-color) 96%, transparent 4%);
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 8%, transparent);
    padding: 0.5rem 0.85rem;
    margin: 0;
}

.main-header .navbar {
    background: transparent !important;
    padding: 0;
}

.navbar-brand {
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    background: transparent;
    border: none;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.04));
    max-height: 36px;
    width: auto;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-contrast);
    font-size: 0.95rem;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.brand-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-light-color);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color) !important;
}

.main-header .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.45rem 0.75rem !important;
    margin: 0 0.05rem;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
    color: var(--text-color) !important;
    font-size: 0.9rem;
}

.main-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 6px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
    border-radius: 1px;
}

.main-header .navbar-nav .nav-link span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.main-header .navbar-nav .nav-link:hover::after,
.main-header .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.nav-minimal {
    gap: 0.15rem;
}

.nav-actions {
    gap: 0.5rem;
}

.main-header .navbar-toggler {
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    border-radius: 8px;
    padding: 0.35rem;
    background: transparent;
}

.main-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.main-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: brightness(0) saturate(100%) invert(var(--icon-filter, 0));
}

.header-select {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.35rem 1.75rem 0.35rem 0.6rem;
    transition: var(--transition);
    min-width: 120px;
    font-size: 0.875rem;
}

.header-select:hover,
.header-select:focus {
    background: color-mix(in srgb, var(--background-color) 96%, var(--primary-color) 4%);
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--primary-color) 12%, transparent);
    outline: none;
}

.lang-switch .lang-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    background: transparent;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.875rem;
}

.lang-switch .lang-btn:hover,
.lang-switch .lang-btn:focus {
    background: color-mix(in srgb, var(--primary-color) 8%, var(--background-color) 92%);
    border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--primary-color);
    outline: none;
}

.lang-menu {
    min-width: 170px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 14%, transparent);
    box-shadow: var(--shadow-md);
    background: var(--background-color);
}

.lang-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item:focus {
    background: color-mix(in srgb, var(--primary-color) 10%, var(--background-color) 90%);
    color: var(--primary-color);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-cta .btn-ghost {
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
    color: var(--primary-color);
    font-weight: 700;
    background: transparent;
    transition: var(--transition);
}

.nav-cta .btn-ghost:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, var(--background-color) 90%);
}

.nav-cta .btn-solid {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color) 80%, var(--secondary-color) 20%);
    color: var(--text-contrast);
    font-weight: 700;
    border: none;
    transition: var(--transition);
}

.nav-cta .btn-solid:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
/* ===== MODERN FOOTER ===== */
.modern-footer {
    margin-top: auto;
    background: color-mix(in srgb, var(--background-color) 85%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--secondary-color), 
        transparent
    );
    opacity: 0.3;
}

.modern-footer .footer-container {
    position: relative;
    z-index: 1;
}

.modern-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.modern-footer .footer-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Footer Navigation Links */
.modern-footer .footer-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modern-footer .footer-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: color-mix(in srgb, var(--background-color) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.modern-footer .footer-nav-link:hover {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.modern-footer .footer-link-text {
    position: relative;
    z-index: 1;
}

/* Footer Social Links */
.modern-footer .footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-footer .footer-social-link {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: color-mix(in srgb, var(--background-color) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.modern-footer .footer-social-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.modern-footer .footer-social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.modern-footer .footer-social-link:hover .footer-social-bg {
    opacity: 1;
    transform: scale(1);
}

.modern-footer .footer-social-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 40%, transparent);
    border-color: transparent;
}

/* Footer Contact Info */
.modern-footer .footer-contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-footer .footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    background: color-mix(in srgb, var(--background-color) 95%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-footer .footer-contact-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.modern-footer .footer-contact-item:hover {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

/* Footer Bottom */
.modern-footer .footer-bottom {
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-footer .footer-copyright {
    color: var(--text-light-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.modern-footer .footer-credit {
    color: var(--text-light-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.modern-footer .footer-credit-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.modern-footer .footer-credit-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .modern-footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .modern-footer .footer-section {
        width: 100%;
        justify-content: flex-start;
    }
    
    .modern-footer .footer-nav {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .modern-footer .footer-contact-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .modern-footer .footer-contact-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .modern-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
}

@media (max-width: 576px) {
    .modern-footer .footer-content {
        padding: 1.25rem 0;
    }
    
    .modern-footer .footer-nav-link,
    .modern-footer .footer-contact-item {
        font-size: 0.8rem;
        padding: 0.45rem 0.85rem;
    }
    
    .modern-footer .footer-social-link {
        width: 32px;
        height: 32px;
    }
    
    .modern-footer .footer-social-link i {
        font-size: 0.8rem;
    }
    
    .modern-footer .footer-copyright,
    .modern-footer .footer-credit {
        font-size: 0.8rem;
    }
}

/* ===== OLD FOOTER STYLES (Keeping for backward compatibility) ===== */
.main-footer {
    background: color-mix(in srgb, var(--background-dark-color) 92%, #0b1324 8%);
    color: var(--text-light);
    margin-top: auto;
    padding: 2.5rem 0 0;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.footer-shell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.brand-fallback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--background-dark-color) 80%, var(--primary-color) 20%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, transparent);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    color: var(--text-contrast);
    font-weight: 800;
}

.brand-fallback i {
    color: var(--text-contrast);
}

.footer-text {
    margin: 0;
    color: color-mix(in srgb, var(--text-light-color) 80%, #dbeafe 20%);
    line-height: 1.7;
}

.footer-links-block,
.footer-contact-block,
.footer-social-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-block h6,
.footer-contact-block h6,
.footer-social-block h6 {
    margin: 0;
    font-weight: 800;
    color: var(--text-contrast);
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    border-radius: 8px;
    transition: var(--transition);
}

.footer-links a::before {
    content: '•';
    color: var(--primary-color);
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.contact-lines {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-line {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--background-dark-color) 90%, var(--primary-color) 10%);
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    transition: var(--transition);
    font-weight: 600;
}

.contact-line.muted {
    color: var(--text-muted);
    border-color: transparent;
    background: transparent;
}

.contact-line i {
    color: var(--secondary-color);
}

.contact-line:hover {
    color: var(--text-contrast);
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.social-links.minimal {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-links.minimal a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--background-dark-color) 88%, var(--primary-color) 12%);
    color: var(--text-light);
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.1rem;
}

.social-links.minimal a:hover {
    background: color-mix(in srgb, var(--primary-color) 82%, var(--secondary-color) 18%);
    color: var(--text-contrast);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    margin-top: 2rem;
    padding: 1.1rem 0 1.6rem;
    color: var(--text-light);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
}

.footer-meta {
    color: var(--text-light);
    font-weight: 700;
}

/* ===== CARDS & SECTIONS ===== */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    background: var(--white);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.features-section,
.products-section,
.partners-section,
.faq-section {
    padding: 4rem 0;
    position: relative;
}

.features-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

.features-section .card {
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
    border-radius: 20px;
}

.features-section .card i {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.features-section .card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.products-section .card-img-top {
    transition: var(--transition);
    height: 250px;
    object-fit: cover;
}

.products-section .card:hover .card-img-top {
    transform: scale(1.1);
}

/* ===== GALLERY SECTION ===== */
.gallery-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-image-link {
    display: block;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio - عرض بیشتر، ارتفاع کمتر */
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: var(--transition);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-video-wrapper {
    display: block;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.gallery-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-card .card-body {
    padding: 1rem;
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== CAROUSEL / SLIDER ===== */
.slider-section {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1.5rem 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, rgba(248, 250, 252, 0.5) 100%);
}

.slider-section .container {
    position: relative;
}

.slider-container {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: sliderEntry 1s ease-out forwards;
}

@keyframes sliderEntry {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mainSlider {
    position: relative;
    width: 100%;
}

#mainSlider.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
    transition-duration: 0.8s;
}

#mainSlider.carousel-fade .carousel-item.active,
#mainSlider.carousel-fade .carousel-item-next.carousel-item-start,
#mainSlider.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

#mainSlider.carousel-fade .active.carousel-item-start,
#mainSlider.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Reset animations for non-active items */
#mainSlider.carousel-fade .carousel-item:not(.active) .slider-media-wrapper {
    opacity: 0;
    transform: translateX(-30px);
}

#mainSlider.carousel-fade .carousel-item:not(.active) .slider-content-wrapper {
    opacity: 0;
    transform: translateX(30px);
}

#mainSlider.carousel-fade .carousel-item:not(.active) .slider-title,
#mainSlider.carousel-fade .carousel-item:not(.active) .slider-description,
#mainSlider.carousel-fade .carousel-item:not(.active) .slider-button-wrapper {
    opacity: 0;
    transform: translateY(20px);
}

.carousel-item {
    position: relative;
    min-height: 400px;
    padding: 1rem 0;
}

.slider-media-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.carousel-item.active .slider-media-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.carousel-item.active .slider-media-wrapper .slider-image,
.carousel-item.active .slider-media-wrapper .slider-video {
    animation: imageSlideIn 0.8s ease-out 0.2s forwards;
}

.slider-image,
.slider-video {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease-out;
    border-radius: 20px;
}

.carousel-item.active .slider-image,
.carousel-item.active .slider-video {
    animation: imageSlideIn 0.8s ease-out 0.2s forwards;
}

.slider-overlay {
    display: none;
}

.slider-content-wrapper {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
    overflow: hidden;
    position: relative;
}

.carousel-item.active .slider-content-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.carousel-item.active .slider-title {
    opacity: 1;
    transform: translateY(0);
}

.slider-description {
    font-size: 1rem;
    color: var(--dark-tertiary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.8s, transform 0.8s ease-out 0.8s;
}

.carousel-item.active .slider-description {
    opacity: 1;
    transform: translateY(0);
}

.slider-button-wrapper {
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 1s, transform 0.8s ease-out 1s;
    margin-top: auto;
    width: 100%;
}

.carousel-item.active .slider-button-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.btn-slider-primary {
    background: var(--gradient-primary);
    color: var(--white) !important;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    max-width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-slider-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-slider-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-slider-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6),
                0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--white) !important;
}

.btn-slider-primary:active {
    transform: translateY(-1px);
}

.btn-slider-primary span,
.btn-slider-primary i {
    position: relative;
    z-index: 1;
}

.btn-slider-primary i {
    transition: transform 0.3s;
}

.btn-slider-primary:hover i {
    transform: translateX(-5px);
}

/* Carousel Controls Wrapper (Bottom Left of Image - Right in RTL) */
.slider-controls-wrapper {
    position: absolute;
    bottom: 18px;
    left: 18px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    z-index: 10;
    pointer-events: none;
    width: calc(100% - 36px);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    position: relative;
    width: 38px;
    height: 38px;
    background: var(--white);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.4);
}

.carousel-control-prev:active,
.carousel-control-next:active {
    transform: scale(0.95);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(2046%) hue-rotate(213deg) brightness(94%) contrast(94%);
    transition: filter 0.3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* Carousel Indicators Inline (Inside Image) */
.carousel-indicators-inline {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.5rem;
    pointer-events: auto;
}

.carousel-indicators-inline button {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    cursor: pointer;
}

.carousel-indicators-inline button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.carousel-indicators-inline button.active {
    width: 8px;
    height: 8px;
    background: var(--white);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

/* Animation Classes - No longer needed as we use CSS transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageSlideIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* ===== ACCORDION / FAQ ===== */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-button {
    background: var(--white);
    color: #1e293b;
    font-weight: 600;
    border: none;
    border-radius: 12px !important;
    padding: 1.25rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.accordion-body {
    background: var(--light-bg);
    padding: 1.5rem;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ABOUT MODERN SECTION ===== */
.about-modern-section {
    position: relative;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--light-bg) 96%, transparent) 0%, var(--background-color) 100%),
        radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--primary-color) 8%, transparent), transparent 30%),
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--secondary-color) 10%, transparent), transparent 32%),
        var(--background-color);
    overflow: hidden;
}

.about-modern-card {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 24px;
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    box-shadow: var(--shadow-lg);
    user-select: none;
}

.about-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    inset: auto;
    z-index: 0;
}

.about-shape-1 {
    width: 260px;
    height: 260px;
    background: color-mix(in srgb, var(--primary-color) 40%, transparent);
    top: -90px;
    inset-inline-start: -50px;
}

.about-shape-2 {
    width: 220px;
    height: 220px;
    background: color-mix(in srgb, var(--accent-color) 40%, transparent);
    bottom: -70px;
    inset-inline-end: -20px;
}

.about-content-modern {
    position: relative;
    z-index: 1;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.about-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.about-title {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-text-modern {
    color: color-mix(in srgb, var(--text-color) 85%, var(--text-light-color) 15%);
    font-size: 1.05rem;
    line-height: 1.9;
    background: var(--light-bg);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 40%, transparent);
    user-select: text;
}

.about-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.about-meta-card {
    background: color-mix(in srgb, var(--background-color) 92%, var(--primary-color) 8%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-inline-start: 4px solid var(--primary-color);
}

.meta-label {
    color: color-mix(in srgb, var(--text-color) 70%, var(--text-light-color) 30%);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.meta-value {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.05rem;
}

.meta-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.meta-link:hover {
    color: color-mix(in srgb, var(--primary-color) 80%, var(--secondary-color) 20%);
    text-decoration: underline;
}

.about-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-modern {
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    font-weight: 800;
    border: none;
    background: var(--gradient-primary);
    color: var(--text-contrast);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--primary-color) 26%, transparent);
}

.btn-modern:hover {
    transform: translateY(-1px);
    color: var(--text-contrast);
}

.btn-modern-outline {
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid color-mix(in srgb, var(--primary-color) 45%, var(--secondary-color) 15%);
    color: color-mix(in srgb, var(--primary-color) 70%, var(--secondary-color) 30%);
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.btn-modern-outline:hover {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
}

.about-visual {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.about-visual-blur {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.65;
    z-index: 0;
}

.about-visual-blur-primary {
    background: color-mix(in srgb, var(--primary-color) 70%, transparent);
    inset: 10% auto auto 10%;
}

.about-visual-blur-accent {
    background: color-mix(in srgb, var(--accent-color) 65%, transparent);
    inset: auto 8% 6% auto;
}

.about-icon-circle {
    position: relative;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, #ffffff 55%, transparent), color-mix(in srgb, var(--primary-color) 14%, var(--secondary-color) 6%));
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 color-mix(in srgb, #ffffff 45%, transparent);
    display: grid;
    place-items: center;
    z-index: 1;
}

.about-icon-circle i {
    font-size: 3.5rem;
    color: color-mix(in srgb, var(--primary-color) 75%, var(--secondary-color) 25%);
}

.about-floating-badge {
    position: absolute;
    inset-inline-start: 8%;
    bottom: 10%;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    background: color-mix(in srgb, var(--background-color) 94%, var(--primary-color) 6%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, transparent);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.badge-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.about-floating-badge span:last-child {
    font-weight: 700;
    color: var(--text-color);
}

.about-modern-card .row {
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .about-modern-card {
        padding: 2rem;
    }

    .about-visual {
        min-height: 260px;
    }

    .about-icon-circle {
        width: 190px;
        height: 190px;
    }

    .about-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .about-modern-card {
        padding: 1.5rem;
    }

    .about-visual {
        min-height: 220px;
    }

    .about-icon-circle {
        width: 170px;
        height: 170px;
    }

    .about-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .main-header .navbar-nav {
        text-align: right;
        padding-top: 1rem;
    }

    .main-header .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }

    .features-section .card,
    .products-section .card {
        margin-bottom: 1.5rem;
    }

    .main-footer {
        text-align: center;
    }

    .main-footer h5::after {
        right: 50%;
        transform: translateX(50%);
    }

    .main-footer ul li a {
        padding-right: 0;
    }

    .main-footer ul li a::before {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .main-header .navbar-brand {
        font-size: 1.5rem;
    }

    .carousel-item {
        min-height: auto;
        padding: 1rem 0;
    }

    .slider-media-wrapper {
        min-height: 300px;
        height: 300px;
        border-radius: 16px;
    }

    .slider-image,
    .slider-video {
        min-height: 300px;
    }

    .slider-content-wrapper {
        padding: 1.5rem 1.25rem;
        min-height: auto;
        text-align: center;
        overflow: hidden;
    }

    .slider-button-wrapper {
        width: 100%;
        text-align: center;
    }

    .slider-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .slider-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .btn-slider-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .slider-controls-wrapper {
        bottom: 15px;
        left: 15px;
        gap: 0.65rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
    }

    .carousel-indicators-inline {
        gap: 0.25rem;
        margin-left: 0.4rem;
    }

    .carousel-indicators-inline button {
        width: 3px;
        height: 3px;
    }

    .carousel-indicators-inline button.active {
        width: 6px;
        height: 6px;
    }

    .features-section,
    .products-section,
    .partners-section,
    .faq-section {
        padding: 2.5rem 0;
    }

    .main-footer {
        padding: 2rem 0 1rem;
    }

    .main-footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .card {
        border-radius: 12px;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .main-header .navbar-brand {
        font-size: 1.25rem;
    }

    .main-footer .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin: 0.5rem 0.5rem 0 0;
    }

    .features-section .card i {
        font-size: 2.5rem;
    }

    .slider-section {
        padding: 1rem 0;
    }

    .carousel-item {
        padding: 0.75rem 0;
    }

    .slider-media-wrapper {
        min-height: 250px;
        height: 250px;
        border-radius: 12px;
    }

    .slider-image,
    .slider-video {
        min-height: 250px;
    }

    .slider-content-wrapper {
        padding: 1.25rem 1rem;
        text-align: center;
        overflow: hidden;
    }

    .slider-button-wrapper {
        width: 100%;
        text-align: center;
    }

    .slider-title {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .slider-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .btn-slider-primary {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    .slider-controls-wrapper {
        bottom: 10px;
        left: 10px;
        gap: 0.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 32px;
        height: 32px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 12px;
        height: 12px;
        background-size: 12px 12px;
    }

    .carousel-indicators-inline {
        gap: 0.2rem;
        margin-left: 0.3rem;
    }

    .carousel-indicators-inline button {
        width: 3px;
        height: 3px;
    }

    .carousel-indicators-inline button.active {
        width: 5px;
        height: 5px;
    }
}

/* ===== LOADING ANIMATION ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== SMOOTH TRANSITIONS FOR ALL INTERACTIVE ELEMENTS ===== */
a,
button,
input,
select,
textarea {
    transition: var(--transition);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== MODERN CONTACT INFORMATION SECTION ===== */
.modern-contact-info-wrapper {
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.modern-contact-info-wrapper:hover::before {
    transform: scaleX(1);
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.modern-contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--background-color) 98%, var(--white) 2%) 0%,
        var(--white) 100%);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.modern-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.modern-contact-card:hover::before {
    opacity: 0.03;
}

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-contact-card:hover .contact-icon-wrapper::before {
    opacity: 1;
}

.contact-icon-wrapper.address-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 80%, #000000 20%) 100%);
}

.contact-icon-wrapper.hours-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 80%, #000000 20%) 100%);
}

.contact-icon-wrapper.phone-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 80%, #000000 20%) 100%);
}

.contact-icon-wrapper.email-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 80%, #000000 20%) 100%);
}

.modern-contact-card:hover .contact-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon-wrapper i {
    position: relative;
    z-index: 2;
}

.contact-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light-color);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    transition: var(--transition);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-more-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.btn-modern {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern span,
.btn-modern i {
    position: relative;
    z-index: 1;
}

.btn-modern:hover {
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .modern-contact-info-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .contact-info-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .modern-contact-card {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .contact-icon-wrapper {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .modern-contact-info-wrapper {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .contact-info-title {
        font-size: 1.25rem;
    }
    
    .modern-contact-items {
        gap: 1rem;
    }
    
    .modern-contact-card {
        padding: 0.875rem;
        gap: 0.75rem;
        flex-direction: row;
        align-items: flex-start;
        text-align: right;
    }
    
    .contact-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
}