/* ======================================================
   S4Skill — Premium Portfolio & Marketplace CSS
   Author: Sazzad Hossain
   Version: 1.0.0
====================================================== */

/* ─── CSS Variables / Design Tokens ─── */
:root {
    /* Primary Brand */
    --primary:         #6366f1;
    --primary-dark:    #4f46e5;
    --primary-light:   #818cf8;
    --secondary:       #06b6d4;
    --accent:          #f59e0b;
    --success:         #10b981;
    --danger:          #ef4444;

    /* Dark Theme (default) */
    --bg-body:         #0a0a0f;
    --bg-card:         #12121a;
    --bg-card-2:       #1a1a2e;
    --bg-nav:          rgba(10, 10, 15, 0.85);
    --border-color:    rgba(99, 102, 241, 0.15);
    --text-primary:    #f1f5f9;
    --text-secondary:  #94a3b8;
    --text-muted:      #64748b;

    /* Gradients */
    --grad-primary:    linear-gradient(135deg, #6366f1, #06b6d4);
    --grad-hero:       linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    --grad-card:       linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.08));

    /* Glass */
    --glass-bg:        rgba(255, 255, 255, 0.04);
    --glass-border:    rgba(255, 255, 255, 0.08);
    --glass-blur:      blur(16px);

    /* Shadows */
    --shadow-sm:       0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:       0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:       0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow:     0 0 40px rgba(99,102,241,0.2);

    /* Typography */
    --font-primary:    'Inter', sans-serif;
    --font-display:    'Poppins', sans-serif;

    /* Radius */
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
    --bg-body:        #f8fafc;
    --bg-card:        #ffffff;
    --bg-card-2:      #f1f5f9;
    --bg-nav:         rgba(248, 250, 252, 0.92);
    --border-color:   rgba(99, 102, 241, 0.12);
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --glass-bg:       rgba(255, 255, 255, 0.7);
    --glass-border:   rgba(99, 102, 241, 0.12);
    --shadow-md:      0 8px 32px rgba(0,0,0,0.08);
    --shadow-glow:    0 0 40px rgba(99,102,241,0.1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--primary); color: #fff; }

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.text-gradient { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-secondary-color { color: var(--text-secondary); }
.text-muted-color { color: var(--text-muted); }

/* ─── Preloader ─── */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg-body);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.preloader-logo span { color: var(--primary); }
.preloader-spinner {
    width: 40px; height: 40px; margin: 0 auto;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Navbar ─── */
.navbar-custom {
    background: var(--bg-nav);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.875rem 0;
    transition: var(--transition);
    z-index: 1000;
}
.navbar-custom.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}
.navbar-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.brand-s4 { color: var(--primary); }
.brand-skill { color: var(--text-primary); }
.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 80%; }
.nav-link:hover, .nav-link.active { color: var(--text-primary) !important; }
.navbar-toggler { border: 1px solid var(--border-color); padding: 0.4rem 0.6rem; }
.toggler-icon { color: var(--text-primary); font-size: 1.1rem; }

/* Theme Toggle */
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Primary Gradient Button */
.btn-primary-gradient {
    background: var(--grad-primary);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: var(--transition);
}
.btn-primary-gradient:hover::before { opacity: 1; }
.btn-primary-gradient:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* Outline Primary Button */
.btn-outline-primary-custom {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}
.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25d366;
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }

/* ─── Section Utilities ─── */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 60px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* Divider */
.gradient-divider {
    height: 2px;
    background: var(--grad-primary);
    border: none;
    border-radius: 2px;
    width: 60px;
    margin: 1rem auto;
}

