/* ================================
   THEME VARIABLES — DARK TECH
================================ */
:root {
    --color-bg: #000000;

    --color-surface: rgb(26, 0, 0);

    --color-secondary: rgb(77, 0, 0);

    --color-primary: #ff0000;



    --color-text-primary: #ffffff;
    --color-text-secondary: #cccccc;
    --color-text-muted: #888888;

    --color-hover: #ff3333;
    --color-active: #cc0000;
    --color-focus: #ff4d4d;

    /* Borders & shadows */
    --border-color: #330000;
    --shadow-color: rgba(255, 0, 0, 0.521);
}

/* ================================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    /* cursor: none; */
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.container {
    width: 80vw;
    margin: 0 auto;
}

section {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

html,
button,
.btn,
a,
body {
    cursor: none;
}




/* ================================
   PAGE LOADER (FRONTEND DEV STYLE)
================================ */

#pageLoader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.6s ease, visibility 1s ease;
}

#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Content */
.loader-content {
    text-align: center;
}

/* Name */
.loader-name {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

/* Role */
.loader-role {
    font-size: 1rem;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
    margin-bottom: 1.6rem;
}

/* Animated divider */
.loader-line {
    width: 160px;
    height: 2px;
    margin: 0 auto 1.8rem;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-primary),
        transparent
    );
    box-shadow: 0 0 12px var(--shadow-color);
    animation: loaderLine 2s infinite;
}

/* Typing dots */
.loader-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: loaderDots 1.2s infinite ease-in-out;
}

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

.loader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

/* Animations */
@keyframes loaderLine {
    0% {
        opacity: 0.3;
        transform: scaleX(0.6);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0.3;
        transform: scaleX(0.6);
    }
}

@keyframes loaderDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}





/* ================================
   Mouse over effects
   ================================ */

/* Lightning spark */
.lightning-spark {
    cursor: none;
    position: fixed;
    width: 12px;
    height: 2px;
    pointer-events: none;
    z-index: 9999;

    background: linear-gradient(90deg,
            rgba(255, 0, 0, 1),
            rgba(255, 0, 0, 0));

    box-shadow:
        0 0 6px rgba(255, 0, 0, 0.9),
        0 0 14px rgba(255, 0, 0, 0.6);

    transform-origin: left center;
    animation: lightningFade 0.4s ease-out forwards;
}

@keyframes lightningFade {
    0% {
        opacity: 1;
        transform: scaleX(1) rotate(var(--angle));
    }

    100% {
        opacity: 0;
        transform: scaleX(2.5) rotate(var(--angle));
    }
}

/* Cursor core */
.cursor-core {
    cursor: none;
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    pointer-events: none;
    z-index: 10000;

    box-shadow:
        0 0 12px var(--color-primary),
        0 0 24px rgba(255, 0, 0, 0.5);
}

.cursor-core {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);

    box-shadow:
        0 0 10px var(--color-primary);
}

/* Energy ring */
.cursor-ring {
    cursor: none;
    position: fixed;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    pointer-events: none;
    z-index: 9999;

    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {

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

    50% {
        transform: scale(1.3);
        opacity: 0.15;
    }
}

/* ================================
   HEADER / NAVBAR
================================ */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.35s ease, background 0.35s ease, padding 0.35s ease;
}

