/* ============================================================
   IFTIKHAR AHMAD PORTFOLIO - MAIN STYLESHEET
   Theme: Deep Space Luxury — Dark navy/teal/gold
   Font: Syne (headings) + DM Sans (body)
   ============================================================ */

/* ============================================================
   CSS VARIABLES — change colors/fonts here globally
   ============================================================ */
:root {
    --primary: #00d4aa;        /* teal accent */
    --primary-dark: #00a882;
    --secondary: #f0c040;      /* gold accent */
    --dark: #060818;           /* deep navy black */
    --dark-2: #0c1228;         /* card background */
    --dark-3: #111a35;         /* section alternate */
    --light: #e8edf8;
    --muted: #7a8aaa;
    --glow: rgba(0, 212, 170, 0.15);
    --glow-gold: rgba(240, 192, 64, 0.15);
    --border: rgba(0, 212, 170, 0.15);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    cursor: none; /* custom cursor */
}

/* ============================================================
   EPIC CURSOR SYSTEM — Top Level 3D
   ============================================================ */
*, a, button { cursor: none !important; }

/* 1. Core laser dot */
.cursor-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 99999;
    box-shadow:
        0 0 6px  #fff,
        0 0 12px var(--primary),
        0 0 24px var(--primary),
        0 0 48px var(--primary);
    transition: width .15s, height .15s, box-shadow .15s;
    mix-blend-mode: screen;
}

/* 2. Spinning teal+gold conic ring */
.cursor-ring {
    width: 36px; height: 36px;
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 99998;
    background: conic-gradient(
        var(--primary) 0deg,
        var(--secondary) 90deg,
        transparent 180deg,
        var(--primary) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    opacity: .9;
    transition: width .2s, height .2s, opacity .2s;
}

/* 3. Medium orbit ring */
.cursor-orbit {
    width: 58px; height: 58px;
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 99996;
    border: 1px dashed rgba(0,212,170,.35);
    opacity: .6;
    transition: width .3s, height .3s, opacity .3s;
}

/* 4. Large soft glow aura */
.cursor-aura {
    width: 120px; height: 120px;
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 99995;
    background: radial-gradient(circle,
        rgba(0,212,170,.12) 0%,
        rgba(0,212,170,.04) 50%,
        transparent 70%);
    transition: width .4s, height .4s, opacity .4s;
    opacity: 1;
}

/* 5. Particle trail dots (created in JS) */
.cursor-particle {
    width: 5px; height: 5px;
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 99994;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity .05s;
}

/* ============================================================
   3D CANVAS BACKGROUND
   The three.js canvas sits behind everything
   ============================================================ */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Everything sits above the canvas */
nav, section, footer, .back-to-top { position: relative; z-index: 1; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ============================================================
   NAVBAR
   To add a nav link: copy a <li> in index.html
   ============================================================ */
.navbar {
    background: rgba(6, 8, 24, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    transition: all 0.3s ease;
}

.navbar-brand img { height: 70px; transition: all 0.3s ease; }

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 6px 10px;
    color: var(--primary);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { filter: invert(1); }

.nav-link {
    font-family: var(--font-display);
    color: var(--light) !important;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 8px;
    padding: 8px 0 !important;
    position: relative;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primary) !important; }
.nav-link:hover::after { width: 100%; }

.btn-hire {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark) !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0,212,170,0.3);
}
.btn-hire:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0,212,170,0.5);
    color: var(--dark) !important;
}

/* ============================================================
   REUSABLE BUTTONS
   ============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 13px 32px;
    border-radius: 50px;
    border: none;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(0,212,170,0.25);
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0,212,170,0.5);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    font-family: var(--font-display);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-3px);
}

/* ============================================================
   SECTION COMMON STYLES
   ============================================================ */
section { padding: 100px 0; }

.section-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--light);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title span { color: var(--primary); }

.section-desc { color: var(--muted); font-size: 1rem; line-height: 1.8; }

/* Glowing divider line under section headers */
.section-line {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;   /* safe clearance above navbar on all devices */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind hero text */
.hero::before {
    content: '';
    position: absolute;
    top: 20%; left: 5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0,212,170,0.08);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--light);
}

.hero h1 .name { color: var(--primary); }

.hero-typed {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 24px;
    min-height: 36px;
    display: block;
}

.hero-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 36px;
    max-width: 520px;
}

