/* ============================================================
   amanmisra.dev — Custom Brand Overrides
   Theme: hugo-profile  |  Palette: GlobalVeda
   ============================================================ */

/* ── §1  Google Fonts: Inter + JetBrains Mono ─────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

body,
.navbar,
.nav-link,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span,
a,
label,
input,
textarea,
button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

code,
pre,
kbd,
samp,
.tech-badge,
.skill-tag {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace !important;
    font-size: 13px !important;
}

/* Technical badges (#AI, #Docker) — JetBrains Mono, Saffron text */
.badge,
.badge-secondary {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace !important;
    font-size: 13px !important;
    color: #D35400 !important;
    background: rgba(211, 84, 0, 0.08) !important;
    border: 1px solid rgba(211, 84, 0, 0.2) !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    margin: 3px !important;
    letter-spacing: 0.02em;
}

.dark .badge,
.dark .badge-secondary {
    color: #E8944A !important;
    background: rgba(232, 148, 74, 0.1) !important;
    border-color: rgba(232, 148, 74, 0.25) !important;
}

/* ── §2  Density: body font + section spacing ─────────────── */
body {
    font-size: 15px !important;
}

/* Override Bootstrap py-5 (3rem) → compact spacing (–20%) */
section.py-5 {
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
}

section.py-0.py-sm-5 {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
}

/* ── §2b  Hero section refinements ────────────────────────── */
#hero {
    min-height: auto;
    padding-top: 3.2rem !important;
    padding-bottom: 2rem !important;
    display: flex;
    align-items: center;
}

#hero h1 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

#hero .lead,
#hero h4 {
    font-weight: 400;
    color: #5F6368;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.dark #hero .lead,
.dark #hero h4 {
    color: #BDC1C6;
}

#hero .hero-content,
#hero p {
    margin-bottom: 1rem;
}

#hero .btn-primary,
#hero a.btn {
    background-color: #D35400 !important;
    border-color: #D35400 !important;
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

#hero .btn-primary:hover,
#hero a.btn:hover {
    background-color: #B84700 !important;
    border-color: #B84700 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
}

/* ── §3  Social icons in hero ─────────────────────────────── */
#hero .social-icons a,
#hero .social-link {
    color: #5F6368;
    font-size: 1.4rem;
    margin-right: 16px;
    transition: color 0.2s ease;
}

#hero .social-icons a:hover,
#hero .social-link:hover {
    color: #D35400;
}

.dark #hero .social-icons a,
.dark #hero .social-link {
    color: #BDC1C6;
}

.dark #hero .social-icons a:hover,
.dark #hero .social-link:hover {
    color: #E8944A;
}

/* ── §4  Section headings ─────────────────────────────────── */
section h2,
.section-heading {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    color: #202124;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

section h2::after,
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: #D35400;
    border-radius: 2px;
}

.dark section h2,
.dark .section-heading {
    color: #E8EAED;
}

.dark section h2::after,
.dark .section-heading::after {
    background: #E8944A;
}

/* ── §5  About / Value Pillars section ────────────────────── */
#about .content p {
    line-height: 1.65;
    color: #3C4043;
    margin-bottom: 0.8rem;
}

.dark #about .content p {
    color: #E8EAED;
}

#about .content strong {
    color: #202124;
    font-weight: 600;
}

.dark #about .content strong {
    color: #FFFFFF;
}

#about .content a {
    color: #D35400;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

#about .content a:hover {
    border-bottom-color: #D35400;
}

.dark #about .content a {
    color: #E8944A;
}

/* ── §6  Skills / Tech tags (overridden by §1b badge rules) ── */

/* ── §7  Project cards ────────────────────────────────────── */
.project-card,
.card {
    border: 1px solid #E0E0E0;
    border-left: 4px solid #D35400;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.project-card:hover,
.card:hover {
    border-color: #D35400;
    border-left: 4px solid #D35400;
    box-shadow: 0 4px 16px rgba(211, 84, 0, 0.12), 0 1px 4px rgba(211, 84, 0, 0.08);
    transform: translateY(-2px);
}

.dark .project-card,
.dark .card {
    border-color: #444;
    border-left: 4px solid #E8944A;
}

.dark .project-card:hover,
.dark .card:hover {
    border-color: #E8944A;
    border-left: 4px solid #E8944A;
    box-shadow: 0 4px 16px rgba(232, 148, 74, 0.2), 0 1px 4px rgba(232, 148, 74, 0.12);
}

/* Featured link button in project cards */
.project-card .btn,
.card .featured-link {
    background-color: #D35400 !important;
    border-color: #D35400 !important;
    color: #FFFFFF !important;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.85rem;
}

.project-card .btn:hover,
.card .featured-link:hover {
    background-color: #B84700 !important;
}

/* ── §8  Experience timeline ──────────────────────────────── */
.timeline-item::before,
.experience-item::before {
    background-color: #D35400 !important;
}

.dark .timeline-item::before,
.dark .experience-item::before {
    background-color: #E8944A !important;
}

/* ── §9  Achievements / Highlights cards ──────────────────── */
.achievement-card,
.achievements .card {
    border-left: 3px solid #D35400;
    background: #FDFCFB;
}

.dark .achievement-card,
.dark .achievements .card {
    border-left-color: #E8944A;
    background: #2D2D2D;
}

/* ── §10  Contact section ─────────────────────────────────── */
#contact .btn {
    background-color: #D35400 !important;
    border-color: #D35400 !important;
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
}

