/* ==========================================================================
   Devfolio — Professional Developer Portfolio Design System & Tokens
   ========================================================================== */
:root {
    /* Color Palette - Default Light Theme (Day Mode) */
    --ink: #0f172a;
    --ink-soft: #475569;
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --line: rgba(15, 23, 42, 0.20);
    --nav-divider: rgba(15, 23, 42, 0.28);

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-ink: #ffffff;
    --accent-glow: rgba(99, 102, 241, 0.25);

    --ember: #f43f5e;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.25);

    --indicator-bg: #0f172a;
    --indicator-ink: #ffffff;

    --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --nav-h: 84px;
    --nav-h-scrolled: 68px;

    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 8px 24px var(--accent-glow);
}

/* Dark Theme Variables Override (Night Mode) */
[data-theme="dark"] {
    --ink: #f8fafc;
    --ink-soft: #94a3b8;
    --bg: #090d16;
    --surface: rgba(15, 23, 42, 0.78);
    --surface-solid: #0f172a;
    --line: rgba(248, 250, 252, 0.24);
    --nav-divider: rgba(255, 255, 255, 0.32);

    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-ink: #0f172a;
    --accent-glow: rgba(129, 140, 248, 0.18);

    --indicator-bg: #ffffff;
    --indicator-ink: #0f172a;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.22);
    --shadow-glow: 0 4px 14px var(--accent-glow);
}

* {
    box-sizing: border-box;
}

::selection {
    background: var(--accent);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--ink-soft);
    border-radius: 999px;
    border: 2px solid var(--bg);
    opacity: 0.5;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
    overflow-x: hidden;
    width: 100%;
}

[data-theme="dark"] body,
html[data-theme="dark"] body {
    background-color: var(--bg) !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
}

::placeholder {
    color: var(--ink-soft);
    opacity: 0.65;
}

section,
.section,
.hero-section {
    scroll-margin-top: calc(var(--nav-h-scrolled) + 10px);
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-h);
    border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Header & Navbar Layout (Permanently Fixed Top)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.navbar {
    height: var(--nav-h-scrolled);
    display: flex;
    align-items: center;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-smooth);
}

.navbar__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.35s var(--ease-spring);
}

/* ==========================================================================
   Brand & Status Badge
   ========================================================================== */
.navbar__brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.navbar__logo:hover {
    transform: scale(1.02);
}

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

/* Green Status Pulse Badge */
.navbar__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 0 0 var(--success-glow);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   Desktop Links & Sliding Indicator
   ========================================================================== */
.navbar__menu {
    display: flex;
    align-items: center;
}

.navbar__links {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--line);
}

[data-theme="dark"] .navbar__links {
    background: rgba(255, 255, 255, 0.03);
}

.navbar__indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: var(--indicator-bg);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.25s var(--ease-smooth);
}

.navbar__link .nav-icon {
    display: none;
}

.navbar__link:hover {
    color: var(--ink);
}

.navbar__link.is-active {
    color: var(--indicator-ink);
    font-weight: 600;
}

.navbar__menu-footer,
.navbar__mobile-header,
.navbar__mobile-footer {
    display: none !important;
}

/* ==========================================================================
   Actions: Theme Switcher, Resume, Burger
   ========================================================================== */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Theme Switcher Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    padding: 0;
}

.theme-toggle:hover {
    background: var(--line);
    transform: rotate(15deg);
}

.theme-toggle .icon-dark {
    display: block;
}

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

[data-theme="dark"] .theme-toggle .icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-light {
    display: block;
    color: #facc15;
}

/* Resume CTA Button */
.navbar__resume {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s var(--ease-spring);
    white-space: nowrap;
}

.navbar__resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.navbar__resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--accent-glow);
    color: #ffffff;
}

.navbar__resume:hover::before {
    left: 100%;
}

.navbar__resume i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.navbar__resume:hover i {
    transform: translateY(2px);
}

/* Burger Toggle */
.navbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s var(--ease-smooth);
}

