:root {
    --bg-midnight: #0f172a;
    --bg-slate: #1e293b;
    --accent-sky: #38bdf8;
    --accent-teal: #2dd4bf;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass: rgba(30, 41, 59, 0.7);
    --border: rgba(148, 163, 184, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-midnight);
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sticky Nav */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--border);
}

.sticky-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.sticky-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.sticky-nav a:hover,
.sticky-nav a.active {
    color: var(--accent-sky);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: calc(80px + 10vh);
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 clamp(2rem, 6vw, 7rem);
    position: relative;
    z-index: 2;
    max-width: none;
}

.hero-text {
    width: 100%;
    max-width: none;
    text-align: center;
}

#db-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(400px, 65vw, 900px);
    height: auto;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    filter: none;
    animation: db-flicker 0.13s infinite step-start;
}

@keyframes db-flicker {
    0% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
    }

    7% {
        opacity: 0.82*0.25;
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.2));
    }

    14% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.6));
    }

    21% {
        opacity: 0.9*0.25;
        filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.4));
    }

    28% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
    }

    36% {
        opacity: 0.75*0.25;
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.15));
    }

    42% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 24px rgba(45, 212, 191, 0.55));
    }

    50% {
        opacity: 0.88*0.25;
        filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.4));
    }

    57% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
    }

    64% {
        opacity: 0.8*0.25;
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.2));
    }

    71% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.5));
    }

    78% {
        opacity: 0.92*0.25;
        filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.45));
    }

    85% {
        opacity: 0.7*0.25;
        filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.1));
    }

    92% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.55));
    }

    100% {
        opacity: 1*0.25;
        filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
    }
}

.hero-section .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-section h1 {
    font-size: clamp(4.5rem, 12vw, 11rem);
    font-weight: 100;
    line-height: 1.25;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--accent-sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
}

.hero-section h1 .name-thin {
    font-weight: 100;
    /* inherits gradient from h1 */
}

.hero-section h1 strong {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-section .subtitle {
    margin-bottom: 7rem;
    line-height: 1.6;
}

.hero-section .subtitle-role {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.9rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
}

.hero-section .subtitle-focus {
    display: block;
    font-size: clamp(0.95rem, 1.6vw, 1.25rem);
    font-family: 'Datatype', sans-serif;
    font-weight: 200;
    color: var(--accent-sky);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 1.2rem;
}

.btn.primary {
    background-color: var(--accent-sky);
    color: var(--bg-midnight);
}

.btn.secondary {
    background-color: var(--bg-slate);
    color: #fff;
    border: 1px solid var(--border);
}

.btn.outline {
    border: 1px solid var(--accent-sky);
    color: var(--accent-sky);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section Styling */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
}

/* Glass Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
}

.profile-card p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
}

.bento-item {
    background: var(--bg-slate);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-item:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item h3 {
    margin-bottom: 1rem;
    color: var(--accent-sky);
}

.bento-item ul {
    list-style: none;
}

.metric {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-teal);
    margin-top: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-sky), var(--accent-teal));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 0;
    width: 22px;
    height: 22px;
    background-color: var(--bg-midnight);
    border: 4px solid var(--accent-sky);
    border-radius: 50%;
    z-index: 10;
}

.timeline-content h3 {
    margin-top: 0.5rem;
    color: #fff;
}

.timeline-content .date {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 600;
}

.timeline-content ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

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

.project-card {
    background: linear-gradient(135deg, var(--bg-slate), rgba(30, 41, 59, 0.4));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent-sky);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-card .tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.project-card .tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-sky);
    border-radius: 4px;
    font-size: 0.75rem;
}

/* See More Card */
.project-card.see-more {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--border);
    background: transparent;
    cursor: pointer;
}

.project-card.see-more:hover {
    border-color: var(--accent-teal);
    background: rgba(45, 212, 191, 0.05);
}

.see-more-content i {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.see-more-content h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.see-more-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: #0b111e;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    text-align: left;
}

.bento-item .icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.footer-item h4 {
    color: var(--accent-sky);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-item h4 i {
    font-size: 1.2rem;
}

.footer-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Background Glow Effect */
.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    z-index: -1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content-wrapper {
        padding: 0 clamp(1.5rem, 5vw, 4rem);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: clamp(2.8rem, 14vw, 5rem);
        letter-spacing: -0.03em;
        max-width: 95vw;
    }

    .hero-section .subtitle-role {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }

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

    .footer-grid {
        gap: 2rem;
    }
}