/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0b1120; /* Softer Dark Slate */
    --bg-secondary: #0f172a;
    --surface-color: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --accent-cyan: #14b8a6; /* Calm Teal */
    --accent-cyan-dim: rgba(20, 184, 166, 0.15);
    --accent-blue: #38bdf8; /* Soft Sky Blue */
    --text-primary: #f8fafc;
    --text-secondary: #a0aec0;
    --text-tertiary: #718096;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --bento-radius: 20px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background (Soft Natural Minimalism) */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.8;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(20, 184, 166, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20, 184, 166, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at top center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top center, black 10%, transparent 70%);
}

/* Data Stream Particles Overlay */
.data-stream {
    display: none; /* Disabled for cleaner look */
}

/* Natural Element: Glass Spheres */
.glass-sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.03), rgba(20, 184, 166, 0.03), transparent 70%);
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    border: 1px solid rgba(255,255,255,0.01);
    box-shadow: inset 0 0 40px rgba(20, 184, 166, 0.02),
                0 20px 40px rgba(0,0,0,0.3);
    animation: float 30s infinite ease-in-out;
}

.sphere-1 { width: 450px; height: 450px; top: -150px; right: -100px; animation-duration: 35s; }
.sphere-2 { width: 350px; height: 350px; bottom: 5%; left: -100px; animation-duration: 32s; animation-delay: -5s; }
.sphere-3 { width: 150px; height: 150px; top: 40%; right: 25%; animation-duration: 28s; animation-delay: -10s; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.02), transparent 70%); }

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

/* Engineering Alignment Markers */
.marker {
    position: fixed;
    width: 20px;
    height: 20px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
}
.marker::before, .marker::after {
    content: '';
    position: absolute;
    background-color: var(--text-tertiary);
}
.marker::before { width: 10px; height: 1px; top: 0; }
.marker::after { width: 1px; height: 10px; left: 0; }

.marker-tl { top: 30px; left: 30px; }
.marker-tr { top: 30px; right: 30px; transform: scaleX(-1); }
.marker-bl { bottom: 30px; left: 30px; transform: scaleY(-1); }
.marker-br { bottom: 30px; right: 30px; transform: scale(-1, -1); }

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.cyan-text { color: var(--accent-cyan); }

.nav-links {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 30px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 10px var(--accent-cyan); }
    50% { opacity: 0.4; box-shadow: 0 0 2px var(--accent-cyan); }
    100% { opacity: 1; box-shadow: 0 0 10px var(--accent-cyan); }
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    padding-bottom: 100px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .top-right {
    position: absolute;
    top: 40px;
    right: 0;
    text-align: right;
}

#user-ip-display {
    color: var(--accent-cyan);
    margin-top: 5px;
    font-size: 0.65rem;
}

