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

:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #6d28d9;
    --accent-glow: #8b5cf6;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

[data-theme="light"] {
    --bg-color: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.6);
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent: #2563eb;
    --accent-glow: #60a5fa;
    --border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background 0.5s ease;
    line-height: 1.6;
}

/* Animated Aurora Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}
.g1, .g2, .g3 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}
.g1 { width: 400px; height: 400px; background: var(--accent); top: 10%; left: 20%; }
.g2 { width: 300px; height: 300px; background: #06b6d4; bottom: 20%; right: 10%; animation-delay: -5s;}
.g3 { width: 300px; height: 300px; background: #ec4899; top: 40%; left: 50%; animation-delay: -10s;}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 50px); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    z-index: 100;
}
.logo { font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.theme-toggle { cursor: pointer; font-size: 1.2rem; transition: 0.3s; }

/* General Layout */
main { padding: 120px 10% 50px; max-width: 1400px; margin: 0 auto; }

/* Hero Section */
.hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.subtitle { color: var(--accent-glow); font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;}
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 30px; font-weight: 700; }
.gradient-text { background: linear-gradient(to right, var(--accent), #06b6d4); -webkit-background-clip: text; color: transparent; }
.description { max-width: 600px; font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }
.cta-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 12px 30px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-primary { background: var(--text-main); color: var(--bg-color); display: flex; align-items: center; gap: 10px; }
.btn-secondary { border: 1px solid var(--border); color: var(--text-main); backdrop-filter: blur(10px); }
.btn-primary:hover { transform: scale(1.05); opacity: 0.9; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Bento Grid (About) */
.section-heading { font-size: 2.5rem; margin-bottom: 40px; font-weight: 700; }
.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: minmax(220px, auto); 
    gap: 20px; 
}
.bento-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; padding: 30px; backdrop-filter: blur(20px); transition: 0.4s; display: flex; flex-direction: column; justify-content: space-between; }
.bento-box:hover { transform: translateY(-5px); border-color: var(--accent-glow); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3); }

.box-large { grid-column: span 2; }
.box-tall { grid-row: span 2; }
.box-medium { grid-column: span 1; }

/* Experience Specific Styling */
.box-large.box-tall { justify-content: flex-start; }
.exp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.exp-date { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.role { color: var(--accent-glow); font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.exp-details { list-style: none; padding: 0; }
.exp-details li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; position: relative; padding-left: 20px; }
.exp-details li::before { content: "→"; position: absolute; left: 0; color: var(--accent-glow); }
.exp-divider { border: 0; height: 1px; background: var(--border); margin: 20px 0; opacity: 0.5; }

/* Core Stack / Tech Icons */
.tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x2 Grid for 6 icons */
    gap: 20px;
    margin-top: 20px;
    justify-items: center; }

justify-items: center; }
.tech-item { display: flex; flex-direction: column; align-items: center; transition: 0.3s ease; }
.tech-item i { font-size: 2.5rem; margin-bottom: 8px; }
.tech-name { font-size: 0.75rem; font-weight: 500; opacity: 0.8; }
.tech-item:hover { transform: translateY(-5px); }
.tech-item:hover i { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)); }

/* Education Section - Improved for Large Box */
.bento-box.box-large:has(.univ-name) {
    display: flex;
    flex-direction: row; /* Horizontal layout for large box */
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.edu-text h3 {
    margin-bottom: 5px;
}
.edu-info {
    flex: 1;
}

.univ-name { 
    font-weight: 700; 
    font-size: 1.2rem; /* Thoda bada font */
    color: var(--text-main); 
    margin-top: 5px; 
}

.univ-loc { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 0; 
}
.cgpa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px; 
}
.cgpa-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cgpa-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.cgpa-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
    box-shadow: 0 0 15px var(--accent-glow);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Mobile Responsiveness for Symmetry */
@media (max-width: 768px) {
    .education-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .cgpa-container {
        width: 100%;
    }
    .tech-icons {
        grid-template-columns: repeat(2, 1fr); /* Mobile par 2 icons per row */
    }
}

/* Projects Grid System */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Chhote boxes ki grid */
    gap: 20px;
    margin-top: 30px;
}

.project-card.small-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.project-card.small-box:hover {
    transform: translateY(-8px);
    border-color: var(--accent-glow);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-icon {
    font-size: 1.8rem;
    color: var(--accent-glow);
}

.project-header a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
}

.project-header a:hover {
    color: var(--text-main);
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-card .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.project-card .tags span {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr; /* Mobile par single column */
    }
}
/* Contact Section */
.contact-section { padding: 100px 0; }
.contact-box { background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: 30px; padding: 60px; text-align: center; }
.contact-links { display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap; }
.contact-btn { padding: 15px 40px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 30px; color: var(--text-main); text-decoration: none; font-size: 1.1rem; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.contact-btn:hover { background: var(--text-main); color: var(--bg-color); }
.footer-text { margin-top: 50px; color: var(--text-muted); font-size: 0.9rem; }

/* Scroll Reveal Animation */
.reveal { opacity: 0; transform: translateY(50px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .box-large, .box-tall, .box-medium { grid-column: span 1; grid-row: auto; }
    .navbar { width: 100%; top: 0; border-radius: 0; padding: 15px; }
    .nav-links { gap: 15px; font-size: 0.9rem; }
    .project-card { flex-direction: column; align-items: flex-start; padding: 25px; }
}