/* === VARIABLES === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #030308;
    --bg-alt: #080816;
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #ec4899;
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: var(--bg)
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

/* === LOADER === */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s, visibility 0.6s
}

#loader.hidden {
    opacity: 0;
    visibility: hidden
}

.loader-ring {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--pink);
    border-right-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite
}

.loader-text {
    font-family: var(--fd);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 16px;
    animation: pulse 1.5s ease-in-out infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4
    }

    50% {
        opacity: 1
    }
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center
}

/* === BG SHAPES === */
.bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatS 18s ease-in-out infinite
}

.s1 {
    width: 500px;
    height: 500px;
    background: var(--pink);
    top: -100px;
    left: -150px
}

.s2 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    bottom: -80px;
    right: -100px;
    animation-delay: -6s
}

.s3 {
    width: 300px;
    height: 300px;
    background: var(--violet);
    top: 40%;
    left: 55%;
    animation-delay: -12s
}

@keyframes floatS {

    0%,
    100% {
        transform: translate(0, 0)
    }

    33% {
        transform: translate(30px, -40px)
    }

    66% {
        transform: translate(-20px, 30px)
    }
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45
}

/* === UTILS === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

section {
    position: relative;
    z-index: 1
}

.section-tag {
    display: inline-block;
    font-family: var(--ff-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px
}

.section-title {
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg)
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: var(--ff-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-l {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease
}

.reveal-r {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease
}

.reveal-l.visible,
.reveal-r.visible {
    opacity: 1;
    transform: translateX(0)
}

/* === NAVBAR === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.4s, padding 0.4s
}

#navbar.scrolled {
    background: rgba(7, 7, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 11px 0
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-logo {
    font-family: var(--fd);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    position: relative;
    transition: color 0.25s
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: width 0.3s ease
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text)
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    -webkit-tap-highlight-color: transparent
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--tr)
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(7, 7, 16, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
    z-index: 99;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--tr)
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0)
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px
}

.mobile-menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    display: block;
    padding: 4px 0
}

.mobile-menu a:hover {
    color: var(--pink)
}

/* === HERO === */
#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 60% 40%, rgba(120, 75, 160, 0.32) 0%, transparent 70%);
    pointer-events: none
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 60, 172, 0.08);
    border: 1px solid rgba(255, 60, 172, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--pink);
    margin-bottom: 22px;
    animation: fadeD 0.6s ease both
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    animation: pulse 1.5s ease-in-out infinite
}

.hero-heading {
    font-family: var(--fd);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    animation: fadeD 0.7s 0.1s ease both
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--muted);
    margin-bottom: 14px;
    animation: fadeD 0.7s 0.2s ease both
}

#typing-text {
    color: var(--pink);
    border-right: 2px solid var(--pink);
    padding-right: 2px;
    animation: blink 0.8s step-end infinite
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

.hero-desc {
    color: var(--muted);
    font-size: 0.97rem;
    max-width: 460px;
    margin-bottom: 36px;
    animation: fadeD 0.7s 0.3s ease both
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeD 0.7s 0.4s ease both
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 52px;
    animation: fadeD 0.7s 0.5s ease both
}

.stat-num {
    font-family: var(--fd);
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted)
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeU 0.9s 0.2s ease both
}

.hero-avatar-wrap {
    position: relative;
    width: 360px;
    height: 360px
}

.hero-avatar-bg {
    position: absolute;
    inset: 0;
    background: var(--grad);
    border-radius: 60% 40% 70% 30%/40% 60% 30% 70%;
    opacity: 0.14;
    animation: blob 8s ease-in-out infinite;
    filter: blur(20px)
}

.hero-avatar-ring {
    position: absolute;
    inset: -15px;
    border: 1.5px solid rgba(255, 60, 172, 0.22);
    border-radius: 60% 40% 70% 30%/40% 60% 30% 70%;
    animation: blob 8s ease-in-out infinite reverse
}