/* Interactive Terminal Component */
.interactive-terminal-container {
    background: rgba(5, 10, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 600px;
    margin-bottom: 25px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(0, 255, 102, 0.05);
    overflow: hidden;
}

.terminal-header-bar {
    background: rgba(20, 25, 35, 0.9);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.term-dots {
    display: flex;
    gap: 8px;
}

.term-dots .btn {
    width: 12px; height: 12px; border-radius: 50%;
}
.term-dots .close { background: #ff5f56; }
.term-dots .min { background: #ffbd2e; }
.term-dots .max { background: #27c93f; }

.terminal-header-bar .title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.interactive-terminal {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    min-height: 180px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#terminal-output {
    white-space: pre-wrap;
    line-height: 1.6;
    margin-bottom: 10px;
}

#terminal-output .system { color: var(--text-secondary); }
#terminal-output .success { color: var(--accent-cyan); }
#terminal-output .cmd { color: #fff; }

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-input-line .prompt {
    color: var(--accent-cyan);
    margin-right: 10px;
    white-space: nowrap;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.hero-title {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 15px;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 0.9em;
    background-color: var(--accent-cyan);
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: blink 1s step-end infinite;
}

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

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 300;
}

/* Project Showcase Layout */
.projects-container {
    margin-top: 60px;
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.project-showcase-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 21, 26, 0.7) 0%, rgba(10, 10, 12, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--bento-radius);
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.project-showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1), 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0, 240, 255, 0.1);
}

.project-showcase-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 350px;
}

@media (min-width: 769px) {
    .project-showcase-inner.reverse-layout .project-info {
        order: 2;
        border-right: none;
        border-left: 1px solid rgba(255,255,255,0.05);
    }
    .project-showcase-inner.reverse-layout .project-visual {
        order: 1;
    }
}

.project-info {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tech-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.btn-link:hover {
    color: var(--accent-cyan);
    gap: 15px;
    border-color: var(--accent-cyan);
}

.project-visual {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(30, 32, 38, 0.4), transparent);
}

/* Specific Visual Mockups */
.terminal-mockup {
    width: 100%;
    max-width: 350px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.term-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}
.term-header .btn {
    width: 12px; height: 12px; border-radius: 50%;
}
.term-header .close { background: #ff5f56; }
.term-header .min { background: #ffbd2e; }
.term-header .max { background: #27c93f; }
.term-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #c9d1d9;
    line-height: 1.8;
}
.term-body .anim-text { opacity: 0; animation: fadeIn 0s forwards; }
.term-body .delay-1 { animation-delay: 0.7s; }
.term-body .delay-2 { animation-delay: 1.4s; }
.term-body .success { color: #4ade80; }

@keyframes fadeIn { to { opacity: 1; } }

.engine-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}
.wireframe-grid {
    width: 180px; height: 180px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    box-shadow: inset 0 0 50px rgba(0,240,255,0.1);
}
.float-anim {
    width: 70px; height: 70px;
    background: linear-gradient(45deg, rgba(0,240,255,0.1), rgba(0,240,255,0.4));
    border: 1px solid var(--accent-cyan);
    animation: rotateCube 15s infinite linear;
    transform-style: preserve-3d;
}
.float-anim .face {
    position: absolute; width: 70px; height: 70px;
    border: 1px solid var(--accent-cyan);
}
.float-anim .front  { transform: translateZ(35px); }
.float-anim .back   { transform: rotateY(180deg) translateZ(35px); }
.float-anim .left   { transform: rotateY(-90deg) translateZ(35px); }
.float-anim .right  { transform: rotateY(90deg) translateZ(35px); }
.float-anim .top    { transform: rotateX(90deg) translateZ(35px); }
.float-anim .bottom { transform: rotateX(-90deg) translateZ(35px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.dashboard-mockup {
    width: 100%;
    max-width: 350px;
    height: 200px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    gap: 12px;
    justify-content: center;
}
.dash-chart .bar {
    width: 25px;
    background: linear-gradient(to top, rgba(0,240,255,0.1), var(--accent-cyan));
    border-radius: 4px 4px 0 0;
    display: inline-block;
    margin: 0 5px;
}
.h-40 { height: 40%; }
.h-60 { height: 60%; }
.h-80 { height: 80%; }
.h-90 { height: 90%; }
.h-100 { height: 100%; }

.game-mockup {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 200px;
    background: #050510;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.spaceship {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid var(--accent-cyan);
}
.laser {
    position: absolute;
    width: 4px; height: 20px;
    background: #ff00ff;
    border-radius: 2px;
    box-shadow: 0 0 10px #ff00ff;
    bottom: 70px;
    animation: blast 1s infinite;
}
.l1 { left: calc(50% - 15px); }
.l2 { left: calc(50% + 11px); }

@keyframes blast {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-150px); opacity: 0; }
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.lang-btn .dim {
    color: var(--text-tertiary);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.primary-btn {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.3);
}

.primary-btn:hover {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mission Control Skills Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mission-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 21, 26, 0.7) 0%, rgba(10, 10, 12, 0.9) 100%); /* Premium Charcoal Glass */
    border: 1px solid var(--border-color);
    border-radius: var(--bento-radius);
    padding: 25px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
    cursor: default;
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1), 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Let the card glow behave the same but under elements */
.mission-card .card-glow {
    z-index: 1;
}

.card-bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}

.coord {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.15);
    top: 10px; right: 10px;
}
.coord.bottom-right {
    top: auto; bottom: 10px;
}