.navbar__burger span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
}

.navbar__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Single Navbar Menu Styling (Dropdown on Mobile)
   ========================================================================== */
.navbar__menu {
    transition: opacity 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), visibility 0.3s;
}

.navbar__menu-resume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 8px;
    text-decoration: none;
    box-shadow: var(--shadow-glow);
}

body.nav-open {
    overflow: hidden;
}

/* ==========================================================================
   Hero / Home Section Styling
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: calc(var(--nav-h-scrolled) + 40px);
    padding-bottom: 60px;
    overflow: hidden;
}

.hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* --- Left Column: Hero Content --- */
.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.40);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.3rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 20px 0;
}

.hero__title-name {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-8deg);
    }

    60% {
        transform: rotate(14deg);
    }

    80% {
        transform: rotate(-4deg);
    }
}

.hero__typed-wrapper {
    display: inline-block;
}

.hero__typed-text {
    color: var(--accent);
    border-bottom: 2.5px solid var(--accent);
    padding-bottom: 2px;
}

.hero__description {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 560px;
    margin-bottom: 32px;
}

/* --- Hero Action Buttons --- */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    border: 1px solid transparent;
}

.btn-primary i {
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px var(--accent-glow);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(129, 140, 248, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Hero Social Links --- */
.hero__socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__socials-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}

.hero__socials-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    color: var(--social-icon-color, var(--social-brand));
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-spring);
}

.social-icon-btn:hover {
    background: var(--social-brand);
    color: #ffffff;
    border-color: var(--social-brand);
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-glow);
}

.social-icon-btn--github,
.social-pill-btn--github {
    --social-brand: #181717;
}

.social-icon-btn--linkedin,
.social-pill-btn--linkedin {
    --social-brand: #0a66c2;
}

.social-icon-btn--x,
.social-pill-btn--x {
    --social-brand: #000000;
}

.social-icon-btn--email,
.social-pill-btn--email {
    --social-brand: #ea4335;
}

[data-theme="dark"] .social-icon-btn--x,
[data-theme="dark"] .social-pill-btn--x {
    --social-brand: #ffffff;
}

[data-theme="dark"] .social-icon-btn--github,
[data-theme="dark"] .social-pill-btn--github {
    --social-icon-color: #ffffff;
}

.social-icon-btn--x:hover,
[data-theme="dark"] .social-icon-btn--x:hover {
    color: #ffffff;
}

[data-theme="dark"] .social-icon-btn--x:hover {
    color: #090d16;
}

/* --- Right Column: Visual Avatar Card --- */
.hero__visual-col {
    display: flex;
    justify-content: center;
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.hero__avatar-backdrop {
    position: absolute;
    inset: -20px;
    border-radius: 40px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.75;
    z-index: 0;
}

.hero__avatar-wrapper {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.hero__avatar-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.hero__avatar-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Floating Tech Badges */
.floating-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 16px;
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-badge--1 {
    top: 8%;
    left: -24px;
}

.floating-badge--2 {
    bottom: 10%;
    right: -24px;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-10px);
    }
}

.floating-badge__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.floating-badge__info {
    display: flex;
    flex-direction: column;
}

.floating-badge__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.floating-badge__subtitle {
    font-size: 0.72rem;
    color: var(--ink-soft);
    line-height: 1.2;
}

/* ==========================================================================
   Shared Container & Section Headers
   ========================================================================== */
.container-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 54px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.40);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 10px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 580px;
    margin: 0 auto;
}

/* ==========================================================================
   About Me Section Styling
   ========================================================================== */
.about-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.about__heading {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.3;
}

.about__text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.text-highlight {
    color: var(--ink);
    font-weight: 600;
}

/* Core Focus Cards */
.about__focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.focus-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.focus-card:hover::before {
    opacity: 1;
}

.focus-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.focus-card:hover .focus-card__icon {
    transform: scale(1.1);
    background: var(--accent);
    color: #ffffff;
}

