/* ============================================
   CSS VARIABLES & ROOT
   ============================================ */
:root {
    --bg-primary: #06060e;
    --bg-secondary: #0c0c1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --accent-pink: #ff006e;
    --accent-purple: #8338ec;
    --accent-blue: #3a86ff;
    --accent-cyan: #00d4ff;

    --gradient-primary: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    --gradient-accent: linear-gradient(135deg, #ff006e, #8338ec);
    --gradient-glow: linear-gradient(135deg, rgba(255, 0, 110, .4), rgba(131, 56, 236, .4), rgba(58, 134, 255, .4));

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-glow: 0 0 30px rgba(131, 56, 236, .15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, .3);

    --transition: all .4s cubic-bezier(.25, .46, .45, .94);
    --transition-fast: all .2s ease;

    --nav-height: 80px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-primary);
}

html::-webkit-scrollbar {
    width: 8px;
}

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

html::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 10px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

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

ul {
    list-style: none;
}

button {
    cursor: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 120px 0;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
}

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

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--accent-purple);
    border-right: 3px solid var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loader-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform .1s ease, width .3s ease, height .3s ease, background .3s ease;
}

.cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(131, 56, 236, .5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    transition: width .4s ease, height .4s ease, border-color .4s ease, background .4s ease;
    background: radial-gradient(circle, rgba(131, 56, 236, .08), transparent 70%);
}

.cursor-dot.hover {
    width: 16px;
    height: 16px;
    background: var(--accent-pink);
    mix-blend-mode: difference;
}

.cursor-glow.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-pink);
    background: radial-gradient(circle, rgba(255, 0, 110, .1), transparent 70%);
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   BACKGROUND ORBS
   ============================================ */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .15;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -10%;
    right: -5%;
    animation: floatOrb 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    bottom: -10%;
    left: -5%;
    animation: floatOrb 20s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
    top: 40%;
    left: 40%;
    animation: floatOrb 18s ease-in-out infinite 3s;
}

@keyframes floatOrb {

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

    25% {
        transform: translate(80px, -60px) scale(1.1);
    }

    50% {
        transform: translate(-40px, 80px) scale(.95);
    }

    75% {
        transform: translate(60px, 40px) scale(1.05);
    }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(6, 6, 14, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.logo-bracket {
    color: var(--accent-purple);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: .4rem 0;
    transition: var(--transition-fast);
}

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

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

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-purple);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1rem;

    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    background-size: 200% 200%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    /* 🔥 IMPORTANT */

    animation: gradientShift 6s ease infinite;

}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.title-static {
    color: var(--text-secondary);
}

.typing-wrapper {
    position: relative;
}

.typing-text {
    color: var(--accent-cyan);
}

