/* --- Ultra-Modern Variables --- */
:root {
    --bg-dark: #050508;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-neon: #ff007f; /* Neon Pink */
    --accent-glow: #7000ff; /* Electric Purple */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Dynamic Background Effect */
.bg-blob {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: breathe 10s infinite alternate;
}

@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
}

/* Layout Utilities */
.container { width: 90%; max-width: 1200px; margin: auto; }
.section { padding: 120px 0; position: relative; }
.section-title { font-size: 2.5rem; font-weight: 900; text-align: center; margin-bottom: 3rem; color: #fff; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
a { text-decoration: none; color: inherit; }

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: var(--transition);
}
.glass-card:hover { border-color: rgba(255, 0, 127, 0.3); transform: translateY(-3px); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; font-weight: 600; border-radius: 8px;
    transition: var(--transition); cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-glow)); 
    color: #fff; box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(255, 0, 127, 0.6); transform: translateY(-2px); }
.btn-glass { background: var(--glass-bg); color: var(--text-main); border-color: var(--glass-border); backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: var(--accent-neon); color: var(--accent-neon); }
.btn-live { background: rgba(112, 0, 255, 0.1); color: #fff; width: 100%; border: 1px solid rgba(112, 0, 255, 0.3); margin-top: auto; }
.btn-live:hover { background: var(--accent-glow); box-shadow: 0 0 15px var(--accent-glow); }

/* --- Navbar --- */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(5, 5, 8, 0.6); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border); padding: 15px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1200px; margin: auto; }
.logo { font-size: 1.6rem; font-weight: 900; }
.logo span { color: var(--accent-neon); text-shadow: 0 0 10px var(--accent-neon); }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.hamburger .bar { width: 30px; height: 3px; background: #fff; border-radius: 3px; transition: var(--transition); }

/* --- Hero Section --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.glass-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(255, 0, 127, 0.1); border: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--accent-neon); font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 5rem; font-weight: 900; margin-bottom: 15px; letter-spacing: -1.5px; }
.hero .subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* --- About & Timeline --- */
.about-card { text-align: center; font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
.timeline { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: auto; }
.timeline-item { display: flex; flex-direction: column; align-items: flex-start; }
.timeline .date { display: inline-block; padding: 6px 14px; background: rgba(112, 0, 255, 0.15); color: #d8b4fe; border-radius: 6px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; border: 1px solid rgba(112, 0, 255, 0.3); }
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 8px; }
.company { color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }

/* --- Bento Grid (Projects & Ed) --- */
/* Reduced minmax from 320px to 280px for better mobile card fitting */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; }
.project-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: #fff; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.tags span { font-size: 0.8rem; padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 6px; color: var(--text-muted); border: 1px solid var(--glass-border); }
.large-tags span { font-size: 0.9rem; padding: 8px 16px; background: rgba(112, 0, 255, 0.05); border-color: rgba(112, 0, 255, 0.2); }

/* --- Skills Flexbox --- */
.skills-flex { display: flex; gap: 24px; flex-wrap: wrap; }
.skill-box { flex: 1; min-width: 280px; }
.skill-box h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.5rem; }
.skill-box i { color: var(--accent-neon); }

/* --- Education --- */
.edu-grid { grid-template-columns: 1fr 1fr; }
.column-title { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--accent-glow); }
.edu-item { margin-bottom: 1.8rem; border-left: 2px solid var(--glass-border); padding-left: 15px; }
.edu-item h4 { font-size: 1.1rem; margin-bottom: 5px; }
.edu-loc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 5px; }
.edu-date { color: var(--accent-neon); font-size: 0.85rem; font-weight: 700; }

/* --- Resume Section --- */
.resume-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.resume-text h3 { font-size: 2rem; margin-bottom: 15px; }
.resume-text p { color: var(--text-muted); margin-bottom: 25px; }
.resume-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.resume-preview { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border); }
.resume-preview img { width: 100%; display: block; transition: var(--transition); filter: brightness(0.8); }
.resume-preview .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(112, 0, 255, 0.3); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.resume-preview:hover .overlay { opacity: 1; }
.resume-preview:hover img { transform: scale(1.05); filter: brightness(1); }
.overlay i { font-size: 2.5rem; color: #fff; }

/* --- Contact & Footer --- */
.contact-container { text-align: center; max-width: 700px; margin: auto; }
.contact-container p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; }
.contact-info { margin-bottom: 30px; }
.contact-info p { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; color: #fff; flex-wrap: wrap; word-break: break-word; }
.contact-info i { color: var(--accent-neon); }
.mt-btn { margin-top: 10px; }
.social-links { margin-top: 40px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 1.2rem; transition: var(--transition); gap: 8px; color: var(--text-muted); }
.social-links a:hover { background: var(--accent-glow); color: #fff; border-color: var(--accent-glow); transform: translateY(-5px); }

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

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE BREAKPOINTS (MOBILE FIRST)
   ========================================= */

/* Tablet & Smaller Laptops */
@media (max-width: 900px) {
    .edu-grid, .resume-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.5rem; }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .section { padding: 80px 0; } /* Reduce vertical space */
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    
    /* Shrink padding inside cards for smaller screens */
    .glass-card { padding: 1.5rem; }
    
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%; background: rgba(5,5,8,0.98);
        backdrop-filter: blur(20px); flex-direction: column; text-align: center; gap: 0; 
        border-bottom: 1px solid var(--glass-border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: 0.4s ease-in-out;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links li { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.02); }
    
    .hamburger { display: flex; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    .hero h1 { font-size: 2.8rem; } /* Scaled down hero text */
    .hero .subtitle { font-size: 1rem; margin-bottom: 30px; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: auto; }
    
    .resume-btns { flex-direction: column; width: 100%; }
    .resume-btns .btn { width: 100%; justify-content: center; } /* Full width mobile buttons */
    
    .skills-flex { flex-direction: column; }
}

/* Extra Small Mobile (Older iPhones, etc.) */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .bento-grid { grid-template-columns: 1fr; } /* Force single column */
    .glass-badge { font-size: 0.75rem; padding: 5px 12px; }
    .contact-info p { flex-direction: column; gap: 5px; } /* Stack icon and text */
}