/* ================================================
   SAHIL SHARMA PORTFOLIO — Enhanced v4.0
   ================================================ */

/* === CSS VARIABLES === */
:root {
    --bg: #000000;
    --bg2: #060910;
    --bg3: #0d1117;
    --card-bg: rgba(13, 17, 23, 0.85);
    --cyan: #00f2ff;
    --cyan-dim: rgba(0, 242, 255, 0.15);
    --cyan-glow: rgba(0, 242, 255, 0.4);
    --purple: #7c3aed;
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --border: rgba(56, 139, 253, 0.2);
    --font-main: 'Rajdhani', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

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


/* ==========================================
   1. CUSTOM CURSOR
   ========================================== */
body.custom-cursor-active,
body.custom-cursor-active * { cursor: none !important; }

.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    display: none;
}
body.custom-cursor-active .cursor-dot,
body.custom-cursor-active .cursor-outline { display: block; }

.cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
.cursor-outline {
    width: 35px; height: 35px;
    border: 1px solid var(--cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.08s;
}


/* ==========================================
   2. SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.fade-up    { transform: translateY(40px); }
.reveal.fade-left  { transform: translateX(-50px); }
.reveal.fade-right { transform: translateX(50px); }
.reveal.fade-in    { transform: scale(0.95); }

.reveal.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}


/* ==========================================
   3. NAVIGATION
   ========================================== */
.nav-wrapper {
    position: fixed; top: 20px;
    width: 100%; display: flex;
    justify-content: center;
    z-index: 1000; pointer-events: none;
}
.floating-nav {
    background: rgba(1, 4, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 30px; border-radius: 50px;
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 25px;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(0,242,255,0.05);
    transition: var(--transition);
}
.floating-nav.scrolled {
    background: rgba(1, 4, 9, 0.96);
    box-shadow: 0 8px 32px rgba(0,0,0,0.8), 0 0 30px rgba(0,242,255,0.1);
}

.logo {
    font-family: var(--font-code); font-weight: 700; font-size: 1.1rem;
    color: white; white-space: nowrap; letter-spacing: 1px;
}
.blink { animation: blink 1s step-end infinite; color: var(--cyan); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav-links { display: flex; gap: 5px; }
.nav-links a {
    display: block; padding: 6px 12px;
    font-family: var(--font-code); font-weight: 600;
    font-size: 0.82rem; color: var(--text-muted);
    border-radius: 20px; transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
    background: var(--cyan-dim);
}

/* Hamburger */
.hamburger {
    display: none; padding: 5px; flex-direction: column;
    gap: 5px; background: none; border: none;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Dropdown */
.mobile-nav {
    display: none; position: fixed; top: 80px; left: 50%;
    transform: translateX(-50%); width: 90%; max-width: 400px;
    background: rgba(6, 9, 16, 0.98); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; z-index: 999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: slideDown 0.3s ease;
}
.mobile-nav.open { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.mobile-nav ul { display: flex; flex-direction: column; gap: 5px; }
.mobile-nav ul a {
    display: block; padding: 12px 16px;
    font-family: var(--font-code); font-size: 0.9rem;
    color: var(--text); border-radius: 8px; transition: var(--transition);
}
.mobile-nav ul a:hover { color: var(--cyan); background: var(--cyan-dim); }


/* ==========================================
   4. HERO SECTION
   ========================================== */
.section-home {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}

#universe-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
#star-canvas { width: 100%; height: 100%; }

.cyber-grid-floor {
    position: absolute; top: 60%; left: -50%;
    width: 200%; height: 100%;
    background-image:
        linear-gradient(rgba(0,242,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,242,255,0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 5s linear infinite;
    z-index: 1; pointer-events: none; opacity: 0.4;
    mask-image: linear-gradient(to bottom, transparent, black);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black);
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 50px; } }

.floating-code {
    position: absolute; font-family: var(--font-code);
    color: rgba(0,242,255,0.25); font-size: 0.75rem;
    pointer-events: none; animation: floatUp 12s linear infinite; z-index: 2;
}
.c1 { top: 15%; left: 8%; animation-delay: 0s; }
.c2 { top: 65%; left: 12%; animation-delay: 3s; }
.c3 { top: 25%; right: 8%; animation-delay: 6s; }
.c4 { bottom: 25%; right: 18%; animation-delay: 1s; }
.c5 { top: 50%; left: 5%; animation-delay: 8s; }
@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(-60px); opacity: 0; }
}

.hero-split {
    position: relative; z-index: 10;
    display: grid; grid-template-columns: 1.1fr 1fr;
    align-items: center; gap: 40px;
    padding-top: 100px; padding-bottom: 60px;
    min-height: 100vh;
}

/* System Badge */
.sys-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px; border-radius: 30px;
    border: 1px solid var(--cyan); color: var(--cyan);
    font-family: var(--font-code); font-size: 0.78rem;
    margin-bottom: 20px; background: rgba(0,242,255,0.05);
    letter-spacing: 1px;
}
.dot-cyan {
    width: 8px; height: 8px; background: var(--cyan);
    border-radius: 50%; box-shadow: 0 0 10px var(--cyan);
}
.dot-cyan.pulse { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px var(--cyan); }
    50% { box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan); }
}

