/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --bg: #050508;
    --bg-2: #0D0D1A;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --violet: #7C3AED;
    --blue: #3B82F6;
    --gradient: linear-gradient(135deg, #7C3AED, #3B82F6);
    --grad-text: linear-gradient(135deg, #A78BFA, #60A5FA);
    --tx: #F1F5F9;
    --tx-2: #94A3B8;
    --tx-muted: #475569;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-b: rgba(255, 255, 255, 0.10);
    --r: 16px;
    --r-sm: 8px;
    --r-lg: 24px;
    --ease: all 0.3s cubic-bezier(.4, 0, .2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.light {
    --bg: #F8FAFC;
    --bg-2: #FFFFFF;
    --card: rgba(0, 0, 0, 0.03);
    --card-hover: rgba(0, 0, 0, 0.06);
    --tx: #0F172A;
    --tx-2: #475569;
    --tx-muted: #94A3B8;
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(0, 0, 0, 0.03);
    --glass-b: rgba(0, 0, 0, 0.10);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--tx);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}

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

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

ul {
    list-style: none
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 5px
}

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

::-webkit-scrollbar-thumb {
    background: var(--violet);
    border-radius: 3px
}

/* =============================================
   UTILITIES
   ============================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-tag {
    display: inline-block;
    background: rgba(124, 58, 237, .15);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, .3);
    border-radius: 100px;
    padding: 4px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--tx);
}

.section-desc {
    margin-top: 12px;
    color: var(--tx-2);
    font-size: 17px
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--ease);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, .4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(124, 58, 237, .55)
}

.btn-secondary {
    background: transparent;
    color: var(--tx);
    border: 2px solid var(--glass-b);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--violet);
    transform: translateY(-3px)
}

.btn-outline {
    background: transparent;
    color: var(--violet);
    border: 2px solid var(--violet);
}

.btn-outline:hover {
    background: var(--violet);
    color: #fff;
    transform: translateY(-3px)
}

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

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    text-decoration: none;
}

.btn-ghost {
    background: var(--card);
    color: var(--tx-2);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet)
}

/* =============================================
   NAVBAR
   ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(5, 5, 8, .85);
    border-bottom: 1px solid var(--border);
    transition: var(--ease);
}

body.light header {
    background: rgba(248, 250, 252, .88)
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--tx);
    margin-right: auto
}

.logo-dot {
    color: #7C3AED
}

.nav-links {
    display: flex;
    gap: 4px
}

.nav-links a {
    color: var(--tx-2);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    transition: var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--tx);
    background: var(--card)
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--tx-2);
    font-size: 16px;
    cursor: pointer;
    transition: var(--ease);
    flex-shrink: 0;
}

.theme-btn:hover {
    background: var(--card-hover);
    color: #A78BFA;
    border-color: var(--violet);
    transform: rotate(20deg)
}

.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--tx);
    font-size: 18px;
    cursor: pointer;
    transition: var(--ease);
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: var(--card-hover)
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex
}

.mobile-link {
    color: var(--tx-2);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    transition: var(--ease);
}

.mobile-link:hover {
    background: var(--card);
    color: var(--tx)
}

/* =============================================
   HERO
   ============================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

/* Orb background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .14;
    animation: float 9s ease-in-out infinite;
}

.orb-1 {
    width: 560px;
    height: 560px;
    background: #7C3AED;
    top: -120px;
    left: -120px;
    animation-delay: 0s
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: #3B82F6;
    bottom: -60px;
    right: -60px;
    animation-delay: -3.5s
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: #EC4899;
    top: 40%;
    right: 25%;
    animation-delay: -6s;
    opacity: .07
}

@keyframes float {

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

    50% {
        transform: translateY(-28px) scale(1.06)
    }
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 560px
}

.hero-greeting {
    font-size: 18px;
    color: var(--tx-2);
    font-weight: 500;
    margin-bottom: 10px
}

.hero-name {
    font-size: clamp(42px, 8vw, 74px);
    font-weight: 900;
    line-height: 1.04;
    margin-bottom: 14px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: clamp(17px, 3vw, 23px);
    color: var(--tx-2);
    font-weight: 500;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.typewriter {
    color: #A78BFA;
    font-weight: 700
}

.cursor {
    color: #7C3AED;
    animation: blink 1s step-end infinite;
    font-weight: 300
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-desc {
    color: var(--tx-2);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px
}

.social-links {
    display: flex;
    gap: 10px
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--tx-2);
    font-size: 18px;
    transition: var(--ease);
}

.social-link:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, .4);
}

/* Profile image */
.hero-image {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

.image-wrapper {
    position: relative;
    width: 340px;
    height: 340px
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(124, 58, 237, .35);
}

.image-glow {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: .22;
    filter: blur(32px);
    z-index: 0;
    animation: pulse-glow 3.5s ease-in-out infinite;
}

@keyframes pulse-glow {

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

    50% {
        opacity: .38;
        transform: scale(1.06)
    }
}

.image-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: spin-ring 12s linear infinite;
    z-index: 1;
}

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

/* Floating badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-b);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tx);
    white-space: nowrap;
    z-index: 10;
}

.badge-1 {
    top: 10px;
    left: -48px;
    animation: bf1 4s ease-in-out infinite
}

.badge-2 {
    bottom: 20px;
    left: -36px;
    animation: bf1 4s ease-in-out infinite;
    animation-delay: -1.5s
}

.badge-3 {
    top: 50%;
    right: -58px;
    transform: translateY(-50%);
    animation: bf3 4s ease-in-out infinite;
    animation-delay: -3s
}

@keyframes bf1 {

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

    50% {
        transform: translateY(-9px)
    }
}

@keyframes bf3 {

    0%,
    100% {
        transform: translateY(-50%)
    }

    50% {
        transform: translateY(calc(-50% - 9px))
    }
}

.scroll-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--tx-2);
    font-size: 18px;
    z-index: 1;
    transition: var(--ease);
    animation: bounce 2.2s ease-in-out infinite;
}

.scroll-down:hover {
    color: var(--violet);
    border-color: var(--violet)
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(-10px)
    }
}

/* =============================================
   SECTION SPACING
   ============================================= */
section:not(#hero) {
    padding: 100px 0
}

#skills,
#education {
    background: var(--bg-2)
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
}

.about-img-wrapper {
    position: relative
}

.about-img {
    width: 100%;
    border-radius: var(--r-lg);
    object-fit: cover;
    aspect-ratio: 3/4;
    position: relative;
    z-index: 1;
}

.about-img-deco {
    position: absolute;
    inset: 15px -15px -15px 15px;
    border-radius: var(--r-lg);
    background: var(--gradient);
    opacity: .18;
    z-index: 0;
}

.about-text-col h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--tx)
}