/* Hero image with glowing ring */
.hero-img-wrap {
    position: relative;
    display: inline-block;
}
.hero-img-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(var(--primary), var(--secondary), var(--primary));
    animation: spin 6s linear infinite;
    z-index: 0;
}
.hero-img-wrap::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--dark);
    z-index: 1;
}
.hero-img {
    width: 340px; height: 340px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ============================================================
   HERO PHOTO + HANGING BADGES
   ============================================================ */
.hero-photo-section {
    position: relative;
    display: inline-block;
    /* Extra space so hanging badges are fully visible */
    padding: 0 70px 80px 70px;
}

/* The spinning ring + photo wrapper */
.hero-img-wrap {
    position: relative;
    display: inline-block;
}

/* Badges hang below the photo with a line connector */
.hero-badges-row {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    justify-content: center;
    width: max-content;
}

/* Vertical connector line from photo bottom to badge */
.hero-badges-row::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--primary), rgba(0,212,170,0.3));
}

/* Individual hanging badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(6, 8, 24, 0.92);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 14px;
    backdrop-filter: blur(16px);
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 12px rgba(0,212,170,0.08);
    position: relative;
}

/* Thread line above each badge */
.hero-badge::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom, rgba(0,212,170,0.4), rgba(0,212,170,0.15));
}

/* Wind-like slow swinging per badge — each slightly different */
.hero-badge:nth-child(1) { animation: windSwing1 5s ease-in-out infinite; transform-origin: top center; }
.hero-badge:nth-child(2) { animation: windSwing2 7s ease-in-out infinite 0.8s; transform-origin: top center; }
.hero-badge:nth-child(3) { animation: windSwing3 6s ease-in-out infinite 1.6s; transform-origin: top center; }

@keyframes windSwing1 {
    0%   { transform: rotate(-2deg) translateY(0px);   }
    25%  { transform: rotate(1.5deg) translateY(-4px); }
    50%  { transform: rotate(-1deg) translateY(-7px);  }
    75%  { transform: rotate(2deg) translateY(-3px);   }
    100% { transform: rotate(-2deg) translateY(0px);   }
}
@keyframes windSwing2 {
    0%   { transform: rotate(1.5deg) translateY(-2px); }
    30%  { transform: rotate(-2deg) translateY(-6px);  }
    60%  { transform: rotate(1deg)  translateY(-9px);  }
    80%  { transform: rotate(-1.5deg) translateY(-4px);}
    100% { transform: rotate(1.5deg) translateY(-2px); }
}
@keyframes windSwing3 {
    0%   { transform: rotate(-1deg) translateY(0px);   }
    35%  { transform: rotate(2deg)  translateY(-5px);  }
    65%  { transform: rotate(-2deg) translateY(-8px);  }
    85%  { transform: rotate(1deg)  translateY(-3px);  }
    100% { transform: rotate(-1deg) translateY(0px);   }
}

.hero-badge i  { color: var(--primary); font-size: 0.88rem; flex-shrink: 0; }
.hero-badge span { font-size: 0.74rem; font-weight: 500; color: var(--light); letter-spacing: 0.3px; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    padding: 60px 0;
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(0,212,170,0.04);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.stat-card:hover {
    background: rgba(0,212,170,0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,212,170,0.1);
}
.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--light);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: var(--dark-3); }

.about-img-wrap {
    position: relative;
    display: inline-block;
}
.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,212,170,0.1);
}
/* Decorative corner accent */
.about-img-wrap::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px;
    width: 120px; height: 120px;
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    z-index: 0;
}
.about-img-wrap::after {
    content: '';
    position: absolute;
    bottom: -15px; right: -15px;
    width: 120px; height: 120px;
    border-bottom: 3px solid var(--secondary);
    border-right: 3px solid var(--secondary);
    border-radius: 8px;
    z-index: 0;
}

.about-list { list-style: none; padding: 0; }
.about-list li {
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-list li i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.about-list li:last-child { border-bottom: none; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services { background: var(--dark); }

.service-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 28px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
/* Glow top-left corner on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(0,212,170,0.07), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 30px rgba(0,212,170,0.1);
}

.service-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(0,212,170,0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrap {
    background: rgba(0,212,170,0.2);
    box-shadow: 0 0 20px rgba(0,212,170,0.3);
}
.service-icon-wrap i { font-size: 1.8rem; color: var(--primary); }

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 12px;
}
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.service-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.service-link:hover { gap: 12px; color: var(--primary); }

/* ============================================================
   SKILLS SECTION
   ============================================================ */
#skills { background: var(--dark-3); }

.skill-item { margin-bottom: 22px; }
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.skill-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--light);
}
.skill-level {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0,212,170,0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.skill-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}
.skill-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(0,212,170,0.4);
}

/* Circular skill cards (right side) */
.skill-circle-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.skill-circle-card:hover {
    transform: scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0,212,170,0.12);
}
.circular-progress {
    position: relative;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, rgba(255,255,255,0.06) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.circular-progress::before {
    content: '';
    position: absolute;
    width: 108px; height: 108px;
    border-radius: 50%;
    background: var(--dark-2);
}
.progress-value {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--light);
}
.skill-circle-card h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light);
    margin: 0;
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
#portfolio { background: var(--dark); }

