:root {
    --bg-dark: #050505;
    --bg-card: rgba(18, 18, 25, 0.4);
    --border-color: rgba(0, 255, 204, 0.15);
    --primary: #00ffcc;     /* Neon Cyan */
    --primary-glow: rgba(0, 255, 204, 0.3);
    --secondary: #b388ff;   /* Neon Purple */
    --text-main: #f0f4f8;
    --text-muted: #9fa6b2;
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', system-ui, sans-serif;
    --z-canvas: -1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1.125rem; /* Base font size increased */
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

.font-mono {
    font-family: var(--font-mono);
}

.mt-4 {
    margin-top: 2rem;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-canvas);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Cards */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 8px 32px 0 var(--primary-glow);
    transform: translateY(-2px);
}

.card-glass-nav {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

/* Typography */
h1, h2, h3 { font-weight: 700; color: #fff; }
.highlight { color: var(--primary); }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.nav-brand .prompt { color: var(--primary); }
.nav-brand .typing-text { border-right: 2px solid var(--primary); animation: blinkCursor 1s infinite alternate; }

@keyframes blinkCursor {
    from { border-right-color: var(--primary); }
    to { border-right-color: transparent; }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-item:hover { color: var(--primary); }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1) inset;
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--text-main);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(0, 255, 204, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary-glow);
    margin-bottom: 2rem;
}

.ping-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.hero-title-sub {
    font-size: 2.2rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* Server Rack CSS Graphic */
.hero-visual {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.profile-photo-card {
    width: 300px;
    overflow: hidden;
    padding: 0.6rem;
    background: linear-gradient(180deg, rgba(22, 22, 30, 0.88), rgba(8, 8, 12, 0.92));
}

.profile-photo-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.18);
}

.profile-photo-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    filter: saturate(0.92) contrast(1.03);
}

.profile-photo-meta {
    margin-top: 0.65rem;
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.server-rack {
    width: 320px;
    background: #0f0f15;
    border: 2px solid #2a2a35;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(255,255,255,0.02);
}

.rack-unit {
    position: relative;
    height: 70px;
    background: #181822;
    border: 1px solid #333344;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.rack-unit::after {
    content: '';
    position: absolute;
    left: -10px; right: -10px;
    top: 50%; transform: translateY(-50%);
    height: 2px; background: #222; z-index: -1;
}

.unit-label {
    font-family: var(--font-mono);
    color: #555;
    font-size: 0.7rem;
    position: absolute;
    top: 4px;
    left: 8px;
}

.rack-unit .lights span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: #333;
}

.rack-unit[data-status="active"] .l1 { background: var(--primary); box-shadow: 0 0 5px var(--primary); }
.rack-unit[data-status="active"] .l2 { background: var(--primary); box-shadow: 0 0 5px var(--primary); animation: blink 1.5s infinite; }
.rack-unit[data-status="processing"] .l1 { background: var(--secondary); box-shadow: 0 0 5px var(--secondary); }
.rack-unit[data-status="processing"] .l2 { background: var(--secondary); box-shadow: 0 0 5px var(--secondary); animation: blink 0.2s infinite; }

.ports {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.ports span {
    width: 16px;
    height: 16px;
    background: #0a0a0a;
    border: 1px solid #444;
    border-radius: 2px;
}

.ports.animated-fast span:nth-child(even) { animation: portActivity 0.3s infinite alternate; }
.ports.animated-fast span:nth-child(odd) { animation: portActivity 0.5s infinite alternate; }

.ports.animated span:nth-child(2) { animation: portActivity 0.8s infinite alternate; }
.ports.animated span:nth-child(4) { animation: portActivity 1.2s infinite alternate; }

.ports.animated-burst span:nth-child(n) { animation: portActivity 0.2s infinite alternate; }
.ports.animated-burst span:nth-child(3) { animation-delay: 0.1s; }

@keyframes portActivity {
    0% { background: var(--primary); box-shadow: 0 0 4px var(--primary); }
    100% { background: #0a0a0a; box-shadow: none; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* About Grid & Terminal */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text {
    padding: 2.5rem;
}
.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.chips span {
    padding: 0.4rem 1rem;
    background: rgba(179, 136, 255, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(179, 136, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.terminal-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.terminal-header {
    background: #222;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.terminal-header .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title {
    margin-left: 1rem; color: #888; font-size: 0.8rem; font-family: var(--font-sans);
}
.terminal-body {
    padding: 1.5rem;
    color: #e2e8f0;
    font-size: 0.85rem;
}
.terminal-body p { margin-bottom: 0.5rem; }
.terminal-body .prompt { color: var(--primary); }
.blink { animation: blink 1s infinite steps(1); color: #fff; }

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 2.5rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-content {
    padding: 2rem;
}

.timeline-content .date {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.timeline-content .company {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.tech-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tech-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.tech-list li::before {
    content: ">_";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    top: 3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tags span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 204, 0.05);
    color: var(--primary);
    border-radius: 4px;
    border: 1px solid var(--primary-glow);
}

/* Skills Grid */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card, .project-card {
    padding: 2.5rem;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid var(--primary-glow);
    border-radius: 12px;
    color: var(--primary);
}

.skill-card h3, .project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skill-card p, .project-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.project-tags {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Footer & Certs */
.footer {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding: 4rem 2rem;
    text-align: center;
}

.footer h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.certifications p {
    color: var(--secondary);
    margin: 0.5rem 0;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 1.25rem;
    }

    .navbar {
        padding: 1rem 1.25rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        min-height: auto;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .status-badge {
        margin: 0 auto 2rem;
    }

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

    .section {
        padding: 4.5rem 0;
    }

    .section-title {
        font-size: 1.95rem;
        line-height: 1.25;
        flex-wrap: wrap;
    }

    .section-title::after {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
        line-height: 1.65;
    }

    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.9rem 1rem;
    }

    .nav-brand {
        font-size: 1.15rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 6.8rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.55rem;
    }

    .hero-title-sub {
        font-size: 1.45rem;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        text-align: center;
        font-size: 0.92rem;
        padding: 0.8rem 1rem;
    }

    .hero-visual {
        width: 100%;
    }

    .profile-photo-card {
        width: min(88%, 300px);
    }

    .server-rack {
        width: min(100%, 340px);
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.65rem;
        gap: 0.5rem;
    }

    .about-text,
    .timeline-content,
    .skill-card,
    .project-card,
    .footer {
        padding: 1.25rem;
    }

    .about-text p,
    .tech-list li,
    .skill-card p,
    .project-card p {
        font-size: 1rem;
    }

    .terminal-body {
        font-size: 0.75rem;
        padding: 1rem;
    }

    .timeline {
        margin-left: 0.25rem;
        padding-left: 1.3rem;
    }

    .timeline-dot {
        left: -1.85rem;
    }

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

@media (max-width: 420px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title-sub {
        font-size: 1.25rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

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

    .chips span,
    .skill-tags span {
        font-size: 0.72rem;
    }
}