/* ─── Hero Section ─── */
.hero-section {
    min-height: 100vh;
    background: var(--grad-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Animated mesh background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6,182,212,0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(245,158,11,0.06) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Grid dots pattern */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

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

.hero-greeting {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-greeting::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-typed-wrapper {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}
.typed-cursor { color: var(--primary); }

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-cta .btn { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem; }

/* Hero Image / Profile */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-profile-ring {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: var(--grad-primary);
    padding: 4px;
    animation: profileRotate 20s linear infinite;
    position: relative;
}
@keyframes profileRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: profileRotate 20s linear infinite reverse;
}
.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Floating Cards */
.hero-floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    white-space: nowrap;
    animation: floatCard 3s ease-in-out infinite;
}
.hero-floating-card.card-1 { bottom: 15%; left: -10%; animation-delay: 0s; }
.hero-floating-card.card-2 { bottom: 15%; right: -10%; animation-delay: 1.5s; }

/* Hide floating stat cards on all mobile/tablet screens */
@media (max-width: 992px) {
    .hero-floating-card { display: none !important; }
}
.hero-floating-card .fc-icon { font-size: 1.25rem; margin-right: 0.5rem; }
.hero-floating-card .fc-label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.hero-floating-card .fc-value { font-size: 0.7rem; color: var(--text-muted); }

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ─── Glass Cards ─── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* ─── About Section ─── */
.about-section { background: var(--bg-body); }

.about-image-wrapper {
    position: relative;
    padding: 20px;
}
.about-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}
.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0.05;
    z-index: 1;
}
.about-image-frame img { border-radius: var(--radius-lg); display: block; width: 100%; }

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
}
.experience-badge .exp-num { font-size: 2rem; font-weight: 900; line-height: 1; }
.experience-badge .exp-text { font-size: 0.7rem; text-align: center; opacity: 0.9; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
    50% { box-shadow: 0 0 0 15px rgba(99,102,241,0); }
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.about-info-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}
.about-info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.about-info-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* ─── Skills Section ─── */
.skills-section { background: var(--bg-card-2); }

.skill-category-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.skill-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.skill-tab.active, .skill-tab:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
}

.skill-item { margin-bottom: 1.5rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skill-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.skill-percentage { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.skill-bar-track {
    height: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 100px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 8px; height: 100%;
    background: rgba(255,255,255,0.4);
    border-radius: 100px;
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ─── Experience Timeline ─── */
.timeline-section { background: var(--bg-body); }

.timeline {
    position: relative;
    padding: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    margin-bottom: 2rem;
    position: relative;
}
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--bg-body);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
}
.timeline-dot.current {
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(6,182,212,0.2);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-width: 420px;
    transition: var(--transition);
}
.timeline-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.timeline-period {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.timeline-position { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-company {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.timeline-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.timeline-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.timeline-badge.current { background: rgba(16,185,129,0.15); color: var(--success); }
.timeline-badge.past { background: var(--glass-bg); color: var(--text-muted); }

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;
        padding-right: 0;
    }
    .timeline-dot { left: 20px; }
}

/* ─── Portfolio Section ─── */
.portfolio-section { background: var(--bg-card-2); }

.portfolio-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(99,102,241,0.3); }

.portfolio-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-card-2);
}
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,15,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.portfolio-overlay-btn:hover { background: var(--secondary); transform: scale(1.1); color: #fff; }

.portfolio-body { padding: 1.5rem; }
.portfolio-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99,102,241,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.portfolio-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-desc { font-size: 0.875rem; color: var(--text-secondary); }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tech-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── Products Section ─── */
.products-section { background: var(--bg-body); }

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(99,102,241,0.3); }

.product-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-card-2);
}
.product-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.product-card:hover .product-img { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-sale-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
}

.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.product-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; }
.product-desc { font-size: 0.875rem; color: var(--text-secondary); flex: 1; }

.product-rating { display: flex; align-items: center; gap: 0.25rem; margin: 0.75rem 0; }
.product-rating .stars { color: var(--accent); font-size: 0.8rem; }
.product-rating .count { font-size: 0.8rem; color: var(--text-muted); }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.product-price { display: flex; align-items: center; gap: 0.5rem; }
.price-current { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }

/* ─── Services Section ─── */
.services-section { background: var(--bg-card-2); }

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(99,102,241,0.3); }

