/* ================================
   CSS Variables & Root
   ================================ */
:root {
    --bg-deep: #060918;
    --bg-primary: #0a0e1a;
    --bg-secondary: #0d1225;
    --bg-card: rgba(13, 18, 40, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #e8ecf4;
    --text-secondary: #8892a8;
    --text-muted: #4a526a;
    --accent: #ff6b35;
    --accent-light: #ff8c5e;
    --accent-dark: #e05520;
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-dim: rgba(255, 107, 53, 0.15);
    --gradient-main: linear-gradient(135deg, #ff6b35, #ff8c5e, #ffad42);
    --gradient-cool: linear-gradient(135deg, #00d4ff, #7c5cfc);
    --gradient-hero: linear-gradient(135deg, #ff6b35 0%, #00d4ff 100%);
    --glow-accent: rgba(255, 107, 53, 0.35);
    --glow-cyan: rgba(0, 212, 255, 0.25);
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(255, 107, 53, 0.2);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s 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;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-deep);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================================
   Cursor Glow
   ================================ */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

/* ================================
   Scroll Progress Bar
   ================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-main);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

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

/* ================================
   Glassmorphism Card
   ================================ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    background: var(--bg-glass-hover);
}

/* ================================
   Navbar
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 9, 24, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket { color: var(--accent); font-weight: 400; }
.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-dot { color: var(--cyan); }

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

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================
   Hero Section — Split Layout
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 40%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(124, 92, 252, 0.04) 0%, transparent 60%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) scale(1); }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Content — Left */
.hero-content {
    position: relative;
    z-index: 3;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--glow-accent);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 8px var(--glow-accent); }
    50% { box-shadow: 0 0 20px var(--glow-accent), 0 0 40px var(--glow-accent); }
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-typing {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2rem;
}

.typing-text { color: var(--cyan); font-weight: 600; }
.typing-cursor { animation: blink 0.7s step-end infinite; color: var(--accent); font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

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

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-glow {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 25px var(--glow-accent);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--glow-accent);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-3px);
}

.btn-full { width: 100%; justify-content: center; }

/* Hero Metrics */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.metric { text-align: center; }

.metric-num {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-plus { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

.metric-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.metric-divider { width: 1px; height: 48px; background: var(--border); }

/* ================================
   Hero 3D Scene — Right
   ================================ */
.hero-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.scene-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    perspective: 900px;
}

/* Orbit Rings */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.orbit-1 {
    inset: 30px;
    border-color: rgba(255, 107, 53, 0.12);
    animation: spinOrbit 14s linear infinite;
}

.orbit-2 {
    inset: 0;
    border-color: rgba(0, 212, 255, 0.08);
    animation: spinOrbit 22s linear infinite reverse;
    border-style: dashed;
}

.orbit-3 {
    inset: -20px;
    border-color: rgba(124, 92, 252, 0.06);
    animation: spinOrbit 30s linear infinite;
    border-style: dotted;
}

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

/* Floating Tech Badges */
.float-badge {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.badge-1 {
    top: 15%;
    right: 5%;
    color: #61DAFB;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 20%;
    left: 2%;
    color: #68a063;
    animation: floatBadge 5s ease-in-out infinite 1s;
}

.badge-3 {
    top: 8%;
    left: 15%;
    color: #3776ab;
    animation: floatBadge 4.5s ease-in-out infinite 0.5s;
}

.badge-4 {
    bottom: 10%;
    right: 10%;
    color: #47A248;
    animation: floatBadge 3.8s ease-in-out infinite 1.5s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(3deg); }
    75% { transform: translateY(8px) rotate(-3deg); }
}

/* ================================
   3D Cube
   ================================ */
.cube-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
    perspective: 800px;
    z-index: 4;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cube-face.front {
    background: linear-gradient(135deg, rgba(247, 223, 30, 0.12), rgba(247, 223, 30, 0.03));
    color: #f7df1e;
    transform: translateZ(70px);
}

.cube-face.back {
    background: linear-gradient(135deg, rgba(228, 77, 38, 0.12), rgba(228, 77, 38, 0.03));
    color: #e44d26;
    transform: rotateY(180deg) translateZ(70px);
}

.cube-face.right {
    background: linear-gradient(135deg, rgba(38, 77, 228, 0.12), rgba(38, 77, 228, 0.03));
    color: #264de4;
    transform: rotateY(90deg) translateZ(70px);
}

.cube-face.left {
    background: linear-gradient(135deg, rgba(104, 160, 99, 0.12), rgba(104, 160, 99, 0.03));
    color: #68a063;
    transform: rotateY(-90deg) translateZ(70px);
}

.cube-face.top {
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.12), rgba(97, 218, 251, 0.03));
    color: #61DAFB;
    transform: rotateX(90deg) translateZ(70px);
}

.cube-face.bottom {
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.12), rgba(55, 118, 171, 0.03));
    color: #3776ab;
    transform: rotateX(-90deg) translateZ(70px);
}

