/* ============================================================
   IKHTHEIR JAMAN ONGKUR — ANIME SPACE PORTFOLIO
   2K Resolution Optimized · Anime Aesthetic · Space Theme
   ============================================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #03020a;
    --bg2: #070514;
    --bg3: #0d0a1e;
    --primary: #a855f7;
    --primary-dim: rgba(168, 85, 247, 0.15);
    --primary-glow: rgba(168, 85, 247, 0.6);
    --secondary: #06b6d4;
    --secondary-dim: rgba(6, 182, 212, 0.12);
    --accent: #f472b6;
    --accent-dim: rgba(244, 114, 182, 0.15);
    --gold: #fbbf24;
    --white: #ffffff;
    --text: #d4d0f0;
    --text-dim: #7b78a0;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(168, 85, 247, 0.08);

    /* Spacing scale for 2K */
    --nav-h: 80px;
    --section-pad: clamp(80px, 8vw, 140px);
    --container: min(1600px, 92vw);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    /* nav links land below the fixed bar */
    font-size: 16px;
    /* Subpixel font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Exo 2', 'Rajdhani', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    /* hidden by custom cursor on desktop, reset on mobile below */
}

/* ===== CANVAS ===== */
#starCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Isolate compositing layer for GPU acceleration */
    will-change: contents;
    contain: strict;
}

/* ===== CUSTOM CURSOR ===== */
#cursor-glow {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
    mix-blend-mode: screen;
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.12s ease;
}

body:hover #cursor-glow {
    opacity: 1;
}

[data-glow]:hover~#cursor-glow,
.btn-primary:hover~#cursor-glow {
    width: 20px;
    height: 20px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ===== NAV ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 80px);
    background: rgba(3, 2, 10, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s;
}

#navbar.scrolled {
    background: rgba(3, 2, 10, 0.85);
}

.nav-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

.accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: clamp(20px, 3vw, 48px);
    list-style: none;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--nav-h) + 60px) clamp(24px, 6vw, 120px) 60px;
    position: relative;
    z-index: 1;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 720px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.06);
    margin-bottom: 28px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.hero-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(40px, 6.5vw, 96px);
    font-weight: 900;
    line-height: 1.0;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 0 80px rgba(168, 85, 247, 0.3);
}

.name-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(15px, 1.4vw, 19px);
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 38px;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.55);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-dim);
    box-shadow: 0 0 24px var(--primary-glow);
    transform: translateY(-3px);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    flex: 0 0 auto;
    position: relative;
    width: clamp(280px, 28vw, 500px);
    height: clamp(280px, 28vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-ring-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)) border-box;
    animation: spinSlow 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-ring-mid {
    width: 88%;
    height: 88%;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.2);
    animation: spinSlow 15s linear infinite reverse;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.08), transparent 60%);
}

.profile-ring-inner {
    width: 86%;
    height: 86%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5), inset 0 0 40px rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-img-fallback {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-family: 'Orbitron', monospace;
    font-size: clamp(40px, 5vw, 80px);
    font-weight: 900;
    color: white;
    align-items: center;
    justify-content: center;
}

/* Orbits */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(168, 85, 247, 0.25);
    animation: spinSlow linear infinite;
    transition: animation-duration 0.6s;
}

.orbit-1 {
    width: 115%;
    height: 115%;
    animation-duration: 8s;
}

.orbit-2 {
    width: 135%;
    height: 135%;
    animation-duration: 14s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 160%;
    height: 160%;
    animation-duration: 22s;
}