/* Glitch Title */
h1.glitch {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800; color: white;
    line-height: 1; margin-bottom: 16px;
    letter-spacing: 3px; font-family: var(--font-main);
    position: relative;
}
h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}
h1.glitch::before {
    color: var(--cyan); clip: rect(0, 900px, 0, 0);
    animation: glitch-1 4s infinite linear alternate-reverse;
}
h1.glitch::after {
    color: #ff00ea; clip: rect(0, 900px, 0, 0);
    animation: glitch-2 4s infinite linear alternate-reverse;
}
@keyframes glitch-1 {
    0% { clip: rect(64px, 9999px, 62px, 0); transform: skew(0.44deg); }
    10% { clip: rect(30px, 9999px, 16px, 0); transform: skew(0.14deg); }
    20% { clip: rect(22px, 9999px, 12px, 0); transform: skew(0.41deg); }
    30% { clip: rect(0, 0, 0, 0); }
    80% { clip: rect(0, 0, 0, 0); }
    85% { clip: rect(45px, 9999px, 75px, 0); transform: skew(0.2deg); }
    90% { clip: rect(0, 0, 0, 0); }
    100% { clip: rect(0, 0, 0, 0); }
}
@keyframes glitch-2 {
    0% { clip: rect(0, 0, 0, 0); }
    70% { clip: rect(0, 0, 0, 0); }
    75% { clip: rect(8px, 9999px, 44px, 0); transform: skew(0.6deg); left: 2px; }
    80% { clip: rect(0, 0, 0, 0); }
    100% { clip: rect(0, 0, 0, 0); }
}

.role-wrapper {
    font-family: var(--font-code); color: var(--cyan);
    font-size: 1.2rem; margin-bottom: 20px;
}
.prompt { color: var(--text-muted); }

.bio {
    font-family: var(--font-body); font-size: 1.05rem;
    line-height: 1.7; color: var(--text-muted);
    margin-bottom: 32px; max-width: 500px;
}
.bio strong { color: var(--text); }