.service-icon-wrapper {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.service-card:hover .service-icon-wrapper {
    background: var(--grad-primary);
    color: #fff;
}

/* Pricing Cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card), rgba(99,102,241,0.05));
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.pricing-price { margin-bottom: 1rem; }
.pricing-price .amount { font-size: 2.5rem; font-weight: 900; color: var(--text-primary); }
.pricing-price .currency { font-size: 1.2rem; vertical-align: super; color: var(--text-secondary); }
.pricing-price .period { font-size: 0.85rem; color: var(--text-muted); }
.pricing-delivery { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; flex: 1; }
.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.pricing-features li:last-child { border: none; }
.pricing-features li i { color: var(--success); font-size: 0.8rem; }

/* ─── Testimonials ─── */
.testimonials-section { background: var(--bg-body); }

.testimonial-swiper { padding: 1rem 0 3rem; }
.swiper-pagination-bullet { background: var(--primary); opacity: 0.4; }
.swiper-pagination-bullet-active { opacity: 1; width: 24px; border-radius: 4px; }

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 0.8;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    position: absolute;
    top: 1rem; left: 1.5rem;
}
.testimonial-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-content { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-client { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Blog Section ─── */
.blog-section { background: var(--bg-card-2); }

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: rgba(99,102,241,0.3); }

.blog-img-wrapper { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-card-2); }
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-category-tag {
    position: absolute;
    bottom: 12px; left: 12px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.blog-meta span { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.blog-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; }
.blog-title a { color: var(--text-primary); }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: 0.875rem; color: var(--text-secondary); flex: 1; }
.blog-read-more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 600; font-size: 0.875rem; margin-top: 1rem; }
.blog-read-more:hover { gap: 0.75rem; }