/* Allow dragging anywhere in the hero visual — grab cursor */
.hero-visual {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.hero-visual:active {
    cursor: grabbing;
}

/* Subtle "Spin me" tooltip on first hover — fades after interaction */
.hero-visual::after {
    content: '↺ Spin me';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(168, 85, 247, 0.75);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 4px 14px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.hero-visual:hover::after {
    opacity: 1;
}

.hero-visual:active::after {
    opacity: 0;
}

/* Orbit rings glow transition */
.orbit {
    transition: border-color 0.4s ease;
}

.orbit-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 12px var(--primary);
}

.orbit-dot-2 {
    background: var(--secondary);
    box-shadow: 0 0 12px var(--secondary);
    width: 7px;
    height: 7px;
}

.orbit-dot-3 {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    width: 6px;
    height: 6px;
}

/* ===== SOLAR SYSTEM REVERSE (triggered by backward drag) ===== */
/* Flip every ring/orbit that was forward → reverse, and vice-versa */
.solar-reverse .profile-ring-outer {
    animation-direction: reverse;
}

.solar-reverse .profile-ring-mid {
    animation-direction: normal;
    /* was reverse, now forward */
}

.solar-reverse .orbit-1 {
    animation-direction: reverse;
}

.solar-reverse .orbit-2 {
    animation-direction: normal;
    /* was reverse, now forward */
}

.solar-reverse .orbit-3 {
    animation-direction: reverse;
}

/* Cursor hint on the profile image */
.profile-img-wrapper {
    cursor: inherit;
}

.profile-img-wrapper:active {
    cursor: inherit;
}

/* ===== ANIMATE IN ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-pad) clamp(24px, 6vw, 120px);
    max-width: 100%;
    scroll-margin-top: var(--nav-h);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: clamp(40px, 5vw, 80px);
}

.section-tag {
    font-family: 'Rajdhani', monospace;
    font-size: clamp(12px, 1vw, 15px);
    color: var(--primary);
    letter-spacing: 3px;
    font-weight: 700;
    white-space: nowrap;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(24px, 3.5vw, 52px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    white-space: nowrap;
    position: relative;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-dim), transparent);
}

.section-sub {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text-dim);
    margin-bottom: clamp(40px, 5vw, 70px);
    max-width: 640px;
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GLOW HOVER ===== */
[data-glow] {
    transition: box-shadow 0.4s ease, text-shadow 0.4s ease, transform 0.3s ease;
}

[data-glow]:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), 0 0 60px rgba(168, 85, 247, 0.15);
    transform: translateY(-2px) scale(1.01);
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
    max-width: var(--container);
    margin: 0 auto;
}

.about-lead {
    font-size: clamp(18px, 1.6vw, 24px);
    color: var(--white);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-text p {
    font-size: clamp(14px, 1.1vw, 17px);
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.85;
}

.about-stats {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px 28px;
    text-align: center;
    backdrop-filter: blur(12px);
    cursor: default;
}

.stat-num {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.stat-label {
    font-size: clamp(10px, 0.9vw, 13px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
}

.about-card-inner {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: clamp(24px, 3vw, 40px);
    backdrop-filter: blur(20px);
    cursor: default;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.info-value {
    font-size: clamp(13px, 1vw, 15px);
    color: var(--text);
}

.info-link {
    font-size: clamp(13px, 1vw, 15px);
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: clamp(20px, 2.5vw, 36px);
    max-width: var(--container);
    margin: 0 auto;
}

.skill-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: clamp(28px, 3vw, 44px);
    backdrop-filter: blur(12px);
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, background 0.4s;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.06);
}

.skill-icon {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 16px;
    display: block;
}

.skill-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.skill-card p {
    font-size: clamp(13px, 0.95vw, 15px);
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-fill {
    height: 100%;
    width: var(--fill);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    animation: fillBar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left;
}

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.skill-level {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
    gap: clamp(20px, 2.5vw, 36px);
    max-width: var(--container);
    margin: 0 auto;
}

.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: clamp(28px, 3vw, 44px);
    backdrop-filter: blur(12px);
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.4s, background 0.4s, transform 0.35s;
}

.project-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.06);
}

.project-card-special {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.04);
}

.project-card-coming {
    border-color: rgba(6, 182, 212, 0.2);
    opacity: 0.75;
}

.project-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-emoji {
    font-size: clamp(28px, 3vw, 40px);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ptag {
    font-family: 'Rajdhani', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
}

.project-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(15px, 1.4vw, 20px);
    font-weight: 700;
    color: var(--white);
}

.project-card p {
    font-size: clamp(13px, 0.95vw, 15px);
    color: var(--text-dim);
    line-height: 1.7;
    flex: 1;
}

.project-footer {
    margin-top: 8px;
}

.project-status {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.project-status.live {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-status.wip {
    background: rgba(6, 182, 212, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
    gap: clamp(16px, 2vw, 28px);
    max-width: var(--container);
    margin: 0 auto 60px;
}

.contact-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.4s, background 0.4s, transform 0.35s;
}

.contact-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.07);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    text-decoration: none;
    color: inherit;
}

