/* =========================================
   DESIGN SYSTEM - 2026 STANDARDS
   Accessibility First: WCAG 2.1 AA/AAA
   
   Table of Contents:
   1. Design Tokens (Colors, Typography, Spacing)
   2. Reset & Base Styles
   3. Accessibility Essentials
   4. Layout Utilities
   5. Header & Navigation
   6. Hero Section
   7. Section Styles
   8. Experience (Timeline)
   9. Skills (Bento Grid)
   10. Projects
   11. Certifications
   12. Contact
   13. Footer
   ========================================= */

:root {
    /* --- COLOR PALETTE (High Contrast) --- */
    /* Primary: Deep Indigo (Trust, Professionalism) */
    --color-primary: #4338ca;
    /* Darkened from #4f46e5 for better contrast (approx 5.6:1) */
    --color-primary-dark: #3730a3;
    /* Text on primary background */
    --color-on-primary: #ffffff;
    /* Hover state */
    --color-primary-light: #e0e7ff;
    /* Background accents */

    /* Secondary: Teal (Growth, Accessibility) */
    --color-secondary: #0a766d;
    /* Darkened from #0d9488 to pass WCAG 2.1 AA (5.0:1) */
    --color-secondary-dark: #115e59;

    /* Neutrals */
    --color-bg-body: #f8fafc;
    /* Slate-50: Softer than pure white */
    --color-bg-card: #ffffff;
    --color-text-main: #0f172a;
    /* Slate-900 */
    --color-text-muted: #475569;
    /* Slate-600 */
    --color-border: #e2e8f0;

    /* Feedback */
    --color-error: #ef4444;
    --color-success: #22c55e;

    /* --- TYPOGRAPHY (Modern & Readable) --- */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* --- SPACING & SHAPES --- */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* --- ANIMATION (Respects Prefers-Reduced-Motion) --- */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* --- Z-INDEX SCALE --- */
    --z-header: 1000;
    --z-skip-link: 9999;
}

/* Dark Mode Support (Future-proof) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-body: #0f172a;
        /* Slate-900 */
        --color-bg-card: #1e293b;
        /* Slate-800 */
        --color-text-main: #f8fafc;
        /* Slate-50 */
        --color-text-muted: #cbd5e1;
        /* Slate-300 */
        --color-border: #334155;

        --color-primary: #818cf8;
        /* Lighter for dark mode contrast */
        /* Lighter for dark mode contrast */
        --color-primary-dark: #6366f1;
        --color-on-primary: #0f172a;
        /* Slate-900 (matches body bg) for contrast against light primary */
        --color-primary-light: #1e1b4b;
        /* Indigo-950 for background contrast */

        /* Adjusted Secondary for Dark Mode Contrast (WCAG AA) */
        --color-secondary: #2dd4bf;
        /* Teal-400 */
        --color-secondary-dark: #14b8a6;
        /* Teal-500 */
    }

    /* Force accessibility contrast for buttons in dark mode */
    .btn-primary,
    .nav-link.btn {
        color: #0f172a !important;
    }
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
    scroll-padding-top: 10rem;
    /* Offset for sticky header (90px) + subtitle visibility */
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- ACCESSIBILITY ESSENTIALS --- */

/* Visible Focus Indicators */
:focus-visible,
[tabindex="-1"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Typography Defaults */
p {
    margin-bottom: 1rem;
}

/* ============================================================================
   Skip Navigation Link
   ============================================================================
   Implements WCAG 2.4.1 (Bypass Blocks) - Level A
   
   Purpose:
   - Allows keyboard users to skip repetitive navigation and jump to main content
   - First focusable element in DOM for immediate accessibility
   
   Design Decisions:
   - Top-left positioning follows industry standard (not centered)
   - Hidden above viewport (-100px) for smooth slide-in animation
   - Matches site button UX for visual consistency
   - Enhanced focus indicator for clear visibility
   
   Accessibility Features:
   - High contrast white text on primary background
   - Visible only on keyboard focus (unobtrusive for mouse users)
   - Clear focus indicator with white outline and glow effect
   - Smooth transition for better UX
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    /* Hidden above viewport - better than -9999px for transitions */
    left: 1rem;
    /* Standard top-left positioning (16px from edge) */
    background: var(--color-primary);
    color: var(--color-on-primary) !important;
    /* !important needed to override link color inheritance */
    padding: 0.75rem 1.5rem;
    /* Match .btn padding for consistency */
    z-index: var(--z-skip-link);
    /* Ensure visibility above all header elements */
    border-radius: var(--radius-md);
    /* Match site button style */
    text-decoration: none;
    font-weight: 600;
    /* Match button font-weight */
    font-size: var(--text-base);
    transition: top var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    /* Prevent text wrapping */
}