.hero-avatar-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 60% 40% 70% 30%/40% 60% 30% 70%;
    background: linear-gradient(135deg, rgba(120, 75, 160, 0.5), rgba(255, 60, 172, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6.5rem;
    animation: blob 8s ease-in-out infinite;
    overflow: hidden;
    user-select: none
}

@keyframes blob {

    0%,
    100% {
        border-radius: 60% 40% 70% 30%/40% 60% 30% 70%
    }

    25% {
        border-radius: 30% 70% 50% 50%/60% 30% 70% 40%
    }

    50% {
        border-radius: 50% 50% 30% 70%/30% 70% 40% 60%
    }

    75% {
        border-radius: 70% 30% 60% 40%/50% 40% 60% 50%
    }
}

.hero-float-card {
    position: absolute;
    background: rgba(13, 13, 26, 0.88);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    box-shadow: var(--sc);
    animation: floatC 4s ease-in-out infinite;
    white-space: nowrap
}

.hero-float-card:nth-child(1) {
    top: 10%;
    right: -10px
}

.hero-float-card:nth-child(2) {
    bottom: 18%;
    left: -20px;
    animation-delay: -2s
}

.card-label {
    color: var(--muted);
    font-size: 0.7rem
}

.card-val {
    font-weight: 600;
    font-size: 0.88rem
}

@keyframes floatC {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes fadeD {
    from {
        opacity: 0;
        transform: translateY(-18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeU {
    from {
        opacity: 0;
        transform: translateY(28px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* === ABOUT === */
#about {
    padding: 110px 0
}

#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(43, 134, 197, 0.09) 0%, transparent 70%);
    pointer-events: none
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 70px;
    align-items: center
}

.about-img-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px
}

.about-img {
    width: 300px;
    height: 380px;
    border-radius: 40% 60% 50% 50%/50% 40% 60% 50%;
    background: linear-gradient(135deg, rgba(120, 75, 160, 0.4), rgba(43, 134, 197, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5.5rem;
    position: relative;
    overflow: hidden;
    animation: blob2 10s ease-in-out infinite;
    flex-shrink: 0
}

.about-img::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--grad);
    z-index: -1;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0.35
}

@keyframes blob2 {

    0%,
    100% {
        border-radius: 40% 60% 50% 50%/50% 40% 60% 50%
    }

    33% {
        border-radius: 60% 40% 40% 60%/60% 50% 50% 40%
    }

    66% {
        border-radius: 50% 50% 60% 40%/40% 60% 40% 60%
    }
}

.about-xp-badge {
    background: rgba(13, 13, 26, 0.92);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    display: inline-block
}

.about-xp-badge strong {
    display: block;
    font-family: var(--fd);
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.about-xp-badge span {
    font-size: 0.78rem;
    color: var(--muted)
}

.about-text p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 0.96rem
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0
}

.hi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 15px;
    font-size: 0.86rem;
    transition: var(--tr)
}

.hi-item:hover {
    border-color: rgba(255, 60, 172, 0.3);
    background: rgba(255, 60, 172, 0.05)
}

.hi-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 60, 172, 0.18), rgba(120, 75, 160, 0.18));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0
}

.hi-name {
    font-weight: 600;
    font-size: 0.86rem
}

.hi-desc {
    font-size: 0.75rem;
    color: var(--muted)
}

/* === SKILLS === */
#skills {
    padding: 100px 0
}

.skills-header {
    text-align: center;
    margin-bottom: 56px
}

.skills-header .section-sub {
    margin: 0 auto
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 18px
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--rc);
    padding: 26px 16px;
    text-align: center;
    cursor: default;
    transition: var(--tr);
    position: relative;
    overflow: hidden
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.35s
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 60, 172, 0.4);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3), 0 0 28px rgba(255, 60, 172, 0.14)
}

.skill-card:hover::before {
    opacity: 0.06
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 1
}

.skill-name {
    font-family: var(--fd);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    position: relative;
    z-index: 1;
    transition: color 0.25s
}

.skill-card:hover .skill-name {
    color: var(--text)
}

.skill-bar-item {
    margin-bottom: 22px
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 0.86rem;
    color: var(--muted)
}

.skill-bar-label span:last-child {
    color: var(--pink);
    font-weight: 600
}

.skill-bar-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden
}

.skill-bar-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 10px;
    width: 0%;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1)
}

/* === SERVICES === */
#services {
    padding: 100px 0
}

#services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 70% 60%, rgba(255, 60, 172, 0.06) 0%, transparent 70%);
    pointer-events: none
}

.services-header {
    text-align: center;
    margin-bottom: 56px
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--rc);
    padding: 36px 28px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
    cursor: default
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.4s
}

.service-card:hover {
    transform: translateY(-9px) scale(1.01);
    border-color: rgba(255, 60, 172, 0.38);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4), 0 0 36px rgba(255, 60, 172, 0.18)
}