.contact-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-dim);
    border: 1px solid rgba(168, 85, 247, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.contact-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.contact-icon-wrap.whatsapp {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.contact-icon-wrap.phone {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--gold);
}

.contact-icon-wrap.linkedin {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.25);
    color: var(--secondary);
}

.contact-card:hover .contact-icon-wrap {
    transform: scale(1.1);
}

.contact-info {
    flex: 1;
}

.contact-type {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.contact-value {
    font-size: clamp(13px, 1.1vw, 16px);
    color: var(--white);
    font-weight: 500;
}

.contact-arrow {
    color: var(--primary);
    font-size: 20px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s;
}

.contact-card:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
}

.contact-cta {
    text-align: center;
}

.contact-cta-text {
    font-size: clamp(16px, 1.5vw, 22px);
    color: var(--text-dim);
    font-style: italic;
}

/* ===== FOOTER ===== */
#footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: clamp(40px, 5vw, 80px) clamp(24px, 6vw, 120px);
    background: rgba(3, 2, 10, 0.6);
    backdrop-filter: blur(20px);
}

.footer-inner {
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: clamp(14px, 1.1vw, 17px);
    color: var(--text-dim);
    margin-bottom: 8px;
}

.footer-copy {
    font-size: clamp(12px, 0.9vw, 14px);
    color: rgba(123, 120, 160, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    #hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: calc(var(--nav-h) + 40px);
    }

    .hero-cta {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card-inner {
        position: static;
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-btn {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(3, 2, 10, 0.98);
        padding: 24px;
        border-bottom: 1px solid var(--glass-border);
        gap: 16px;
    }

    .hero-visual {
        width: 220px;
        height: 220px;
    }
}

/* ===== SHOOTING STAR ANIMATION ===== */
.shooting-star {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 500;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.8));
}

/* ===== SECTION BACKGROUND GLOWS ===== */
#about::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

#skills::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

#projects::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== GLOW TEXT HOVER ===== */
.section-title {
    cursor: default;
}

.section-title:hover {
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.7), 0 0 60px rgba(168, 85, 247, 0.4);
}

/* ===== SERVICE INTRO ===== */
.service-intro {
    max-width: var(--container);
    margin: 0 auto clamp(40px, 5vw, 70px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: clamp(28px, 3vw, 48px);
    backdrop-filter: blur(12px);
}

.service-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--primary-dim);
    margin-bottom: 20px;
}

.service-intro-text {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--text);
    line-height: 1.85;
}

.service-intro-text strong {
    color: var(--white);
}

/* ===== SERVICE HIGHLIGHTS ROW ===== */
.service-highlight-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(16px, 2vw, 28px);
    max-width: var(--container);
    margin: 0 auto clamp(40px, 5vw, 70px);
}

.service-highlight {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    cursor: default;
    transition: border-color 0.4s, background 0.4s;
}

.service-highlight:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: var(--primary-dim);
}

.sh-icon {
    font-size: clamp(24px, 2.5vw, 34px);
    flex-shrink: 0;
}

.service-highlight strong {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: clamp(13px, 1.1vw, 16px);
    color: var(--white);
    margin-bottom: 6px;
}

.service-highlight span {
    font-size: clamp(12px, 0.95vw, 14px);
    color: var(--text-dim);
    line-height: 1.6;
}

/* ===== PRICING SECTION ===== */
.pricing-heading {
    font-family: 'Orbitron', monospace;
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: clamp(28px, 3vw, 50px);
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: clamp(20px, 2.5vw, 32px);
    max-width: var(--container);
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(28px, 3vw, 44px);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: default;
    position: relative;
    transition: border-color 0.4s, background 0.4s, transform 0.35s, box-shadow 0.4s;
}

.pricing-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.06);
    transform: translateY(-4px);
}

