:root {
    --bg-dark: #030303;
    --bg-card: rgba(15, 15, 20, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #8b5cf6; /* Violet */
    --accent-3: #ec4899; /* Pink */
    --glass-border: rgba(255, 255, 255, 0.05);
    --nav-height: 80px;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-3));
    z-index: 2000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-spacing {
    padding: 8rem 0;
}

/* Background Blobs */
.background-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    filter: blur(80px);
}

.blob-2 {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
}

.nav-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-1);
}

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 1100;
    width: 40px;
    height: 40px;
    display: none; /* Hidden by default, shown in media query */
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

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

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

.nav-links a.active::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-1);
    border-radius: 50%;
    margin: 4px auto 0;
}

.btn-primary {
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.visual-card img {
    width: 100%;
    height: auto;
}

/* About Section */
.section-title {
    font-size: 3.2rem;
    margin-bottom: 4rem;
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.bio-main {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.cap-item {
    border-left: 2px solid var(--accent-1);
    padding-left: 1.5rem;
}

.cap-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-1);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.cap-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.info-card-premium {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
}

.info-card-premium h3 {
    margin-bottom: 2rem;
    color: var(--accent-1);
}

.foundation-list-pro {
    list-style: none;
}

.foundation-list-pro li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.foundation-list-pro li i {
    color: var(--accent-1);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.foundation-list-pro strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.foundation-list-pro span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.foundation-list-pro li:last-child {
     margin-bottom: 0;
}

.skills-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 3rem;
}

.skill-group {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.skill-group:hover {
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-5px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.skill-header h3 {
    font-size: 1.5rem;
}

.skill-header i {
    color: var(--accent-1);
    width: 28px;
    height: 28px;
}

.skill-header i {
    color: var(--accent-1);
    width: 24px;
    height: 24px;
}

.badge-row img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transform: scale(1.03);
    transform-origin: left center;
}

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

.projects-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--accent-1);
    border-radius: 50px;
    font-weight: 600;
}

.project-tech-minimal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.project-tech-minimal span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.repo-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    width: fit-content;
}

.repo-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-1);
    transform: translateX(5px);
}

.repo-button.mini {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    margin-top: auto;
}

/* GitHub Stats Section */
.github-stats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-row {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
}

.stats-row img {
    max-width: 100%;
    height: auto;
}

/* Contact Section */
.contact-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 5rem;
    text-align: center;
}

.contact-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-card p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

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

.contact-item {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-1);
    transform: scale(1.05);
}

.footer {
    padding: 4rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(0.9); }

.revealed {
    opacity: 1;
    transform: none !important;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(3, 3, 3, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .projects-grid-premium,
    .projects-grid-mini {
        grid-template-columns: 1fr;
    }
}
