:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --neon-green: #39FF14;
    --neon-green-glow: rgba(57, 255, 20, 0.3);
    --border-color: #222222;
    --grid-color: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.jetbrains-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Background Effects */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.gradient-light {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.scrolled {
    padding: 15px 0;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    background: rgba(13, 13, 13, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 8px 12px;
    transition: all 0.4s ease;
}

.header.scrolled .nav-wrapper {
    background: #0d0d0d;
    border-color: rgba(57, 255, 20, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(57, 255, 20, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.nav-links li a.active {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-hire {
    background: var(--neon-green);
    color: #0d0d0d;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

.btn-hire:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--neon-green-glow);
    background: #fff;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Scroll Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header.scrolled {
    animation: slideDown 0.4s ease;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.scroll-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    font-weight: 500;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 10px;
    position: absolute;
    top: 10px;
    animation: mouse-scroll 1.8s ease-out infinite;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

@keyframes mouse-scroll {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* Hero Section */
/* .hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5% 8%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    gap: 4rem;
} */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    /* remove vertical padding */
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    /* full screen */
    gap: 4rem;
}

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

.badge {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    white-space: nowrap;
}

h1 .highlight {
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green-glow);
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--neon-green);
    color: #000;
    border: none;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--neon-green-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    object-fit: cover;
    margin: auto;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.1));
}

.terminal-window {
    width: 100%;
    max-width: 550px;
    background: #0d0d0d;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 24px;
    font-size: 0.95rem;
    color: #e6e6e6;
    height: 400px;
    overflow-y: auto;
}

.line {
    margin-bottom: 12px;
}

.prompt {
    color: var(--neon-green);
    margin-right: 12px;
}

.command {
    color: var(--text-primary);
}

.line.res {
    color: var(--text-secondary);
    padding-left: 24px;
}

.check {
    color: var(--neon-green);
    margin-right: 8px;
}

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

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

/* Responsive */
@media (max-width: 1100px) {
    h1 {
        font-size: 3.2rem;
    }

    .hero {
        padding: 0 5%;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Stack hero at tablet too — fixes zoom-out left-half-only issue */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 30px 50px;
        gap: 2rem;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        flex: none;
        max-width: 600px;
        width: 100%;
    }

    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 600px;
        justify-content: center;
    }

    .terminal-window, .hero-image {
        max-width: 100%;
        animation: none;
    }

    h1 {
        white-space: normal;
        font-size: 3rem;
    }

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

    .social-links {
        justify-content: center;
    }

    .description {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .mobile-hide {
        display: none !important;
    }

    .header {
        padding: 15px 0;
    }

    .nav-wrapper {
        border-radius: 20px;
        width: calc(100% - 32px);
        margin: 0 16px;
        padding: 6px 10px;
    }

    .navbar {
        padding: 0 4px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .btn-hire {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 78px;
        left: 16px;
        right: 16px;
        width: auto;
        background: #0d0d0d;
        flex-direction: column;
        padding: 16px;
        border-radius: 15px;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-links li a {
        display: block;
        padding: 12px;
        text-align: center;
        border-radius: 8px;
    }

    /* Hero — Centered and stacked */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 16px 40px !important;
        gap: 24px;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        justify-content: center;
        align-items: center;
        display: flex !important;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .badge {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        display: inline-flex;
    }

    h1 {
        font-size: 2.2rem; /* Slightly smaller for mobile */
        white-space: normal;
        margin-bottom: 1rem;
        word-wrap: break-word;
        line-height: 1.2;
        width: 100%;
    }

    .description {
        font-size: 1rem;
        margin: 0 auto 2rem;
        max-width: 100%;
        padding: 0 10px;
    }

    .cta-group {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
        display: flex !important;
    }

    .btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        padding: 14px 24px;
    }

    .social-links {
        margin-top: 16px;
        justify-content: center;
        width: 100%;
        display: flex !important;
    }

    /* Terminal Fix */
    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        margin-top: 24px;
        display: flex !important;
    }

    .terminal-window, .hero-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        animation: none;
        border-radius: 12px;
    }

    .terminal-body {
        height: auto;
        min-height: 200px;
        padding: 15px;
        font-size: 0.85rem;
    }

    /* Global Fixes */
    section {
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-bottom: 40px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .scroll-indicator, .gradient-light {
        display: none !important;
    }

    .grid-background {
        background-size: 30px 30px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Extra small screens overrides */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 60px !important;
    }

    .description {
        font-size: 0.9rem;
    }

    .nav-wrapper {
        width: calc(100% - 24px);
        margin: 0 12px;
    }
}