/*
 * Vineet Shukla Portfolio - Bespoke Human-Crafted Light Mode Design
 * Pure White Background, Deep Black Text, Subtle Borders
 * Clean, Modern, Professional - Zero Generic Templates
 */

 :root {
    /* Color Palette - Pure Light Minimalist */
    --color-white: #FFFFFF;
    --color-black: #0A0A0A;
    --color-gray: #E5E7EB;
    --color-charcoal: #1F2937;
    --color-muted: #6B7280;
    --color-blue: #0B63CE;
    --color-blue-soft: #EAF3FF;
    --color-blue-line: rgba(11, 99, 206, 0.18);

    /* Typography */
    --font-primary: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                    Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing System (4px base) */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-2-5: 0.625rem; /* 10px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */

    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-full: 9999px;   /* Circle */

    /* Borders */
    --border-thin: 1px solid var(--color-gray);
    --border-medium: 2px solid var(--color-gray);

    /* Shadows - Subtle and Natural */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.18), 0 4px 6px -2px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-base: 0.2s ease;
    --transition-smooth: 0.35s ease;

    /* Typography Scale */
    --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 */
    --text-6xl: 3.75rem;  /* 60px */
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-black);
    background:
        linear-gradient(var(--color-blue-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-blue-line) 1px, transparent 1px),
        var(--color-white);
    background-size: 72px 72px;
    background-attachment: fixed;
    overflow-x: hidden;
    cursor: default;
}

/* Typography Hierarchy - Crisp and Legible */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bold but not ultra-black */
    color: var(--color-black);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    color: var(--color-black);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

/* Links - Subtle and Professional */
a {
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

a:hover {
    border-bottom-color: var(--color-black);
}

a:focus-visible {
    outline: 2px solid var(--color-charcoal);
    outline-offset: 2px;
}

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

/* Container and Layout */
.container {
    width: 100%;
    max-width: 72rem; /* 1152px - optimal for readability */
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
    position: relative;
}

.section + .section {
    margin-top: var(--space-24);
}

/* Section Titles */
.section-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-12);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 48px;
    height: 2px;
    background-color: var(--color-black);
}

/* Header Styles */
.site-header {
    background-color: var(--color-white);
    border-bottom: var(--border-thin);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Add spacing below header for better visual separation */
.site-header {
    margin-bottom: var(--space-8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    width: auto;
    height: auto;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.logo-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.logo-link:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-2px);
}

.logo-link:hover svg {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.logo-link:hover path,
.logo-link:hover rect,
.logo-link:hover circle,
.logo-link:hover polyline {
    stroke: var(--color-white);
}

.header-actions {
    display: flex;
    gap: var(--space-3);
}

/* Hero Section */
.hero {
    background-color: transparent;
    padding: var(--space-24) 0 var(--space-20);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7) 48%, var(--color-white));
    opacity: 0.85;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 14rem;
    height: 14rem;
    left: min(8vw, 6rem);
    top: 10rem;
    border: 1px solid rgba(11, 99, 206, 0.24);
    border-radius: var(--radius-lg);
    transform: rotate(10deg);
    opacity: 0.45;
    pointer-events: none;
    animation: floatBox 7s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-placeholder {
    text-align: center;
    position: relative;
}

.profile-placeholder::before,
.profile-placeholder::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(11, 99, 206, 0.32);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.profile-placeholder::before {
    width: 5rem;
    height: 5rem;
    left: 12%;
    top: 7%;
    animation: orbitTile 8s ease-in-out infinite;
}

.profile-placeholder::after {
    width: 3.2rem;
    height: 3.2rem;
    right: 14%;
    bottom: 18%;
    background: var(--color-blue-soft);
    animation: orbitTile 8s ease-in-out infinite reverse;
}

.profile-frame {
    width: 21rem;
    height: 21rem;
    border-radius: var(--radius-lg);
    background-color: var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    border: 2px solid var(--color-gray);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    box-shadow: 18px 18px 0 var(--color-blue-soft);
}

/* Profile Image Styling */
.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform var(--transition-smooth);
}

.profile-frame:hover img {
    transform: scale(1.05);
}

/* Add margin-top to hero section to prevent touching navbar */
.hero {
    background-color: transparent;
    padding: var(--space-24) 0 var(--space-20);
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--space-4) + var(--space-8)); /* header padding + margin */
}

.profile-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(11, 99, 206, 0.2);
    border-radius: inherit;
    pointer-events: none;
    animation: framePulse 3.5s ease-in-out infinite;
}

@keyframes framePulse {
    0% {
        box-shadow: inset 0 0 0 0 rgba(11, 99, 206, 0.18);
    }
    50% {
        box-shadow: inset 0 0 0 10px rgba(11, 99, 206, 0.05);
    }
    100% {
        box-shadow: inset 0 0 0 0 rgba(11, 99, 206, 0.18);
    }
}