#contact .btn:hover {
    background-color: #B84700 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
}

/* ── §11  Navbar ──────────────────────────────────────────── */
.navbar {
    background: rgba(253, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #DADCE0;
}

.dark .navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    border-bottom-color: #444;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #D35400 !important;
}

.dark .navbar .nav-link:hover,
.dark .navbar .nav-link.active {
    color: #E8944A !important;
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    letter-spacing: -0.01em;
}

/* ── §12  High-density "Google" footer ─────────────────────── */
.gv-footer {
    border-top: 1px solid #DADCE0;
    padding: 2.5rem 0 1.5rem;
    margin-top: 1rem;
    background: #F8F9FA;
}

.dark .gv-footer {
    border-top-color: #444;
    background: #1A1A1A;
}

/* Newsletter column */
.gv-footer__newsletter h4 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #202124;
}

.dark .gv-footer__newsletter h4 {
    color: #E8EAED;
}

.gv-footer__newsletter p {
    font-size: 0.82rem;
    color: #5F6368;
    margin-bottom: 12px;
    line-height: 1.4;
}

.dark .gv-footer__newsletter p {
    color: #BDC1C6;
}

.gv-footer__newsletter-form {
    display: flex;
    gap: 6px;
}

.gv-footer__newsletter-form input[type="email"] {
    padding: 8px 14px;
    border: 1px solid #DADCE0;
    border-radius: 6px;
    font-size: 0.85rem;
    flex: 1;
    max-width: 220px;
    background: #FFFFFF;
    color: #3C4043;
    font-family: 'Inter', sans-serif !important;
}

.dark .gv-footer__newsletter-form input[type="email"] {
    background: #2D2D2D;
    border-color: #555;
    color: #E8EAED;
}

.gv-footer__newsletter-form button {
    background: #D35400;
    color: #FFFFFF;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Inter', sans-serif !important;
}

.gv-footer__newsletter-form button:hover {
    background: #B84700;
}

/* Sitemap columns */
.gv-footer__sitemap h5 {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #202124;
    margin-bottom: 8px;
}

.dark .gv-footer__sitemap h5 {
    color: #E8EAED;
}

.gv-footer__sitemap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gv-footer__sitemap ul li {
    margin-bottom: 4px;
}

.gv-footer__sitemap ul li a {
    font-size: 0.82rem;
    color: #5F6368;
    text-decoration: none;
    transition: color 0.15s ease;
}

.gv-footer__sitemap ul li a:hover {
    color: #D35400;
}

.dark .gv-footer__sitemap ul li a {
    color: #BDC1C6;
}

.dark .gv-footer__sitemap ul li a:hover {
    color: #E8944A;
}

/* Top row spacing */
.gv-footer__top {
    padding-bottom: 1.5rem;
}

/* Divider */
.gv-footer__divider {
    border: none;
    border-top: 1px solid #DADCE0;
    margin: 0 0 1rem;
}

.dark .gv-footer__divider {
    border-top-color: #444;
}

/* Bottom row: copyright + meta */
.gv-footer__bottom {
    align-items: center;
}

.gv-footer__copy {
    font-size: 0.78rem;
    color: #9AA0A6;
}

.gv-footer__meta {
    font-size: 0.75rem;
    color: #9AA0A6;
}

.gv-footer__meta a {
    color: #9AA0A6;
    text-decoration: none;
}

.gv-footer__meta a:hover {
    color: #D35400;
}

.gv-footer__sep {
    margin: 0 6px;
    color: #DADCE0;
}

.dark .gv-footer__sep {
    color: #444;
}

/* ── §13  (reserved — old newsletter block removed) ───────── */

/* ── §14  Last-updated footer line ────────────────────────── */
.site-last-updated {
    font-size: 0.75rem;
    color: #9AA0A6;
    text-align: center;
    margin-top: 8px;
}

.site-last-updated code {
    font-size: 0.72rem !important;
    color: #9AA0A6;
}

/* ── §15  Scrollbar (subtle) ──────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #DADCE0;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #555;
}

/* ── §16  Selection highlight ─────────────────────────────── */
::selection {
    background: rgba(211, 84, 0, 0.15);
    color: inherit;
}

/* ── §17  Smooth section scroll ───────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ── §18  Responsive adjustments ──────────────────────────── */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 1.8rem;
    }

    #hero {
        padding-top: 2.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    section.py-5 {
        padding-top: 1.2rem !important;
        padding-bottom: 1.2rem !important;
    }

    /* Footer: stack newsletter above sitemap */
    .gv-footer__top {
        flex-direction: column;
    }

    .gv-footer__newsletter {
        margin-bottom: 1.5rem;
    }

    .gv-footer__newsletter-form {
        flex-direction: column;
    }

    .gv-footer__newsletter-form input[type="email"] {
        max-width: 100%;
        width: 100%;
    }

    .gv-footer__bottom {
        text-align: center;
    }

    .gv-footer__meta {
        text-align: center !important;
        margin-top: 4px;
    }
}
