/* ===== reset & base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0e1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    padding: 0 clamp(10px, 2.5vw, 30px);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    position: relative;
    overflow-x: hidden;
}

/* ===== skip to content ===== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.4s ease;
    font-family: 'Vazir', sans-serif;
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.4);
}

.skip-to-content:focus {
    top: 20px;
}

/* ===== bg animations ===== */
.bg-animation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 40%, rgba(26, 115, 232, 0.05), transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(26, 115, 232, 0.04), transparent 50%),
                #0a0e1a;
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    animation: floatCircle 25s infinite ease-in-out alternate;
    z-index: 0;
}

.bg-circle-1 { width: min(450px, 55vw); height: min(450px, 55vw); top: -12%; right: -10%; background: radial-gradient(circle, rgba(26, 115, 232, 0.07), transparent 70%); animation-duration: 28s; }
.bg-circle-2 { width: min(380px, 48vw); height: min(380px, 48vw); bottom: -12%; left: -8%; background: radial-gradient(circle, rgba(26, 115, 232, 0.06), transparent 70%); animation-duration: 25s; animation-delay: -4s; }
.bg-circle-3 { width: min(280px, 35vw); height: min(280px, 35vw); top: 28%; left: 72%; background: radial-gradient(circle, rgba(26, 115, 232, 0.05), transparent 70%); animation-duration: 20s; animation-delay: -7s; }
.bg-circle-4 { width: min(320px, 40vw); height: min(320px, 40vw); top: 55%; right: 8%; background: radial-gradient(circle, rgba(26, 115, 232, 0.04), transparent 70%); animation-duration: 26s; animation-delay: -10s; }
.bg-circle-5 { width: min(220px, 28vw); height: min(220px, 28vw); top: 12%; left: 8%; background: radial-gradient(circle, rgba(26, 115, 232, 0.06), transparent 70%); animation-duration: 18s; animation-delay: -3s; }
.bg-circle-6 { width: min(300px, 38vw); height: min(300px, 38vw); bottom: 18%; right: 22%; background: radial-gradient(circle, rgba(26, 115, 232, 0.05), transparent 70%); animation-duration: 23s; animation-delay: -8s; }
.bg-circle-7 { width: min(180px, 22vw); height: min(180px, 22vw); top: 42%; left: 42%; background: radial-gradient(circle, rgba(26, 115, 232, 0.04), transparent 70%); animation-duration: 21s; animation-delay: -5s; }
.bg-circle-8 { width: min(250px, 32vw); height: min(250px, 32vw); bottom: 3%; left: 28%; background: radial-gradient(circle, rgba(26, 115, 232, 0.05), transparent 70%); animation-duration: 24s; animation-delay: -12s; }

@keyframes floatCircle {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -25px) scale(1.06) rotate(8deg); }
    66% { transform: translate(-25px, 25px) scale(0.94) rotate(-6deg); }
    100% { transform: translate(20px, -12px) scale(1.03) rotate(4deg); }
}

.wave {
    position: absolute;
    width: 200%;
    height: 100px;
    background: repeating-linear-gradient(90deg, 
        transparent 0px, 
        rgba(26, 115, 232, 0.025) 60px, 
        transparent 120px);
    animation: waveMove 18s infinite linear;
    z-index: 0;
    opacity: 0.3;
}

.wave-1 { top: 12%; animation-duration: 20s; animation-delay: -3s; height: 55px; }
.wave-2 { top: 42%; animation-duration: 24s; animation-delay: -7s; height: 70px; opacity: 0.2; }
.wave-3 { top: 72%; animation-duration: 22s; animation-delay: -11s; height: 45px; opacity: 0.25; }

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.floating-supplements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.supplement-icon {
    position: absolute;
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    color: rgba(26, 115, 232, 0.06);
    animation: floatIcon 22s infinite ease-in-out alternate;
    pointer-events: none;
}

.supplement-icon i {
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    color: rgba(26, 115, 232, 0.06);
}

.s1 { top: 10%; left: 6%; animation-duration: 24s; animation-delay: -4s; }
.s2 { top: 22%; right: 10%; animation-duration: 27s; animation-delay: -8s; }
.s3 { top: 52%; left: 4%; animation-duration: 20s; animation-delay: -6s; }
.s4 { bottom: 18%; right: 6%; animation-duration: 26s; animation-delay: -12s; }
.s5 { top: 38%; left: 18%; animation-duration: 22s; animation-delay: -10s; }
.s6 { bottom: 32%; right: 18%; animation-duration: 28s; animation-delay: -14s; }