.pricing-card-featured {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.07);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.pricing-card-featured:hover {
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 20px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-icon {
    font-size: clamp(28px, 3vw, 42px);
}

.pricing-tier {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(11px, 0.9vw, 13px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.pricing-price {
    font-family: 'Orbitron', monospace;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.price-currency {
    font-size: 0.5em;
    color: var(--primary);
    vertical-align: super;
}

.pricing-freq {
    font-size: clamp(11px, 0.9vw, 13px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
    margin-top: -8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-features li {
    font-size: clamp(13px, 0.95vw, 15px);
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
}

.pf-check {
    color: #4ade80;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pf-plus {
    color: var(--secondary);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.pricing-note {
    text-align: center;
    font-size: clamp(13px, 1vw, 15px);
    color: var(--text-dim);
    margin-top: clamp(28px, 3vw, 48px);
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.inline-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.inline-link:hover {
    color: var(--white);
}

/* ===== WEB DESIGN SECTION ===== */
.webdesign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr));
    gap: clamp(24px, 3vw, 48px);
    max-width: var(--container);
    margin: 0 auto;
    align-items: start;
}

.webdesign-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    cursor: default;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.35s;
}

.webdesign-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
}

.webdesign-card-featured {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.webdesign-card-featured:hover {
    box-shadow: 0 0 70px rgba(168, 85, 247, 0.3);
}

.wd-header {
    padding: clamp(24px, 2.5vw, 40px);
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.wd-header-starter {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(6, 182, 212, 0.06) 100%);
}

.wd-header-pro {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(244, 114, 182, 0.1) 100%);
}

.wd-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
}

.wd-emoji {
    font-size: clamp(32px, 3.5vw, 52px);
}

.wd-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wd-tier {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.wd-price {
    font-family: 'Orbitron', monospace;
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.wd-freq {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
}

.wd-body {
    padding: clamp(24px, 2.5vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wd-body h3 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(15px, 1.4vw, 20px);
    font-weight: 700;
    color: var(--white);
}

.wd-body p {
    font-size: clamp(13px, 1vw, 15px);
    color: var(--text-dim);
    line-height: 1.75;
}



.wd-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    display: block;
    margin-bottom: 10px;
}

.wd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wtag {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid rgba(244, 114, 182, 0.3);
    background: rgba(244, 114, 182, 0.06);
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.wd-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wd-features li {
    font-size: clamp(13px, 0.95vw, 15px);
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.55;
}

/* ===== WEB DESIGN GUARANTEE ===== */
.wd-guarantee {
    max-width: var(--container);
    margin: clamp(40px, 5vw, 70px) auto 0;
}

.wd-guarantee-inner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: clamp(28px, 3vw, 52px);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    flex-wrap: wrap;
    cursor: default;
}

.wdg-icon {
    font-size: clamp(36px, 4vw, 60px);
    flex-shrink: 0;
}

.wd-guarantee-inner>div {
    flex: 1;
    min-width: 220px;
}

.wd-guarantee-inner strong {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: clamp(16px, 1.5vw, 22px);
    color: var(--white);
    margin-bottom: 10px;
}

.wd-guarantee-inner p {
    font-size: clamp(13px, 1vw, 16px);
    color: var(--text-dim);
    line-height: 1.75;
}

.wd-guarantee-inner .btn-primary {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ===== SECTION GLOWS FOR NEW SECTIONS ===== */
#cybersec::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -20%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

#webdesign::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -15%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== RESPONSIVE SERVICES ===== */
@media (max-width: 768px) {
    .wd-guarantee-inner {
        flex-direction: column;
        text-align: center;
    }

    .wd-guarantee-inner .btn-primary {
        width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .webdesign-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CYBERSECURITY PROJECT CARD ===== */
.project-card-cyber {
    border-color: rgba(168, 85, 247, 0.35);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
}

.project-card-cyber:hover {
    border-color: rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(6, 182, 212, 0.07) 100%);
}

.project-card-cyber strong {
    color: var(--primary);
}

.project-cyber-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--secondary);
    text-decoration: none;
    margin-left: 12px;
    transition: color 0.2s;
}

.project-cyber-link:hover {
    color: var(--white);
}

.project-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== WIZARD CHATBOT ===== */

/* FAB Button */
#wizard-fab {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 8000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5);
    animation: wizardPulse 3s infinite;
    overflow: visible;
}

#wizard-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.6);
    animation: none;
}

.wizard-fab-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    display: block;
}

.wizard-fab-ping {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid var(--bg);
    animation: pingPulse 1.8s ease-in-out infinite;
}

@keyframes pingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes wizardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(168, 85, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

.wizard-hidden {
    display: none !important;
}

.wizard-visible {
    display: block !important;
}

/* Chat Panel */
.wizard-chat {
    position: fixed;
    bottom: 104px;
    left: 28px;
    z-index: 8001;
    width: min(380px, calc(100vw - 40px));
    background: rgba(7, 5, 20, 0.92);
    backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.2), 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-chat-hidden {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
}

.wizard-chat-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.wizard-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}

.wizard-header-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wizard-name {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.wizard-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #4ade80;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wizard-online-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: pingPulse 1.8s infinite;
}

.wizard-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.wizard-close:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--white);
}