.service-card:hover::after {
    opacity: 0.05
}

.service-card>* {
    position: relative;
    z-index: 1
}

.svc-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 60, 172, 0.14), rgba(120, 75, 160, 0.14));
    border: 1px solid rgba(255, 60, 172, 0.18);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
    transition: var(--tr)
}

.service-card:hover .svc-icon {
    background: linear-gradient(135deg, rgba(255, 60, 172, 0.28), rgba(120, 75, 160, 0.28));
    transform: scale(1.1) rotate(-5deg)
}

.svc-title {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px
}

.svc-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.8
}

.svc-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.83rem;
    color: var(--pink);
    font-weight: 600;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--tr)
}

.service-card:hover .svc-arrow {
    opacity: 1;
    transform: translateX(0)
}

/* === PROJECTS === */
#projects {
    padding: 100px 0
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 44px;
    flex-wrap: wrap;
    gap: 16px
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px
}

.proj-card {
    border-radius: var(--rc);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg2);
    border: 1px solid var(--border);
    transition: var(--tr)
}

.proj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5)
}

.proj-card:first-child {
    grid-row: span 2
}

.proj-img {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform 0.5s ease;
    user-select: none
}

.proj-card:first-child .proj-img {
    min-height: 100%;
    font-size: 5rem
}

.proj-card:hover .proj-img {
    transform: scale(1.05)
}

.p1 {
    background: linear-gradient(135deg, #1a0533, #3d0d75)
}

.p2 {
    background: linear-gradient(135deg, #0d1a33, #0d3375)
}

.p3 {
    background: linear-gradient(135deg, #1a0d33, #530d75)
}

.p4 {
    background: linear-gradient(135deg, #1a1a0d, #754a0d)
}

.proj-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 22px;
    background: linear-gradient(to top, rgba(7, 7, 16, 0.95) 0%, transparent 100%);
    transition: opacity 0.4s
}

.proj-card:hover .proj-info {
    opacity: 0
}

.proj-info-tag {
    font-size: 0.7rem;
    color: var(--muted);
    font-family: var(--fd);
    letter-spacing: 0.05em
}

.proj-info-name {
    font-family: var(--fd);
    font-size: 0.92rem;
    font-weight: 700
}

.proj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 16, 0.97) 0%, rgba(7, 7, 16, 0.55) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    opacity: 0;
    transition: opacity 0.4s ease
}

.proj-card:hover .proj-overlay,
.proj-card.touched .proj-overlay {
    opacity: 1
}

.proj-card.touched .proj-info {
    opacity: 0
}

.proj-tag {
    display: inline-block;
    background: rgba(255, 60, 172, 0.15);
    border: 1px solid rgba(255, 60, 172, 0.3);
    color: var(--pink);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    width: fit-content
}

.proj-name {
    font-family: var(--fd);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 7px
}

.proj-desc {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 14px
}

/* === CONTACT === */
#contact {
    padding: 100px 0
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 40% 60%, rgba(43, 134, 197, 0.07) 0%, transparent 70%);
    pointer-events: none
}

.contact-header {
    text-align: center;
    margin-bottom: 56px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 52px;
    align-items: start
}

.contact-info h3 {
    font-family: var(--fd);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px
}

.contact-info p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 28px
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px
}

.c-detail {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--muted);
    font-size: 0.88rem
}

.c-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 60, 172, 0.1);
    border: 1px solid rgba(255, 60, 172, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    flex-shrink: 0
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.s-icon {
    width: 44px;
    height: 44px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--tr);
    -webkit-tap-highlight-color: transparent
}

.s-icon:hover {
    background: rgba(255, 60, 172, 0.1);
    border-color: rgba(255, 60, 172, 0.4);
    color: var(--pink);
    transform: translateY(-4px)
}

.contact-form-wrap {
    padding: 36px
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--fb);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: var(--tr);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 60, 172, 0.5);
    background: rgba(255, 60, 172, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 60, 172, 0.08)
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff5555
}

.error-msg {
    font-size: 0.76rem;
    color: #ff5555;
    display: none
}

.error-msg.show {
    display: block
}

.form-success {
    display: none;
    text-align: center;
    padding: 24px;
    background: rgba(0, 255, 150, 0.05);
    border: 1px solid rgba(0, 255, 150, 0.2);
    border-radius: 14px;
    color: #00ff96;
    font-weight: 500
}

.form-success.show {
    display: block
}

.form-success i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block
}