@keyframes floatIcon {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(25px, -18px) rotate(15deg) scale(1.12); }
    100% { transform: translate(-18px, 18px) rotate(-12deg) scale(0.88); }
}

.light-beam {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(26, 115, 232, 0.1), transparent);
    animation: lightBeam 10s infinite ease-in-out alternate;
    z-index: 0;
}

.light-beam-1 { height: 300px; left: 12%; top: 8%; animation-duration: 12s; animation-delay: -3s; }
.light-beam-2 { height: 400px; right: 18%; top: 3%; animation-duration: 14s; animation-delay: -6s; width: 1.5px; }
.light-beam-3 { height: 250px; left: 48%; top: 18%; animation-duration: 11s; animation-delay: -9s; width: 1.5px; }

@keyframes lightBeam {
    0% { opacity: 0.15; transform: scaleY(0.4) rotate(6deg); }
    50% { opacity: 0.7; transform: scaleY(1.3) rotate(-4deg); }
    100% { opacity: 0.25; transform: scaleY(0.7) rotate(3deg); }
}

/* ============================================================
   HEADER - MOBILE: LOGO TOP, BUTTONS CENTER
   ============================================================ */

.header {
    position: sticky;
    top: env(safe-area-inset-top, 0);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(14px, 2.5vw, 26px) clamp(18px, 3.5vw, 38px);
    background: rgba(42, 42, 42, 0.65);
    backdrop-filter: blur(25px) saturate(1.6);
    -webkit-backdrop-filter: blur(25px) saturate(1.6);
    border-radius: clamp(20px, 3.2vw, 30px);
    margin: clamp(12px, 2vw, 24px) 0 clamp(10px, 1.5vw, 16px) 0;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    flex-wrap: nowrap;
    gap: clamp(10px, 2vw, 20px);
    min-height: clamp(64px, 10vw, 90px);
}

.glass-header {
    background: rgba(42, 42, 42, 0.65);
    backdrop-filter: blur(25px) saturate(1.6);
    -webkit-backdrop-filter: blur(25px) saturate(1.6);
}