.wizard-close svg {
    width: 16px;
    height: 16px;
}

/* Chat Body */
.wizard-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.wizard-body::-webkit-scrollbar {
    width: 4px;
}

.wizard-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Messages */
.wizard-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.wizard-message-bot {
    flex-direction: row;
}

.wizard-message-user {
    flex-direction: row-reverse;
}

.wm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(168, 85, 247, 0.5);
    flex-shrink: 0;
}

.wm-bubble {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
    max-width: 85%;
}

.wm-bubble p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 4px;
}

.wm-bubble p:last-child {
    margin-bottom: 0;
}

.wm-bubble strong {
    color: var(--primary);
}

.wm-bubble-user {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px 16px 4px 16px;
}

/* Option Buttons */
.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 42px;
}

.wizard-opt-btn {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}

.wizard-opt-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.6);
    color: var(--white);
    transform: translateX(4px);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

/* Chat Footer — Input Row */
.wizard-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    background: rgba(7, 5, 20, 0.6);
}

.wizard-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-input {
    flex: 1;
    background: rgba(168, 85, 247, 0.07);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}

.wizard-input::placeholder {
    color: rgba(160, 150, 200, 0.45);
}

.wizard-input:focus {
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.11);
}

.wizard-send-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wizard-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

.wizard-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Typing indicator */
.wizard-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px 16px 16px 4px;
    width: fit-content;
}

.wizard-typing span {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

.wizard-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.wizard-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: clamp(20px, 2.5vw, 36px);
    max-width: var(--container);
    margin: 0 auto;
}

.achievements-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(48px, 6vw, 90px) 20px;
    color: var(--text-dim);
}

.ae-icon {
    font-size: clamp(40px, 5vw, 64px);
    display: block;
    margin-bottom: 16px;
}

.achievements-empty p {
    font-size: clamp(14px, 1.1vw, 17px);
    font-style: italic;
}

.achievement-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: clamp(24px, 2.5vw, 40px);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: default;
    position: relative;
    transition: border-color 0.4s, background 0.4s, transform 0.3s;
}

.achievement-card:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.04);
    transform: translateY(-4px);
}

.achievement-card-icon {
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1;
}

.achievement-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 700;
    color: var(--white);
}

.achievement-card p {
    font-size: clamp(13px, 0.95vw, 15px);
    color: var(--text-dim);
    line-height: 1.7;
    flex: 1;
}

.achievement-date {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold, #fbbf24);
    opacity: 0.8;
}

.dynamic-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ===== MUSIC TOGGLE BUTTON ===== */
.music-toggle {
    position: fixed;
    bottom: 100px;
    /* above wizard FAB */
    right: 28px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(8, 6, 26, 0.75);
    backdrop-filter: blur(16px);
    color: var(--white, #f0eeff);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}

.music-toggle:hover {
    border-color: rgba(168, 85, 247, 0.7);
    background: rgba(168, 85, 247, 0.15);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 2.4s ease-in-out infinite;
    border-color: rgba(168, 85, 247, 0.6);
}

.music-toggle.muted {
    opacity: 0.45;
    animation: none;
}

@keyframes musicPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.08), 0 4px 20px rgba(168, 85, 247, 0.35);
    }
}

/* ===== SECTION TAP LIFT EFFECT ===== */
.section {
    transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.5s ease;
    transform-origin: center top;
}

.section-lifted {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 24px 60px rgba(168, 85, 247, 0.14),
        0 8px 24px rgba(0, 0, 0, 0.35) !important;
    position: relative;
    z-index: 10;
}