.profile-frame:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 10px 10px 0 rgba(11, 99, 206, 0.18), var(--shadow-lg);
    border-color: var(--color-blue);
}

.profile-label {
    font-size: var(--text-sm);
    color: var(--color-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    position: relative;
    width: fit-content;
}

.hero h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 0.4rem;
    background: var(--color-blue-soft);
    z-index: -1;
    transform-origin: left;
    animation: nameUnderline 1.2s ease-out both;
}

.hero .title {
    display: block;
    font-family: var(--font-secondary);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-6);
}

.hero .value-prop {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-black);
    max-width: 30rem;
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    border: 2px solid;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--color-black);
    font-family: var(--font-primary);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-black);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    opacity: 0.05;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    border-color: var(--color-black);
    color: var(--color-black);
}

.btn-primary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-secondary {
    border-color: var(--color-black);
    color: var(--color-black);
}

.btn-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-tertiary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border-color: var(--color-charcoal);
    color: var(--color-charcoal);
    background: transparent;
    padding: var(--space-2) var(--space-4);
}

.btn-tertiary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-tertiary svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-tertiary:hover svg {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

/* Impact Metrics */
.impact-metrics {
    background-color: var(--color-white);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
    margin: var(--space-8) auto;
    max-width: 72rem;
    width: calc(100% - var(--space-12));
    box-shadow: 0 18px 44px rgba(10, 10, 10, 0.05);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: var(--space-8);
    text-align: center;
}

.metric-card {
    background-color: var(--color-white);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-black);
}

.metric-value {
    font-family: var(--font-secondary);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.2;
    margin-bottom: var(--space-2);
    display: block;
}

.metric-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Competencies Section */
.competencies {
    background-color: transparent;
    overflow: hidden;
}

.competencies > .container {
    background-color: rgba(255, 255, 255, 0.94);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
    box-shadow: 0 18px 44px rgba(10, 10, 10, 0.05);
}

/* Skills Scrolling Banner Container */
.skills-banner-container {
    position: relative;
    overflow: hidden;
    margin: var(--space-8) 0;
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    border: 1px solid rgba(25, 27, 29, 0.28);
    box-shadow: 0 18px 40px rgba(11, 99, 206, 0.08);
    isolation: isolate;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.skills-banner-container:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 10, 10, 0.55);
    box-shadow: 0 24px 48px rgba(11, 99, 206, 0.14);
}

/* Skills Scrolling Banner */
.skills-banner {
    display: flex;
    gap: var(--space-3);
    border:var(--border-thin);
    padding: var(--space-4);
    overflow-x: visible;
    overflow-y: visible;
    white-space: nowrap;
    background-color: transparent;
    position: relative;
    z-index: 2;
    height: 4.75rem;
    align-items: center;
    min-width: max-content;
    will-change: transform;
    scrollbar-width: none;
}

.skills-banner::-webkit-scrollbar {
    display: none;
}

.skill-tag {
    flex: 0 0 auto;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0,0,0, 0.28);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
    transition: all var(--transition-base);
    box-shadow: 0 4px 0 rgba(11, 99, 206, 0.1);
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-tag:hover {
    transform: scale(1.04);
    box-shadow: 0 7px 0 rgba(11, 99, 206, 0.16), 0 12px 24px rgba(11, 99, 206, 0.18);
    border-color: var(--color-grey);
    background-color: var(--color-black);
    color: var(--color-white);
}

.skill-tag:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-black);
    opacity: 0.05;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.skills-banner.animate {
    animation: scrollBanner 30s linear infinite;
}

.skills-banner-container:hover .skills-banner.animate {
    animation-play-state: paused;
}

.skills-banner.animate .skill-tag {
    opacity: 1;
}

@keyframes gridDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 72px 72px, 72px 72px;
    }
}

@keyframes floatBox {
    0%, 100% {
        transform: translateY(0) rotate(10deg);
    }
    50% {
        transform: translateY(-14px) rotate(14deg);
    }
}

@keyframes orbitTile {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(12px, -14px) rotate(8deg);
    }
}