.typing-cursor {
    color: var(--accent-pink);
    animation: cursorBlink .7s step-end infinite;
    font-weight: 300;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 25px rgba(131, 56, 236, .35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(131, 56, 236, .5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(131, 56, 236, .1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(131, 56, 236, .2);
}

.btn-sm {
    padding: .6rem 1.5rem;
    font-size: .85rem;
}

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

/* Social Links */
.hero-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    /* color: var(--text-primary); */
    border-color: var(--accent-purple);
    background: rgba(131, 56, 236, .15);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(131, 56, 236, .25);
}
.s-i-insta:hover {
    color: var(--accent-pink);
}
.s-i-snap:hover{
    color: yellow;
}
.s-i-linkedin:hover{
    color: var(--accent-blue);
}
.s-i-github:hover{
    color: white;
}
/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.hero-image-glow {
    position: absolute;
    inset: -15px;
    background: var(--gradient-glow);
    border-radius: 25px;
    filter: blur(40px);
    z-index: 1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

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

    50% {
        opacity: .8;
        transform: scale(1.03);
    }
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    padding: .6rem 1.2rem;
    background: rgba(12, 12, 26, .85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: .4rem;
    box-shadow: var(--shadow-card);
}

.badge-1 {
    top: 10%;
    right: -10%;
    animation: floatBadge 6s ease-in-out infinite;
    color: #61dafb;
}

.badge-2 {
    bottom: 25%;
    left: -8%;
    animation: floatBadge 7s ease-in-out infinite 1s;
    color: #f7df1e;
}

.badge-3 {
    bottom: 5%;
    right: 5%;
    animation: floatBadge 5s ease-in-out infinite 2s;
    color: #b46205;
}

@keyframes floatBadge {

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: var(--accent-purple);
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

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

    50% {
        transform: translateY(8px);
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: .92rem;
    color: var(--accent-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: .5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    margin: 0 auto;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(131, 56, 236, .3);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transform: translateY(-8px);
}

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

.exp-text {
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.emoji {
    font-style: normal;
}

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

.about-single {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

/* cards */
.about-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.card {
    padding: 12px 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #ff4ecd;
    transform: translateY(-6px);
    border-color: #ff4ecd;
    box-shadow: 0 0 15px rgba(255, 78, 205, 0.3);
}

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

/* ============================================
   SKILLS SECTION (UPDATED CLEAN VERSION)
   ============================================ */

.skills-section {
    max-width: 1100px;
    margin: auto;
    padding-top: 100px;
    scroll-margin-top: 100px;
}

/* Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Card */
.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.skill-category:hover {
    transform: translateY(-6px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

/* Top glow line */
.skill-category::before {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: 0.3s;
}

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

/* Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(131, 56, 236, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    font-size: 1.1rem;
}

.category-name {
    color: var(--text-primary);
    font-weight: 600;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Pills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition-fast);
}

.skill-pill:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: 120px 0;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Card */
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

/* Image */
.project-image-wrapper {
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
}

/* Image fix */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 main fix */
    object-position: top;
    /* 👈 change to center if needed */
    transition: transform 0.4s ease;
}

/* Hover zoom */
.project-card:hover .project-image {
    transform: scale(1.08);
}

/* Dark overlay (premium feel) */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0.7;
}

/* Content */
.project-content {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Tech tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
    background: rgba(131, 56, 236, 0.1);
    color: var(--accent-purple);
}

/* Buttons */
.project-actions {
    display: flex;
    gap: 0.5rem;
}

.project-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */

/* ===== SERVICES IMPROVED ===== */

#services {
    position: relative;
    padding-top: 60px;
}


#services .section-header {
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.services-cta {
    text-align: center;
    margin-top: 1rem;
    color: #aaa;
}

/* CARD */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(131, 56, 236, 0.3);
}

/* Tag */
.service-tag {
    font-size: 0.65rem;
    color: #ff006e;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* ICON */
.service-icon {
    min-width: 45px;
    height: 45px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(131, 56, 236, 0.15);
    color: var(--accent-purple);

    font-size: 1.5rem;
    padding: 12px;
}

/* TEXT */
.service-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.service-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* HOVER 🔥 */
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-purple);
    background: rgba(131, 56, 236, 0.08);
}

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

/* ============================================
   CONTACT SECTION — COMPLETE CSS
   ============================================ */

/* ---------- LAYOUT ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

/* ---------- LEFT COLUMN: INFO ---------- */
.contact-info {
    position: relative;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    font-size: 0.95rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-item:hover {
    background: rgba(131, 56, 236, 0.05);
    border-color: rgba(131, 56, 236, 0.12);
    transform: translateX(6px);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(131, 56, 236, 0.08);
    border: 1px solid rgba(131, 56, 236, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent-purple);
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.contact-icon i {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

.contact-item:hover .contact-icon {
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(131, 56, 236, 0.25);
}

.contact-item:hover .contact-icon::before {
    opacity: 1;
}

.contact-item:hover .contact-icon i {
    color: #fff;
}

/* NOTE: .contact-label is for INFO items (Email/Phone/Location) */
.contact-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: color 0.3s ease;
}

p.contact-value:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-socials {
    display: flex;
    gap: 0.8rem;
}

.contact-socials .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
}

/* ============================================
   RIGHT COLUMN: FORM CARD
   ============================================ */
.contact-form {
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-form:hover {
    border-color: rgba(131, 56, 236, 0.15);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(131, 56, 236, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Top gradient line */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(131, 56, 236, 0.3),
            rgba(255, 0, 110, 0.2),
            transparent);
    opacity: 0.8;
}

/* Ambient glow inside card */
.contact-form::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle,
            rgba(131, 56, 236, 0.04) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- FORM HEADER ---------- */
.form-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ---------- FORM GRID ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    column-gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ---------- INPUT WRAPPER ---------- */
.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* ---------- ICONS ---------- */
.input-icon {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
}

/* Icon for textarea — stays at top */
.form-group.full-width:last-of-type .input-icon {
    top: 1.1rem;
}

/* Icon changes on focus */
.form-input-wrapper:focus-within .input-icon {
    color: var(--accent-purple);
    opacity: 1;
    transform: translateY(-2px);
}

/* ---------- INPUTS ---------- */
.form-input {
    width: 100%;
    padding: 0.9rem 0 0.9rem 32px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.35s ease;
    cursor: text;
    position: relative;
    z-index: 1;
}

/* Hide real placeholder — we use floating labels instead */
.form-input::placeholder {
    color: transparent;
}

.form-input:hover {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.form-input:focus {
    border-bottom-color: var(--accent-purple);
}

/* ---------- FLOATING LABELS ---------- */
/*
   .form-label is AFTER .form-input in the HTML,
   so the ~ sibling combinator works here.
   
   Default: sits at input text level (acts as placeholder)
   Focus/filled: floats up, shrinks, turns purple
*/
.form-label {
    position: absolute;
    top: 0.9rem;
    left: 32px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    opacity: 0.6;
}

/* Float up on focus */
.form-input:focus~.form-label {
    top: -0.7rem;
    left: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-purple);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 1;
}

/* Stay up when input has text */
.form-input:not(:placeholder-shown)~.form-label {
    top: -0.7rem;
    left: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-purple);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 1;
}

/* ---------- INPUT GLOW (animated underline) ---------- */
.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
    pointer-events: none;
}

.form-input:focus~.input-glow {
    width: 100%;
    box-shadow: 0 1px 12px rgba(131, 56, 236, 0.35);
}

/* ---------- TEXTAREA ---------- */
.form-textarea {
    resize: none;
    min-height: 130px;
    line-height: 1.65;
    padding-top: 1rem;
}

/* ---------- SUBMIT BUTTON ---------- */
.contact-submit-wrapper {
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.btn-submit {
    width: 100%;
    padding: 15px 32px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    background-size: 200% 200%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 4px 20px rgba(131, 56, 236, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}

/* Shine overlay */
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Ripple circle */
.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow:
        0 8px 35px rgba(131, 56, 236, 0.45),
        0 0 60px rgba(255, 0, 110, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:hover::after {
    width: 320px;
    height: 320px;
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(131, 56, 236, 0.35);
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit i {
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
    font-size: 0.9rem;
}

.btn-submit:hover i {
    transform: translateX(4px) rotate(-15deg);
}

/* ---------- STATUS BAR ---------- */
.form-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.secure-badge i {
    font-size: 0.65rem;
    color: rgba(34, 197, 94, 0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .form-group.full-width {
        grid-column: auto;
    }
}

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

    .contact-heading {
        font-size: 1.35rem;
    }

    .contact-item {
        padding: 0.85rem 1rem;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .btn-submit {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem 1.2rem;
        border-radius: 18px;
    }

    .form-title {
        font-size: 1.1rem;
    }

    .form-input {
        font-size: 0.9rem;
        padding: 0.85rem 0 0.85rem 30px;
    }

    .form-label {
        left: 30px;
        font-size: 0.9rem;
    }

    .input-icon {
        font-size: 0.82rem;
    }

    .contact-heading {
        font-size: 1.2rem;
    }

    .contact-socials .social-link {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .form-status-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.footer-socials {
    display: flex;
    gap: .8rem;
}

.footer-bottom {
    text-align: center;
    font-size: .85rem;
    color: var(--text-muted);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(131, 56, 236, .4);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(131, 56, 236, .6);
}

/* ============================================
   SCROLL REVEAL ANIMATION CLASSES
   ============================================ */
[data-animate] {
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

[data-animate="fade-up"] {
    transform: translateY(60px);
}

[data-animate="fade-right"] {
    transform: translateX(-60px);
}

[data-animate="fade-left"] {
    transform: translateX(60px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   TILT CARD OVERRIDE (JS-controlled)
   ============================================ */
.tilt-card {
    transform-style: preserve-3d;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 380px;
    }

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

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

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

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

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .section {
        padding: 80px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: rgba(6, 6, 14, .97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right .4s cubic-bezier(.25, .46, .45, .94);
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

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

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

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: .72rem;
    }

    .skills-circles {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .floating-badge {
        display: none;
    }

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

    /* Disable custom cursor on touch devices */
    .cursor-dot,
    .cursor-glow {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    a,
    button {
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .contact-form {
        padding: 1.5rem;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-buttons {
        flex-direction: column;
    }
}

.red {
    color: #ff004f;
}

.tech-stack {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #ff4ecd;
    border-radius: 8px;
    margin-top: 15px;
    background: rgba(255, 78, 205, 0.05);
    font-weight: 600;
}