/* ================================
   HEADER SCROLL ANIMATION
================================ */
header.scrolled {
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

header.scrolled .navbar {
    padding: 0.15rem 0;
}

header .logo-container {
    transition: transform 0.35s ease;
}

header.scrolled .logo-container {
    transform: scale(0.9);
}

header.scrolled .header-divider {
    opacity: 0.9;
    box-shadow: 0 0 8px var(--shadow-color);
}

/* Divider */
.header-divider {
    width: 100%;
    height: 2px;
    margin-top: 0.4rem;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    background-size: 200% 100%;

    box-shadow: 0 0 12px var(--shadow-color);
    animation: glowLine 5s linear infinite;
}

.navbar {
    padding: 0.4rem 0;
    min-height: unset;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.logo-container {
    width: 250px;
    height: 70px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.navbar .nav-item a {
    font-size: 18px;
    color: var(--color-text-primary);
    -webkit-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    padding: 4px 10px;
    position: relative;
}

.navbar .nav-item a::before {
    position: absolute;
    content: '';
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    left: 110%;
    left: 0;
    bottom: 0;
    -webkit-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    -webkit-transform: skewX(13deg);
    transform: skewX(13deg);
    z-index: -1;
}

.navbar .nav-item:hover>a::before {
    width: 100%;
}

.navbar .nav-item.active>a::before {
    width: 100%;
}

/* ================================
   CUSTOM NAVBAR TOGGLER
================================ */

.custom-toggler {
    border: none;
    background: transparent;
    padding: 10px;
    box-shadow: none;
}

.custom-toggler:focus {
    box-shadow: none;
}

.toggler-icon {
    position: relative;
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    display: block;
    transition: background 0.3s ease;
    box-shadow: 0 0 8px var(--shadow-color);
}

.toggler-icon::before,
.toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    transition: transform 0.35s ease, top 0.35s ease, opacity 0.25s ease;
    box-shadow: 0 0 8px var(--shadow-color);
}

.toggler-icon::before {
    top: -8px;
}

.toggler-icon::after {
    top: 8px;
}

/* ================================
   OPEN STATE → CLOSE ICON (X)
================================ */

.custom-toggler[aria-expanded="true"] .toggler-icon {
    background: transparent;
}

.custom-toggler[aria-expanded="true"] .toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.custom-toggler[aria-expanded="true"] .toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.custom-toggler:hover .toggler-icon,
.custom-toggler:hover .toggler-icon::before,
.custom-toggler:hover .toggler-icon::after {
    box-shadow:
        0 0 10px var(--color-primary),
        0 0 20px var(--shadow-color);
}




/* ================================
   HERO SECTION
================================ */
.hero {
    margin: 100px 0;
}

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

.hero-content h3 {
    color: var(--color-text-secondary);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-primary);
}

.hero-content p {
    max-width: 480px;
    color: var(--color-text-secondary);
}

/* ================================
   TYPEWRITER CURSOR
================================ */
.cursor {
    color: var(--color-active);
    animation: blink .7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.typewriter-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.typewriter-text span {
    color: transparent;
    /* -webkit-text-stroke: 1px var(--color-secondary); */
    -webkit-text-stroke: 1px var(--color-primary);
    text-shadow: 0 0 8px var(--border-color);
    animation: fillIn 0.35s ease forwards;
    animation-delay: 0.5s;
}

/* Fill animation */
/* @keyframes fillIn {
    from {
        color: transparent;
    }

    to {
        color: var(--color-focus);
    }
} */

.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-text-primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 5px 5px 15px 2px var(--shadow-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: var(--color-hover);
    box-shadow: 7px 7px 15px 5px var(--shadow-color);
    transform: translateY(-5px) scale(1.1);
}

/* ================================
   PROFILE IMAGE
================================ */
.hero-image img {
    width: 360px;
    height: 360px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-active);
    box-shadow: 0 0 50px 20px var(--shadow-color);
    animation: float 6s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 30px 10px var(--shadow-color);
    }

    50% {
        box-shadow: 0 0 70px 30px rgba(255, 0, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 30px 10px var(--shadow-color);
    }
}

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

    50% {
        transform: translateY(-20px);
    }

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




/* ================================
   SECTION HEADER (LINE STYLE)
================================ */
.section-header-line {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.section-header-line h2 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-active);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
            var(--color-primary),
            rgba(255, 0, 0, 0.15),
            transparent);
    box-shadow: 0 0 12px var(--shadow-color);
}

.section-subtitle {
    max-width: 650px;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 3.5rem;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-primary),
            transparent);
    background-size: 200% 100%;
    box-shadow: 0 0 12px var(--shadow-color);
    animation: glowLine 2.5s linear infinite;
}

@keyframes glowLine {
    0% {
        opacity: 0.4;
        background-position: 0% 50%;
    }

    50% {
        opacity: 1;
        background-position: 100% 50%;
    }

    100% {
        opacity: 0.4;
        background-position: 0% 50%;
    }
}


