/* ==========================================================================
   CSS VARIABLE DECLARATIONS & GLOBAL TOKENS
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout Variables */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Transition Times */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- DARK MODE THEME TOKENS (DEFAULT) --- */
    --bg-primary: #080d1a;
    --bg-secondary: #0c1326;
    --bg-card: rgba(17, 27, 50, 0.65);
    --bg-card-hover: rgba(22, 36, 66, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-color: #0ea5e9;
    --accent-hover: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --accent-light: rgba(14, 165, 233, 0.12);
    --shadow-main: 0 10px 30px -10px rgba(2, 6, 23, 0.7);
    --shadow-hover: 0 20px 40px -15px rgba(2, 6, 23, 0.9);
    --selection-bg: #6366f1;
    --selection-color: #ffffff;
    --preloader-bg: #060a12;
}

/* --- LIGHT MODE THEME TOKENS --- */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-color: #0284c7;
    --accent-hover: #0369a1;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    --accent-light: rgba(2, 132, 199, 0.08);
    --shadow-main: 0 10px 30px -10px rgba(148, 163, 184, 0.2);
    --shadow-hover: 0 20px 40px -15px rgba(148, 163, 184, 0.4);
    --selection-bg: #4f46e5;
    --selection-color: #ffffff;
    --preloader-bg: #f8fafc;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

::selection {
    background-color: var(--selection-bg);
    color: var(--selection-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
}

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.accent {
    color: var(--accent-color);
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   REUSABLE UTILITIES & LAYOUTS
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Second group inside a single column. Carries the reason the group exists:
   these were studied for, not certified in. */
.section-title-grouped {
    margin-top: 2.5rem;
}

.credentials-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -0.6rem;
    margin-bottom: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

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

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-main);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   PRELOADER & PRELOAD LOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--preloader-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-text {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-normal), border-bottom var(--transition-normal), height var(--transition-normal);
}

.main-header.scrolled {
    background-color: rgba(8, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

body.light-theme .main-header.scrolled {
    background-color: rgba(248, 250, 252, 0.85);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 1.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

.btn-nav {
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.03);
}

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

.btn-nav:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-card-hover);
    transform: rotate(20deg);
}

.theme-toggle-btn .sun-icon {
    display: none;
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: block;
}

body.light-theme .theme-toggle-btn .moon-icon {
    display: none;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-normal);
    transform-origin: left center;
}

/* ==========================================================================
   HERO SECTION & PARTICLES CANVAS BACKGROUND
   ========================================================================== */
.hero-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

#particles-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.45;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-container {
    margin-bottom: 1rem;
}

.hero-badge {
    background-color: var(--accent-light);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-badge i {
    font-size: 0.75rem;
    animation: pulse 1.5s infinite;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-titles {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 40px;
}

.typed-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
    color: var(--accent-color);
    margin-left: 2px;
}

.hero-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stats Cards in Hero */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-number-wrapper {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 5px;
}

.stat-number-wrapper .plus {
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scroll-down-indicator span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin: -5px;
    animation: scrollDown 2s infinite;
}

.scroll-down-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-image-side {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-border-decor {
    position: relative;
    padding: 15px;
}

.image-border-decor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-top: 4px solid var(--accent-color);
    border-left: 4px solid var(--accent-color);
    z-index: 1;
}

.image-border-decor::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-bottom: 4px solid var(--accent-color);
    border-right: 4px solid var(--accent-color);
    z-index: 1;
}

.about-img-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-secondary);
}

.about-img {
    border-radius: var(--border-radius-md);
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: grayscale(15%);
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.about-image-side:hover .about-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.floating-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
    background: rgba(17, 27, 50, 0.85);
}