.focus-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px 0;
}

.focus-card__desc {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.35;
}

/* Stats Counter Grid */
.about__stats-col {
    display: flex;
    flex-direction: column;
}

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

.stat-card {
    padding: 32px 24px;
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--accent);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.stat-card:hover .stat-card__icon {
    transform: scale(1.1);
    background: var(--accent);
    color: #ffffff;
}

.stat-card__number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.stat-card__plus {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-left: 2px;
}

.stat-card__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-top: 10px;
}

/* ==========================================================================
   Skills Section Styling
   ========================================================================== */
.skills-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.015);
}

[data-theme="dark"] .skills-section {
    background: rgba(255, 255, 255, 0.01);
}

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

.skill-category-card {
    padding: 32px;
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
}

.skill-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.skill-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(99, 102, 241, 0.12), var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.4);
}

.skill-category-card:hover::before {
    opacity: 1;
}

.skill-category__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.skill-category__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.skill-category-card:hover .skill-category__icon {
    transform: scale(1.1);
}

.skill-category__icon--languages {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.skill-category__icon--frontend {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
}

.skill-category__icon--backend {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.skill-category__icon--database {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.skill-category__icon--tools {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.skill-category__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 2px 0;
}

.skill-category__badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-tags-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.18);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.25s ease;
}

.skill-tag i {
    color: var(--accent);
    font-size: 1rem;
    transition: color 0.25s ease;
}

.skill-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.skill-tag:hover i {
    color: #ffffff;
}

/* ==========================================================================
   Projects Section Styling
   ========================================================================== */
.projects-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
}

.projects__filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.filter-btn {
    padding: 9px 24px;
    border-radius: 999px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.filter-btn:hover,
.filter-btn.is-active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    z-index: 2;
    transition: opacity 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.4);
}

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

.project-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card[data-category="extension"] .project-card__image-wrapper {
    height: 320px;
    aspect-ratio: auto;
    padding-top: 12px;
    background: #ffffff;
}

.project-card[data-category="extension"] .project-card__img {
    object-fit: contain;
}

.project-card__img--dark {
    display: none;
}

[data-theme="dark"] .project-card[data-category="extension"] .project-card__image-wrapper {
    background: #111827;
}

[data-theme="dark"] .project-card[data-category="extension"] .project-card__img--light {
    display: none;
}

[data-theme="dark"] .project-card[data-category="extension"] .project-card__img--dark {
    display: block;
}

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

.project-card[data-category="extension"]:hover .project-card__img {
    transform: none;
}

@media (max-width: 991px) {
    .project-card[data-category="extension"] .project-card__image-wrapper {
        height: 360px;
    }
}

@media (max-width: 576px) {
    .project-card[data-category="extension"] .project-card__image-wrapper {
        height: min(420px, 105vw);
    }
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-overlay-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.project-overlay-btn:hover {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.project-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.project-card__category {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.project-card__featured-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 2px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.project-card__description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 18px;
    flex-grow: 1;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.project-card__tags .tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent);
    transition: background 0.25s ease, color 0.25s ease;
}

.project-card__tags .tag:hover {
    background: var(--accent);
    color: #ffffff;
}

.project-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.project-link {
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.project-link--primary {
    padding: 8px 18px;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.project-link--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.45);
}

.project-link--primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.project-link--secondary {
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--line);
    color: var(--ink);
}

[data-theme="dark"] .project-link--secondary {
    background: rgba(255, 255, 255, 0.05);
}

.project-link--secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Experience Section Timeline Styling
   ========================================================================== */
.experience-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
}

.timeline {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 17px;
    width: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(99, 102, 241, 0.3) 70%, transparent 100%);
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

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

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 0 0 6px var(--bg), 0 0 16px var(--accent-glow);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(99, 102, 241, 0.4);
}

.timeline-content {
    padding: 28px;
    border-radius: 22px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.timeline-content:hover {
    transform: translateX(6px) translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.12), var(--shadow-md);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px 0;
}

