/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Premium Recruiter-Friendly Light Theme */

    --bg-dark: #f8fafc;
    --bg-panel: rgba(255, 255, 255, 0.72);

    --neon-blue: #2563eb;
    --neon-purple: #7c3aed;

    --text-primary: #0f172a;
    --text-secondary: #475569;

    --border-color: rgba(37, 99, 235, 0.12);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing & Utilities */
    --section-pad: 100px 20px;
    --glass-blur: blur(12px);
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
    transform: translateY(-5px);
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.5);
}

/* Buttons */
.neon-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    cursor: pointer;
}

.neon-btn:hover {
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.neon-btn.outline {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.neon-btn.outline:hover {
    background: rgba(124, 58, 237, 0.08);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 100;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    background: rgba(255, 255, 255, 0.75);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Groups nav-links + resume button together */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
}

.nav-links li a:hover {
    color: var(--neon-blue);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-blue);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.resume-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Hamburger Menu Button - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--neon-blue);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.nav-overlay.active {
    display: block;
}

/* ==========================================================================
   Layout Sections
   ========================================================================== */
.section {
    padding: var(--section-pad);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--neon-purple);
    margin-bottom: 20px;
}

.glitch {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: #0f172a;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
    margin-bottom: 10px;
}

/* Subtle glitch effect */
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-purple);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(72px, 9999px, 83px, 0); }
    20% { clip: rect(12px, 9999px, 98px, 0); }
    40% { clip: rect(38px, 9999px, 15px, 0); }
    60% { clip: rect(98px, 9999px, 54px, 0); }
    80% { clip: rect(2px, 9999px, 87px, 0); }
    100% { clip: rect(45px, 9999px, 12px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(12px, 9999px, 83px, 0); }
    20% { clip: rect(85px, 9999px, 25px, 0); }
    40% { clip: rect(45px, 9999px, 5px, 0); }
    60% { clip: rect(12px, 9999px, 78px, 0); }
    80% { clip: rect(78px, 9999px, 23px, 0); }
    100% { clip: rect(34px, 9999px, 45px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Terminal */
.terminal {
    max-width: 600px;
    margin-bottom: 40px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    overflow: hidden;
}

.terminal-header {
    background: rgba(226, 232, 240, 0.6);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.btn-close, .btn-min, .btn-max {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.btn-close { background-color: #ff5f56; }
.btn-min { background-color: #ffbd2e; }
.btn-max { background-color: #27c93f; }

.terminal-title {
    margin-left: 15px;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 20px;
    color: var(--text-primary);
}

.prompt {
    color: #059669;
    margin-right: 10px;
}

.typing-text {
    border-right: 2px solid var(--neon-blue);
    animation: blink 1s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

.cursor {
    animation: blink 1s step-end infinite;
}

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

.terminal-output {
    color: var(--text-secondary);
    margin-top: 5px;
    opacity: 0;
}

.delay-1 { animation: fadeIn 0.1s forwards 1.5s; }
.delay-2 { animation: fadeIn 0.1s forwards 2.5s; }
.delay-3 { animation: fadeIn 0.1s forwards 3.5s; color: var(--neon-blue); }

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.about-text {
    padding: 40px;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.stat-item {
    margin-bottom: 30px;
}

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

.stat-item i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    padding: 30px;
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--neon-blue);
}

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

.tag {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 20px;
    transition: var(--transition);
}

.skill-category:hover .tag {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.project-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    height: 100%;
}

.project-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.project-links a i {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.project-links a:hover i {
    color: var(--neon-blue);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}
.project-tech span {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.12);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-purple);
}
/* ==========================================================================
   Certifications Section
   ========================================================================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cert-card {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.cert-icon i {
    font-size: 3rem;
}

.cert-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-purple);
    margin-bottom: 5px;
}

.cert-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

a.cert-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.cert-card .cert-date {
    color: var(--neon-blue);
    opacity: 0.7;
    transition: var(--transition);
}

a.cert-card:hover .cert-date {
    opacity: 1;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    text-align: center;
    align-items: center;
}

.contact-section .section-title {
    margin-bottom: 40px;
}

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

.contact-card {
    max-width: 600px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-links a i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover i {
    color: var(--neon-blue);
    transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    text-align: center;
    padding: 30px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.version {
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 18px;
    }
    .nav-links li a {
        font-size: 0.8rem;
    }
    .glitch {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 80px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--border-color);
        z-index: 150;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-links li a {
        font-size: 1.1rem;
    }

    .nav-links li a::after {
        bottom: -8px;
    }

    .resume-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .glitch {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

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

    .about-text, .about-stats {
        padding: 25px;
    }

    .section {
        padding: 60px 15px;
        min-height: auto;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 60px;
    }

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

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

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

    .cert-card {
        padding: 20px;
        gap: 15px;
    }

    .cert-icon i {
        font-size: 2rem;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .terminal {
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 80px 15px 40px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}