/* ================================
   ABOUT SECTION
================================ */
.about-section {
    position: relative;
}

.about-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

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

.about-header h2 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-active);
}

.about-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
            var(--color-primary),
            transparent);
    box-shadow: 0 0 10px var(--shadow-color);
}

.about-card {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(145deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 0, 0, 0.4)); */
    background: var(--color-surface);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 8px 8px 25px var(--shadow-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card::before,
.stat::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 1rem;
    background: linear-gradient(120deg,
            transparent,
            var(--color-primary),
            transparent,
            var(--color-focus),
            transparent);
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.about-card::after,
.stat::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 12px 12px 35px var(--shadow-color);
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.tech {
    color: var(--color-focus);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}


.stat {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 4px 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: scale(1.08);
}

.stat h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.stat p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}




/* ================================
   SKILLS SECTION 
================================ */
.skills-section {
    position: relative;
}

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

.skills-header h2 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-active);
}

.skills-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    box-shadow: 0 0 10px var(--shadow-color);
}

.skills-intro {
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

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

/* Skill Card */
.skill {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(145deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 0, 0, 0.5)); */
    background: var(--color-surface);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.2rem 1rem;
    text-align: center;
    box-shadow: 6px 6px 18px var(--shadow-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.skill::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 1rem;
    background: linear-gradient(120deg,
            transparent,
            var(--color-primary),
            transparent,
            var(--color-primary),
            transparent);
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.skill::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    box-shadow: 0 0 35px rgba(255, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill:hover {
    background: var(--color-secondary);
    transform: translateY(-10px) scale(1.08);
    box-shadow: 10px 10px 30px var(--shadow-color);
}

.skill i {
    font-size: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.6));
}

.skill span {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-primary);
}

/* Skill Brand Colors */
.html {
    color: #E34F26;
}

.css {
    color: #264DE4;
}

.js {
    color: #F7DF1E;
}

.bootstrap {
    color: #7952B3;
}

.react {
    color: #61DAFB;
}

.tailwind {
    color: #38BDF8;
}




/* ================================
   PROJECTS SECTION
================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Card */
.project-card {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(145deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 0, 0, 0.45)); */
    background-color: var(--color-surface);
    border: 2px solid var(--border-color);
    border-radius: 1.1rem;
    box-shadow: 6px 6px 20px var(--shadow-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    padding: 2px;
    /* padding: 0.8rem; */
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 1rem;
    background: linear-gradient(120deg,
            transparent,
            var(--color-primary),
            transparent,
            var(--color-focus),
            transparent);
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
}

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 30px var(--shadow-color);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 1.1rem;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.868);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay span {
    position: relative;
    overflow: hidden;
    padding: 10px 22px;
    border-radius: 10px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.project-overlay span::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 1rem;
    background: linear-gradient(120deg,
            transparent,
            var(--color-primary),
            transparent,
            var(--color-focus),
            transparent);
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 0.6rem;
}

.project-content p {
    color: var(--color-text-secondary);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--color-primary);
    /* background: rgba(0, 0, 0, 0.35); */
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
}

/* ================================
   PROJECT MODAL 
================================ */
.contact-modal {
    background: var(--color-surface);
    border: 2px solid var(--border-color);
    border-radius: 1.2rem;
    box-shadow: 0 0 40px var(--shadow-color);
    color: var(--color-text-primary);
    overflow: hidden;
}

/* Header */
.contact-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.contact-modal .modal-header h5 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

/* Close button */
.contact-modal .btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-modal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Body */
.contact-modal .modal-body {
    padding: 2rem;
    background: var(--color-surface);
}

/* Description */
#modalDescription {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Tech stack */
#modalTech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2.2rem;
}

#modalTech span {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-text-secondary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#modalTech span:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--shadow-color);
}

.modal-links {
    display: flex;
    gap: 1.5rem;
}

.modal-links a {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.modal-links a::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 1rem;
    background: linear-gradient(120deg,
            transparent,
            var(--color-primary),
            transparent,
            var(--color-focus),
            transparent);
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.modal-links a i {
    font-size: 1rem;
}

.modal-links a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--shadow-color);
}