.timeline-company-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.timeline-location {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-period {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.timeline-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

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

.timeline-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent);
    transition: background 0.25s ease, color 0.25s ease;
}

.timeline-tags span:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ==========================================================================
   Education Section Styling
   ========================================================================== */
.education-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.015);
}

[data-theme="dark"] .education-section {
    background: rgba(255, 255, 255, 0.01);
}

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

.education-card {
    display: flex;
    gap: 20px;
    padding: 32px;
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.education-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.12), var(--shadow-md);
}

.education-card:hover::before {
    opacity: 1;
}

.education-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.education-card:hover .education-card__icon {
    transform: scale(1.08);
    background: var(--accent);
    color: #ffffff;
}

.education-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.education-card__year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.education-card__location {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.education-card__degree {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px 0;
}

.education-card__field {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 6px 0;
}

.education-card__institution {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.education-card__grade-badge {
    font-size: 0.84rem;
    color: var(--ink);
    background: rgba(15, 23, 42, 0.03);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

[data-theme="dark"] .education-card__grade-badge {
    background: rgba(255, 255, 255, 0.04);
}

.education-card__grade-badge i {
    color: #f59e0b;
    font-size: 1rem;
}

.education-card__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.education-card__highlights span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent);
    transition: background 0.25s ease, color 0.25s ease;
}

.education-card__highlights span:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ==========================================================================
   Contact Section & Form Styling
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.contact__info-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}

.contact__info-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 28px;
}

.contact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(6px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--shadow-md);
}

.contact-info-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-card__icon--email {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
}

.contact-info-card__icon--phone {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.contact-info-card__icon--location {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
}

.contact-info-card__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

.contact-info-card__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Contact Form */
.contact-form {
    padding: 36px;
    border-radius: 24px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--ink-soft);
    font-size: 1.1rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-input.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-input.is-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.field-error {
    font-size: 0.78rem;
    font-weight: 500;
    color: #ef4444;
    margin-top: 6px;
    display: block;
    min-height: 18px;
    transition: opacity 0.2s ease;
}

.form-input--textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper--textarea .input-icon {
    top: 14px;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.spin {
    animation: spin 1s linear infinite;
}

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

/* Animated Dot Pulse Loader */
.dot-loader {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.dot-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.dot-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.dot-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.4);
        opacity: 0.3;
    }

    40% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.form-status--success {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.form-status--error {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

#contactFormStatus[hidden] {
    display: none;
}

.form-status__link {
    display: inline-block;
    margin-top: 8px;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* ==========================================================================
   Site Footer Styling
   ========================================================================== */
/* ==========================================================================
   Site Footer Styling
   ========================================================================== */
.site-footer {
    padding: 80px 0 32px 0;
    background: var(--surface-solid);
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

/* 4-Column Clean Structured Grid Layout */
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1.5fr;
    gap: 44px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

.footer__col {
    display: flex;
    flex-direction: column;
}

/* Column 1: Brand & Status */
.footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 14px;
    transition: transform 0.25s var(--ease-spring);
}

.footer__logo:hover {
    transform: scale(1.03);
}

.footer__tagline {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 360px;
}

.footer__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.22);
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--success);
    width: fit-content;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
    transition: all 0.3s var(--ease-smooth);
}

.footer__status-badge:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

.footer__col-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
}

/* Column 2: Quick Navigation */
.footer__link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link-list a {
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s var(--ease-smooth);
}

.footer__link-list a i {
    font-size: 1.1rem;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.footer__link-list a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer__link-list a:hover i {
    transform: translateX(3px);
}

/* Column 3: Core Tech Focus */
.footer__expertise-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expertise-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all 0.25s var(--ease-smooth);
}

.expertise-pill i {
    color: var(--accent);
    font-size: 0.9rem;
}

.expertise-pill:hover {
    border-color: var(--accent);
    color: var(--ink);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

/* Column 4: Connect & Social Grid */
.footer__cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.25s var(--ease-smooth);
    box-shadow: var(--shadow-glow);
}