.filter-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: rgba(0,212,170,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.portfolio-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}
.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,212,170,0.1);
}
.portfolio-img-wrap { position: relative; overflow: hidden; height: 220px; }
.portfolio-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.08); }
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,8,24,0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay a {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s;
}
.portfolio-overlay a:hover {
    background: var(--primary);
    color: var(--dark);
}
.portfolio-body { padding: 22px; }
.portfolio-tags { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0,212,170,0.08);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.portfolio-body h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 8px;
}
.portfolio-body p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; margin: 0; }

/* ============================================================
   EXPERIENCE / TIMELINE SECTION
   ============================================================ */
#experience { background: var(--dark-3); }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}
.timeline-item {
    position: relative;
    padding-bottom: 40px;
    margin-bottom: 10px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark-3);
    box-shadow: 0 0 12px rgba(0,212,170,0.6);
}
.timeline-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition: all 0.3s ease;
}
.timeline-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.timeline-date {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0,212,170,0.08);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 14px;
}
.timeline-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 16px;
}
.timeline-card ul { padding-left: 18px; margin: 0; }
.timeline-card ul li {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 6px;
}
.timeline-card ul li::marker { color: var(--primary); }

/* ============================================================
   TESTIMONIALS / REVIEWS SECTION
   ============================================================ */
#testimonials { background: var(--dark); }

.review-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}
.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.review-stars { color: var(--secondary); font-size: 0.9rem; margin-bottom: 16px; }
.review-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.review-author h6 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--light);
    margin: 0 0 2px;
}
.review-author small { color: var(--muted); font-size: 0.78rem; }
.quote-mark {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.12;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Review submission form */
.review-form-wrap {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    margin-top: 60px;
}
.review-form-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 8px;
}
.review-form-wrap p { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }

.form-control-dark {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--light);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    outline: none;
    margin-bottom: 16px;
}
.form-control-dark:focus {
    border-color: var(--primary);
    background: rgba(0,212,170,0.04);
    box-shadow: 0 0 0 3px rgba(0,212,170,0.08);
}
.form-control-dark::placeholder { color: var(--muted); }

/* Star rating input */
.star-rating { display: flex; gap: 6px; margin-bottom: 16px; }
.star-rating input { display: none; }
.star-rating label {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--secondary); }
.star-rating { flex-direction: row-reverse; }
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--secondary); }

/* Pending review badge */
.review-pending {
    display: inline-block;
    background: rgba(240,192,64,0.1);
    border: 1px solid rgba(240,192,64,0.3);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact { background: var(--dark-3); }

.contact-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.contact-item-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(0,212,170,0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item-icon i { font-size: 1.2rem; color: var(--primary); }
.contact-item h6 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.contact-item p, .contact-item a {
    font-size: 0.92rem;
    color: var(--light);
    margin: 0;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-item a:hover { color: var(--primary); }

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    width: 100%;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37,211,102,0.2);
}
.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(37,211,102,0.4);
    color: white;
}

/* Contact form */
.contact-form-wrap {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 10px;
}
.footer-brand span { color: var(--primary); }
.footer-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.8; max-width: 300px; margin: 0 auto 24px; }

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 12px;
    transition: color 0.2s;
    display: inline-block;
    padding: 5px 0;
}
.footer-link:hover { color: var(--primary); }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon:hover {
    background: rgba(0,212,170,0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    margin-top: 40px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0,212,170,0.3);
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(0,212,170,0.5);
    color: var(--dark);
}

/* ============================================================
   ADMIN PANEL (for approving reviews)
   Hidden by default - only accessed via ?admin=1 in URL
   ============================================================ */
