
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0b0f19;
    --text-color: #f8fafc;
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #10b981;
    --inactive-color: #334155;
    --card-bg: rgba(30, 41, 59, 0.6);
    --nav-bg: rgba(11, 15, 25, 0.85);
    --border-color: rgba(255,255,255,0.05);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --primary-color: #4f46e5;
    --secondary-color: #db2777;
    --accent-color: #059669;
    --inactive-color: #cbd5e1;
    --card-bg: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(248, 250, 252, 0.9);
    --border-color: rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden; 
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; flex: 1; width: 100%; }
.scroll-mt { scroll-margin-top: 100px; } /* For anchor links */

/* --- BACKGROUND BLOBS (Fixed for mobile) --- */
.bg-shapes { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none;}
.shape { position: absolute; filter: blur(100px); opacity: 0.4; animation: morph 20s infinite alternate ease-in-out; }
.shape-1 { width: 45vw; height: 45vw; background: var(--primary-color); top: -10%; left: -10%; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
.shape-2 { width: 50vw; height: 50vw; background: var(--secondary-color); bottom: -20%; right: -10%; animation-delay: -5s; animation-duration: 25s; }
.shape-3 { width: 30vw; height: 30vw; background: var(--accent-color); top: 30%; left: 30%; animation-delay: -10s; }

@media (max-width: 768px) {
    .shape-1 { width: 300px; height: 300px; }
    .shape-2 { width: 350px; height: 350px; }
    .shape-3 { width: 250px; height: 250px; }
}

@keyframes morph {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(5vw, 5vh) scale(1.1) rotate(20deg); }
    100% { transform: translate(-5vw, -5vh) scale(0.9) rotate(-10deg); }
}

/* --- SCROLL ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- NAVBAR --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; transition: background 0.4s; }
.logo a { color: var(--primary-color); text-decoration: none; font-size: 1.8rem; font-weight: 700; letter-spacing: -1px;}
.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links li { position: relative; }
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; padding: 10px 0;}
.nav-links a:hover { color: var(--primary-color); }

/* Dropdown on Hover */
.dropdown-content { 
    visibility: hidden; opacity: 0; transform: translateY(10px);
    position: absolute; top: 100%; left: 0; background: var(--card-bg); 
    backdrop-filter: blur(10px); min-width: 160px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    border-radius: 12px; padding: 10px 0; z-index: 10; border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-content li { padding: 5px 20px; }
.dropdown-content a { display: block; padding: 8px 0;}

.theme-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-color); transition: transform 0.3s; }
.theme-btn:hover { transform: rotate(15deg) scale(1.1); }
.hamburger { display: none; background: none; border: none; color: var(--text-color); font-size: 1.8rem; cursor: pointer; }
.nav-controls-mobile { display: none; }

/* --- HERO SECTION --- */
.hero-section { display: flex; align-items: center; gap: 50px; min-height: 70vh; }
.hero-text { flex: 1.5; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 10px; }
.highlight { color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); }
.hero-text h2 { font-size: 1.5rem; color: var(--inactive-color); margin-bottom: 25px; font-weight: 400;}
.hero-text p { font-size: 1.1rem; line-height: 1.7; opacity: 0.8; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; }
.btn { padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-primary { background: var(--primary-color); color: #fff; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.btn-primary:hover { background: var(--secondary-color); box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4); transform: translateY(-3px);}
.btn-secondary { border: 2px solid var(--border-color); color: var(--text-color); background: var(--card-bg); backdrop-filter: blur(5px);}
.btn-secondary:hover { border-color: var(--primary-color); transform: translateY(-3px);}

.hero-image { flex: 1; display: flex; justify-content: center; }
.blob-img { width: 300px; height: 300px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: blob 8s infinite alternate; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 40px rgba(0,0,0,0.3);}
@keyframes blob { 100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; } }

/* --- SECTION HEADERS --- */
.section-header { margin: 80px 0 40px 0; }
.section-header h2 { font-size: 2.2rem; display: inline-block; }
.section-header .line { height: 4px; width: 60px; background: var(--primary-color); border-radius: 2px; margin-top: 10px; }

/* --- ABOUT & SKILLS --- */
.about-content p { font-size: 1.1rem; line-height: 1.8; opacity: 0.9; margin-bottom: 40px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.skill-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 30px 20px; border-radius: 16px; text-align: center; backdrop-filter: blur(10px); transition: transform 0.3s, border-color 0.3s; }
.skill-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.skill-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }

/* --- PROJECTS --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; backdrop-filter: blur(10px); transition: all 0.3s; cursor: pointer; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); border-color: var(--secondary-color);}
.project-img { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.8rem; color: var(--secondary-color);}
.project-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.project-card p { opacity: 0.8; line-height: 1.6; font-size: 0.95rem; }

/* --- VERTICAL TIMELINE --- */
.vertical-timeline { position: relative; margin-top: 20px; padding-left: 10px; }
.vertical-timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 50px; }
.timeline-node { position: absolute; left: 24px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-color); border: 3px solid var(--inactive-color); transform: translateX(-50%); transition: all 0.5s ease; z-index: 2;}
.timeline-item.completed .timeline-node { border-color: var(--accent-color); background: var(--accent-color); box-shadow: 0 0 15px var(--accent-color); }
.timeline-year { font-weight: 700; color: var(--primary-color); margin-bottom: 8px; font-size: 1.1rem; }
.timeline-content { background: var(--card-bg); padding: 25px; border-radius: 16px; border: 1px solid var(--border-color); transition: all 0.3s; }
.timeline-content:hover { border-color: var(--primary-color); transform: translateX(5px); }

/* --- SUMMARY CARDS (For Main Pages) --- */
.subtitle { font-size: 1.1rem; opacity: 0.8; margin-bottom: 40px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.summary-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 35px; border-radius: 16px; text-decoration: none; color: var(--text-color); transition: all 0.3s; display: flex; flex-direction: column; }
.summary-card:hover { transform: translateY(-5px); border-color: var(--primary-color); background: rgba(99, 102, 241, 0.05); }
.summary-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary-color); }
.summary-card p { opacity: 0.8; line-height: 1.6; flex: 1; margin-bottom: 20px;}
.read-more { font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; color: var(--secondary-color); }

/* --- DEVLOG SPRINT SECTIONS --- */
.devlog-sprint { margin-top: 50px; }
.devlog-sprint h2 { margin-bottom: 20px; color: var(--primary-color); }
.devlog-content { background: var(--card-bg); border: 1px solid var(--border-color); padding: 35px; border-radius: 16px; }
.devlog-content p { margin-bottom: 20px; line-height: 1.7; opacity: 0.9;}
.placeholder-image { width: 100%; height: 300px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 2px dashed var(--inactive-color); display: flex; align-items: center; justify-content: center; color: var(--inactive-color); margin: 30px 0; font-weight: 600; letter-spacing: 2px;}

/* --- FOOTER & AUDIO --- */
.site-footer { text-align: center; padding: 40px 20px; background: var(--nav-bg); border-top: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 50px;}
.site-footer p { opacity: 0.6; font-size: 0.9rem; }
#music-toggle { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-family: inherit;}
#music-toggle:hover { border-color: var(--primary-color); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .hero-section { flex-direction: column; text-align: center; margin-top: 40px; }
    .hero-buttons { justify-content: center; }
    .blob-img { width: 250px; height: 250px; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .desktop-theme-wrapper { display: none; }
    .nav-controls-mobile { display: flex; align-items: center; gap: 15px; }
    .hamburger { display: block; }
    
    .nav-links { 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--nav-bg); padding: 0; border-bottom: 1px solid var(--border-color); 
        flex-direction: column; align-items: flex-start; gap: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    }
    .nav-links.active { max-height: 500px; }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links a { padding: 15px 20px; display: block; width: 100%; }
    
    /* Hover dropdown becomes click accordion on mobile */
    .dropdown-content { 
        position: relative; box-shadow: none; border: none; border-radius: 0; 
        background: rgba(0,0,0,0.1); padding-left: 20px; display: none; 
        visibility: visible; opacity: 1; transform: none;
    }
    .dropdown:active .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
}
    