.footer__cta-badge:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer__cta-badge .arrow-icon {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.footer__cta-badge:hover .arrow-icon {
    transform: translateX(4px);
}

.footer__social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.social-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all 0.25s var(--ease-smooth);
}

.social-pill-btn i {
    font-size: 0.95rem;
    color: var(--social-icon-color, var(--social-brand));
}

.social-pill-btn:hover {
    border-color: var(--social-brand);
    color: #ffffff;
    transform: translateY(-2px);
    background: var(--social-brand);
}

.social-pill-btn:hover i {
    color: inherit;
}

[data-theme="dark"] .social-pill-btn--x:hover {
    color: #090d16;
}

/* Refined Bottom Bar */
.footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 28px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.footer__bottom-left {
    grid-column: 2;
    text-align: center;
}

.footer__bottom-left p {
    margin: 0;
}

.footer__bottom-right {
    grid-column: 3;
    justify-self: end;
}

.footer__location-tag {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Floating Back-to-Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.85);
    transition: all 0.35s var(--ease-spring);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.08);
    background: var(--accent-hover);
    color: #ffffff;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.35s var(--ease-spring);
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.08);
    background: #20ba5a;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   Responsive Breakpoints & Auto-Adjust Layout System (Mobiles, Tablets, Desktops & 4K Displays)
   ========================================================================== */

/* 1400px+ Ultra-Wide & 4K Display Optimization */
@media (min-width: 1400px) {
    .container-custom {
        max-width: 1320px;
    }
    .hero__title {
        font-size: 3.6rem;
    }
    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* 1200px Laptop & Desktop Optimizations */
@media (max-width: 1200px) {
    .container-custom {
        max-width: 1140px;
    }

    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* 991px Laptop / Tablet Breakpoint */
@media (max-width: 991px) {

    .navbar__status-badge {
        display: none;
    }

    .navbar__actions {
        flex-shrink: 0;
    }

    .navbar__resume {
        display: none;
    }

    .navbar__burger {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-solid);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), visibility 0.3s;
        z-index: 999;
        padding: 16px;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - var(--nav-h-scrolled));
        max-height: calc(100dvh - var(--nav-h-scrolled));
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    [data-theme="dark"] .navbar__menu {
        background: var(--surface-solid);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .navbar__menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar__links {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        gap: 2px;
    }

    [data-theme="dark"] .navbar__links {
        background: transparent;
    }

    .navbar__links li {
        width: 100%;
        border-bottom: 1px solid var(--nav-divider);
    }

    .navbar__links li:last-child {
        border-bottom: none;
    }

    .navbar__indicator {
        display: none;
    }

    .navbar__link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--ink);
        text-decoration: none;
        border-radius: 8px;
        width: 100%;
        transition: all 0.2s var(--ease-smooth);
    }

    .navbar__link .nav-icon {
        display: inline-block;
        font-size: 1rem;
        color: var(--accent);
        width: 20px;
        text-align: center;
    }

    .navbar__link:hover,
    .navbar__link.is-active {
        background: rgba(99, 102, 241, 0.08);
        color: var(--accent);
    }

    /* Mobile Navigation Profile Header Card */
    .navbar__mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        margin-bottom: 14px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    }

    [data-theme="dark"] .navbar__mobile-header {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(168, 85, 247, 0.14) 100%);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .navbar__mobile-profile {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .navbar__mobile-avatar-wrapper {
        position: relative;
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }

    .navbar__mobile-avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center top;
        border: 2.5px solid var(--accent);
        box-shadow: 0 4px 16px var(--accent-glow);
        background: var(--surface-solid);
        image-rendering: -webkit-optimize-contrast;
        transition: transform 0.3s var(--ease-spring);
    }

    .navbar__mobile-avatar:hover {
        transform: scale(1.06);
    }

    .mobile-avatar-status {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 14px;
        height: 14px;
        background-color: var(--success);
        border: 2.5px solid var(--surface-solid);
        border-radius: 50%;
        box-shadow: 0 0 8px var(--success-glow);
    }

    .navbar__mobile-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .navbar__mobile-name {
        font-family: var(--font-display);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink);
        margin: 0;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .navbar__mobile-role {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--accent);
        line-height: 1.2;
    }

    .navbar__mobile-badge {
        font-size: 0.72rem;
        font-weight: 500;
        color: var(--ink-soft);
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-top: 2px;
    }

    .navbar__mobile-badge i {
        color: var(--ember);
        font-size: 0.75rem;
    }

    .navbar__mobile-footer {
        display: block !important;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }

    .navbar__mobile-resume-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        font-weight: 700;
        color: #ffffff;
        background: linear-gradient(135deg, var(--accent), var(--accent-hover));
        border-radius: 12px;
        text-decoration: none;
        box-shadow: var(--shadow-glow);
        transition: all 0.3s var(--ease-spring);
    }

    .navbar__mobile-resume-btn:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px var(--accent-glow);
    }

    .hero-section {
        padding-top: calc(var(--nav-h-scrolled) + 28px);
        padding-bottom: 48px;
        min-height: auto;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__content {
        align-items: center;
    }

    .hero__description {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual-col {
        width: 100%;
    }

    .hero__visual {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero__avatar-wrapper {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        border-radius: 28px;
    }

    .hero__avatar-img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        border-radius: 28px;
        object-fit: cover;
        object-position: center top;
    }

    .floating-badge--1 {
        left: -10px;
    }

    .floating-badge--2 {
        right: -10px;
    }

    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* 768px Small Tablet / Mobile Landscape Breakpoint */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
        min-height: auto;
    }

    .skills__grid,
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .about__focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .projects__filter-bar {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.84rem;
    }
}

