/* =========================================
   MEGHA KHURANA - PORTFOLIO STYLES
   Theme: Dark, Professional, Fun & Feminine
   Font: Poppins
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Dark Theme Color Palette --- */
    --bg-deep: #0B0F19;         /* Very dark midnight blue/black */
    --bg-surface: #151B2B;      /* Slightly lighter for cards/nav */
    
    --text-main: #FFFFFF;       /* Pure white for headings/logo */
    --text-muted: #9CA3AF;      /* Slate gray for body text */
    
    --accent-pink: #FF5C8A;     /* Vibrant pink for fun/feminine energy */
    --accent-pink-glow: rgba(255, 92, 138, 0.2);
    
    --accent-cyan: #00E6F6;     /* Bright cyan for a modern digital vibe */

    /* --- Typography --- */
    --font-main: 'Poppins', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* --- Spacing & Radii --- */
    --radius-md: 12px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* --- Basic Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-muted);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Reusable Container --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Typography Basics --- */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.highlight {
    color: var(--accent-pink);
}

/* --- Navigation Bar --- */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 20;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF; /* Forced white as requested */
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-pink); /* A tiny dot of color for fun */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
}

.hero-content {
    max-width: 700px;
}

.greeting {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-pink);
    color: #FFFFFF;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    box-shadow: 0 4px 15px var(--accent-pink-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 92, 138, 0.4);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.btn-outline:hover {
    background-color: rgba(0, 230, 246, 0.1);
    transform: translateY(-3px);
}

/* --- Floating Sidebars (Social & Email) --- */
.side-element {
    position: fixed;
    bottom: 0;
    z-index: 10;
}

.side-left { left: 40px; }
.side-right { right: 40px; }

.social-links, .email-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
}

.social-links::after, .email-link::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto;
    background-color: var(--text-muted);
}

.social-links li:last-child, .email-link li:last-child {
    margin-bottom: 20px;
}

.social-links a {
    padding: 10px;
    display: inline-block;
}

.social-links svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: var(--transition);
}

.social-links a:hover { transform: translateY(-3px); }
.social-links a:hover svg { stroke: var(--accent-pink); }

.email-link a {
    margin: 20px auto;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    color: var(--text-muted);
}

.email-link a:hover {
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Hide floating bars on small screens to save space */
    .side-element {
        display: none;
    }
    
    header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-group {
        justify-content: center;
    }
}


/* =========================================
   ABOUT SECTION & TIMELINE
   ========================================= */

.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header .system-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
}

/* --- About Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p strong {
    color: var(--text-main);
    font-weight: 500;
}

/* --- Education Timeline --- */
.timeline {
    position: relative;
    max-width: 600px;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px; /* Offset to center under dots */
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* The glowing dot */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px; /* Centered on the line */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-deep);
    border: 2px solid var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink-glow);
    z-index: 2;
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.timeline-institute {
    font-size: 0.9rem;
    color: var(--accent-pink);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Responsive Layout for About --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* =========================================
   PROJECTS (WORK) SECTION
   ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 230, 246, 0.1);
}

.project-type {
    font-family: var(--font-mono);
    color: var(--accent-pink);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 1px;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 2rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   MOBILE RESPONSIVE HEADER & HAMBURGER
   ========================================= */