.mission-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.mission-title {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.mission-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}

.badge.integrity {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.badge.version {
    color: var(--text-secondary);
}

.mission-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.code-snippet {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #c9d1d9;
    overflow-x: auto;
}

.code-snippet .keyword { color: #ff7b72; }
.code-snippet .string { color: #a5d6ff; }

.radar-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar .fill {
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hover-tip-container {
    position: relative;
}

.skill-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: default;
    transition: all 0.3s;
}

.skill-tag.active-glow {
    color: #ffd700; /* Muted Gold */
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.hover-tip-container:hover .skill-tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.hover-tip-container:hover .skill-tag.active-glow {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.tool-tip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1a1a1a;
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hover-tip-container:hover .tool-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Contact Section */
.contact-wrapper {
    position: relative;
    overflow: hidden;
}

.contact-inner {
    padding: 0;
    position: relative;
    z-index: 2;
}

/* Timeline / Education Section */
.timeline-container {
    margin-top: 60px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

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

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-cyan);
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-cyan-dim);
}

.timeline-content {
    background: linear-gradient(145deg, rgba(20, 21, 26, 0.7) 0%, rgba(10, 10, 12, 0.9) 100%);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--bento-radius);
    position: relative;
    overflow: hidden;
}

.timeline-content.border-accent { border-color: rgba(0, 255, 102, 0.3); }
.timeline-content.border-blue { border-color: rgba(0, 240, 255, 0.3); }

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.timeline-date {
    color: var(--text-secondary);
}

.timeline-category {
    color: var(--accent-blue);
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.timeline-role {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.cert-verify {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.verify-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.cert-id {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Floating label form groups */
.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(160, 174, 192, 0.5);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.07), 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.submit-btn {
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 16px 32px;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 255, 102, 0.1)) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    color: var(--accent-cyan) !important;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(0, 255, 102, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.2), 0 0 0 1px rgba(0, 240, 255, 0.4) !important;
}

/* Contact Grid */
.contact-section { margin-top: 80px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* Contact form right grid setup */

/* Social Cards — stacked bento layout */
.social-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 28px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(145deg, rgba(22, 24, 32, 0.75) 0%, rgba(12, 13, 18, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    letter-spacing: 0.5px;
}

/* Glow dot indicator on social cards */
.social-card::before {
    content: '';
    position: absolute;
    right: 20px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all 0.3s;
}

.social-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.social-card:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.social-card svg {
    flex-shrink: 0;
    transition: all 0.35s;
    opacity: 0.7;
}

.social-card:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* E-Mail card */
#social-email {
    border-color: rgba(0, 240, 255, 0.12);
}
#social-email:hover {
    border-color: rgba(0, 240, 255, 0.5);
    color: var(--accent-blue);
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.07), rgba(12, 13, 18, 0.95));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(0, 240, 255, 0.1);
}
#social-email:hover::before { background: var(--accent-blue); box-shadow: 0 0 6px var(--accent-blue); }
#social-email:hover svg { filter: drop-shadow(0 0 8px var(--accent-blue)); color: var(--accent-blue); }

/* GitHub card */
#social-github {
    border-color: rgba(255, 255, 255, 0.07);
}
#social-github:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(12, 13, 18, 0.95));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#social-github:hover::before { background: #fff; box-shadow: 0 0 6px #fff; }
#social-github:hover svg { filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)); }