.skip-link:focus {
    top: 1rem;
    /* Visible with 16px spacing from top edge */
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    box-shadow: var(--shadow-lg);
}

/* Screen Reader Only Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */

.container {
    width: 100%;
    max-width: 68.75rem;
    /* Reduced for better reading width */
    margin: 0 auto;
    padding: 0 2rem;
    /* Increased mobile padding */
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        /* Standard mobile padding */
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 4rem;
        /* Generous desktop padding */
    }
}

.section {
    padding: 3rem 0;
    /* Reduced vertical spacing for better flow */
}

/* Alternate background for visual separation */
.section-alt-bg {
    background-color: var(--color-bg-body);
}

.section-header {
    text-align: left;
    margin-bottom: 2rem;
}

/* Center variant for contact section */
.section-header-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
    /* Adjusted gap */
}

/* Grid variants for different sections */
.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.flex {
    display: flex;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    /* Refined padding */
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    font-size: var(--text-base);
    text-decoration: none;
    /* No default underline */
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* Email button variant */
.btn-email {
    font-size: 1.1rem;
}

/* Text Links - Custom Underline */
a:not(.btn):not(.nav-link) {
    text-decoration: none;
    background-image: linear-gradient(var(--color-primary), var(--color-primary));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size var(--transition-base);
    color: var(--color-primary);
    font-weight: 500;
}

a:not(.btn):not(.nav-link):hover {
    background-size: 100% 2px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    /* Higher opacity */
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background-color: rgba(15, 23, 42, 0.95);
    }
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5.625rem;
    /* Taller header */
}

.logo {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: var(--text-sm);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn {
    padding: 0.75rem 1.5rem;
    color: var(--color-on-primary);
}

.nav-link.btn::after {
    display: none;
}

/* ============================================================================
   Mobile Menu Button
   ============================================================================
   Implements WCAG 2.5.5 (Target Size) - Level AAA (Enhanced)
   WCAG 2.2 Level AA requires minimum 44×44px for touch targets
   
   Purpose:
   - Provides accessible touch target for opening mobile navigation
   - Only visible on mobile/tablet viewports (≤768px)
   
   Touch Target Calculation:
   - Vertical: 21px padding × 2 + 2px icon height = 44px total height
   - Horizontal: 13px padding × 2 + 24px icon width = 50px total width
   - Exceeds minimum 44×44px requirement
   
   Design Notes:
   - Asymmetric padding (more vertical) for proper touch target
   - min-height/min-width as safety constraints
   - Hamburger icon uses pseudo-elements for animation capability
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    /* Hidden on desktop, shown via media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.3125rem 0.8125rem;
    /* Asymmetric padding for 44px height */
    min-height: 44px;
    /* WCAG 2.2 Level AA minimum touch target */
    min-width: 44px;
    /* WCAG 2.2 Level AA minimum touch target */
}

.hamburger {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text-main);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        /* Position below header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        /* Semi-transparent for glassmorphism */
        backdrop-filter: blur(10px);
        /* Blur background content for better readability */
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
        visibility: hidden;
        /* Hidden by default, shown when .nav-open class added */
        opacity: 0;
        transform: translateY(-10px);
        transition: all var(--transition-base);
        box-shadow: var(--shadow-lg);
        pointer-events: none;
    }

    .main-nav.nav-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius-md);
    }

    .nav-link:hover {
        background-color: var(--color-bg-body);
    }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .main-nav {
        background-color: rgba(15, 23, 42, 0.98);
        border-bottom-color: var(--color-border);
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* =========================================
   HERO SECTION (Redesigned)
   ========================================= */

#hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: 4rem;
    /* Ensure orbit doesn't bleed into next section */
}

/* Geometric Abstract Background */
#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 37.5rem;
    height: 37.5rem;
    background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
    filter: blur(60px);
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 25rem;
    height: 25rem;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    /* Using teal for contrast */
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    filter: blur(80px);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 5rem;
        /* Increased from 3rem to prevent overlap */
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .visual-circle {
        width: min(17.5rem, 60vw);
        height: min(17.5rem, 60vw);
        margin: 0 auto;
        /* Ensure centering */
    }

    .visual-orbit {
        width: min(23.75rem, 80vw);
        height: min(23.75rem, 80vw);
    }
}