@keyframes nameUnderline {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.skills-banner.animate .skill-tag:nth-child(1) {
    animation-delay: 0.1s;
}
.skills-banner.animate .skill-tag:nth-child(2) {
    animation-delay: 0.2s;
}
.skills-banner.animate .skill-tag:nth-child(3) {
    animation-delay: 0.3s;
}
.skills-banner.animate .skill-tag:nth-child(4) {
    animation-delay: 0.4s;
}
.skills-banner.animate .skill-tag:nth-child(5) {
    animation-delay: 0.5s;
}
.skills-banner.animate .skill-tag:nth-child(6) {
    animation-delay: 0.6s;
}
.skills-banner.animate .skill-tag:nth-child(7) {
    animation-delay: 0.7s;
}
.skills-banner.animate .skill-tag:nth-child(8) {
    animation-delay: 0.8s;
}
.skills-banner.animate .skill-tag:nth-child(9) {
    animation-delay: 0.9s;
}
.skills-banner.animate .skill-tag:nth-child(10) {
    animation-delay: 1.0s;
}
.skills-banner.animate .skill-tag:nth-child(11) {
    animation-delay: 1.1s;
}
.skills-banner.animate .skill-tag:nth-child(12) {
    animation-delay: 1.2s;
}
.skills-banner.animate .skill-tag:nth-child(13) {
    animation-delay: 1.3s;
}
.skills-banner.animate .skill-tag:nth-child(14) {
    animation-delay: 1.4s;
}
.skills-banner.animate .skill-tag:nth-child(15) {
    animation-delay: 1.5s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Enhanced hover effects for all interactive elements */
.btn, .logo-link, .footer-clock, .metric-card, .category, .edu-cert > div, .timeline-item, .skill-tag {
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn:hover::before,
.logo-link:hover::before,
.footer-clock:hover::before,
.metric-card:hover::before,
.category:hover::before,
.edu-cert > div:hover::before,
.timeline-item:hover::before,
.skill-tag:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-black);
    opacity: 0.03;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

/* Subtle scale on hover for cards */
.metric-card:hover,
.category:hover,
.edu-cert > div:hover,
.timeline-item:hover {
    transform: translateY(-2px);
}

/* Hover lift effect for timeline items */
.timeline-item:hover {
    transform: translateX(4px) translateY(-2px);
}

/* Glowing border effect on hover for primary buttons */
.btn-primary:hover {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Add subtle animation to section titles on scroll */
.section-title {
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for list items */
.category li,
.edu-cert li,
.timeline-item li {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.category li.visible,
.edu-cert li.visible,
.timeline-item li.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delayed animations for list items */
.category li:nth-child(1) { transition-delay: 0.1s; }
.category li:nth-child(2) { transition-delay: 0.2s; }
.category li:nth-child(3) { transition-delay: 0.3s; }
.category li:nth-child(4) { transition-delay: 0.4s; }
.category li:nth-child(5) { transition-delay: 0.5s; }
.category li:nth-child(6) { transition-delay: 0.6s; }

.edu-cert li:nth-child(1) { transition-delay: 0.1s; }
.edu-cert li:nth-child(2) { transition-delay: 0.2s; }

.timeline-item li:nth-child(1) { transition-delay: 0.1s; }
.timeline-item li:nth-child(2) { transition-delay: 0.2s; }
.timeline-item li:nth-child(3) { transition-delay: 0.3s; }
.timeline-item li:nth-child(4) { transition-delay: 0.4s; }
.timeline-item li:nth-child(5) { transition-delay: 0.5s; }
.timeline-item li:nth-child(6) { transition-delay: 0.6s; }

.competency-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: var(--space-8);
}

.category {
    background-color: var(--color-white);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.category:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-black);
}

.category h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.category h3::before {
    content: "◆";
    font-size: var(--text-lg);
    color: var(--color-black);
}

.category ul {
    margin-top: var(--space-2);
}

.category li {
    font-size: var(--text-base);
    color: var(--color-black);
    margin-bottom: var(--space-2);
    padding-left: var(--space-4);
    position: relative;
}

.category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-black);
}

/* Experience Section */
.experience {
    background-color: transparent;
}

.experience > .container {
    background-color: rgba(255, 255, 255, 0.94);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
    box-shadow: 0 18px 44px rgba(10, 10, 10, 0.05);
}

.timeline {
    display: grid;
    gap: var(--space-12);
}

.timeline-item {
    background-color: var(--color-white);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    isolation: isolate;
}

.timeline-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background: var(--color-black);
    -webkit-mask:
        linear-gradient(#fff 0 0) padding,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.timeline-item:hover::before {
    opacity: 0.08;
}

.timeline-item:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-black);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.timeline-item h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-black);
}

.timeline-item h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-black);
    font-family: var(--font-secondary);
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: var(--space-3);
}

.transition-note {
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-muted);
    margin-bottom: var(--space-4);
    display: block;
}

.timeline-item ul {
    margin-top: var(--space-2);
}

.timeline-item li {
    font-size: var(--text-base);
    color: var(--color-black);
    margin-bottom: var(--space-2);
    padding-left: var(--space-4);
}

.timeline-item li strong {
    font-weight: 700;
    color: var(--color-black);
}

/* Education & Certifications */
.education {
    background-color: transparent;
}

.education > .container {
    background-color: rgba(255, 255, 255, 0.94);
    border: var(--border-thin);
    border-radius: var(--radius-lg);
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
    box-shadow: 0 18px 44px rgba(10, 10, 10, 0.05);
}

