/* 1. Global Variables & Base */
:root {
    --bg: #050505;
    /* Deep Obsidian */
    --card: #0f0f0f;
    /* Near Black */
    --text: #ffffff;
    --muted: #a0a0a0;

    /* Neon Palette */
    --neon-green: #00ff41;
    /* System Green */
    --neon-purple: #bc13fe;
    /* Cyber Purple */
    --neon-blue: #00d2ff;
    /* Tech Blue */
    --neon-coral: #ff4d4d;
    /* Alert/Action Coral */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Fix for iPhone tap boxes */
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Navigation & RGB Hamburger */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #1a1a1a;
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
    text-decoration: none;
    color: white;
}

.logo span {
    color: var(--neon-green);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* RGB Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: none;
    z-index: 10001;
}

.bar {
    width: 28px;
    height: 4px;
    border-radius: 2px;
}

.bar-red {
    background-color: var(--neon-coral);
}

.bar-green {
    background-color: var(--neon-green);
}

.bar-blue {
    background-color: var(--neon-blue);
}

/* 3. Hero Section */
.hero {
    padding: 6rem 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    font-weight: 900;
}

h1 span {
    color: var(--neon-green);
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.badge {
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn {
    background: white;
    color: black;
    padding: 1.1rem 2.5rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    display: inline-block;
    transition: 0.3s;
}

.btn-alt {
    background: transparent;
    color: white;
    border: 1px solid #333;
    margin-left: 1rem;
}

.btn:hover {
    transform: scale(1.05);
}

.hero-graphic img {
    width: 100%;
    border-radius: 20px;
}

/* 4. Projects (Bento Grid) */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -2px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bento-box {
    background: var(--card);
    border: 1px solid #1a1a1a;
    padding: 3rem;
    border-radius: 32px;
    position: relative;
    transition: 0.4s ease;
    border-bottom: 5px solid transparent;
}

.bento-box:hover {
    background: #151515;
    border-color: #333;
    transform: translateY(-5px);
}

.neon-green {
    border-bottom-color: var(--neon-green);
}

.neon-purple {
    border-bottom-color: var(--neon-purple);
}

.neon-blue {
    border-bottom-color: var(--neon-blue);
}

.neon-coral {
    border-bottom-color: var(--neon-coral);
}

.bento-tag {
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.neon-green .bento-tag {
    color: var(--neon-green);
}

.neon-purple .bento-tag {
    color: var(--neon-purple);
}

.neon-blue .bento-tag {
    color: var(--neon-blue);
}

.neon-coral .bento-tag {
    color: var(--neon-coral);
}

.bento-box h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.bento-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #333;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* 5. Skills Section (One-Line Technical Grid) */
.skills-section {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--card);
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid transparent;
}

.glow-blue {
    border-top-color: var(--neon-blue);
}

.glow-blue:hover {
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.15);
}

.glow-green {
    border-top-color: var(--neon-green);
}

.glow-green:hover {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.15);
}

.glow-purple {
    border-top-color: var(--neon-purple);
}

.glow-purple:hover {
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.15);
}

.glow-coral {
    border-top-color: var(--neon-coral);
}

.glow-coral:hover {
    box-shadow: 0 0 40px rgba(255, 77, 77, 0.15);
}

.skill-card:hover {
    transform: translateY(-12px);
    background: #121212;
}

.skill-header h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.glow-blue h3 {
    color: var(--neon-blue);
}

.glow-green h3 {
    color: var(--neon-green);
}

.glow-purple h3 {
    color: var(--neon-purple);
}

.glow-coral h3 {
    color: var(--neon-coral);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* 6. Footer (Compact & Centered) */
footer {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    background: var(--bg);
}

.footer-top h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-info-row a {
    color: var(--neon-green);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-bottom {
    font-size: 0.7rem;
    color: #333;
    border-top: 1px solid #111;
    padding-top: 1rem;
}

/* 7. Responsive / iPhone Fixes */
@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0f0f0f;
        flex-direction: column;
        padding: 2rem 0;
        z-index: 10000;
        border-bottom: 2px solid #222;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 1.2rem 0;
        font-size: 1.2rem;
    }

    .hero-split,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .btn-alt {
        margin: 1rem 0 0 0;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-info-row {
        flex-direction: column;
        gap: 5px;
    }

    .sep {
        display: none;
    }
}