:root {
    /* Colors */
    --bg-dark: #070913;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --accent-glow-1: rgba(6, 182, 212, 0.4); /* Cyan */
    --accent-glow-2: rgba(139, 92, 246, 0.4); /* Violet */
    --accent-glow-3: rgba(236, 72, 153, 0.3); /* Pink */
    
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(6, 182, 212, 0.5);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-glow-1);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-glow-2);
    animation-delay: -5s;
}

.glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-glow-3);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #06b6d4, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #06b6d4;
}

/* Main Content Wrapper */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    color: #06b6d4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Bento Box Grid */
.bento-container {
    padding: 4rem 0;
}

.bento-header {
    margin-bottom: 3rem;
    text-align: center;
}

.bento-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.bento-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

.bento-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.bento-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none;
}

.bento-box:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(6, 182, 212, 0.1);
}

.bento-box.feature {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.bento-box.md {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-box.sm {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-box.wide {
    grid-column: span 4;
    grid-row: span 1;
}

.box-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.box-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

.box-content .icon {
    font-size: 1.8rem;
}

.box-content.text-center {
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.icon.large {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Work Section */
.work-section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.job-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    padding: 0.2rem;
    flex-shrink: 0;
}

.placeholder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-hover-bg);
    color: var(--text-muted);
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px solid var(--card-border);
}

.job-details h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.job-details .company {
    color: #06b6d4;
    font-weight: 500;
    font-size: 1.1rem;
}

.job-header .date {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.job-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0 5rem;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem 3rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon {
    font-size: 2.5rem;
}

.social-card span {
    font-family: var(--font-heading);
    font-weight: 600;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    font-size: 0.9rem;
}

/* Animations & Revealing */
.hidden-onload {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.navbar.hidden-onload {
    animation-delay: 0.2s;
}

.hero.hidden-onload {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger reveals */
.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }
.reveal-4 { transition-delay: 0.4s; }
.reveal-5 { transition-delay: 0.5s; }
.reveal-6 { transition-delay: 0.6s; }
.reveal-7 { transition-delay: 0.7s; }

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-box.wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    
    .bento-box {
        min-height: 200px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        margin-left: 0;
    }
}