/* === FOOTER === */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 36px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px
}

.footer-logo {
    font-family: var(--fd);
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted)
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s
}

.footer-links a:hover {
    color: var(--pink)
}

/* ============================================================
       RESPONSIVE — TABLET 900px
    ============================================================ */
@media(max-width:900px) {
    .container {
        padding: 0 20px
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    #hero {
        padding: 100px 0 56px;
        min-height: auto
    }

    .hero-visual {
        order: -1
    }

    .hero-avatar-wrap {
        width: 220px;
        height: 220px
    }

    .hero-float-card {
        display: none
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap
    }

    .hero-desc {
        max-width: 100%
    }

    .about-img-wrap {
        align-items: center
    }

    .about-img {
        width: 260px;
        height: 320px
    }

    .about-highlights {
        grid-template-columns: 1fr 1fr
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr)
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .projects-grid {
        grid-template-columns: 1fr
    }

    .proj-card:first-child {
        grid-row: auto
    }

    .proj-img {
        min-height: 200px !important
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .contact-grid {
        gap: 36px
    }
}

/* ============================================================
       RESPONSIVE — MOBILE 600px
    ============================================================ */
@media(max-width:600px) {
    .container {
        padding: 0 16px
    }

    /* Navbar */
    .nav-links,
    .nav-cta .btn {
        display: none
    }

    .hamburger {
        display: flex
    }

    .mobile-menu {
        display: block
    }

    /* Hero */
    #hero {
        padding: 88px 0 50px
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px
    }

    .hero-heading {
        font-size: clamp(1.85rem, 9vw, 2.5rem)
    }

    .hero-sub {
        font-size: 0.95rem
    }

    .hero-desc {
        font-size: 0.88rem;
        margin-bottom: 28px
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center
    }

    .hero-avatar-wrap {
        width: 170px;
        height: 170px
    }

    .hero-avatar-img {
        font-size: 5rem
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        margin-top: 32px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 14px 8px
    }

    .stat-item {
        align-items: center;
        text-align: center
    }

    .stat-num {
        font-size: 1.4rem
    }

    .stat-label {
        font-size: 0.68rem
    }

    /* Sections */
    #about,
    #skills,
    #services,
    #projects,
    #contact {
        padding: 68px 0
    }

    .section-title {
        font-size: clamp(1.65rem, 7vw, 2.1rem)
    }

    /* About */
    .about-grid {
        gap: 32px
    }

    .about-img {
        width: 210px;
        height: 260px
    }

    .about-xp-badge {
        position: static;
        transform: none
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .hi-item {
        padding: 11px 13px
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px
    }

    .skill-card {
        padding: 20px 10px
    }

    .skill-icon {
        font-size: 1.9rem
    }

    .skill-name {
        font-size: 0.74rem
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .service-card {
        padding: 26px 20px
    }

    .svc-arrow {
        opacity: 1;
        transform: translateX(0)
    }

    /* Projects */
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px
    }

    .projects-header .btn {
        width: 100%;
        justify-content: center
    }

    .projects-grid {
        gap: 14px
    }

    /* Mobile: overlay always visible for touch users */
    .proj-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(7, 7, 16, 0.96) 0%, rgba(7, 7, 16, 0.4) 60%, transparent 100%)
    }

    .proj-info {
        display: none
    }

    .proj-img {
        min-height: 170px !important;
        font-size: 3rem !important
    }

    /* Contact */
    .contact-form-wrap {
        padding: 22px 16px
    }

    .social-icons {
        gap: 8px
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .footer-links {
        gap: 14px;
        justify-content: center
    }
}

/* ============================================================
       RESPONSIVE — SMALL PHONES 380px
    ============================================================ */
@media(max-width:380px) {
    .hero-heading {
        font-size: 1.7rem
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .stat-num {
        font-size: 1.2rem
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.83rem
    }
}

/* ============================================================
       TOUCH DEVICES — remove hover transforms (avoid sticky states)
    ============================================================ */
@media(hover:none) {

    .btn-primary:hover,
    .btn-outline:hover,
    .skill-card:hover,
    .service-card:hover,
    .proj-card:hover,
    .s-icon:hover {
        transform: none
    }

    .svc-arrow {
        opacity: 1;
        transform: translateX(0)
    }
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.6);
}

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-avatar-wrap {
        width: 280px;
        height: 280px;
        margin-inline: auto;
    }
    
    .hero-desc {
        margin-inline: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}