/* ===== MODERN DESIGN SYSTEM ===== */
:root {
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --secondary: #818cf8;
    --accent: #f472b6;
    --bg-dark: #020617;
    --bg-card: rgba(30, 41, 59, 0.4);
    --bg-glass: rgba(15, 23, 42, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.2s ease;
    --transition-mid: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animated Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.1), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(129, 140, 248, 0.1), transparent 40%);
    z-index: -1;
}

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition-fast);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    gap: 4rem;
}

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

.hero-text h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

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

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-mid);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn.small-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== CARDS (Glassmorphism) ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-mid);
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    text-align: left;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-category ul li {
    background: rgba(56, 189, 248, 0.1);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: var(--transition-fast);
}

.skill-category ul li:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* ===== PROJECTS ===== */
.project-category {
    margin: 2rem 0 1.5rem;
    color: var(--primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-card {
    margin-bottom: 2rem;
}

.featured-project {
    border: 2px solid var(--primary-glow);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), transparent);
}

.tech-stack {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--primary);
    font-family: monospace;
}

/* ===== LIVE BADGE ===== */
.live-badge {
    background: #10b981;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glass);
    padding: 2rem;
    text-align: center;
    color: var(--text-dim);
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        padding: 1rem 20px;
    }
    nav ul {
        display: none; /* Add hamburger menu logic later if needed */
    }
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-image img {
        width: 240px;
        height: 240px;
    }
}