/* ===== CERTIFICATES & BADGES SECTION ===== */
.certs-header {
    text-align: center;
    margin: clamp(48px, 6vw, 80px) auto 40px;
    max-width: 600px;
}

.certs-tag {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.06);
    margin-bottom: 18px;
}

.certs-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.certs-sub {
    font-size: clamp(13px, 1.1vw, 16px);
    color: var(--text-dim);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(16px, 2vw, 28px);
    max-width: var(--container);
    margin: 0 auto;
}

/* Base cert card */
.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.cert-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.cert-card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    background: rgba(168, 85, 247, 0.09);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.cert-card:hover::before {
    opacity: 1;
}

/* Gold variant — Cisco/Credly */
.cert-card-gold {
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.04);
}

.cert-card-gold:hover {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.09);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.18);
}

/* Blue variant — Coursera / LinkedIn */
.cert-card-blue {
    border-color: rgba(6, 182, 212, 0.22);
    background: rgba(6, 182, 212, 0.04);
}

.cert-card-blue:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.09);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.18);
}

/* Green variant — Forage */
.cert-card-green {
    border-color: rgba(52, 211, 153, 0.22);
    background: rgba(52, 211, 153, 0.04);
}

.cert-card-green:hover {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.09);
    box-shadow: 0 12px 40px rgba(52, 211, 153, 0.18);
}

.cert-icon {
    font-size: clamp(28px, 3vw, 36px);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
    position: relative;
    z-index: 1;
}

.cert-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.cert-issuer {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.cert-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-id {
    display: block;
    font-size: 11px;
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    opacity: 0.8;
}

.cert-link-icon {
    font-size: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s, transform 0.3s;
}

.cert-card:hover .cert-link-icon {
    color: var(--primary);
    transform: translate(2px, -2px);
}

/* ===== CERTIFICATE GROUP HEADERS ===== */
.cert-group-header {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--container);
    margin: clamp(40px, 5vw, 64px) auto 24px;
}

.cert-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cert-group-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

.cert-group-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
}

.cert-group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.cert-group-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.3), transparent);
}

/* Red variant — Red Team Leaders */
.cert-card-red {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.04);
}

.cert-card-red:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.09);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.18);
}

/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 600px) {

    /* Restore default cursor on mobile (no custom cursor) */
    body {
        cursor: auto;
    }

    /* Chatbot: 30% smaller than original (380 × 0.70 = 266px) */
    .wizard-chat {
        width: min(266px, calc(100vw - 20px)) !important;
        bottom: 82px;
        left: 10px;
        border-radius: 14px !important;
    }

    /* Compact header */
    .wizard-header {
        padding: 10px 12px !important;
    }

    .wizard-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .wizard-name {
        font-size: 11px !important;
    }

    .wizard-status {
        font-size: 9px !important;
    }

    /* Smaller message body */
    .wizard-body {
        max-height: 28vh !important;
        padding: 12px !important;
        gap: 10px !important;
    }

    .wm-avatar {
        width: 24px !important;
        height: 24px !important;
    }

    .wm-bubble {
        padding: 8px 10px !important;
    }

    .wm-bubble p {
        font-size: 12px !important;
    }

    /* Smaller option buttons */
    .wizard-opt-btn {
        font-size: 12px !important;
        padding: 7px 10px !important;
    }

    /* Compact footer */
    .wizard-footer {
        padding: 6px 8px !important;
    }

    .wizard-email-row {
        padding: 4px 8px !important;
    }

    .wizard-email-input {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }

    .wizard-input {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }

    .wizard-send-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
    }

    /* FAB also slightly smaller */
    #wizard-fab {
        width: 52px !important;
        height: 52px !important;
    }

    .wizard-fab-img {
        width: 52px !important;
        height: 52px !important;
    }

    /* Music button higher on mobile to clear chatbot FAB */
    .music-toggle {
        bottom: 104px;
    }
}

/* ===== CHATBOT EMAIL FIELD ===== */
.wizard-email-row {
    padding: 6px 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.wizard-email-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    outline: none;
    transition: border-color 0.25s;
    width: 100%;
}

.wizard-email-input::placeholder {
    color: var(--text-dim);
    opacity: 0.7;
}

.wizard-email-input:focus {
    border-color: rgba(168, 85, 247, 0.5);
}