/* Hero Buttons */
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn {
    padding: 13px 28px; font-family: var(--font-code); font-weight: 700;
    text-decoration: none; border-radius: 6px;
    transition: var(--transition); font-size: 0.88rem;
    display: inline-flex; align-items: center; gap: 8px;
    position: relative; overflow: hidden;
}
.btn.primary {
    background: var(--cyan); color: #000;
    border: 1px solid var(--cyan);
}
.btn.primary:hover {
    background: transparent; color: var(--cyan);
    box-shadow: 0 0 25px var(--cyan-glow);
}
.btn.secondary { border: 1px solid #30363d; color: white; background: transparent; }
.btn.secondary:hover { border-color: var(--cyan); color: var(--cyan); }

/* Hero Socials */
.hero-socials { display: flex; gap: 14px; }
.social-icon {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid #30363d; display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: 1.1rem;
    transition: var(--transition);
}
.social-icon:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); transform: translateY(-3px); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    font-family: var(--font-code); font-size: 0.65rem;
    color: var(--text-muted); letter-spacing: 3px;
    animation: fadeInUp 2s ease 3s both;
}
.scroll-mouse {
    width: 22px; height: 36px; border: 2px solid var(--text-muted);
    border-radius: 11px; display: flex; justify-content: center;
    padding-top: 5px;
}
.scroll-wheel {
    width: 3px; height: 8px; background: var(--cyan);
    border-radius: 2px; animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }


/* ==========================================
   5. ATOMIC ORBITAL VISUAL
   ========================================== */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.atomic-wrapper {
    position: relative; width: 420px; height: 420px;
    display: flex; justify-content: center; align-items: center;
}
.atom-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(0,242,255,0.2);
}
.ring-1 { width: 100%; height: 100%; border-top-color: var(--cyan); animation: spin 8s linear infinite; }
.ring-2 { width: 80%; height: 80%; border-bottom-color: var(--purple); animation: spin 12s linear infinite reverse; }
.ring-3 { width: 60%; height: 60%; border-left-color: var(--cyan); animation: spin 6s linear infinite; opacity: 0.4; }

.profile-core {
    width: 240px; height: 240px; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--cyan);
    box-shadow: 0 0 60px rgba(0,242,255,0.3), 0 0 120px rgba(0,242,255,0.1);
    z-index: 5; animation: coreFloat 4s ease-in-out infinite;
    background: #000; position: relative;
}
.profile-core img { width: 100%; height: 100%; object-fit: cover; }

.orbit-track {
    position: absolute; width: 380px; height: 380px;
    border-radius: 50%; animation: spin 20s linear infinite; z-index: 4;
}
.tech-planet {
    position: absolute; width: 52px; height: 52px;
    background: var(--bg3); border: 1px solid var(--cyan);
    border-radius: 50%; display: flex; justify-content: center;
    align-items: center; color: var(--cyan); font-size: 22px;
    box-shadow: 0 0 15px rgba(0,242,255,0.4);
    animation: counterSpin 20s linear infinite;
    transition: var(--transition);
}
.tech-planet:hover { transform: scale(1.2); box-shadow: 0 0 30px var(--cyan); }
.p-1 { top: -26px; left: 50%; transform: translateX(-50%); }
.p-2 { bottom: -26px; left: 50%; transform: translateX(-50%); }
.p-3 { top: 50%; left: -26px; transform: translateY(-50%); }
.p-4 { top: 50%; right: -26px; transform: translateY(-50%); }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes counterSpin { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes coreFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 60px rgba(0,242,255,0.3); }
    50% { transform: translateY(-10px); box-shadow: 0 0 90px rgba(0,242,255,0.5); }
}
.float-anim { animation: coreFloat 3s ease-in-out infinite; }


/* ==========================================
   6. SECTION COMMON
   ========================================== */
section { padding: 100px 0; position: relative; overflow: hidden; }

.section-header {
    text-align: center; margin-bottom: 60px;
}
.section-label {
    display: inline-block; font-family: var(--font-code); font-size: 0.78rem;
    color: var(--cyan); letter-spacing: 3px; margin-bottom: 12px;
    text-transform: uppercase;
}
.section-title {
    font-family: var(--font-main); font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700; color: white; letter-spacing: 2px; margin-bottom: 12px;
}
.highlight { color: var(--cyan); }
.section-sub {
    font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto;
}