/* 576px Mobile Device Breakpoint */
@media (max-width: 576px) {

    .about__focus-grid,
    .stats-grid,
    .form-row,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer__bottom-left,
    .footer__bottom-right {
        grid-column: auto;
        justify-self: center;
    }

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

    .hero__avatar-wrapper {
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
    }

    .hero__avatar-img {
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
    }
}

/* 480px Compact Smartphone Breakpoint */
@media (max-width: 480px) {
    .navbar__inner {
        padding: 0 16px;
    }

    .navbar__logo {
        font-size: 1.2rem;
    }

    .navbar__resume {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .hero__container,
    .container-custom {
        padding: 0 16px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .floating-badge {
        display: none;
    }

    .skill-category-card,
    .contact-form,
    .education-card,
    .project-card__body {
        padding: 20px 16px;
    }

    .contact-info-card {
        padding: 14px;
    }

    .back-to-top {
        bottom: 18px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .whatsapp-float {
        bottom: 68px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
}

/* 360px Ultra-Compact Device Breakpoint (Small Androids, Foldables) */
@media (max-width: 360px) {
    .hero__avatar-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .hero__avatar-img {
        width: 100%;
        max-width: 100%;
    }
    .footer__social-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Ultra-Attractive Custom SweetAlert2 Modal Styling
   ========================================================================== */
.swal2-popup.custom-swal-popup {
    background: var(--surface-solid) !important;
    color: var(--ink) !important;
    border-radius: 24px !important;
    padding: 36px 28px !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow) !important;
    backdrop-filter: blur(16px);
}

.custom-swal-icon {
    border-color: rgba(99, 102, 241, 0.5) !important;
    margin: 10px auto 20px !important;
    transform: scale(1.1);
}

.custom-swal-title {
    font-family: var(--font-heading) !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    margin-bottom: 10px !important;
}

.custom-swal-html {
    font-family: var(--font-body) !important;
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    color: var(--ink-soft) !important;
}

.swal-badge-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 16px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.custom-swal-confirm-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 36px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.custom-swal-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.55) !important;
}