:root {
    --bg-charcoal: #121212;
    --acc-cyan: #00E5FF;
    --acc-purple: #B388FF;
    --text-primary: #FFFFFF;
    --text-slate: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --surface-bg: #1A1A1A;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-charcoal);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--acc-cyan), var(--acc-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.slate-text {
    color: var(--text-slate);
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--acc-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Layout Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    display: inline-block;
}

.w-full {
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-hq {
    font-family: var(--font-mono);
    color: var(--text-slate);
    font-weight: 600;
}

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

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

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

/* Buttons */
.btn-cyan {
    display: inline-block;
    background: var(--acc-cyan);
    color: var(--bg-charcoal);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-cyan:hover {
    background: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.btn-cyan-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--acc-cyan);
    color: var(--acc-cyan) !important;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cyan-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

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

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-slate);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,229,255,0.05) 0%, rgba(18,18,18,0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Gallery Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bento-card {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,229,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--acc-cyan);
}

.bento-card:hover::before {
    opacity: 1;
}

.card-header, .card-body, .card-footer {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.card-body p {
    color: var(--text-slate);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.arrow-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.bento-card:hover .arrow-link {
    color: var(--acc-cyan);
    transform: translateX(5px);
}

/* Tech Marquee */
.tech-stack {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-bg);
    overflow: hidden;
    position: relative;
}

.tech-stack::before,
.tech-stack::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-stack::before {
    left: 0;
    background: linear-gradient(to right, var(--surface-bg), transparent);
}

.tech-stack::after {
    right: 0;
    background: linear-gradient(to left, var(--surface-bg), transparent);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-slate);
}

.marquee span {
    padding: 0 2rem;
}

.marquee .dot {
    color: var(--acc-cyan);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--acc-cyan);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-slate);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-slate) !important;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        pointer-events: all;
    }

    /* Transform hamburger to X when active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