@media (max-width: 480px) {
    .visual-circle {
        width: min(14rem, 60vw);
        height: min(14rem, 60vw);
    }

    .visual-orbit {
        width: min(20rem, 85vw);
        height: min(20rem, 85vw);
    }
}

/* Desktop sizes (above 900px) */
@media (min-width: 901px) {
    .visual-circle {
        width: 21.875rem;
        height: 21.875rem;
    }

    .visual-orbit {
        width: 28.125rem;
        height: 28.125rem;
    }
}

/* Hero animations */
.hero-content {
    animation: slideUp var(--transition-base) forwards;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease-out forwards;
}

/* Decorative visual element (Profile Image) */
.visual-circle {
    width: min(14rem, 60vw);
    height: min(14rem, 60vw);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Keep above orbit */
}

.visual-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.visual-circle:hover img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.visual-orbit {
    position: absolute;
    width: min(20rem, 85vw);
    /* Mobile-first default, overridden by media queries */
    height: min(20rem, 85vw);
    border: 2px dashed var(--color-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: spin 60s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center relative to hero-visual */
    z-index: 1;
    /* Behind circle */
    pointer-events: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-greeting {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    background-color: var(--color-primary-light);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================================================
   Hero Buttons - Small Screen Optimization
   ============================================================================
   Responsive Enhancement for Mobile Usability
   
   Purpose:
   - Stack buttons vertically on very small screens (< 400px)
   - Prevents cramped horizontal layout and potential overflow
   - Improves touch target accessibility on small devices
   
   Breakpoint Rationale:
   - 400px chosen to target small phones in portrait mode
   - Larger screens keep horizontal layout for better visual balance
   ========================================================================== */

@media (max-width: 400px) {
    .hero-actions {
        flex-direction: column;
        /* Stack buttons vertically */
        gap: 1rem;
        /* Reduced gap for better spacing */
    }

    .hero-actions .btn {
        width: 100%;
        /* Full-width buttons for easier tapping */
    }
}



@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation for hero visual */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   SECTION STYLES generic
   ========================================= */
.section-header {
    margin-bottom: 2rem;
    /* Reduced margin */
    text-align: left;
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--text-xs);
    display: block;
    margin-bottom: 1rem;
}

/* =========================================
   EXPERIENCE SECTION (Timeline)
   ========================================= */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    /* Aligned with bullet center */
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    /* Space for bullet */
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Bullet Point */
.timeline-marker {
    position: absolute;
    left: 11px;
    /* (20px center - 9px radius) */
    top: 5px;
    /* Align with Title */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-bg-body);
    border: 3px solid var(--color-primary);
    z-index: 1;
    transition: background-color var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
    background-color: var(--color-primary-light);
}

.timeline-content {
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-size: var(--text-lg);
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.timeline-list {
    margin-left: 1.5rem;
    list-style-type: disc;
}

.timeline-list li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

/* =========================================
   SKILLS SECTION (Bento Grid Style)
   ========================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

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

.skill-card h3 {
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--color-border);
}

/* =========================================
   PROJECTS SECTION
   ========================================= */

.project-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    font-size: var(--text-sm);
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.project-desc {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    font-size: var(--text-xs);
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.project-links {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* =========================================
   CERTIFICATIONS
   ========================================= */

.cert-list {
    display: grid;
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    gap: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.cert-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-details h3 {
    margin-bottom: 0.25rem;
    font-size: var(--text-lg);
}

.cert-details p {
    margin: 0;
    color: var(--color-text-muted);
}

/* Certification icon image wrapper */
.cert-icon-img {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    padding: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.cert-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================
   CONTACT SECTION (Refined)
   ========================================= */

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.social-card {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
    color: var(--color-text-main);
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--color-text-main);
}

.social-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.social-name {
    font-weight: 700;
    font-size: var(--text-lg);
}

.social-handle {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* Email as a primary action below socials */
.email-action {
    margin-top: 4rem;
    display: inline-block;
}

.site-footer {
    background-color: var(--color-bg-body);
    padding: 3rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* =========================================
   ABOUT SECTION - STAT CARDS
   ========================================= */

.stat-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: var(--text-2xl);
}

.stat-card p {
    margin: 0;
    color: var(--color-text-muted);
}

.stat-card+.stat-card {
    margin-top: 1rem;
}