/* ================================================================
   🌌 DIGITAL UNIVERSE PORTFOLIO — DESIGN SYSTEM & STYLES
   ================================================================ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
    /* Space palette */
    --bg-void:       #030014;
    --bg-nebula:     #0a0a2e;
    --bg-deep:       #050520;
    --accent-star:   #a855f7;
    --accent-nova:   #6366f1;
    --accent-comet:  #06b6d4;
    --accent-sun:    #f59e0b;
    --accent-rose:   #f43f5e;
    --text-light:    #f1f5f9;
    --text-muted:    #94a3b8;
    --text-dim:      #64748b;

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

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--accent-star), var(--accent-nova), var(--accent-comet));
    --gradient-glow: linear-gradient(135deg, rgba(168,85,247,.4), rgba(99,102,241,.4), rgba(6,182,212,.4));

    /* Typography */
    --font-heading:  'Outfit', sans-serif;
    --font-body:     'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

/* ── Utility Classes ─────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1);
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

/* ── Starfield Canvas ────────────────────────────────────────── */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Cursor Glow ─────────────────────────────────────────────── */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, rgba(99,102,241,0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

#cursor-glow.active {
    opacity: 1;
}

/* ── Navigation ──────────────────────────────────────────────── */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--transition-smooth), padding var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-nav.scrolled {
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.2);
}

.logo-img:hover {
    border-color: var(--accent-star);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-light);
    background: var(--glass-bg);
}

.nav-link.active {
    color: var(--text-light);
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-light);
    border-radius: 4px;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── HERO SECTION ────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 32px;
}

/* Floating Planets */
.hero-planets {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.planet {
    position: absolute;
    border-radius: 50%;
}

.planet-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 35% 35%, #7c3aed, #4c1d95);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.4), inset -10px -10px 20px rgba(0,0,0,0.3);
    top: 15%;
    right: 10%;
    animation: floatPlanet1 8s ease-in-out infinite;
}

.planet-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 35% 35%, #06b6d4, #0e7490);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.3), inset -5px -5px 10px rgba(0,0,0,0.3);
    bottom: 25%;
    left: 8%;
    animation: floatPlanet2 6s ease-in-out infinite;
}

.planet-3 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 35% 35%, #f59e0b, #d97706);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3), inset -4px -4px 8px rgba(0,0,0,0.3);
    top: 60%;
    right: 20%;
    animation: floatPlanet3 10s ease-in-out infinite;
}

/* Hero Content — Split Layout */
.hero-content.hero-split {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 32px;
}

.hero-text {
    text-align: left;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-comet);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-light);
}

/* ── HERO COSMIC PORTAL IMAGE FRAME ──────────────────────────── */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-portal {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer nebula glow behind the frame */
.portal-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(168, 85, 247, 0.15) 0%,
        rgba(99, 102, 241, 0.08) 40%,
        rgba(6, 182, 212, 0.04) 60%,
        transparent 75%
    );
    animation: portalGlowPulse 4s ease-in-out infinite;
    z-index: 0;
}

/* Animated orbit rings */
.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    z-index: 1;
}

.portal-ring-1 {
    inset: -10px;
    border-color: rgba(168, 85, 247, 0.25);
    border-style: dashed;
    animation: portalSpin 12s linear infinite;
}

.portal-ring-2 {
    inset: -25px;
    border-color: rgba(99, 102, 241, 0.15);
    border-style: dotted;
    border-width: 2px;
    animation: portalSpin 20s linear infinite reverse;
}

.portal-ring-3 {
    inset: -42px;
    border-left: 2px solid rgba(6, 182, 212, 0.2);
    border-right: 2px solid rgba(6, 182, 212, 0.2);
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    animation: portalSpin 8s linear infinite;
}

/* Orbiting dots */
.portal-dots {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.p-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-star);
    box-shadow: 0 0 12px var(--accent-star), 0 0 24px rgba(168, 85, 247, 0.3);
}

.p-dot-1 {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    animation: dotFloat 3s ease-in-out infinite;
}

.p-dot-2 {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-comet);
    box-shadow: 0 0 12px var(--accent-comet), 0 0 24px rgba(6, 182, 212, 0.3);
    width: 6px;
    height: 6px;
    animation: dotFloat 4s ease-in-out infinite 1s;
}

