:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #00f2ff;
    --secondary: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Animated Background --- */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(189, 0, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.15) 0%, transparent 40%);
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: slideUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    animation: slideUp 1s forwards 0.8s;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: slideUp 1s forwards 1.1s;
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

/* --- Section Styling --- */
section {
    padding: 6rem 10%;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

/* --- Education Cards (Glassmorphism) --- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.year-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.glass-card h4 {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1rem;
}

.grade {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Projects --- */
.project-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
    margin-bottom: 2rem;
}

.project-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 40px rgba(189, 0, 255, 0.1);
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    margin: 10px 0;
    line-height: 1.6;
}

.tech-stack span {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px 5px 0 0;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-links {
    margin-top: 1.5rem;
}

.project-links a {
    color: var(--text-main);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

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

/* --- Skills --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-pill {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: 0.3s;
    cursor: default;
}

.skill-pill:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

/* --- Achievements --- */
.achievement-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-left: 4px solid var(--secondary);
    transition: 0.3s;
}

.achievement-item:hover {
    padding-left: 2rem;
    background: linear-gradient(90deg, rgba(189, 0, 255, 0.1) 0%, transparent 100%);
}

.achievement-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.achievement-item p {
    font-size: 0.95rem;
}

.trophy-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 1.5rem;
    min-width: 30px;
}

/* --- Contact --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contact-info-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.contact-item i {
    margin-right: 1rem;
    color: var(--primary);
}

.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 1rem;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-5px);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        display: flex;
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        margin-left: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 5%;
    }

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

    .skills-container {
        gap: 0.5rem;
    }

    .skill-pill {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