/* ─── Contact Section ─── */
.contact-section { background: var(--bg-body); }

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: rgba(99,102,241,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-value { font-weight: 600; color: var(--text-primary); }

/* Form Styles */
.form-group-custom { margin-bottom: 1.25rem; }
.form-label-custom { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; display: block; }
.form-control-custom {
    width: 100%;
    background: var(--glass-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    outline: none;
}
.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    background: var(--bg-card);
}
.form-control-custom::placeholder { color: var(--text-muted); }
textarea.form-control-custom { resize: vertical; min-height: 130px; }

/* ─── Footer ─── */
.footer-section { background: var(--bg-card); border-top: 1px solid var(--border-color); }
.footer-top { padding: 60px 0 40px; }
.footer-brand h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.footer-heading { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition); display: flex; align-items: center; gap: 0.4rem; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact-list { list-style: none; }
.footer-contact-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-contact-list li i { color: var(--primary); width: 16px; }
.footer-contact-list a { color: var(--text-secondary); }
.footer-contact-list a:hover { color: var(--primary); }

.social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-btn.linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.social-btn.github:hover { background: #333; border-color: #333; color: #fff; }
.social-btn.youtube:hover { background: #ff0000; border-color: #ff0000; color: #fff; }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.footer-bottom a { color: var(--text-muted); font-size: 0.875rem; }
.footer-bottom a:hover { color: var(--primary); }

/* ─── WhatsApp FAB ─── */
.whatsapp-fab {
    position: fixed;
    bottom: 100px; right: 24px;
    width: 52px; height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: var(--transition);
    z-index: 999;
    animation: wabounce 2s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); color: #fff; }
@keyframes wabounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 36px; right: 24px;
    width: 44px; height: 44px;
    background: var(--grad-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ─── Responsive — Comprehensive Mobile Fixes ─── */

/* ── Large Tablets (≤ 992px) ── */
@media (max-width: 992px) {
    .hero-profile-ring { width: 280px; height: 280px; }
    .section-padding { padding: 70px 0; }

    /* Navbar collapse panel */
    .navbar-collapse {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: var(--shadow-md);
    }
    .nav-link::after { display: none; }
    .nav-link { border-radius: var(--radius-sm); padding: 0.6rem 1rem !important; }
    .nav-link:hover { background: var(--glass-bg); }

    /* Services grid */
    .services-grid { grid-template-columns: 1fr 1fr; }

    /* Timeline */
    .timeline-item { padding-left: 3rem; }
}

/* ── Tablets (≤ 768px) ── */
@media (max-width: 768px) {
    /* Hero */
    .hero-section {
        padding: 90px 0 50px;
        text-align: center;
    }
    /* Stack: image on top, text below */
    .hero-section .row { flex-direction: column-reverse; }
    .hero-content { text-align: center; }
    .hero-greeting { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-cta .btn { min-width: 160px; }
    .hero-stats { justify-content: center; gap: 1.5rem; }
    .hero-profile-ring { width: 220px; height: 220px; }
    .hero-image-wrapper { margin-bottom: 1.5rem; }

    /* About */
    .about-info-grid { grid-template-columns: 1fr 1fr; }
    .experience-badge { display: none; }

    /* Portfolio filter */
    .portfolio-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        justify-content: flex-start !important;
        gap: 0.5rem;
        scrollbar-width: none;
    }
    .portfolio-filter::-webkit-scrollbar { display: none; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }

    /* Section typography */
    .section-title { font-size: clamp(1.6rem, 5vw, 2rem); }
    .section-subtitle { font-size: 0.95rem; }
    .section-padding { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 1.5rem; }

    /* Skill tabs */
    .skill-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    .skill-category-tabs::-webkit-scrollbar { display: none; }
    .skill-tab { white-space: nowrap; flex-shrink: 0; }

    /* Timeline */
    .timeline-connector { display: none; }
    .timeline-item { padding-left: 0; margin-bottom: 1.5rem; }
    .timeline-marker { position: static; transform: none; margin-bottom: 0.75rem; }

    /* Testimonials */
    .testimonial-card { padding: 1.5rem; }

    /* Contact */
    .contact-item { gap: 0.75rem; }
    .contact-icon { width: 40px; height: 40px; font-size: 1rem; }

    /* Footer */
    .footer-links { flex-direction: column; gap: 0.5rem; }

    /* Blog/Portfolio/Product cards */
    .blog-card, .portfolio-card, .product-card { margin-bottom: 0; }

    /* Pagination */
    .pagination { flex-wrap: wrap; justify-content: center; }
}

/* ── Mobile (≤ 576px) ── */
@media (max-width: 576px) {
    /* Hero */
    .hero-profile-ring { width: 180px; height: 180px; }
    .hero-name { font-size: 2.2rem; }
    .hero-typed-wrapper { font-size: 1.1rem; }
    .hero-description { font-size: 0.95rem; }
    .hero-stats { gap: 1rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; }
    .section-padding { padding: 50px 0; }

    /* About grid single column */
    .about-info-grid { grid-template-columns: 1fr; }

    /* Navbar brand smaller */
    .navbar-brand { font-size: 1.2rem; }

    /* Section badge smaller */
    .section-badge { font-size: 0.72rem; padding: 0.3rem 0.8rem; }

    /* Hero CTA buttons full width */
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    /* Glass cards padding */
    .glass-card { border-radius: var(--radius-md); }

    /* Portfolio overlay buttons smaller */
    .portfolio-overlay-btn {
        width: 40px; height: 40px;
        font-size: 0.9rem;
    }

    /* Product card */
    .product-body { padding: 1rem; }
    .product-title { font-size: 1rem; }
    .product-price { font-size: 1.1rem; }

    /* Blog card */
    .blog-body { padding: 1rem; }
    .blog-title { font-size: 1rem; }

    /* Footer columns */
    .footer-col { margin-bottom: 2rem; }

    /* WhatsApp FAB & back-to-top */
    .whatsapp-fab { bottom: 80px; right: 16px; width: 46px; height: 46px; font-size: 1.2rem; }
    .back-to-top { bottom: 28px; right: 16px; width: 40px; height: 40px; }

    /* Alert flash */
    .alert-flash { min-width: auto; left: 20px; right: 20px; }

    /* Page hero sections */
    section[style*="padding:120px"] {
        padding-top: 90px !important;
        padding-bottom: 40px !important;
    }
}

/* ─── Misc Utilities ─── */
.overflow-hidden { overflow: hidden; }
.z-relative { position: relative; z-index: 1; }
.border-gradient {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--grad-primary) border-box;
}

/* Scroll reveal default */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* Selection highlight */
::selection { background: rgba(99,102,241,0.3); color: var(--text-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Alert / Flash Messages */
.alert-flash {
    position: fixed;
    top: 80px; right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: var(--radius-md);
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Admin panel placeholder bg */
.bg-card { background: var(--bg-card); }
.bg-card-2 { background: var(--bg-card-2); }