@keyframes rotateCube {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    25% { transform: rotateX(15deg) rotateY(90deg); }
    50% { transform: rotateX(-10deg) rotateY(180deg); }
    75% { transform: rotateX(20deg) rotateY(270deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* Glow Core */
.glow-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, rgba(0, 212, 255, 0.08) 40%, transparent 70%);
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
    animation: fadeInUp 1s 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-accent);
    border-radius: 14px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-hint span {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================================
   Section Common
   ================================ */
.section {
    padding: 110px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section-bg-gradient {
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.section-bg-gradient.reverse {
    left: auto;
    right: -200px;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    margin: 0 auto;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.photo-glow {
    position: absolute;
    inset: -12px;
    border-radius: var(--radius-xl);
    background: var(--gradient-main);
    opacity: 0.12;
    z-index: 0;
    filter: blur(8px);
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
    border: 2px solid var(--border);
}

.exp-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--gradient-main);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    z-index: 2;
    box-shadow: 0 8px 30px var(--glow-accent);
}

.exp-num { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.exp-label { font-size: 0.82rem; font-weight: 500; opacity: 0.9; }

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--border-accent);
    background: var(--accent-dim);
}

.info-card i { font-size: 1.15rem; color: var(--accent); }

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value { font-size: 0.92rem; font-weight: 600; }
.status-open { color: #00d68f; }

/* ================================
   Education Timeline Section
   ================================ */
.timeline-section { background: var(--bg-secondary); }

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--cyan), var(--accent));
    border-radius: 2px;
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 12px var(--glow-accent), 0 0 24px var(--glow-accent);
    z-index: 2;
}

.timeline-card {
    padding: 28px 30px;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: var(--transition);
}

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

.timeline-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-card h3 i {
    color: var(--accent);
    font-size: 1rem;
}

.timeline-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

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

.timeline-tags span {
    padding: 4px 12px;
    background: var(--cyan-dim);
    border-radius: 4px;
    font-size: 0.76rem;
    color: var(--cyan);
    font-weight: 500;
}

/* ================================
   Skills Section
   ================================ */
.skills-section { background: var(--bg-primary); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 20px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ring-color, var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.skill-card:hover::before { transform: scaleX(1); }

.skill-ring {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 14px;
}

.skill-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 6;
}

.ring-fill {
    fill: none;
    stroke: var(--ring-color, var(--accent));
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.5s var(--ease);
}

.skill-icon-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ring-color, var(--accent));
}

.skill-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.skill-pct { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ================================
   Projects Section
   ================================ */
.projects-section { background: var(--bg-primary); }

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 28px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px var(--glow-accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.project-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.project-card.hidden { display: none; }

.project-visual {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--proj-accent, #444), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.project-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 24, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.proj-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
    transform: translateY(16px);
}

.project-card:hover .proj-link { transform: translateY(0); }

.proj-link:hover {
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: 0 4px 20px var(--glow-accent);
}

.project-body { padding: 24px; }

.project-body h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }

.project-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

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

.project-tags span {
    padding: 4px 12px;
    background: var(--cyan-dim);
    border-radius: 4px;
    font-size: 0.76rem;
    color: var(--cyan);
    font-weight: 500;
}

/* ================================
   Services Section
   ================================ */
.services-section { background: var(--bg-secondary); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-main);
    opacity: 0.04;
    border-radius: 0 0 100% 0;
    transition: var(--transition-slow);
}

.service-card:hover::after { width: 180px; height: 180px; opacity: 0.07; }

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px var(--glow-accent);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon-wrap { transform: scale(1.08) rotate(-5deg); }

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.service-tags span {
    padding: 4px 14px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--accent-light);
    font-weight: 500;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.contact-info > p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 28px; }

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-method { display: flex; align-items: center; gap: 14px; }

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-method:hover .method-icon {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

.method-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-value { font-weight: 600; font-size: 0.92rem; }

.social-links { display: flex; gap: 12px; }

.social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 4px 20px var(--glow-accent);
}

