:root {
    --primary-color: #ff2a2a;
    --secondary-color: #9f111b;
    --accent-glow: rgba(255, 42, 42, 0.24);

    --bg-color: #070b11;
    --bg-secondary: #0d131c;
    --surface-color: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.12);

    --text-color: #f5f7fa;
    --text-muted: #a9b4c2;

    --shadow-color: rgba(0, 0, 0, 0.35);
    --glass-blur: 16px;

    --transition: all 0.3s ease;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html[data-bs-theme="light"] {
    --bg-color: #f4f7fb;
    --bg-secondary: #eaf0f7;
    --surface-color: rgba(255, 255, 255, 0.55);
    --surface-strong: rgba(255, 255, 255, 0.78);
    --border-color: rgba(15, 23, 42, 0.08);

    --text-color: #101828;
    --text-muted: #4b5565;

    --shadow-color: rgba(15, 23, 42, 0.08);
    --accent-glow: rgba(255, 42, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 42, 42, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 42, 42, 0.08), transparent 30%),
        var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* Intro cinematic overlays */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 42, 42, 0.14), transparent 22%),
        radial-gradient(circle at 80% 75%, rgba(255, 42, 42, 0.1), transparent 24%);
    filter: blur(18px);
    animation: introAtmosphere 1.8s ease forwards;
}

body::after {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.08) 30%,
            rgba(0, 0, 0, 0.08) 70%,
            rgba(0, 0, 0, 0.55) 100%);
    opacity: 0;
    animation: introCurtain 1.2s ease forwards;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-padding {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 760px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
    animation: gridReveal 1.4s ease forwards;
}

html[data-bs-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.bg-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    background: var(--accent-glow);
}

.bg-glow-1 {
    top: 10%;
    left: -60px;
    animation: floatGlowOne 8s ease-in-out infinite;
}

.bg-glow-2 {
    bottom: 5%;
    right: -60px;
    animation: floatGlowTwo 10s ease-in-out infinite;
}

.glass-card,
.glass-modal {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 12px 40px var(--shadow-color);
}

.glass-card {
    border-radius: var(--radius-xl);
}

/* NAVBAR */
.glass-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    overflow: hidden;
    width: calc(100% - 24px);
    max-width: 1320px;
    border-radius: 18px;
    background: rgba(18, 24, 38, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: navAssemble 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.glass-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.015));
    pointer-events: none;
}

.glass-nav.navbar-scrolled {
    background: rgba(18, 24, 38, 0.78);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-container-centered {
    justify-content: center;
}

.navbar-collapse.justify-content-center {
    justify-content: center !important;
}

.navbar-brand,
.nav-link {
    color: var(--text-color) !important;
}

.nav-link {
    position: relative;
    font-weight: 700;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92) !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn-theme-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    transition: var(--transition);
}

.btn-theme-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(255, 42, 42, 0.35);
    color: var(--primary-color);
}

/* HERO */
.hero-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
}

.hero-content-wide {
    max-width: 1100px;
}

.hero-badge {
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    animation: pieceInLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.status-dot {
    color: #26d07c;
    font-size: 0.6rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em !important;
    max-width: 1050px;
    margin-bottom: 0;
    animation: titleAssemble 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-bs-theme="light"] .text-gradient {
    background: linear-gradient(90deg, #1a1a1a, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 820px;
    color: var(--text-muted);
    font-size: 1.22rem;
    line-height: 1.85;
    animation: pieceInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.hero-actions .btn:nth-child(1) {
    animation: pieceInLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

.hero-actions .btn:nth-child(2) {
    animation: pieceInRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.28s both;
}

/* BUTTONS */
.btn-primary-custom,
.btn-outline-custom {
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 42, 42, 0.28);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 18px 34px rgba(255, 42, 42, 0.3);
}

.btn-outline-custom {
    border: 1px solid rgba(255, 42, 42, 0.45);
    color: var(--text-color);
    background: transparent;
}

.btn-outline-custom:hover {
    background: rgba(255, 42, 42, 0.1);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

html[data-bs-theme="light"] .btn-outline-custom:hover {
    color: var(--text-color);
}

/* ABOUT + GENERAL CARDS */
.about-image-wrapper,
.about-content,
.stats-wrapper,
.contact-wrapper {
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.mini-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.mini-info-card i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.mini-info-card strong {
    font-size: 1.15rem;
}

.mini-info-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.skill-card,
.skill-card,
.service-card,
.project-card {
    position: relative;
    padding: 2rem;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
    height: 100%;
}

.skill-card::after,
.project-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 42, 42, 0.85),
            transparent);
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 42, 42, 0.34);
    box-shadow:
        0 22px 40px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 42, 42, 0.06),
        0 0 30px rgba(255, 42, 42, 0.10);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.03));
}

