:root {
    --bg-dark: #09090b;
    /* Zinc 950 */
    --bg-darker: #000000;
    --card-bg: rgba(24, 24, 27, 0.6);
    /* Zinc 900 with opacity */
    --card-border: rgba(63, 63, 70, 0.4);
    /* Zinc 700 with opacity */
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    /* Zinc 400 */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --gradient-top: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 50%);
    --gradient-brand: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --border-radius: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.05), transparent 25%);
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-brand);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: var(--gradient-top);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.profile-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-brand);
    position: relative;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    border: none;
    box-shadow: 0 10px 20px -10px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--accent-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact-mini {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-mini a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-mini a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-mini i {
    color: var(--accent-blue);
}

/* Global Sections */
section {
    padding: 8rem 0;
    position: relative;
}

.section-dark {
    background-color: transparent;
}

.section-darker {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Glass Cards / Bento Box */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.bento-item>* {
    position: relative;
    z-index: 1;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.col-span-12 {
    grid-column: span 12;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
    font-size: 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-size: 1rem;
}

.info-list i {
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 24px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-content {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.timeline-date {
    display: inline-block;
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Skills Wall */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.skill-card i {
    font-size: 3.5rem;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.skill-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.skill-card span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 20px;
    background-color: var(--bg-darker);
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations - Intersection Observer */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered delays for children */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100px;
        opacity: 0;
        width: 100%;
        height: 100vh;
        background: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 30px;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        pointer-events: none;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .hamburger i {
        transition: transform 0.3s;
    }

    .hamburger.active i {
        transform: rotate(90deg);
    }

    .hero {
        min-height: 100vh;
        padding-top: 140px;
    }

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

    .contact-mini {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-mini a {
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 16px;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}