.p-dot-3 {
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-nova);
    box-shadow: 0 0 12px var(--accent-nova);
    width: 6px;
    height: 6px;
    animation: dotFloat 3.5s ease-in-out infinite 0.5s;
}

.p-dot-4 {
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-sun);
    box-shadow: 0 0 12px var(--accent-sun);
    width: 5px;
    height: 5px;
    animation: dotFloat 4.5s ease-in-out infinite 1.5s;
}

.hero-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 45% 55% 60% 40% / 45% 45% 55% 55%;
    overflow: hidden;
    z-index: 5;
    border: 3px solid rgba(168, 85, 247, 0.4);
    box-shadow:
        0 0 40px rgba(168, 85, 247, 0.2),
        0 0 80px rgba(99, 102, 241, 0.1),
        inset 0 0 40px rgba(0, 0, 0, 0.3);
    animation: blobMorph 8s ease-in-out infinite;
}

.hero-image-container img,
.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-nebula), #0f0f3d, var(--bg-deep));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.6;
}

.placeholder-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Corner accent lines */
.portal-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 3;
}

.portal-corner-tl {
    top: 15px;
    left: 15px;
    border-top: 2px solid var(--accent-comet);
    border-left: 2px solid var(--accent-comet);
}

.portal-corner-tr {
    top: 15px;
    right: 15px;
    border-top: 2px solid var(--accent-star);
    border-right: 2px solid var(--accent-star);
}

.portal-corner-bl {
    bottom: 15px;
    left: 15px;
    border-bottom: 2px solid var(--accent-star);
    border-left: 2px solid var(--accent-star);
}

.portal-corner-br {
    bottom: 15px;
    right: 15px;
    border-bottom: 2px solid var(--accent-comet);
    border-right: 2px solid var(--accent-comet);
}

.hero-typing {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-muted);
    min-height: 2.5rem;
}

.typing-prefix {
    color: var(--text-muted);
}

.typing-text {
    color: var(--accent-star);
    font-weight: 600;
}

.typing-cursor {
    color: var(--accent-star);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

/* Glow button pulse */
.glow-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: var(--gradient-main);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    filter: blur(12px);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-arrows span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--accent-star);
    border-bottom: 2px solid var(--accent-star);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.4;
}

.scroll-arrows span:nth-child(2) {
    animation-delay: 0.15s;
    opacity: 0.2;
}

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-comet);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: stretch;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%;
}

.about-image-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 100%;
    margin: 0 auto;
}

.about-image-container-rect {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.about-image-placeholder-rect {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-nebula), #0f0f3d, var(--bg-deep));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.about-placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-star);
    opacity: 0.7;
}

.about-image-placeholder-rect span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.about-profile-img-rect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.about-portal-glow {
    position: absolute;
    inset: -20px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 16px;
}

.stat-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-text {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn {
    margin-top: 8px;
}

/* ── SKILLS BENTO GRID ───────────────────────────────────────── */
.skills-bento-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.bento-box {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.bento-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    cursor: default;
}

.skill-chip i,
.skill-chip svg {
    width: 18px;
    height: 18px;
    color: var(--accent-star);
    transition: transform var(--transition-fast);
}

.skill-chip:hover i,
.skill-chip:hover svg {
    transform: scale(1.15);
}

.skill-chip:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

/* ── PROJECTS SECTION ────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.15);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-placeholder {
    transform: scale(1.1);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 20, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link-btn {
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.project-link-btn:hover {
    background: var(--accent-star);
    border-color: var(--accent-star);
}

.project-info {
    padding: 24px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-star);
    border: 1px solid rgba(168, 85, 247, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--accent-star);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-value {
    font-weight: 500;
    color: var(--text-light);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-smooth);
}

.social-link:hover {
    color: var(--accent-star);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

/* Contact Form */
.contact-form {
    padding: 40px;
    border-radius: 24px;
}

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-star);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: var(--text-dim);
    font-size: 1rem;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 14px;
    font-size: 0.75rem;
    color: var(--accent-star);
    background: var(--bg-void);
    padding: 0 8px;
    border-radius: 4px;
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