.modal.fade .modal-dialog {
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal.fade.show .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-image-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 0 25px var(--shadow-color);
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-line {
    opacity: 0;
    transform: translateY(14px);
    animation: modalLineReveal 0.6s ease forwards;
}

.modal-line:nth-of-type(1) {
    animation-delay: 0.15s;
}

.modal-line:nth-of-type(2) {
    animation-delay: 0.3s;
}

.modal-line:nth-of-type(3) {
    animation-delay: 0.45s;
}

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




/* ================================
   CONTACT SECTION
================================ */
.contact-section {
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

/* Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: 0.9rem;
    border: 1.5px solid var(--border-color);
    /* background: rgba(0, 0, 0, 0.35); */
    background: var(--color-surface);
    box-shadow: 4px 4px 15px var(--shadow-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-item:hover {
    /* background: var(--color-surface); */
    transform: translateY(-4px);
    box-shadow: 6px 6px 22px var(--shadow-color);
}

.info-item i {
    font-size: 1.6rem;
    color: var(--color-primary);
    min-width: 32px;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

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

/* Form */
.contact-form {
    /* background: rgba(0, 0, 0, 0.35); */
    background: var(--color-surface);
    border: 1.5px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 6px 6px 20px var(--shadow-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 0.6rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-primary);
    outline: none;
    cursor: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--color-secondary);
    border-color: var(--color-active);
    box-shadow: 0 0 10px var(--shadow-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form textarea {
    resize: none;
    min-height: 140px;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.contact-form button:hover {
    background: var(--color-hover);
    box-shadow: 0 0 20px var(--shadow-color);
}

#formMessage {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ================================
   CONTACT SEND MODAL
================================ */

.contact-modal {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 0 40px var(--shadow-color);
    color: var(--color-text-primary);
}

.contact-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

.contact-modal .modal-title {
    color: var(--color-primary);
    font-weight: 700;
}

.contact-modal .modal-body p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-modal .modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal-btn {
    padding: 10px 22px;
    background: var(--color-primary);
    border: none;
    cursor: none;
    border-radius: 0.6rem;
    color: #fff;
    font-weight: 600;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.modal-btn:hover {
    background: var(--color-hover);
    box-shadow: 0 0 20px var(--shadow-color);
}




/* ================================
   FLOATING SOCIAL STACK
================================ */
.social-float {
    position: fixed;
    bottom: 90px;
    left: 94%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

/* Base button */
.social-btn {
    position: relative;
    overflow: hidden;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.social-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(120deg,
            transparent,
            var(--color-primary),
            transparent,
            var(--color-focus),
            transparent);
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* WhatsApp */
.social-btn.whatsapp {
    background: var(--color-surface);
    box-shadow:
        0 0 14px var(--shadow-color),
        0 0 30px var(--shadow-color);
}

/* LinkedIn */
.social-btn.linkedin {
    background: var(--color-surface);
    box-shadow:
        0 0 14px var(--shadow-color),
        0 0 30px var(--shadow-color);
}

/* GitHub */
.social-btn.github {
    background: #111;
    box-shadow:
        0 0 14px var(--shadow-color),
        0 0 30px var(--shadow-color);
}

/* Hover */
.social-btn:hover {
    transform: translateY(-4px) scale(1.05);
}




/* ================================
   CHAT BOT
================================ */

.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    left: 94%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 0 20px var(--shadow-color);
    transition: transform 0.25s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
}

/* Chat window */
.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    max-height: 420px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header */
.chatbot-header {
    padding: 14px;
    background: rgba(255, 0, 0, 0.15);
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* Messages */
.chatbot-messages {
    padding: 14px;
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
}

.bot-message,
.user-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.4;
}

.bot-message {
    background: rgba(255, 0, 0, 0.15);
    color: var(--color-text-secondary);
}

.user-message {
    background: var(--color-primary);
    color: #fff;
    margin-left: auto;
}

/* Input */
.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 12px;
    color: #fff;
    outline: none;
}

.chatbot-input button {
    margin-left: 8px;
    background: var(--color-primary);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}




/* ================================
   FOOTER
================================ */
.footer {
    background: rgba(0, 0, 0, 0.6);
    /* border-top: 2px solid var(--border-color); */
    padding: 2.2rem 0;
    margin-top: 5rem;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.footer-role {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-center p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-right {
    display: flex;
    gap: 1.4rem;
}

.footer-right a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.footer-right a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.25s ease;
}

.footer-right a:hover {
    color: var(--color-primary);
}

.footer-right a:hover::after {
    width: 100%;
}

/* ================================
   FOOTER DIVIDER (ANIMATED)
================================ */
.footer-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-primary),
            transparent);
    box-shadow: 0 0 12px var(--shadow-color);
    animation: dividerGlow 3s linear infinite;
    margin-bottom: 2.5rem;
}

@keyframes dividerGlow {
    0% {
        opacity: 0.4;
        background-position: 0% 50%;
    }

    50% {
        opacity: 1;
        background-position: 100% 50%;
    }

    100% {
        opacity: 0.4;
        background-position: 0% 50%;
    }
}

/* ================================
   FOOTER SOCIAL ICONS
================================ */
.footer-right a {
    font-size: 1.5rem;
    color: var(--color-primary);
    border-radius: 50%;
    padding: 0px 8px;
    background: var(--color-surface);
    box-shadow: 6px 6px 20px var(--shadow-color);
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-right a:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}




/* =====================================
   GLOBAL RESPONSIVE FIXES
===================================== */

/* Container scaling */
@media (max-width: 1200px) {
    .container {
        width: 90vw;
    }
}

@media (max-width: 768px) {
    .container {
        width: 94vw;
    }
}

/* Disable custom cursor on mobile (important) */
@media (hover: none) {

    body,
    a,
    button,
    .btn {
        cursor: auto !important;
    }

    .cursor-core,
    .cursor-ring,
    .lightning-spark {
        display: none !important;
    }
}

/* =====================================
   HEADER / NAVBAR
===================================== */

@media (max-width: 991px) {
    .logo-container {
        width: 180px;
        height: 55px;
    }

    .navbar-nav {
        border-radius: 1rem;
        padding: 1.5rem;
        margin-top: 1rem;
        gap: 1.2rem !important;
        text-align: center;
    }

    .navbar .nav-item a {
        font-size: 1rem;
    }
}

/* =====================================
   HERO SECTION
===================================== */

@media (max-width: 991px) {
    .hero {
        margin: 120px 0 60px;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-content p {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }

    .typewriter-text {
        font-size: 2rem;
    }

    .hero-image img {
        width: 260px;
        height: 260px;
    }
}

/* =====================================
   SECTION HEADERS
===================================== */

@media (max-width: 768px) {

    .section-header-line h2,
    .about-header h2,
    .skills-header h2 {
        font-size: 2.2rem;
    }
}

/* =====================================
   ABOUT SECTION
===================================== */

@media (max-width: 768px) {
    .about-card {
        padding: 2rem 1.5rem;
    }

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

/* =====================================
   SKILLS SECTION
===================================== */

@media (max-width: 576px) {
    .skills-grid {
        gap: 2rem;
    }

    .skill i {
        font-size: 64px;
    }
}

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

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-content {
        padding: 1.6rem;
    }
}

/* =====================================
   CONTACT SECTION
===================================== */

@media (max-width: 768px) {
    .contact-wrapper {
        gap: 2rem;
    }

    .contact-form {
        padding: 1.6rem;
    }
}

/* =====================================
   FLOATING UI (SOCIAL + CHATBOT)
===================================== */

@media (max-width: 576px) {
    .social-float {
        bottom: 77px;
        left: 84%;
        gap: 10px;
        float: left;
    }

    .chatbot-toggle {
        bottom: 18px;
        left: 84%;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .chatbot-window {
        right: 10px;
        width: calc(100vw - 20px);
        max-height: 70vh;
    }
}

/* =====================================
   FOOTER
===================================== */

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem;
    }

    .footer-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-name {
        font-size: 1.1rem;
    }
}
