:root {
    --bg-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
    --text-color: #222;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glow-color: #6366f1;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
    --bg-gradient: linear-gradient(135deg, #2c3e50, #34495e);
    --text-color: #ecf0f1;
    --card-bg: rgba(0, 0, 0, 0.85);
    --glow-color: #e74c3c;
    --shadow: 0 20px 50px rgba(231, 76, 60, 0.5);
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.hero {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    background: var(--card-bg);
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.hero-intro h1 {
    font-size: 3rem;
    color: var(--glow-color);
    margin-bottom: 1.5rem;
}

.hook {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-color);
}

.hero-skills,
.hero-projects {
    margin-top: 3rem;
    padding: 2.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-skills:hover,
.hero-projects:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.hero-skills h2,
.hero-projects h2 {
    color: var(--glow-color);
    font-size: 2rem;
}

.hero-skills li,
.hero-projects p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
}

.hero-cta {
    text-align: center;
    margin-top: 3rem;
}

.primary-btn {
    background: var(--glow-color);
    color: white;
    border: none;
    padding: 1rem 2.4rem;
    border-radius: 32px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--glow-color);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 20;
}

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

.popup-box {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--shadow);
}

.hidden {
    display: none;
}


#particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.8);
    animation: floatUp linear infinite;
}

[data-theme="dark"] .particle {
    background: var(--glow-color);
}

@keyframes floatUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-120vh);
    }
}