/* Scan Beam */
.scan-beam {
    position: absolute; top: 0; left: -10%;
    width: 5px; height: 100%;
    background: rgba(0,242,255,0.5); box-shadow: 0 0 40px var(--cyan);
    animation: scanBeam 8s linear infinite; opacity: 0.3; pointer-events: none;
}
@keyframes scanBeam { 0% { left: -5%; } 100% { left: 105%; } }


/* ==========================================
   7. SKILLS SECTION
   ========================================== */
.section-skills { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }

.skills-layout {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 50px; align-items: start;
}

.skill-group-title {
    font-family: var(--font-main); font-size: 1.1rem; color: var(--cyan);
    margin-bottom: 28px; display: flex; align-items: center; gap: 10px;
    font-weight: 600; letter-spacing: 1px;
}

/* Progress Bar Skills */
.skill-bars { padding: 30px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.skill-item { margin-bottom: 22px; }
.skill-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px; font-size: 0.9rem; color: var(--text);
    font-family: var(--font-body);
}
.skill-pct { font-family: var(--font-code); font-size: 0.8rem; color: var(--cyan); }
.skill-bar {
    height: 6px; background: rgba(255,255,255,0.06);
    border-radius: 10px; overflow: hidden;
    position: relative;
}
.skill-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--bar-color, var(--cyan)), color-mix(in srgb, var(--bar-color, var(--cyan)) 70%, white));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.skill-fill::after {
    content: '';
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 10px;
    background: var(--bar-color, var(--cyan));
    border-radius: 50%;
    box-shadow: 0 0 8px var(--bar-color, var(--cyan));
    opacity: 0;
    transition: opacity 0.3s ease 1.5s;
}
.skill-fill.animated::after { opacity: 1; }

/* Icon Grid */
.skill-icons { padding: 30px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.icon-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.icon-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 18px 8px;
    background: rgba(255,255,255,0.03); border: 1px solid #1c2333;
    border-radius: 10px; cursor: default;
    transition: var(--transition);
    font-family: var(--font-code); font-size: 0.72rem; color: var(--text-muted);
}
.icon-card i { font-size: 1.8rem; color: var(--text-muted); transition: var(--transition); }
.icon-card:hover { border-color: var(--cyan); background: var(--cyan-dim); transform: translateY(-4px); }
.icon-card:hover i { color: var(--cyan); }
.icon-card span { text-align: center; }


/* ==========================================
   8. PROJECTS SECTION
   ========================================== */
.section-projects { background: var(--bg2); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
}
.project-card:hover { border-color: var(--cyan); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,242,255,0.1); }

/* Project image area */
.project-image { position: relative; height: 200px; overflow: hidden; }
.project-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.proj-icon { font-size: 4rem; color: rgba(255,255,255,0.15); z-index: 1; }

