/* ===========================================
   STYLE.CSS — Shubh Desai Resume Website
   Enhanced with advanced CSS concepts
   =========================================== */

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

/* --- CSS VARIABLES (Custom Properties) --- */
:root {
    --blue-900: #0f172a;
    --blue-800: #1e293b;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* --- GLOBAL RESET (Element Selectors) --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--blue-900);
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--slate-50) 50%, var(--blue-50) 100%);
    line-height: 1.7;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-500);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

/* ===========================================
   NAVIGATION BAR (ID Selector + position: fixed)
   =========================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-links li a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-links li a:hover {
    color: var(--blue-600);
    border-bottom-color: var(--blue-600);
    text-decoration: none;
}

/* ===========================================
   HEADER (ID Selector + Flexbox)
   =========================================== */
#header {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 2.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.header-photo {
    flex-shrink: 0;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--slate-100);
}

.header-info {
    flex: 1;
}

.header-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 0.3rem;
}

.header-tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--slate-500);
    margin-bottom: 1rem;
}

.header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.contact-chip {
    display: inline-block;
    background: var(--slate-100);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
}

.contact-chip:hover {
    background: var(--blue-100);
    border-color: var(--blue-500);
    transform: translateY(-1px);
}

.contact-link {
    color: var(--blue-600);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: none;
    color: var(--blue-600);
}

/* ===========================================
   MAIN & SECTIONS
   =========================================== */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 2.5rem;
}

/* --- SECTION TITLES (Element + Pseudo-element) --- */
h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 1.5rem;
    padding-left: 16px;
    position: relative;
}

/* Pseudo-element: accent bar before h2 */
h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: linear-gradient(to bottom, var(--blue-600), var(--blue-500));
    border-radius: 2px;
}

/* ===========================================
   ENTRY CARDS (Class Selectors + Transitions)
   =========================================== */
.entry {
    background: var(--white);
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    margin-bottom: 1rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.entry:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.entry-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--blue-100);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
}

.entry-location {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate-500);
}

.entry h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: 0.2rem;
}

.entry-light {
    font-weight: 400;
    color: var(--slate-500);
    font-size: 0.95rem;
}

.entry-subtitle {
    font-size: 0.9rem;
    color: var(--slate-500);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.entry-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-500);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.entry ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.entry ul li {
    font-size: 0.88rem;
    color: var(--slate-700);
    line-height: 1.7;
    margin-bottom: 0.4rem;
    list-style: disc;
}

/* Override: remove card styling from ul inside .entry */
.entry ul, .entry p {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}

.entry p {
    margin-bottom: 0.3rem;
}

/* --- TAGS (Inline-flex) --- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 5px;
    letter-spacing: 0.02em;
    border: 1px solid var(--slate-200);
}

/* ===========================================
   AWARDS GRID (Flexbox + Border Accent)
   =========================================== */
.awards-grid {
    display: flex;
    gap: 1rem;
}

.award-card {
    flex: 1;
    background: var(--white);
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--blue-600);
    transition: transform var(--transition), box-shadow var(--transition);
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.award-date {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--blue-100);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.award-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: 0.2rem;
}

.award-org {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-500);
    font-style: italic;
    margin-bottom: 0.4rem;
}

.award-card p:last-child {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.65;
}

/* Override for award-card children */
.award-card p {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}

/* ===========================================
   SKILLS TABLE (Element + Class + Combined)
   =========================================== */
.skills-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
}

.skills-table thead {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
}

.skills-table th {
    padding: 0.9rem 1.3rem;
    text-align: left;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skills-table td {
    padding: 0.85rem 1.3rem;
    font-size: 0.88rem;
    color: var(--blue-900);
    border-bottom: 1px solid var(--slate-200);
}

.skills-table tbody tr:last-child td {
    border-bottom: none;
}

.skills-table tbody tr:hover {
    background-color: var(--blue-50);
}

/* --- PROFICIENCY BADGES (Combined Class Selectors) --- */
.level {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.level.level-advanced {
    background: var(--blue-100);
    color: var(--blue-600);
}

.level.level-intermediate {
    background: #dcfce7;
    color: #16a34a;
}

.level.level-learning {
    background: #fef3c7;
    color: #d97706;
}

/* Override table inside main */
.skills-table, .skills-table td, .skills-table th {
    box-shadow: none;
}

/* ===========================================
   FOOTER (Dark Theme)
   =========================================== */
footer {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
    color: var(--slate-300);
    padding: 3rem 2rem 1.5rem;
    margin-top: 2.5rem;
}

footer h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 1.8rem;
}

footer h2::before {
    background: linear-gradient(to bottom, var(--blue-500), var(--blue-600));
}

.footer-grid {
    display: flex;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.footer-item {
    flex: 1;
    text-align: center;
}

.footer-item h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-500);
    margin-bottom: 0.4rem;
}

.footer-item a,
.footer-item p {
    font-size: 0.85rem;
    color: var(--slate-300);
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    margin-top: 0;
}

.footer-item a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.5);
    background: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

/* ===========================================
   RESPONSIVE DESIGN (@media query)
   =========================================== */
@media (max-width: 768px) {
    #navbar {
        padding: 0.6rem 1rem;
    }

    .nav-links {
        gap: 0.7rem;
    }

    .nav-links li a {
        font-size: 0.65rem;
        letter-spacing: 0.04em;
    }

    #header {
        padding: 5.5rem 1rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.2rem;
    }

    .header-contact {
        justify-content: center;
    }

    .header-info h1 {
        font-size: 1.6rem;
    }

    main {
        padding: 0 1rem;
    }

    .entry {
        padding: 1.2rem 1.3rem;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .awards-grid,
    .footer-grid {
        flex-direction: column;
    }

    .skills-table th,
    .skills-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.78rem;
    }

    footer {
        padding: 2.5rem 1rem 1.2rem;
    }
}