.about-text-col p {
    color: var(--tx-2);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px
}

.about-stats {
    display: flex;
    gap: 16px;
    margin: 28px 0
}

.stat-card {
    flex: 1;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px 10px;
    transition: var(--ease);
}

.stat-card:hover {
    border-color: var(--violet);
    background: var(--card-hover);
    transform: translateY(-5px)
}

.stat-number {
    display: block;
    font-size: 30px;
    font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--tx-2);
    font-weight: 500;
    margin-top: 4px
}

.about-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px
}

/* =============================================
   SKILLS
   ============================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.skills-category {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: var(--ease);
}

.skills-category:hover {
    border-color: rgba(124, 58, 237, .3);
    background: var(--card-hover)
}

.skills-category h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-category h3 i {
    color: #7C3AED
}

.skill-bar-item {
    margin-bottom: 18px
}

.skill-bar-item:last-child {
    margin-bottom: 0
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tx);
}

.skill-bar-header span:first-child {
    display: flex;
    align-items: center;
    gap: 7px
}

.skill-bar-header span:last-child {
    color: var(--tx-2);
    font-size: 13px
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, .07);
    border-radius: 100px;
    overflow: hidden
}

body.light .skill-bar {
    background: rgba(0, 0, 0, .06)
}

.skill-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 100px;
    width: 0;
    transition: width 1.3s cubic-bezier(.4, 0, .2, 1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(124, 58, 237, .1);
    border: 1px solid rgba(124, 58, 237, .2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #A78BFA;
    transition: var(--ease);
    cursor: default;
}

.skill-tag:hover {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet);
    transform: translateY(-2px)
}

/* =============================================
   PROJECTS
   ============================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: var(--ease);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, .45);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .45);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(124, 58, 237, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ease);
    backdrop-filter: blur(4px);
}

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

.project-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: #7C3AED;
    font-size: 22px;
    transition: var(--ease);
}

.project-link-btn:hover {
    transform: scale(1.12)
}

.project-info {
    padding: 22px
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px
}

.tag {
    padding: 3px 10px;
    background: rgba(124, 58, 237, .12);
    border: 1px solid rgba(124, 58, 237, .22);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    color: #A78BFA;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.project-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 8px
}

.project-info p {
    font-size: 14px;
    color: var(--tx-2);
    line-height: 1.65;
    margin-bottom: 16px
}

.project-links {
    display: flex;
    gap: 8px
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
    position: relative;
    max-width: 740px;
    margin: 0 auto
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #7C3AED, #3B82F6, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 58px;
    margin-bottom: 28px
}

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

.timeline-dot {
    position: absolute;
    left: 10px;
    top: 22px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 0 5px rgba(124, 58, 237, .2);
    z-index: 1;
}

.timeline-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 26px;
    transition: var(--ease);
}

.timeline-card:hover {
    border-color: rgba(124, 58, 237, .32);
    transform: translateX(6px)
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-date {
    font-size: 13px;
    color: var(--tx-2);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px
}

.timeline-badge {
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(124, 58, 237, .15);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, .25);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.timeline-badge.active {
    background: rgba(34, 197, 94, .15);
    color: #4ADE80;
    border-color: rgba(34, 197, 94, .3);
}

.timeline-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 5px
}

.timeline-org {
    font-size: 14px;
    color: #A78BFA;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-card p:last-of-type {
    font-size: 14px;
    color: var(--tx-2);
    line-height: 1.65
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: start
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: var(--ease);
}

.contact-info-item:hover {
    border-color: rgba(124, 58, 237, .4);
    background: var(--card-hover);
    transform: translateX(6px);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .15);
    border: 1px solid rgba(124, 58, 237, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A78BFA;
    font-size: 18px;
}

.contact-label {
    font-size: 11px;
    color: var(--tx-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--tx)
}

.contact-social {
    display: flex;
    gap: 10px;
    padding-top: 4px
}

/* Floating label form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.form-group {
    position: relative
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 16px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--tx);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: var(--ease);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    padding-top: 22px
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--tx-muted);
    font-size: 15px;
    pointer-events: none;
    transition: var(--ease);
    background: transparent;
    padding: 0 2px;
}

.form-group textarea+label {
    top: 16px
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
    background: var(--card-hover);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -9px;
    font-size: 11px;
    font-weight: 700;
    color: var(--violet);
    background: var(--bg);
    padding: 0 4px;
}

body.light .form-group input:focus+label,
body.light .form-group input:not(:placeholder-shown)+label,
body.light .form-group textarea:focus+label,
body.light .form-group textarea:not(:placeholder-shown)+label {
    background: var(--bg-2);
}

#formDurumu {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    min-height: 20px
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand .logo {
    font-size: 24px;
    margin-bottom: 6px;
    display: block
}

.footer-brand p {
    font-size: 14px;
    color: var(--tx-2)
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center
}

.footer-links a {
    color: var(--tx-2);
    font-size: 14px;
    font-weight: 500;
    transition: var(--ease)
}

.footer-links a:hover {
    color: var(--violet)
}

.footer-social {
    display: flex;
    gap: 10px
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-bottom p {
    color: var(--tx-muted);
    font-size: 13px
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:1024px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr
    }

    .skills-category:last-child {
        grid-column: span 2
    }

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

    .projects-grid .project-card:last-child {
        grid-column: span 2
    }
}

@media(max-width:900px) {
    .hero-content {
        flex-direction: column-reverse;
        padding: 50px 24px 100px;
        text-align: center
    }

    .hero-text {
        max-width: 100%
    }

    .hero-buttons,
    .social-links {
        justify-content: center
    }

    .hero-role {
        justify-content: center
    }

    .image-wrapper {
        width: 260px;
        height: 260px
    }

    .floating-badge {
        display: none
    }

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

    .about-image-col {
        max-width: 320px;
        margin: 0 auto
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center
    }

    .footer-social {
        justify-content: center
    }
}

@media(max-width:768px) {
    .nav-links {
        display: none
    }

    .menu-btn {
        display: flex
    }

    .skills-grid {
        grid-template-columns: 1fr
    }

    .skills-category:last-child {
        grid-column: auto
    }

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

    .projects-grid .project-card:last-child {
        grid-column: auto
    }

    .about-stats {
        gap: 10px
    }
}

@media(max-width:480px) {
    .hero-name {
        font-size: 42px
    }

    .about-actions,
    .hero-buttons {
        flex-direction: column
    }

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

    .timeline::before {
        left: 14px
    }

    .timeline-item {
        padding-left: 44px
    }

    .timeline-dot {
        left: 6px
    }
}