/* Placeholder backgrounds */
.ci-bg    { background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%); }
.k8s-bg   { background: linear-gradient(135deg, #0a1628 0%, #0f2547 100%); }
.sec-bg   { background: linear-gradient(135deg, #1a0a0a 0%, #3d0f0f 100%); }
.cloud-bg { background: linear-gradient(135deg, #12100a 0%, #3d2b0a 100%); }
.nas-bg   { background: linear-gradient(135deg, #0a1a0a 0%, #0f3d1a 100%); }
.monitor-bg { background: linear-gradient(135deg, #12180a 0%, #2a3d0f 100%); }

/* Overlay on Hover */
.project-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 24px; text-align: center;
    opacity: 0; transition: var(--transition); z-index: 2;
}
.project-overlay p { color: var(--text); font-size: 0.88rem; line-height: 1.6; margin-bottom: 18px; }
.project-image:hover .project-overlay { opacity: 1; }
.project-image:hover .proj-icon { opacity: 0.05; }

.proj-links { display: flex; gap: 12px; }
.proj-btn {
    padding: 8px 18px; border-radius: 6px;
    border: 1px solid #30363d; color: white;
    font-family: var(--font-code); font-size: 0.8rem;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.proj-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.proj-btn-live { background: var(--cyan); color: #000; border-color: var(--cyan); }
.proj-btn-live:hover { background: transparent; color: var(--cyan); }

/* Project Info */
.project-info { padding: 22px; }
.project-info h3 { font-family: var(--font-main); font-size: 1.25rem; color: white; margin-bottom: 8px; font-weight: 700; }
.project-info p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span {
    padding: 4px 10px; font-family: var(--font-code); font-size: 0.72rem;
    border: 1px solid #1c2333; border-radius: 4px; color: var(--text-muted);
    background: rgba(255,255,255,0.03);
}
.project-card:hover .project-tags span { border-color: rgba(0,242,255,0.2); }


/* ==========================================
   9. EXPERIENCE / LOGS SECTION
   ========================================== */
.section-logs { background: var(--bg); padding-bottom: 120px; }

/* Ocean Wave Effect */
.ocean-stage {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 40%; pointer-events: none; z-index: 1; overflow: hidden;
}
.wave {
    position: absolute; bottom: 0; left: 0;
    width: 200%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%2300f2ff" fill-opacity="0.08"/></svg>');
    background-size: 50% 100px; background-repeat: repeat-x; background-position: bottom;
}
.wave1 { animation: waveMove 10s linear infinite; opacity: 0.2; height: 100px; z-index: 3; }
.wave2 { animation: waveMove 15s linear infinite reverse; opacity: 0.1; height: 130px; bottom: 10px; z-index: 2; }
@keyframes waveMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.boat-container {
    position: absolute; bottom: 80px; left: -10%;
    animation: boatSail 30s linear infinite, boatBob 3s ease-in-out infinite;
    z-index: 4; color: var(--cyan); font-size: 36px; opacity: 0.7;
    filter: drop-shadow(0 5px 10px rgba(0,242,255,0.4));
}
@keyframes boatBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes boatSail { 0% { left: -15%; } 100% { left: 115%; } }

/* Timeline */
.section-logs .container { position: relative; z-index: 10; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: '';  position: absolute; left: 20px; top: 0;
    bottom: 0; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
    opacity: 0.3;
}

.timeline-item {
    display: flex; gap: 30px; margin-bottom: 40px; align-items: flex-start;
}
.timeline-dot {
    width: 42px; height: 42px; flex-shrink: 0;
    border: 2px solid var(--cyan); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); font-size: 0.8rem;
    background: var(--bg); z-index: 1;
    box-shadow: 0 0 15px rgba(0,242,255,0.3);
}

.log-card {
    flex: 1; background: linear-gradient(145deg, rgba(22,27,34,0.9), rgba(13,17,23,0.98));
    border: 1px solid rgba(0,242,255,0.1); padding: 28px;
    border-radius: var(--radius); transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.log-card:hover { border-color: rgba(0,242,255,0.4); box-shadow: 0 0 30px rgba(0,242,255,0.1); transform: translateX(5px); }

.card-header { display: flex; justify-content: space-between; margin-bottom: 14px; align-items: center; flex-wrap: wrap; gap: 8px; }
.date { font-family: var(--font-code); color: var(--text-muted); font-size: 0.78rem; display: flex; align-items: center; gap: 6px; }
.tag {
    font-family: var(--font-code); font-size: 0.7rem; color: var(--cyan);
    border: 1px solid var(--cyan); padding: 3px 10px; border-radius: 4px;
    letter-spacing: 1px;
}
.log-card h3 { color: white; font-family: var(--font-main); font-size: 1.3rem; margin-bottom: 4px; font-weight: 700; }
.log-card h4 { color: var(--text-muted); margin-bottom: 18px; font-size: 0.9rem; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.card-body p {
    color: var(--text); margin-bottom: 8px; font-size: 0.88rem;
    display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.card-body p::before { content: '▸'; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }


/* ==========================================
   10. RESUME SECTION
   ========================================== */
.section-resume { background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }

.resume-card {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 60px; align-items: center;
    max-width: 1000px; margin: 0 auto;
    padding: 50px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Doc Preview */
.resume-preview { display: flex; justify-content: center; }
.resume-doc {
    width: 230px; background: white; border-radius: 8px;
    padding: 24px; position: relative; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,242,255,0.1);
    transform: rotate(-2deg) translateY(0);
    animation: docFloat 5s ease-in-out infinite;
}
@keyframes docFloat {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-8px); }
}

.doc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.doc-logo {
    width: 40px; height: 40px; border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 0.9rem;
}
.doc-header h3 { font-size: 0.75rem; color: #111; font-weight: 800; }
.doc-header p { font-size: 0.6rem; color: #888; }
.doc-line {
    height: 6px; background: #e0e0e0; border-radius: 3px;
    margin-bottom: 10px;
}
.doc-line.w-full { width: 100%; }
.doc-line.w-3q { width: 75%; }
.doc-line.w-half { width: 50%; }
.doc-spacer { height: 14px; }
.doc-watermark {
    position: absolute; bottom: 10px; right: 10px;
    font-size: 3rem; color: rgba(0,0,0,0.06);
}

/* Resume Info */
.resume-info h3 { font-family: var(--font-main); font-size: 1.8rem; color: white; margin-bottom: 14px; font-weight: 700; }
.resume-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.resume-highlights { margin-bottom: 30px; display: flex; flex-direction: column; gap: 10px; }
.resume-highlights li {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); font-size: 0.9rem;
}
.resume-highlights li i { color: var(--cyan); flex-shrink: 0; }

/* Download Button */
.btn-download {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 36px; background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: white; font-family: var(--font-code); font-weight: 700;
    font-size: 1rem; border-radius: 8px; position: relative;
    overflow: hidden; transition: var(--transition); letter-spacing: 1px;
    text-decoration: none; margin-bottom: 14px;
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,242,255,0.4); }
.btn-download i { font-size: 1.1rem; }
.btn-glow {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.file-note { font-family: var(--font-code); font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }


/* ==========================================
   11. CONTACT SECTION
   ========================================== */
.section-contact { background: var(--bg); }

.contact-layout {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 50px; align-items: start;
    max-width: 1100px; margin: 0 auto;
}

/* Contact Info Side */
.contact-info h3 {
    font-family: var(--font-main); font-size: 1.6rem;
    color: white; margin-bottom: 12px; font-weight: 700;
}
.contact-info > p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 30px; }

.info-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.info-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 10px;
    transition: var(--transition); text-decoration: none;
}
.info-item:hover { border-color: var(--cyan); background: var(--cyan-dim); }
.info-icon {
    width: 42px; height: 42px; border-radius: 8px;
    background: var(--cyan-dim); border: 1px solid var(--cyan);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); font-size: 1rem; flex-shrink: 0;
}
.info-label { display: block; font-family: var(--font-code); font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.info-value { display: block; font-size: 0.9rem; color: var(--text); }

/* Social Buttons */
.social-links h4 { font-family: var(--font-main); color: var(--text-muted); margin-bottom: 14px; font-size: 0.9rem; letter-spacing: 1px; }
.socials-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px;
    font-family: var(--font-code); font-size: 0.82rem; font-weight: 700;
    transition: var(--transition); border: 1px solid #30363d; color: var(--text);
}
.social-btn:hover { transform: translateY(-3px); }
.github-btn:hover { border-color: white; color: white; box-shadow: 0 5px 20px rgba(255,255,255,0.1); }
.linkedin-btn:hover { border-color: #0a66c2; color: #0a66c2; box-shadow: 0 5px 20px rgba(10,102,194,0.2); }
.twitter-btn:hover { border-color: #1DA1F2; color: #1DA1F2; box-shadow: 0 5px 20px rgba(29,161,242,0.2); }

/* Terminal Contact Form */
.contact-terminal {
    background: var(--bg3); border: 1px solid #21262d;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: pulseBorder 4s infinite;
}
@keyframes pulseBorder {
    0%, 100% { border-color: rgba(0,242,255,0.1); }
    50% { border-color: rgba(0,242,255,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,242,255,0.05); }
}

.terminal-header {
    background: #161b22; padding: 12px 18px;
    display: flex; align-items: center;
    border-bottom: 1px solid #21262d;
}
.btns { display: flex; gap: 8px; }
.btns span { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.title { flex: 1; text-align: center; font-family: var(--font-code); color: var(--text-muted); font-size: 0.78rem; }

.terminal-body { padding: 28px; }
.comment { font-family: var(--font-code); color: var(--text-muted); margin-bottom: 20px; font-size: 0.85rem; }

.input-line {
    display: flex; align-items: baseline; gap: 8px;
    border-bottom: 1px solid #21262d; margin-bottom: 12px;
    padding-bottom: 4px;
}
.textarea-line { align-items: flex-start; }
.user { font-family: var(--font-code); color: var(--cyan); font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; }

input, textarea {
    flex: 1; background: transparent; border: none;
    color: white; font-family: var(--font-code); font-size: 0.88rem;
    padding: 8px 0; outline: none; resize: none;
}
input::placeholder, textarea::placeholder { color: rgba(139,148,158,0.5); }

.term-btn {
    margin-top: 18px; background: #238636; color: white;
    border: none; padding: 12px 24px; border-radius: 6px;
    font-family: var(--font-code); font-size: 0.88rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px; letter-spacing: 1px;
}
.term-btn:hover { background: #2ea043; box-shadow: 0 0 20px rgba(46,160,67,0.4); transform: translateY(-2px); }

.form-success {
    display: none; margin-top: 14px;
    font-family: var(--font-code); font-size: 0.85rem; color: #2ea043;
}
.form-success.visible { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }


/* ==========================================
   12. FOOTER
   ========================================== */
.main-footer {
    background: var(--bg3); border-top: 1px solid var(--border);
    padding: 50px 0;
}
.footer-inner {
    display: flex; flex-direction: column;
    align-items: center; gap: 16px; text-align: center;
}
.footer-logo {
    font-family: var(--font-code); font-weight: 700; font-size: 1.2rem;
    color: white; letter-spacing: 2px;
}
.footer-logo span { color: var(--cyan); }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-code); }

.footer-socials { display: flex; gap: 16px; margin-top: 6px; }
.footer-socials a {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #30363d; display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: 1rem;
    transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); transform: translateY(-3px); }

.copyright {
    font-family: var(--font-code); font-size: 0.78rem; color: #484f58;
    margin-top: 8px;
}
.copyright code { color: var(--cyan); }


/* ==========================================
   13. RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1100px) {
    .skills-layout { grid-template-columns: 1fr; }
    .resume-card { grid-template-columns: 1fr; text-align: center; }
    .resume-preview { display: none; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; gap: 60px; padding-top: 120px; }
    .hero-text { order: 2; display: flex; flex-direction: column; align-items: center; }
    .hero-visual { order: 1; }
    .bio { text-align: left; }
    .hero-btns { justify-content: center; }
    .hero-socials { justify-content: center; }
    .atomic-wrapper { width: 320px; height: 320px; }
    .profile-core { width: 180px; height: 180px; }
    .orbit-track { width: 280px; height: 280px; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .timeline::before { left: 20px; }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .projects-grid { grid-template-columns: 1fr; }
    .socials-row { flex-direction: column; }
    .skills-layout { grid-template-columns: 1fr; }
    .icon-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
    .floating-nav { padding: 10px 18px; gap: 15px; }
    .logo { font-size: 0.9rem; }
    .atomic-wrapper { width: 260px; height: 260px; }
    .profile-core { width: 150px; height: 150px; }
    .orbit-track { width: 230px; height: 230px; }
    .icon-grid { grid-template-columns: repeat(3, 1fr); }
    .floating-code { display: none; }
    .log-card { padding: 20px; }
    .timeline-item { gap: 16px; }
}