/* ===== DESKTOP: space-between ===== */
@media (min-width: 769px) {
    .header {
        justify-content: space-between;
        gap: 0;
        flex-wrap: nowrap;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .nav {
        flex-shrink: 0;
    }
}

/* ===== TABLET: 3 items in a row ===== */
@media (max-width: 768px) and (min-width: 500px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: clamp(12px, 2vw, 18px) clamp(14px, 2.5vw, 22px);
        min-height: clamp(58px, 8vw, 72px);
        border-radius: clamp(18px, 2.5vw, 24px);
        gap: clamp(8px, 1.5vw, 14px);
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .nav {
        flex-shrink: 0;
        gap: clamp(8px, 1.5vw, 14px);
    }
}

/* ===== MOBILE (< 500px): LOGO TOP, BUTTONS CENTER ===== */
@media (max-width: 499px) {
    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: clamp(8px, 1.5vw, 14px) clamp(10px, 2vw, 16px);
        min-height: clamp(50px, 9vw, 64px);
        border-radius: clamp(16px, 2.8vw, 22px);
        margin: clamp(8px, 1.2vw, 14px) 0;
        gap: clamp(6px, 1vw, 10px);
        transition: all 0.4s ease;
        flex-wrap: wrap;
    }
    
    /* LOGO - Top */
    .logo {
        order: -1;
        width: 100%;
        justify-content: center;
        padding: clamp(2px, 0.3vw, 4px) clamp(4px, 0.8vw, 8px);
        gap: clamp(6px, 1vw, 10px);
    }
    
    .logo-img-png {
        height: clamp(32px, 5vw, 42px);
        max-width: clamp(38px, 6vw, 48px);
    }
    
    .logo-text {
        font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    }
    
    /* NAV - Center below logo */
    .nav {
        order: 0;
        width: 100%;
        justify-content: center;
        gap: clamp(8px, 1.5vw, 14px);
        flex-wrap: wrap;
    }
    
    .btn-header {
        padding: clamp(8px, 1.2vw, 12px) clamp(14px, 2.2vw, 20px);
        font-size: clamp(0.75rem, 1.2vw, 0.9rem);
        gap: clamp(6px, 0.9vw, 10px);
        min-height: clamp(38px, 5vw, 48px);
        border-radius: 40px;
    }
    
    .btn-header i {
        font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    }
    
    .btn-header .btn-text {
        font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    }
    
    .instagram-svg {
        width: clamp(18px, 2.4vw, 24px);
        height: clamp(18px, 2.4vw, 24px);
    }
    
    /* ===== SCROLLED STATE ===== */
    .header.scrolled {
        padding: clamp(5px, 0.8vw, 8px) clamp(8px, 1.2vw, 12px);
        min-height: clamp(42px, 7vw, 52px);
        background: rgba(18, 18, 18, 0.92);
        backdrop-filter: blur(30px) saturate(1.8);
        border-radius: clamp(14px, 2vw, 18px);
        box-shadow: 0 4px 35px rgba(0, 0, 0, 0.7);
        border-color: rgba(255, 255, 255, 0.04);
        margin-top: clamp(4px, 0.6vw, 8px);
        gap: clamp(4px, 0.6vw, 8px);
    }
    
    .header.scrolled .logo-img-png {
        height: clamp(24px, 4vw, 32px);
        max-width: clamp(28px, 5vw, 38px);
    }
    
    .header.scrolled .logo-text {
        font-size: clamp(0.85rem, 2.2vw, 1.1rem);
    }
    
    .header.scrolled .logo {
        padding: clamp(2px, 0.3vw, 4px) clamp(4px, 0.6vw, 8px);
        gap: clamp(4px, 0.6vw, 8px);
    }
    
    .header.scrolled .btn-header {
        padding: clamp(5px, 0.8vw, 8px) clamp(10px, 1.5vw, 14px);
        border-radius: 30px;
        font-size: clamp(0.55rem, 0.8vw, 0.7rem);
        gap: clamp(3px, 0.4vw, 5px);
        min-height: clamp(30px, 4.5vw, 38px);
        min-width: clamp(32px, 4.5vw, 40px);
        justify-content: center;
    }
    
    .header.scrolled .btn-header i {
        font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    }
    
    .header.scrolled .btn-header .btn-text {
        opacity: 0;
        transform: scale(0.6);
        width: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        position: absolute;
    }
    
    .header.scrolled .instagram-svg {
        width: clamp(14px, 2vw, 18px);
        height: clamp(14px, 2vw, 18px);
    }
    
    .header:not(.scrolled) .btn-header .btn-text {
        opacity: 1;
        transform: scale(1);
        width: auto;
        position: relative;
        display: inline-block;
    }
}

/* ===== EXTRA SMALL (< 360px) ===== */
@media (max-width: 360px) {
    .header {
        padding: 8px 10px;
        min-height: 44px;
        border-radius: 14px;
        gap: 4px;
    }
    
    .logo-text {
        font-size: 0.85rem;
    }
    
    .logo-img-png {
        height: 24px;
        max-width: 28px;
    }
    
    .logo {
        gap: 4px;
        padding: 2px 4px;
    }
    
    .btn-header {
        padding: 4px 8px;
        font-size: 0.6rem;
        gap: 3px;
        min-height: 28px;
        min-width: 28px;
        border-radius: 30px;
    }
    
    .btn-header i {
        font-size: 0.65rem;
    }
    
    .btn-header .btn-text {
        font-size: 0.5rem;
    }
    
    .instagram-svg {
        width: 16px;
        height: 16px;
    }
    
    .header.scrolled {
        min-height: 36px;
        padding: 5px 6px;
        gap: 3px;
    }
    
    .header.scrolled .logo-img-png {
        height: 18px;
        max-width: 22px;
    }
    
    .header.scrolled .logo-text {
        font-size: 0.65rem;
    }
    
    .header.scrolled .btn-header {
        padding: 3px 5px;
        min-height: 22px;
        min-width: 24px;
    }
    
    .header.scrolled .btn-header i {
        font-size: 0.55rem;
    }
    
    .header.scrolled .instagram-svg {
        width: 12px;
        height: 12px;
    }
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 18px);
    flex-shrink: 0;
    padding: clamp(4px, 0.6vw, 6px) clamp(8px, 1.2vw, 14px);
    border-radius: clamp(14px, 1.8vw, 20px);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3px, 0.4vw, 5px);
    border-radius: clamp(12px, 1.4vw, 16px);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.15), rgba(26, 115, 232, 0.02));
    transition: all 0.4s ease;
}

