:root {
    --bg-color: #0a0a0c;
    --card-bg: #16161a;
    --primary-color: #a855f7;
    --secondary-color: #3b82f6;
    --text-color: #e2e8f0;
    --text-dim: #94a3b8;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --nav-bg: rgba(10, 10, 12, 0.9);
    --border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --primary-color: #7c3aed;
    --secondary-color: #2563eb;
    --text-color: #1e293b;
    --text-dim: #64748b;
    --accent-glow: rgba(124, 58, 237, 0.2);
    --nav-bg: rgba(248, 250, 252, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
}

.made-by-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2000;
}

.made-by-banner span {
    font-weight: 800;
    text-decoration: underline;
}

.telegram-banner {
    background: var(--bg-color);
    color: var(--primary-color);
    text-align: center;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

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

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

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

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: sticky; /* Changed from fixed to sticky */
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

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

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

.theme-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 20px;
    font-size: 1rem;
    transition: 0.3s;
}

.theme-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Burger menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 30px;
}

.hero p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

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

.btn.secondary {
    border: 1px solid var(--text-dim);
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-5px);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.skill-category ul li::before {
    content: '→';
    color: var(--primary-color);
    margin-right: 10px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 20px 0 20px 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    left: 15px;
    top: 25px;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

/* YouTube Section */
.youtube-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.youtube-text p {
    margin-bottom: 20px;
    color: var(--text-dim);
}

.youtube-preview {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.youtube-preview iframe {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.reveal-delay-1 { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards 0.2s; }
.reveal-delay-2 { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards 0.4s; }
.reveal-delay-3 { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards 0.6s; }
.reveal-delay-4 { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards 0.8s; }

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

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--card-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 100px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links li a {
        margin-left: 0;
        font-size: 1.2rem;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

.nav-active {
    transform: translateX(0%);
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