.form-group input:focus ~ .form-highlight,
.form-group textarea:focus ~ .form-highlight {
    width: 100%;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.05rem;
    justify-content: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 24px;
    margin-top: 20px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.form-success p {
    color: #10b981;
    font-weight: 500;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 32px 0;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.back-to-top {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

/* ── ANIMATIONS / KEYFRAMES ──────────────────────────────────── */
@keyframes portalGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.1); opacity: 1; }
}

@keyframes portalSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dotFloat {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, -10px); }
}

@keyframes blobMorph {
    0%, 100% { border-radius: 45% 55% 60% 40% / 45% 45% 55% 55%; }
    25%      { border-radius: 50% 50% 55% 45% / 48% 48% 58% 52%; }
    50%      { border-radius: 55% 45% 50% 50% / 52% 48% 52% 52%; }
    75%      { border-radius: 50% 50% 58% 42% / 48% 52% 50% 50%; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes floatPlanet1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatPlanet2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(20px) rotate(-5deg); }
}

@keyframes floatPlanet3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-15px) rotate(8deg); }
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
    50%      { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

@keyframes spinSlow {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── MICRO-ANIMATIONS ───────────────────────────────────────── */

/* Glowing shimmer on gradient text */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gradient-text {
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

/* Floating effect for about image */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.about-image-frame {
    animation: gentleFloat 5s ease-in-out infinite;
}

/* Subtle pulse glow on section tags */
@keyframes tagPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(6, 182, 212, 0.15); }
    50%      { box-shadow: 0 0 20px rgba(6, 182, 212, 0.35); }
}

.section-tag {
    animation: tagPulse 3s ease-in-out infinite;
}

/* Staggered card reveal delays */
.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.3s; }
.project-card:nth-child(5) { transition-delay: 0.4s; }
.project-card:nth-child(6) { transition-delay: 0.5s; }

/* Skill chip stagger animation */
.bento-box:nth-child(1) .skill-chip { transition-delay: 0.05s; }
.bento-box:nth-child(2) .skill-chip { transition-delay: 0.1s; }
.bento-box:nth-child(3) .skill-chip { transition-delay: 0.15s; }
.bento-box:nth-child(4) .skill-chip { transition-delay: 0.2s; }

/* Button shine sweep */
@keyframes btnShine {
    0%   { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: btnShine 4s ease-in-out infinite;
    pointer-events: none;
}

/* Contact item hover slide */
.contact-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-item:hover {
    transform: translateX(8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}

/* Social link bounce on hover */
.social-link:hover {
    animation: socialBounce 0.4s ease;
}

@keyframes socialBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.2); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1.05); }
}

/* Nav link underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Stat card count-up glow */
.stat-card {
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

@keyframes orbitSpin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── SCROLL REVEAL CLASSES ───────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-content.hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 60px;
    }

    .hero-text {
        text-align: center;
        order: 2; /* Move text below the image on smaller screens */
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-portal {
        order: 1;
        width: 300px;
        height: 300px;
    }

    .hero-image-container {
        width: 240px;
        height: 240px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .about-image-wrapper {
        height: auto;
    }

    .about-image-frame {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 9 / 16;
        height: auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(3, 0, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    /* Hero */
    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .planet-1 { width: 80px; height: 80px; }
    .planet-2 { width: 40px; height: 40px; }
    .planet-3 { width: 28px; height: 28px; }

    /* About */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* Skills Bento Grid */
    .skills-bento-grid {
        grid-template-columns: 1fr;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-form {
        padding: 28px 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Scroll indicator */
    .scroll-indicator {
        bottom: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-name {
        font-size: 2.4rem;
    }

    .hero-typing {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-image-frame {
        width: 100%;
        max-width: 220px;
        aspect-ratio: 9 / 16;
        height: auto;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ── COHESIVE VECTOR ICONS ───────────────────────────────────── */
.lucide {
    display: inline-block;
    stroke-width: 2px;
    vertical-align: middle;
}

.nav-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: text-bottom;
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: text-bottom;
}

.btn-icon-small {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.tag-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    vertical-align: text-bottom;
}

.greeting-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    color: var(--accent-star);
    animation: portalGlowPulse 2s ease-in-out infinite;
}

.bento-title-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: text-bottom;
    color: var(--accent-star);
}

.success-icon-lucide {
    width: 24px;
    height: 24px;
    color: #10b981; /* Emerald green */
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
