/* ============================================
   FONT SETUP — Uses Google Fonts (Inter + Poppins)
   Loaded via <link> in index.html
   ============================================ */

/* ============================================
   DESIGN SYSTEM — Dark Navy + Purple Accent
   ============================================ */

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties — Modern Cohesive Light Palette */
:root {
    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;

    /* Accent Colors — Modern Indigo & Purple */
    --accent-purple: #6366f1;
    --accent-purple-light: #818cf8;
    --accent-purple-glow: rgba(99, 102, 241, 0.18);
    --accent-cyan: #0284c7;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Border & Surface */
    --border-subtle: #e2e8f0;
    --border-card: #e2e8f0;

    /* Shadows — Soft Multi-Layered Elevation */
    --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.12);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.12), 0 8px 10px -6px rgba(99, 102, 241, 0.08);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Typography */
    --font-body: 'Amazon Ember', 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    --font-heading: 'Amazon Ember', 'Poppins', 'Inter', 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 70px;
}



/* Prevent horizontal scrollbar on mobile */
html {
    overflow-x: hidden;
}

/* Body */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 32px) 24px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Main Content */
main {
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

/* ---- Section view-switching: all sections hidden by default ---- */
section {
    display: none;           /* JS will set display:block on the active one */
    padding: 0 0 2rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    animation: none;
}

/* Fade-slide entry animation when a section becomes active */
section[style*="display: block"] {
    animation: sectionFadeIn 0.4s ease forwards;
}

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

section:hover {
    transform: none;
    box-shadow: none;
}

/* Section Headings */
section h1 {
    color: var(--text-primary);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-align: center;
    display: block;
}

section h1 i {
    color: var(--accent-purple);
    font-size: 1.6rem;
    margin-right: 0.5rem;
}

/* Links */
a {
    color: var(--accent-purple-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-purple);
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(124, 58, 237, 0.15);
    color: #1e1b4b;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple-light);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 2.5rem 0;
    }

    section h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .container {
        padding-top: calc(var(--nav-height) + 16px);
    }

    section {
        padding: 2rem 0;
    }

    section h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    section {
        padding: 1.5rem 0;
    }

    section h1 {
        font-size: 1.3rem;
    }
}

.hero-social a.brand-social-icon,
.contact-social-btn.brand-social-icon,
.footer-social-btn.brand-social-icon {
    background: #ffffff !important;
    border-color: var(--border-card) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}

.hero-social a.brand-social-icon:hover,
.contact-social-btn.brand-social-icon:hover,
.footer-social-btn.brand-social-icon:hover {
    background: #f8fafc !important;
    border-color: var(--accent-purple-light) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.2) !important;
}

/* Brand logo icon colors */
.brand-social-icon.github-icon {
    color: #181717 !important;
}
.brand-social-icon.linkedin-icon {
    color: #0A66C2 !important;
}
.brand-social-icon.leetcode-icon {
    color: #FFA116 !important;
}
.brand-social-icon.geeksforgeeks-icon {
    color: #2F8D46 !important;
}
.brand-social-icon.code360-icon {
    color: #FF5B00 !important;
}
.brand-social-icon.email-icon {
    color: #ea4335 !important;
}