/* Contact Form */
.contact-form-wrap { padding: 36px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.08);
}

.form-field textarea { resize: vertical; min-height: 120px; }

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}

.footer-content { text-align: center; margin-bottom: 24px; }

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.footer-tagline { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 20px; }

.footer-socials { display: flex; justify-content: center; gap: 12px; }

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-socials a:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ================================
   Scroll Reveal Animations
   ================================ */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-scroll-reveal="left"] { transform: translateX(-50px); }
[data-scroll-reveal="right"] { transform: translateX(50px); }
[data-scroll-reveal].revealed { opacity: 1; transform: translate(0, 0); }

/* ================================
   Responsive Design
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-tag { justify-content: center; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-cta { justify-content: center; }
    .hero-metrics { justify-content: center; }

    /* 3D Cube — visible but scaled down & centered */
    .hero-3d {
        order: -1;
        margin-bottom: 20px;
    }
    .scene-wrapper {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }
    .cube-container {
        width: 110px;
        height: 110px;
    }
    .cube-face {
        width: 110px;
        height: 110px;
        font-size: 2.4rem;
    }
    .cube-face.front  { transform: translateZ(55px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(55px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(55px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(55px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(55px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(55px); }

    .float-badge {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .glow-core { width: 160px; height: 160px; }
    .orbit-3 { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .photo-frame { max-width: 340px; margin: 0 auto; }
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(6, 9, 24, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: var(--transition-slow);
        border-right: 1px solid var(--border);
        z-index: 1000;
    }
    .nav-links.active { left: 0; }
    .nav-link { font-size: 1.15rem; }
    .menu-toggle { display: flex; }

    .scroll-hint { display: none; }
    .hero-name { letter-spacing: -0.5px; }

    /* 3D Scene — smaller on phones */
    .scene-wrapper {
        width: 280px;
        height: 280px;
    }
    .cube-container {
        width: 95px;
        height: 95px;
    }
    .cube-face {
        width: 95px;
        height: 95px;
        font-size: 2rem;
        border-radius: var(--radius-sm);
    }
    .cube-face.front  { transform: translateZ(47.5px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(47.5px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(47.5px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(47.5px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(47.5px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(47.5px); }

    .float-badge {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    .glow-core { width: 130px; height: 130px; }
    .orbit-2, .orbit-3 { display: none; }
    .orbit-1 { inset: 20px; }
    .hero-3d { margin-bottom: 10px; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .skill-card { padding: 22px 14px; }

    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

    .timeline { padding-left: 30px; }
    .timeline::before { left: 10px; }
    .timeline-dot { left: -26px; width: 12px; height: 12px; }
    .timeline-card { padding: 22px 20px; }

    .hero-metrics {
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px;
    }
    .metric-divider { display: none; }
    .metric {
        flex: 1;
        min-width: 80px;
        padding: 10px 8px;
        background: var(--bg-glass);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }
    .metric-num { font-size: 1.4rem; }
    .metric-plus { font-size: 1rem; }
    .metric-label { font-size: 0.7rem; }

    .info-cards { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .cursor-glow { display: none; }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .projects-filter { gap: 8px; }
    .filter-btn { padding: 8px 20px; font-size: 0.85rem; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    /* Even smaller cube for tiny screens */
    .scene-wrapper {
        width: 240px;
        height: 240px;
    }
    .cube-container {
        width: 80px;
        height: 80px;
    }
    .cube-face {
        width: 80px;
        height: 80px;
        font-size: 1.6rem;
    }
    .cube-face.front  { transform: translateZ(40px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(40px); }
    .cube-face.right  { transform: rotateY(90deg) translateZ(40px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(40px); }
    .cube-face.top    { transform: rotateX(90deg) translateZ(40px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(40px); }

    .float-badge {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        border-radius: 7px;
    }
    .badge-1 { top: 18%; right: 8%; }
    .badge-2 { bottom: 22%; left: 5%; }
    .badge-3 { top: 10%; left: 12%; }
    .badge-4 { bottom: 12%; right: 12%; }
    .glow-core { width: 100px; height: 100px; }
}