.edu-cert {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: var(--space-8);
}

.edu-cert > div {
    background-color: var(--color-white);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.edu-cert > div:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-black);
}

.edu-cert h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.edu-cert h3::before {
    content: "◆";
    font-size: var(--text-lg);
    color: var(--color-black);
}

.edu-cert ul {
    margin-top: var(--space-2);
}

.edu-cert li {
    font-size: var(--text-base);
    color: var(--color-black);
    margin-bottom: var(--space-2);
    padding-left: var(--space-4);
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-white);
    border-top: var(--border-thin);
    padding: var(--space-12) 0 var(--space-8);
    margin-top: var(--space-20);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
}

.footer-social .logo-link {
    margin: 0;
    padding: var(--space-1) var(--space-2);
}

.footer-social .logo-link:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-social .logo-link:hover svg {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.footer-info {
    text-align: right;
    flex: 1;
    min-width: 14rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-info p {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-black);
}

.footer-clock-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: var(--space-2);
}

.footer-clock {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: var(--text-base);
    letter-spacing: -0.01em;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    white-space: nowrap;
    display: inline-block;
    transition: all var(--transition-base);
}

.footer-clock:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Subtle Cursor Dot */
#cursor-dot {
    position: fixed;
    pointer-events: none;
    width: 2px;
    height: 2px;
    background-color: var(--color-black);
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Motion Animation for Interactive Elements */
.btn, .logo-link, .footer-clock {
    transition: all var(--transition-base);
}

/* Responsive Breakpoints */
@media (max-width: 64rem) { /* 1024px */
    .container {
        padding: 0 var(--space-4);
    }

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero .value-prop {
        font-size: var(--text-base);
    }

    .section-title {
        font-size: var(--text-xl);
    }
}

@media (max-width: 48rem) { /* 768px */
    body {
        background-size: 56px 56px;
    }

    .site-header {
        margin-bottom: var(--space-4);
    }

    .header-content {
        gap: var(--space-3);
    }

    .header-actions .btn {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }

    .hero {
        padding: var(--space-12) 0 var(--space-10);
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .profile-placeholder {
        order: 1;
    }

    .hero-text {
        order: 2;
        text-align: center;
    }

    .hero h1 {
        width: auto;
    }

    .hero .value-prop {
        margin-left: auto;
        margin-right: auto;
    }

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

    .profile-frame {
        width: min(21rem, calc(100vw - 3rem));
        height: min(21rem, calc(100vw - 3rem));
    }

    .impact-metrics,
    .competencies > .container,
    .experience > .container,
    .education > .container {
        width: calc(100% - var(--space-6));
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .metrics-grid,
    .competency-categories,
    .edu-cert {
        gap: var(--space-4);
    }

    .timeline-item,
    .category,
    .edu-cert > div,
    .metric-card {
        padding: var(--space-5);
    }

    .skills-banner {
        height: 4.25rem;
        padding: var(--space-3);
    }

    .skill-tag {
        font-size: var(--text-xs);
        height: 2.35rem;
        padding: var(--space-2) var(--space-3);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-info {
        text-align: center;
        margin-bottom: var(--space-4);
    }

    .footer-clock-container {
        justify-content: center;
    }
}

@media (max-width: 30rem) { /* 480px */
    .hero {
        min-height: auto;
        padding: var(--space-10) var(--space-3) var(--space-8);
    }

    .hero h1 {
        font-size: var(--text-2xl);
    }

    .hero .title {
        font-size: var(--text-base);
    }

    .hero .value-prop {
        font-size: var(--text-sm);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-2-5) var(--space-4);
    }

    .profile-frame {
        width: min(18rem, calc(100vw - 3rem));
        height: min(18rem, calc(100vw - 3rem));
        box-shadow: 10px 10px 0 var(--color-blue-soft);
    }

    .profile-placeholder::before,
    .profile-placeholder::after {
        display: none;
    }

    .hero::after {
        display: none;
    }

    .impact-metrics,
    .competencies > .container,
    .experience > .container,
    .education > .container {
        width: calc(100% - var(--space-4));
        border-radius: var(--radius-md);
        padding-top: var(--space-6);
        padding-bottom: var(--space-6);
    }

    .skills-banner-container {
        margin: var(--space-6) 0;
    }

    .timeline-item h4 {
        display: block;
        line-height: 1.45;
    }

    h1 {
        font-size: var(--text-2xl);
    }

    h2 {
        font-size: var(--text-xl);
    }

    h3 {
        font-size: var(--text-lg);
    }

    .metric-value {
        font-size: var(--text-xl);
    }

    .section-title::after {
        width: 32px;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: var(--color-white);
        color: var(--color-black);
    }

    .site-header,
    .footer-clock-container {
        display: none;
    }

    .hero-actions {
        page-break-inside: avoid;
    }
}