.floating-badge i {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.badge-txt h4 {
    font-size: 1.1rem;
    line-height: 1.2;
}

.badge-txt p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.about-intro-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.about-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.scope-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.scope-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.scope-icon {
    color: var(--accent-color);
    font-size: 0.95rem;
    width: 18px;
}

.personal-info-grid {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.info-row {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
}

.info-label {
    font-weight: 600;
    width: 100px;
    color: var(--text-primary);
}

.info-value {
    color: var(--text-secondary);
}

.info-value a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   HIGHLIGHTS SECTION
   ========================================================================== */
.highlights-section {
    background-color: var(--bg-secondary);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlight-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: var(--border-radius-sm);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.highlight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   PROFESSIONAL EXPERIENCE TIMELINE
   ========================================================================== */
.experience-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item-single {
    left: 50%;
    width: min(620px, 92%);
    transform: translateX(-50%);
}

.timeline-item-single .timeline-dot {
    right: auto;
    left: -22px;
}

.timeline-dot {
    position: absolute;
    top: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    z-index: 10;
    transition: background var(--transition-normal), color var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-gradient);
    color: #ffffff;
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-content {
    padding: 35px;
}

.job-company {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.job-role {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.job-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.job-overview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.job-resp-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.job-responsibilities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-responsibilities li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.job-responsibilities li i {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ==========================================================================
   TECHNICAL SKILLS
   ========================================================================== */
.skills-section {
    background-color: var(--bg-secondary);
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.skill-tab-btn {
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.skill-tab-btn:hover,
.skill-tab-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.skill-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.skill-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    /* Animated via JS */
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percent {
    align-self: flex-end;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--transition-normal);
}

.service-card:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   PROJECTS SECTION (FILTERABLE)
   ========================================================================== */
.projects-section {
    background-color: var(--bg-secondary);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}


.filter-btn {
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* When filtering leaves a single project, let it use the full row instead of
   sitting in the left column beside an empty gap. Toggled by the filter JS. */
.projects-grid.grid-solo {
    grid-template-columns: 1fr;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.project-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 10, 18, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    transition: all var(--transition-fast);
}

.project-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.project-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 8px;
    display: inline-block;
}

.project-details h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tech-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 4px;
}

/* For filtering animations */
.project-card.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

/* ==========================================================================
   OBJECTIVE, CERTIFICATIONS & EDUCATION (DOUBLE COLUMN)
   ========================================================================== */
.obj-certs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.objective-card {
    padding: 40px;
    position: relative;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.objective-text {
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.objective-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 20px;
}

.objective-author h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.objective-author p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.education-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edu-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.edu-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.edu-header h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    transition: color var(--transition-normal);
}

/* Match the certificate cards: the degree title tints on card hover */
.education-card.cert-linked:hover .edu-header h3 {
    color: var(--accent-color);
}

.edu-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.edu-badge {
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Bottom row of the education card: grade badge left, certificate link right */
.edu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.edu-footer .cert-view-link {
    margin-top: 0;
}

.languages-flex {
    display: flex;
    gap: 20px;
}

.lang-card {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-flag {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.lang-card h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.lang-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Certifications Column */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cert-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.cert-desc-tag {
    font-size: 0.75rem;
    background-color: var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Linked certificate: clickable title + explicit "View" affordance */
.cert-info h3 a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-normal);
}

.cert-info h3 a:hover {
    color: var(--accent-color);
}

.cert-info h3 a .cert-link-icon {
    font-size: 0.72em;
    opacity: 0.65;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.cert-info h3 a:hover .cert-link-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

.cert-view-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.cert-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color);
}

.cert-view-link:hover {
    text-decoration: underline;
}

/* Whole card is clickable when a certificate link exists.
   Matches any .cert-linked surface (cert cards + the education card). */
.cert-linked {
    cursor: pointer;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.cert-linked:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-side h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info-side>p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.contact-item-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.c-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.c-info h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.c-info p,
.c-info a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.c-info a:hover {
    color: var(--accent-color);
}

.social-links-wrapper h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-link:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
}

.social-link.github:hover {
    background-color: #24292e;
    border-color: #24292e;
}

.social-link.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
}

.social-link.hackerrank:hover {
    background-color: #00ea64;
    border-color: #00ea64;
    color: #0b0f14;
}

/* Interactive Contact Form */
.contact-form-side {
    padding: 40px;
}

.contact-form-side h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all var(--transition-normal);
    pointer-events: none;
    font-size: 0.95rem;
}

.form-group textarea~label {
    top: 25px;
}

/* Floating label styles */
.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 2px 8px;
    background-color: var(--bg-primary);
    color: var(--accent-color);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-light);
}

/* Error validation states */
.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 5px;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.form-group.error .error-msg {
    opacity: 1;
    visibility: visible;
}

.btn-submit {
    width: 100%;
    position: relative;
}

.spinner-inline {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.hidden {
    display: none !important;
}

/* Toast Message */
.toast {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    animation: slideInDown 0.4s ease-out;
}

.toast-icon {
    font-size: 1.6rem;
}

.toast-body h4 {
    color: #10b981;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Toast error state (contact form failure) */
.toast.toast-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.toast.toast-error .toast-body h4 {
    color: #ef4444;
}

/* Project date range, shown under the project title */
.project-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: -4px;
    margin-bottom: 10px;
}

@keyframes slideInDown {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 40px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-meta {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* ==========================================================================
   SCROLL REVEAL & FADE-IN ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

/* Laptop & Desktop Large Viewports */
@media (min-width: 1440px) {
    .section-container {
        max-width: 1300px;
    }
}

/* Laptop Viewport (1024px - 1440px) */
@media (max-width: 1200px) {
    .hero-name {
        font-size: 3rem;
    }

    .about-grid,
    .contact-grid,
    .obj-certs-grid {
        gap: 40px;
    }

    .highlights-grid,
    .skills-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Viewport (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-summary {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-stats-grid {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-side {
        margin-bottom: 20px;
    }

    .about-img {
        max-width: 380px;
        height: 380px;
    }

    .obj-certs-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item-single {
        left: 0;
        transform: none;
    }

    .timeline-item-single .timeline-dot {
        left: 8px;
        right: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Navigation Menu Overlay for Mobile & Tablet */
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    /* Active Burger Menu Bars Transformation */
    .mobile-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(2px, -2px);
    }

    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(2px, 2px);
    }
}

/* Mobile Screen Viewport (< 768px) */
@media (max-width: 767px) {
    .section-container {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .hero-name {
        font-size: 2.4rem;
    }

    .hero-titles {
        font-size: 1.4rem;
        height: 35px;
    }

    .hero-summary {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }

    .highlights-grid,
    .skills-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .scope-grid {
        grid-template-columns: 1fr;
    }

    .languages-flex {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        gap: 16px;
    }

    .timeline-dot {
        width: 36px;
        height: 36px;
        left: 12px !important;
        font-size: 0.9rem;
    }

    .timeline-item {
        padding-left: 52px;
        padding-right: 12px;
    }

    .timeline-content {
        padding: 20px 16px;
    }

    .cert-card {
        padding: 16px;
        gap: 12px;
    }
}

@media (max-width: 768px) {

    .hero-section {
        min-height: 100vh;
        height: auto;
        padding: 120px 20px 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-name {
        font-size: 2.3rem;
        line-height: 1.2;
    }

    .hero-titles {
        font-size: 1.2rem;
        height: auto;
    }

    .hero-summary {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* ==========================================================================
   ACCESSIBILITY: SKIP LINK
   Off-screen until focused, then it drops in at the top-left so keyboard and
   screen-reader users can jump the nav instead of tabbing through every link.
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 3000;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 12px;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ==========================================================================
   ACCESSIBILITY: KEYBOARD FOCUS VISIBILITY  (WCAG 2.4.7)
   The reset sets `outline: none` on button/input/textarea so the design stays
   clean, which left keyboard users with no focus indicator at all on any
   button. :focus-visible puts one back for keyboard navigation only, so
   pointer clicks still show no ring.
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Tighter ring on the form fields so it does not clash with the focus glow */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
}

/* Icon-only buttons need the offset or the ring hides under the circle */
.theme-toggle-btn:focus-visible,
.social-link:focus-visible,
.footer-socials a:focus-visible,
.mobile-toggle:focus-visible,
.back-to-top-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* On the light theme the sky-blue ring has too little contrast on white */
body.light-theme a:focus-visible,
body.light-theme button:focus-visible,
body.light-theme input:focus-visible,
body.light-theme textarea:focus-visible {
    outline-color: var(--accent-hover);
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION  (WCAG 2.3.3)
   The site runs four infinite animations (pulse, blink, scrollDown, spin)
   plus scroll-triggered reveals and count-ups. Opt out entirely when the
   visitor has asked their operating system for reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    /* `!important` is deliberate here: these have to beat the component
       rules above regardless of how they were written. */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Without the transition these sections would sit at opacity 0 waiting on
       an observer callback. Show them immediately instead. */
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Counters and skill bars are written by JS; with no transition they just
       land on their final value, which is the readable outcome. */
    .skill-progress,
    .stat-number-wrapper {
        transition: none !important;
    }

    /* Decorative loops only: keep the element, drop the motion. The scroll
       hint stays clickable rather than being removed. */
    .hero-badge i,
    .typed-cursor,
    .scroll-down-indicator span {
        animation: none !important;
    }
}