/* LinkedIn card */
#social-linkedin {
    border-color: rgba(0, 119, 181, 0.15);
}
#social-linkedin:hover {
    border-color: rgba(0, 119, 181, 0.6);
    color: #0ea5e9;
    background: linear-gradient(145deg, rgba(0, 119, 181, 0.1), rgba(12, 13, 18, 0.95));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 119, 181, 0.2), inset 0 1px 0 rgba(0, 119, 181, 0.1);
}
#social-linkedin:hover::before { background: #0ea5e9; box-shadow: 0 0 6px #0ea5e9; }
#social-linkedin:hover svg { filter: drop-shadow(0 0 8px #0ea5e9); color: #0ea5e9; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

/* Responsive */
@media (max-width: 1024px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1.typing-container { font-size: 2.2rem; }
    .hero-title { font-size: 1.1rem; }
    .nav-links { display: none; }
    .mission-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .action-btn { justify-content: center; }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Security Details (Project Cards) */
.sec-details {
    margin-top: 15px;
    margin-bottom: 25px;
    background: rgba(20, 25, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
}

.sec-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

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

.sec-detail-item svg {
    color: var(--accent-cyan);
    min-width: 14px;
}

.sec-label {
    color: var(--text-secondary);
}

.sec-val {
    color: #ff5f56;
}

.sec-link {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 240, 255, 0.3);
    text-underline-offset: 4px;
}

.sec-link:hover {
    color: #fff;
    text-decoration-color: var(--accent-blue);
}

/* Elegant Hover for Headings */
h2[data-key]:hover, .project-title:hover {
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--accent-cyan-dim);
    transition: text-shadow 0.3s;
}

/* Cyber-Scanner Animation for Cards (Subtle version) */
.bento-card, .mission-card, .project-showcase-card {
    position: relative;
    overflow: hidden;
}

.bento-card::after, .mission-card::after, .project-showcase-card::after {
    content: '';
    position: absolute;
    top: -150%;
    left: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02) 90%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 5;
    pointer-events: none;
    transition: top 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.bento-card:hover::after, .mission-card:hover::after, .project-showcase-card:hover::after {
    top: 100%;
    opacity: 1;
    transition: top 3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

/* Hacker Mode Styles */
body.hacker-mode {
    --bg-color: #000;
    --bg-secondary: #0a0000;
    --surface-color: rgba(20, 0, 0, 0.6);
    --accent-cyan: #ff003c; /* Red */
    --accent-cyan-dim: rgba(255, 0, 60, 0.15);
    --accent-blue: #ff003c;
    color: #ff003c;
}

body.hacker-mode .grid-lines,
body.hacker-mode .glass-sphere {
    display: none;
}

body.hacker-mode .ambient-background {
    background-color: #000;
    background-image: 
        linear-gradient(rgba(255, 0, 60, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 60, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: matrix-pulse 5s infinite alternate;
}

@keyframes matrix-pulse {
    0% { filter: brightness(0.8); }
    100% { filter: brightness(1.2); }
}

body.hacker-mode .terminal-header-bar .title {
    color: #ff003c;
}

body.hacker-mode .status-badge {
    background: rgba(255, 0, 60, 0.2);
    border-color: #ff003c;
    color: #ff003c;
}

body.hacker-mode .status-dot {
    background-color: #ff003c;
    box-shadow: 0 0 10px #ff003c;
    animation: flash 0.5s infinite alternate;
}

@keyframes flash {
    from { opacity: 1; }
    to { opacity: 0; }
}

body.hacker-mode .bento-card, 
body.hacker-mode .mission-card, 
body.hacker-mode .project-showcase-card {
    border-color: rgba(255, 0, 60, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.1);
}

body.hacker-mode #terminal-output .system { color: #ff003c; }
body.hacker-mode .terminal-input-line .prompt { color: #ff003c; }
body.hacker-mode * {
    text-shadow: 0 0 2px rgba(255, 0, 60, 0.3);
}

body.hacker-mode .hacker-overlay {
    position: fixed;
    top: 0; bottom: 0; left: 0; right: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.8;
}