.logo-img-png {
    height: clamp(42px, 6vw, 60px);
    width: auto;
    max-width: clamp(48px, 7vw, 70px);
    border-radius: clamp(10px, 1.2vw, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: clamp(8px, 1vw, 12px);
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(2px, 0.3vw, 4px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

.logo-img:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 4px 25px rgba(26, 115, 232, 0.3));
}

.logo-text {
    font-size: clamp(1.4rem, 3.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: clamp(0.3px, 0.8vw, 1.5px);
    background: linear-gradient(135deg, #f5f5f5 20%, #b8c8d8 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
}

.logo-text .fit {
    background: linear-gradient(135deg, #1a73e8, #4a8af4, #1a73e8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerLogo 3.5s ease-in-out infinite;
    font-weight: 900;
}

@keyframes shimmerLogo {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================================
   NAV BUTTONS
   ============================================================ */
.nav {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.btn-header {
    background: rgba(26, 115, 232, 0.2);
    color: #ffffff;
    padding: clamp(10px, 1.8vw, 16px) clamp(18px, 3.5vw, 32px);
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(26, 115, 232, 0.25);
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: clamp(42px, 5.5vw, 58px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-btn:hover::before {
    opacity: 1;
}

.glass-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%, rgba(255, 255, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-header i {
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
    color: #4a8af4;
    transition: all 0.3s ease;
}

.btn-header:hover i {
    color: #7aafff;
    transform: scale(1.1);
}

.btn-header .btn-text {
    transition: all 0.4s ease;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
}

.btn-phone {
    background: rgba(26, 115, 232, 0.25);
    border-color: rgba(26, 115, 232, 0.3);
    box-shadow: 0 4px 25px rgba(26, 115, 232, 0.2);
}

.btn-phone:hover {
    background: rgba(26, 115, 232, 0.4);
    box-shadow: 0 8px 35px rgba(26, 115, 232, 0.4);
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(26, 115, 232, 0.5);
}

.btn-instagram {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.12), rgba(225, 48, 108, 0.12), rgba(188, 24, 136, 0.12));
    border-color: rgba(225, 48, 108, 0.15);
    gap: clamp(8px, 1.2vw, 14px);
}

.btn-instagram:hover {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.25), rgba(225, 48, 108, 0.25), rgba(188, 24, 136, 0.25));
    box-shadow: 0 8px 35px rgba(225, 48, 108, 0.3);
    border-color: rgba(225, 48, 108, 0.35);
    transform: translateY(-4px) scale(1.04);
}

.instagram-svg {
    width: clamp(22px, 2.8vw, 32px);
    height: clamp(22px, 2.8vw, 32px);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.btn-instagram:hover .instagram-svg {
    transform: scale(1.12) rotate(-5deg);
}

.btn-header:hover {
    transform: translateY(-4px) scale(1.04);
}

/* ============================================================
   MAIN
   ============================================================ */
.page-title {
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 300;
    margin: clamp(20px, 3.5vw, 45px) 0 clamp(15px, 2.5vw, 30px) 0;
    color: #d0d0d0;
    letter-spacing: clamp(0.5px, 1vw, 1.5px);
    text-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.highlight-blue {
    font-weight: 800;
    background: linear-gradient(145deg, #1a73e8, #4a8af4, #1a73e8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: shimmerTitle 4s ease-in-out infinite;
}

@keyframes shimmerTitle {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.main {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: clamp(10px, 1.5vw, 20px) 0 clamp(25px, 4vw, 50px) 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* ===== CARDS ===== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(25px, 3.5vw, 45px);
    margin-top: clamp(15px, 2.5vw, 35px);
    width: 100%;
}

.card-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 clamp(280px, 30vw, 360px);
    max-width: clamp(320px, 36vw, 400px);
    min-width: clamp(240px, 25vw, 300px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.card {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(25px) saturate(1.5);
    -webkit-backdrop-filter: blur(25px) saturate(1.5);
    padding: clamp(22px, 3.2vw, 35px) clamp(18px, 2.8vw, 28px) clamp(22px, 3.2vw, 35px);
    border-radius: clamp(30px, 4vw, 42px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(25px) saturate(1.5);
    -webkit-backdrop-filter: blur(25px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 44px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.12), transparent 50%, rgba(26, 115, 232, 0.06));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.card-link:hover .card {
    transform: translateY(-20px) scale(1.03);
    border-color: rgba(90, 122, 154, 0.35);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(74, 106, 138, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background: rgba(50, 50, 50, 0.7);
}

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

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(70, 130, 200, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.card-link:hover .card::after {
    opacity: 1;
}

/* ===== CARD ICONS ===== */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(80px, 12vw, 110px);
    height: clamp(80px, 12vw, 110px);
    margin-bottom: clamp(10px, 1.5vw, 16px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.5s ease;
    position: relative;
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%, rgba(255, 255, 255, 0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-icon svg {
    width: clamp(2.4rem, 4.5vw, 4rem);
    height: clamp(2.4rem, 4.5vw, 4rem);
    transition: all 0.5s ease;
}

.card-link:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.08);
}

.card-link:hover .card-icon svg {
    transform: scale(1.05);
}

.coaching-icon svg {
    filter: drop-shadow(0 0 25px rgba(79, 195, 247, 0.3));
}

.card-link:hover .coaching-icon svg {
    filter: drop-shadow(0 0 45px rgba(79, 195, 247, 0.5));
}

.price-icon svg {
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.3));
}

.card-link:hover .price-icon svg {
    filter: drop-shadow(0 0 45px rgba(255, 215, 0, 0.5));
}

.card h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 800;
    margin: clamp(6px, 1vw, 12px) 0 clamp(4px, 0.6vw, 8px);
    color: #f0f0f0;
    letter-spacing: 0.5px;
    border-bottom: 2.5px solid rgba(74, 106, 138, 0.4);
    display: inline-block;
    padding-bottom: clamp(5px, 0.6vw, 8px);
    transition: all 0.4s ease;
}

.card-link:hover .card h2 {
    border-color: #6a9adf;
    transform: scale(1.03);
}

.card p {
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    color: #b8b8b8;
    margin: clamp(8px, 1.2vw, 16px) 0 clamp(12px, 1.8vw, 22px);
    padding: 0 clamp(4px, 0.8vw, 8px);
    font-weight: 300;
    line-height: 1.8;
    flex: 1;
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: clamp(10px, 1.4vw, 14px) clamp(28px, 4vw, 42px);
    border-radius: 60px;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 30px rgba(26, 115, 232, 0.35);
    border: 1px solid rgba(74, 138, 244, 0.25);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.card-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-link:hover .card-badge {
    background: linear-gradient(135deg, #1557b0, #0a3d7a);
    transform: scale(1.08);
    box-shadow: 0 10px 45px rgba(26, 115, 232, 0.55);
    border-color: rgba(122, 175, 255, 0.4);
}

.card-link:hover .card-badge::before {
    opacity: 1;
}

/* ===== BACK LINK ===== */
.back-link {
    text-align: center;
    margin: clamp(20px, 3vw, 35px) 0 clamp(10px, 1.5vw, 20px);
    position: relative;
    z-index: 10;
}

.btn-back {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #d0d0d0;
    padding: clamp(10px, 1.5vw, 16px) clamp(20px, 3vw, 36px);
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Vazir', sans-serif;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.btn-back i {
    margin-left: 10px;
    color: #4a8af4;
    font-size: clamp(0.85rem, 1.1vw, 1.05rem);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border-color: #1a73e8;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.4);
}

.btn-back:hover i {
    color: #fff;
    transform: translateX(-5px);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: clamp(18px, 2.8vw, 30px) clamp(14px, 2.2vw, 28px);
    margin-top: clamp(20px, 3vw, 35px);
    border-top: 1px solid rgba(58, 58, 58, 0.3);
    color: #888888;
    font-size: clamp(0.8rem, 0.9vw, 1rem);
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: clamp(35px, 5vw, 55px) clamp(35px, 5vw, 55px) 0 0;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: none;
}

.glass-footer {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.footer-links {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    width: 100%;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    color: #aaaaaa;
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    line-height: 1.8;
    padding: clamp(2px, 0.3vw, 4px) 0;
    width: 100%;
    justify-content: center;
}

.footer-list li a {
    color: #aaaaaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    transition: all 0.3s ease;
}

.footer-list li a:hover {
    color: #1a73e8;
    transform: translateX(-5px);
}

.footer-list li a i,
.footer-list li i:not(.fa-home) {
    color: #1a73e8;
    font-size: clamp(0.9rem, 1.1vw, 1.2rem);
    width: clamp(18px, 2.5vw, 24px);
    text-align: center;
    flex-shrink: 0;
}

.footer-list li span {
    word-break: break-word;
    text-align: center;
}

.footer-copy {
    color: #666666;
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
    margin-top: clamp(4px, 0.5vw, 8px);
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(42, 42, 42, 0.5);
    padding-top: clamp(10px, 1.5vw, 16px);
}

/* ============================================================
   RESPONSIVE ALL DEVICES
   ============================================================ */

/* Tablet & Small Laptops */
@media (max-width: 1024px) {
    .card-link {
        flex: 1 1 clamp(240px, 28vw, 300px);
        max-width: clamp(280px, 34vw, 340px);
        min-width: clamp(200px, 24vw, 250px);
    }
    .card-icon {
        width: clamp(70px, 11vw, 90px);
        height: clamp(70px, 11vw, 90px);
    }
    .card-icon svg {
        width: clamp(2rem, 3.5vw, 3.2rem);
        height: clamp(2rem, 3.5vw, 3.2rem);
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        gap: 10px;
        padding: clamp(14px, 2.2vw, 20px) clamp(16px, 2.8vw, 24px);
        min-height: clamp(56px, 8vw, 70px);
    }
    
    .card-link {
        flex: 1 1 clamp(220px, 36vw, 280px);
        max-width: clamp(260px, 42vw, 320px);
        min-width: clamp(190px, 30vw, 230px);
    }
    
    .card-icon {
        width: clamp(65px, 10vw, 80px);
        height: clamp(65px, 10vw, 80px);
    }
    
    .card-icon svg {
        width: clamp(1.8rem, 3vw, 2.8rem);
        height: clamp(1.8rem, 3vw, 2.8rem);
    }
    
    .page-title {
        font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    body {
        padding: 0 12px;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .header {
        padding: clamp(12px, 2vw, 18px) clamp(14px, 2.5vw, 22px);
        border-radius: clamp(18px, 3vw, 24px);
        gap: 8px;
        min-height: clamp(56px, 10vw, 72px);
        margin: clamp(10px, 1.8vw, 16px) 0;
    }
    
    .logo {
        gap: clamp(8px, 1.2vw, 12px);
        padding: clamp(2px, 0.4vw, 4px) clamp(4px, 0.8vw, 8px);
    }
    
    .logo-img-png {
        height: clamp(32px, 6vw, 44px);
        max-width: clamp(38px, 7vw, 52px);
    }
    
    .logo-text {
        font-size: clamp(1.05rem, 3vw, 1.6rem);
    }
    
    .btn-header {
        padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2.8vw, 24px);
        font-size: clamp(0.75rem, 1.2vw, 0.95rem);
        gap: clamp(6px, 0.8vw, 10px);
        min-height: clamp(38px, 7vw, 48px);
        border-radius: 50px;
    }
    
    .btn-header i {
        font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    }
    
    .instagram-svg {
        width: clamp(20px, 3vw, 28px);
        height: clamp(20px, 3vw, 28px);
    }
    
    .card-container {
        gap: clamp(20px, 3vw, 28px);
    }
    
    .card-link {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: unset;
    }
    
    .card {
        padding: clamp(20px, 3.2vw, 28px) clamp(16px, 2.8vw, 24px);
        border-radius: clamp(26px, 4.5vw, 34px);
        backdrop-filter: blur(20px) saturate(1.4);
    }
    
    .card-icon {
        width: clamp(70px, 14vw, 90px);
        height: clamp(70px, 14vw, 90px);
        margin-bottom: clamp(8px, 1.2vw, 12px);
    }
    
    .card-icon svg {
        width: clamp(2rem, 3.5vw, 3rem);
        height: clamp(2rem, 3.5vw, 3rem);
    }
    
    .page-title {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
        margin: clamp(16px, 2.8vw, 24px) 0 clamp(12px, 2vw, 18px);
    }
    
    .card h2 {
        font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    }
    
    .card p {
        font-size: clamp(0.8rem, 1.4vw, 0.95rem);
        margin: clamp(8px, 1.2vw, 14px) 0 clamp(12px, 1.8vw, 20px);
    }
    
    .card-badge {
        padding: clamp(8px, 1.2vw, 12px) clamp(20px, 3.2vw, 30px);
        font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    }
    
    .btn-back {
        padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2.8vw, 24px);
        font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    }
    
    .footer {
        padding: clamp(16px, 2.8vw, 24px) clamp(14px, 2.2vw, 20px);
        border-radius: clamp(28px, 4.5vw, 38px) clamp(28px, 4.5vw, 38px) 0 0;
    }
    
    .footer-list li {
        font-size: clamp(0.7rem, 1vw, 0.85rem);
        gap: clamp(6px, 0.8vw, 10px);
    }
    
    .footer-list li a i,
    .footer-list li i:not(.fa-home) {
        font-size: clamp(0.8rem, 1vw, 1rem);
        width: clamp(16px, 2vw, 20px);
    }
    
    .footer-copy {
        font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    body {
        padding: 0 6px;
    }
    
    .header {
        padding: 8px 10px;
        min-height: 48px;
        border-radius: 16px;
        gap: 6px;
    }
    
    .logo-img-png {
        height: 26px;
        max-width: 30px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo {
        gap: 6px;
        padding: 2px 4px;
    }
    
    .btn-header {
        padding: 5px 12px;
        font-size: 0.65rem;
        gap: 4px;
        min-height: 30px;
        border-radius: 40px;
        min-width: 34px;
    }
    
    .btn-header i {
        font-size: 0.75rem;
    }
    
    .instagram-svg {
        width: 16px;
        height: 16px;
    }
    
    .page-title {
        font-size: 1.2rem;
        margin: 10px 0 8px;
    }
    
    .card {
        padding: 14px 12px;
        border-radius: 20px;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 6px;
    }
    
    .card-icon svg {
        width: 1.6rem;
        height: 1.6rem;
    }
    
    .card h2 {
        font-size: 1rem;
        padding-bottom: 4px;
    }
    
    .card p {
        font-size: 0.7rem;
        margin: 6px 0 10px;
        line-height: 1.6;
    }
    
    .card-badge {
        padding: 5px 14px;
        font-size: 0.65rem;
        border-radius: 40px;
    }
    
    .btn-back {
        font-size: 0.65rem;
        padding: 6px 14px;
    }
    
    .footer {
        padding: 12px 10px;
        border-radius: 20px 20px 0 0;
        margin-top: 12px;
    }
    
    .footer-list li {
        font-size: 0.6rem;
        gap: 5px;
    }
    
    .footer-list li a i,
    .footer-list li i:not(.fa-home) {
        font-size: 0.7rem;
        width: 14px;
    }
    
    .footer-copy {
        font-size: 0.55rem;
        padding-top: 6px;
    }
}

/* ============================================================
   TOUCH DEVICE OPTIMIZATION
   ============================================================ */
@media (hover: none) {
    .card-link:hover .card {
        transform: none !important;
        border-color: rgba(62, 62, 62, 0.6) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
        background: rgba(42, 42, 42, 0.6) !important;
    }
    
    .card-link:hover .card::before,
    .card-link:hover .card::after {
        opacity: 0 !important;
    }
    
    .card-link:hover .card-icon {
        transform: none !important;
    }
    
    .card-link:hover .card h2 {
        border-color: rgba(74, 106, 138, 0.4) !important;
        transform: none !important;
    }
    
    .card-link:hover .card-badge {
        background: linear-gradient(135deg, #1a73e8, #0d47a1) !important;
        transform: none !important;
        box-shadow: 0 6px 30px rgba(26, 115, 232, 0.35) !important;
        border-color: rgba(74, 138, 244, 0.25) !important;
    }
    
    .card-link:hover .card-badge::before {
        opacity: 0 !important;
    }
    
    .btn-header:hover {
        transform: none !important;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2) !important;
    }
    
    .btn-back:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.06) !important;
        color: #d0d0d0 !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2) !important;
    }
    
    .btn-back:hover i {
        color: #4a8af4 !important;
        transform: none !important;
    }
    
    .logo-img:hover {
        transform: none !important;
    }
    
    .btn-instagram:hover .instagram-svg {
        transform: none !important;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 4px;
    border-radius: 12px;
}

.card-link:focus-visible .card {
    outline: 3px solid #1a73e8;
    outline-offset: 4px;
    border-radius: 34px;
}

.btn-header:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 4px;
}