#admin-panel {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,8,24,0.97);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}
.admin-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.admin-card h5 { font-family: var(--font-display); color: var(--light); margin-bottom: 6px; }
.admin-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.btn-approve {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.2s;
}
.btn-approve:hover { opacity: 0.85; }
.btn-reject {
    background: transparent;
    color: #ff5e7a;
    border: 1px solid #ff5e7a;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-reject:hover { background: rgba(255,94,122,0.1); }

/* ============================================================
   RESPONSIVE — Laptop, Tablet, Mobile
   ============================================================ */

/* --- LAPTOP (up to 1199px) --- */
@media (max-width: 1199.98px) {
    .hero h1 { font-size: 3rem; }
    .hero-img { width: 300px; height: 300px; }
    .hero-photo-section { padding: 0 60px 75px 60px; }
}

/* --- TABLET (up to 991px) --- */
@media (max-width: 991.98px) {
    .hero { padding-top: 100px; text-align: center; }
    .hero h1 { font-size: 2.6rem; }
    .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .section-title { font-size: 2rem; }
    .hero-img { width: 250px; height: 250px; }
    .hero-img-wrap::before { inset: -9px; }
    .hero-photo-section { padding: 0 55px 70px 55px; }
    .hero-badge span { font-size: 0.68rem; }
    .hero-badge { padding: 8px 12px; }
    /* Navbar mobile menu */
    .navbar-collapse {
        background: rgba(6,8,24,0.98);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 20px;
        margin-top: 12px;
    }
    .nav-link { margin: 4px 0; padding: 8px 12px !important; }
    .nav-link::after { display: none; }
    /* Skills layout stacks */
    #skills .col-lg-6 { margin-bottom: 30px; }
    /* About image smaller */
    .about-img { max-width: 320px; }
}

/* --- MOBILE (up to 767px) --- */
@media (max-width: 767.98px) {
    section { padding: 70px 0; }
    /* IMPORTANT: large padding-top pushes hero content fully below navbar */
    .hero { padding-top: 130px; padding-bottom: 60px; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero-typed { font-size: 1rem; }
    .hero-desc { font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }
    /* Photo on mobile — smaller and fully visible */
    .hero-img { width: 190px; height: 190px; }
    .hero-img-wrap::before { inset: -7px; }
    .hero-img-wrap::after  { inset: -2px; }
    /* Photo section padding gives badges room to hang */
    .hero-photo-section { padding: 0 40px 70px 40px; }
    /* Badges smaller but wind-swinging still works */
    .hero-badges-row { gap: 8px; }
    .hero-badge { padding: 7px 10px; gap: 5px; border-radius: 10px; }
    .hero-badge span { font-size: 0.62rem; }
    .hero-badge i { font-size: 0.75rem; }
    /* Connector lines shorter on mobile */
    .hero-badge::before { height: 14px; top: -14px; }
    .hero-badges-row::before { height: 22px; top: -22px; }
    /* Stats */
    .stat-number { font-size: 2rem; }
    .stat-card { padding: 18px 10px; }
    /* Contact */
    .contact-card, .contact-form-wrap { padding: 20px 16px; }
    /* Portfolio */
    .portfolio-img-wrap { height: 180px; }
    /* About */
    .about-img-wrap { margin-bottom: 36px; }
    .about-img { max-width: 260px; }
    /* Timeline */
    .timeline { padding-left: 22px; }
    .timeline-card { padding: 18px; }
    .timeline-card ul li { font-size: 0.83rem; }
    /* Footer */
    .footer-link { margin: 4px 6px; font-size: 0.8rem; }
    /* Cursor hidden on mobile — touch trail handled in JS */
    .cursor-dot, .cursor-ring, .cursor-orbit, .cursor-aura { display: none !important; }
}

/* --- SMALL MOBILE (up to 575px) --- */
@media (max-width: 575.98px) {
    .hero { padding-top: 110px; padding-bottom: 50px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-img { width: 160px; height: 160px; }
    /* Badges still hang — just tighter */
    .hero-photo-section { padding: 0 36px 62px 36px; }
    .hero-badges-row { gap: 6px; }
    .hero-badge { padding: 5px 8px; gap: 4px; border-radius: 8px; }
    .hero-badge span { font-size: 0.58rem; letter-spacing: 0; }
    .hero-badge i { font-size: 0.7rem; }
    .hero-badge::before { height: 12px; top: -12px; }
    .hero-badges-row::before { height: 18px; top: -18px; }
    .section-title { font-size: 1.55rem; }
    .hero .d-flex { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; justify-content: center; }
    .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; font-size: 1rem; }
    .service-card { padding: 22px 16px; }
    .review-form-wrap { padding: 22px 14px; }
    .circular-progress { width: 100px; height: 100px; }
    .circular-progress::before { width: 82px; height: 82px; }
    .progress-value { font-size: 1.1rem; }
}

/* ============================================================
   EXTRA 3D DEPTH EFFECTS
   ============================================================ */

/* Glowing section top borders */
#services::before,
#portfolio::before,
#testimonials::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.4;
}

/* 3D perspective tilt on service cards */
.service-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Glowing bottom line on navbar on scroll — handled in JS */
.navbar.scrolled {
    border-bottom: 1px solid rgba(0,212,170,0.2);
    box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(0,212,170,0.1);
}

/* 3D floating card shadow depth */
.portfolio-card, .review-card, .stat-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Section background alternation adds depth */
#about    { background: var(--dark-3); }
#services { background: var(--dark);   }
#skills   { background: var(--dark-3); }
#portfolio{ background: var(--dark);   }
#experience { background: var(--dark-3); }
#testimonials { background: var(--dark); }
#contact  { background: var(--dark-3); }

/* Glowing hero right-side ambient orb */
.hero::after {
    content: '';
    position: absolute;
    top: 30%; right: 5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(240,192,64,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Deeper hero background stars layer */
.hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 85%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.15) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}