.skill-card:hover::after,
.project-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.skill-icon,
.service-icon,
.stat-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 42, 42, 0.14);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 auto 1.2rem;
}

.skill-card .skill-icon {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.skill-card:hover .skill-icon {
    transform: translateY(-4px) scale(1.08);
    background: rgba(255, 42, 42, 0.18);
    box-shadow: 0 12px 26px rgba(255, 42, 42, 0.14);
}

.skill-card h5,
.service-card h4,
.project-card h5 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
}

.skill-card p,
.service-card p,
.project-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 1.02rem;
}

.skill-card h5,
.service-card h4,
.skill-card p,
.service-card p {
    text-align: center;
}

/* STATS */
.stat-card h3 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 0;
}

/* PROJECTS */
.project-card {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent);
    z-index: 1;
    pointer-events: none;
}

.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.project-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

/* MODALS */
.glass-modal {
    border-radius: 24px;
    color: #f5f7fa;
    background: rgba(24, 28, 40, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.modal-content {
    background: rgba(24, 28, 40, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f5f7fa !important;
}

.modal-header {
    background: transparent;
}

.modal-title {
    color: #ffffff;
    font-weight: 700;
}

.modal-body {
    background: transparent;
}

.modal-body p {
    color: rgba(245, 247, 250, 0.84);
    line-height: 1.85;
    font-size: 1.05rem;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.modal-backdrop.show {
    opacity: 0.72;
}

/* CONTACT */
.contact-btn {
    min-width: 180px;
    padding: 1rem 1.4rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--surface-strong);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-btn:hover {
    transform: translateY(-5px);
    color: #fff;
    border-color: rgba(255, 42, 42, 0.35);
    background: linear-gradient(135deg, rgba(255, 42, 42, 0.22), rgba(159, 17, 27, 0.18));
}

html[data-bs-theme="light"] .contact-btn:hover {
    color: var(--text-color);
}

.contact-btn i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(18, 24, 38, 0.72);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(28, 36, 54, 0.88);
    border-color: rgba(255, 42, 42, 0.35);
    color: var(--primary-color);
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* KEYFRAMES */
@keyframes introAtmosphere {
    0% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes introCurtain {
    0% {
        opacity: 1;
        transform: scaleX(1.08);
    }

    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

@keyframes gridReveal {
    0% {
        opacity: 0;
        transform: scale(1.04);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes navAssemble {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-24px) scale(0.98);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes navAssembleMobile {
    0% {
        opacity: 0;
        transform: translateY(-18px) scale(0.96);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes titleAssemble {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
        filter: blur(10px);
        letter-spacing: -0.08em;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        letter-spacing: -0.04em;
    }
}

@keyframes pieceInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes pieceInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes pieceInUp {
    0% {
        opacity: 0;
        transform: translateY(36px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes floatGlowOne {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(28px, -18px);
    }
}

@keyframes floatGlowTwo {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-22px, 20px);
    }
}

@keyframes introAtmosphereMobile {
    0% {
        opacity: 0;
        transform: scale(1.03);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes introCurtainMobile {
    0% {
        opacity: 0.65;
        transform: scaleX(1.02);
    }

    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-section {
        padding-top: 130px;
        min-height: auto;
    }

    .about-image {
        height: 100%;
    }

        .glass-nav {
            top: 14px;
            left: 50%;
            right: auto;
            transform: translateX(-50%);
            width: calc(100% - 20px);
            max-width: 1320px;
            background: rgba(18, 24, 38, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                0 10px 30px rgba(0, 0, 0, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(18px) saturate(140%);
            -webkit-backdrop-filter: blur(18px) saturate(140%);
            overflow: visible;
            animation: navAssemble 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
        }
    
        .glass-nav::before {
            display: block;
        }
    
                .glass-nav .navbar-toggler {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0 !important;
                }
        
                .glass-nav .navbar-toggler-icon {
                    position: relative;
                    top: 0;
                    left: 0;
                }
                
        .glass-nav .container,
        .nav-container-centered {
            width: 100%;
            max-width: none;
            margin: 0;
            padding-left: 0.85rem;
            padding-right: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: space-between !important;
        }
    
        .glass-nav .navbar-toggler {
            order: 2;
            margin: 0 !important;
            width: 48px;
            height: 48px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            background: rgba(255, 255, 255, 0.06);
            box-shadow: none;
        }
    
        .glass-nav .navbar-collapse {
            position: absolute;
            top: 62px;
            right: 0;
            left: auto;
            width: min(280px, calc(100vw - 28px));
            margin-top: 0;
            padding: 1rem;
            border-radius: 18px;
            background: rgba(18, 24, 38, 0.94);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }
    
        .glass-nav .navbar-nav {
            width: 100%;
            align-items: flex-start !important;
            gap: 0.5rem !important;
        }
    
        .glass-nav .nav-item {
            width: 100%;
        }
    
        .glass-nav .nav-link {
            display: block;
            width: 100%;
            padding: 0.75rem 0.35rem;
            font-size: 1.05rem;
        }
    
        .glass-nav .nav-item.ms-lg-3 {
            margin-left: 0 !important;
            margin-top: 0 !important;
            width: auto;
        }
    
        .glass-nav .btn-theme-toggle {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.06);
        }
    
        .glass-nav .navbar-collapse .btn-theme-toggle {
            width: 100%;
            height: 46px;
            border-radius: 12px;
        }

                .glass-nav .container>.navbar-toggler {
                    margin-left: auto !important;
                }
        
                .glass-nav .container {
                    position: relative;
                }
            }
@media (max-width: 767.98px) {
    body::before {
        animation: introAtmosphereMobile 1s ease forwards;
    }

    body::after {
        animation: introCurtainMobile 0.8s ease forwards;
    }

    .bg-grid {
        opacity: 0.55;
    }

    .bg-glow {
        filter: blur(56px);
        opacity: 0.7;
    }

    .glass-card,
    .glass-modal {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .reveal {
        transition: opacity 0.5s ease, transform 0.5s ease;
        transform: translateY(24px);
    }

    .skill-card:hover,
    .service-card:hover,
    .project-card:hover {
        transform: none;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .contact-btn {
        width: 100%;
    }

    .project-image {
        height: 220px;
    }

    .about-image {
        height: 520px;
    }

    .section-tag {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: clamp(2rem, 7vw, 2.6rem);
    }

    .nav-link {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: clamp(2.6rem, 11vw, 4.2rem);
        line-height: 1.08;
    }

    .hero-subtitle {
        font-size: 1.08rem;
        line-height: 1.75;
    }

    .hero-badge {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        white-space: normal;
    }

    .glass-nav {
        animation-duration: 0.7s !important;
        animation-delay: 0.05s !important;
    }

    .hero-badge {
        animation-duration: 0.65s !important;
        animation-delay: 0.18s !important;
    }

    .hero-title {
        animation-duration: 0.75s !important;
        animation-delay: 0.3s !important;
    }

    .hero-subtitle {
        animation-duration: 0.7s !important;
        animation-delay: 0.48s !important;
    }

    .hero-actions .btn:nth-child(1) {
        animation-duration: 0.65s !important;
        animation-delay: 0.6s !important;
    }

    .hero-actions .btn:nth-child(2) {
        animation-duration: 0.65s !important;
        animation-delay: 0.68s !important;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}




/* CUSTOM CURSOR */


/* CUSTOM CURSOR */
body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled .btn,
body.custom-cursor-enabled .nav-link,
body.custom-cursor-enabled .project-card,
body.custom-cursor-enabled .contact-btn,
body.custom-cursor-enabled .navbar-toggler,
body.custom-cursor-enabled .btn-theme-toggle,
body.custom-cursor-enabled .back-to-top,
body.custom-cursor-enabled [data-bs-toggle="modal"] {
    cursor: none !important;
}

.custom-cursor,
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform, opacity;
}

.custom-cursor {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 42, 42, 0.04);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 20px rgba(255, 42, 42, 0.12);
    transition:
        width 0.25s ease,
        height 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(255, 42, 42, 0.45);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.custom-cursor.active {
    width: 54px;
    height: 54px;
    border-color: rgba(255, 42, 42, 0.65);
    background: rgba(255, 42, 42, 0.05);
    box-shadow:
        0 0 0 1px rgba(255, 42, 42, 0.08),
        0 0 28px rgba(255, 42, 42, 0.18);
}

.custom-cursor.clicking {
    width: 26px;
    height: 26px;
}

.custom-cursor.visible,
.custom-cursor-dot.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {

    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

html[data-bs-theme="light"] .custom-cursor {
    border: 1.5px solid rgba(15, 23, 42, 0.42);
    background: rgba(255, 42, 42, 0.025);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.05),
        0 0 18px rgba(255, 42, 42, 0.08);
}

html[data-bs-theme="light"] .custom-cursor.active {
    border-color: rgba(255, 42, 42, 0.6);
    background: rgba(255, 42, 42, 0.045);
    box-shadow:
        0 0 0 1px rgba(255, 42, 42, 0.07),
        0 0 24px rgba(255, 42, 42, 0.14);
}