:root {
    --primary: #818cf8;
    --primary-glow: rgba(129, 140, 248, 0.4);
    --bg: #09090b;
    --bg-soft: #18181b;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --surface: #18181b;
    --surface-2: #27272a;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #10b981;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

body.light-mode {
    --bg: #fafafa;
    --bg-soft: #f4f4f5;
    --text: #09090b;
    --text-muted: #52525b;
    --surface: #ffffff;
    --surface-2: #f4f4f5;
    --line: rgba(0, 0, 0, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

html.intro-preload,
html.intro-preload body {
    overflow: hidden;
}

.intro-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--primary) 28%, var(--bg)) 0%, var(--bg) 58%);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro-logo {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 12px 45px rgba(0, 0, 0, 0.35);
}

.intro-logo span {
    color: var(--accent);
}

#headerLogo {
    transition: opacity 0.25s ease;
}

html.intro-preload .intro-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.intro-preload #headerLogo {
    opacity: 0;
}

h1,
h2,
h3,
h4,
.logo,
.nav-link,
.btn {
    font-family: "Outfit", sans-serif;
}

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

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

ul {
    margin: 0;
    padding-left: 1.2rem;
}

#typingText {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

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

.section.has-glow::before {
    content: "";
    position: absolute;
    top: 20%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow), transparent 60%);
    opacity: 0.15;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.section-title {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-size: clamp(1.8rem, 1.5rem + 1.2vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
}

.center {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    width: 0;
    z-index: 2000;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2500;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text);
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    mix-blend-mode: difference;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1500;
    transition: background 0.3s ease, padding 0.3s ease, border 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: color-mix(in oklab, var(--bg) 80%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
    transition: min-height 0.3s ease;
}

.site-header.scrolled .header-inner {
    min-height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo span {
    color: var(--accent);
}

.site-nav {
    justify-self: center;
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: var(--surface-2);
}

.theme-toggle svg {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

body:not(.light-mode) .theme-toggle .moon-icon {
    transform: translateY(100%) rotate(90deg);
    opacity: 0;
}

body:not(.light-mode) .theme-toggle .sun-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

body.light-mode .theme-toggle .sun-icon {
    transform: translateY(-100%) rotate(-90deg);
    opacity: 0;
}

body.light-mode .theme-toggle .moon-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.38);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(129, 140, 248, 0.5);
    background: #6366f1;
}

.btn-outline {
    border-color: var(--line);
    background: var(--surface);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--surface-2);
}

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 74px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 2rem;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(60px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.hero-glow-alt {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(3rem, 1.5rem + 4vw, 5rem);
    line-height: 1.05;
    font-weight: 800;
}

.hero-copy h2 {
    margin: 1rem 0 1.5rem;
    font-size: clamp(1.2rem, 1rem + 1.2vw, 2.2rem);
    min-height: 2.3em;
    font-weight: 600;
}

.hero-description {
    max-width: 580px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.profile-wrap {
    max-width: 460px;
    margin-inline: auto;
    border-radius: 40px;
    background: linear-gradient(135deg, color-mix(in oklab, var(--surface), white 2%), var(--surface-2));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.profile-wrap img {
    width: 100%;
    border-radius: 24px;
    object-fit: contain;
    background: color-mix(in oklab, var(--line), transparent 60%);
}

.hero-visual {
    position: relative;
}

.floating-chip {
    position: absolute;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 20;
    animation: float 5s ease-in-out infinite alternate;
}

.chip-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.chip-2 {
    top: 20%;
    right: -5%;
    animation-delay: -1s;
}

.chip-3 {
    bottom: 20%;
    left: -8%;
    animation-delay: -2s;
}

.chip-4 {
    bottom: 8%;
    right: 5%;
    animation-delay: -3s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-image img {
    border-radius: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content h3 {
    margin-top: 0;
    font-size: clamp(1.4rem, 1.2rem + 1vw, 2.2rem);
    line-height: 1.3;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

.about-meta {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-meta div {
    padding: 1rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.about-meta div:hover {
    border-color: var(--primary);
}

.about-meta span {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Updated Skills Grid - New Dynamic Section Styling */

.skill-section-bg {
    background-color: #1a1b1e;
    overflow: hidden;
}

body.light-mode .skill-section-bg {
    background-color: #f1f3f5;
}

.skill-bg-decoration {
    position: absolute;
    top: 50%;
    right: -20%;
    transform: translateY(-50%) rotate(45deg);
    width: 600px;
    height: 150%;
    background: repeating-linear-gradient( 45deg, rgba(255, 183, 3, 0.03), rgba(255, 183, 3, 0.03) 40px, transparent 40px, transparent 80px);
    z-index: 1;
    pointer-events: none;
}

.dynamic-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.skill-icon-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon-card:hover {
    transform: translateY(-10px);
    border-color: #ffb703;
    box-shadow: 0 15px 40px rgba(255, 183, 3, 0.2);
}

.skill-icon-card img {
    transition: transform 0.3s ease;
}

.skill-icon-card:hover img {
    transform: scale(1.15);
}

.skill-icon-card span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

body.light-mode .skill-icon-card[style*="filter: brightness(2) invert(1)"] {
    filter: none !important;
}


/* Projects Card Glow & Overlay Update */

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in oklab, var(--primary), transparent 40%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 20px var(--primary-glow);
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body h4 {
    margin: 0;
    font-size: 1.4rem;
}

.project-body p {
    margin: 0.8rem 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.project-body .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-body .tags span {
    background: var(--surface-2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}


/* Modernized Timeline updates */

.timeline {
    margin-top: 3rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px color-mix(in oklab, var(--accent), transparent 50%);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background-color: var(--accent);
}

.timeline-content {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.timeline-content h4 {
    margin: 0;
    font-size: 1.3rem;
}

.timeline-company {
    color: var(--primary);
    font-weight: 500;
    margin: 0.5rem 0;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content li {
    color: var(--text-muted);
    margin: 0.6rem 0;
    line-height: 1.6;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    margin: 1.2rem 0;
    font-size: 1.05rem;
}

.contact-info li svg {
    color: var(--accent);
}

.contact-form {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    padding: 2.5rem;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    padding: 1rem;
    outline: none;
    font-family: "Inter", sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--bg-soft);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-links a {
    transition: color 0.2s;
}

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


/* nav-toggle hidden on desktop; responsive.css reveals + styles it on mobile */

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}


/* mobile-nav-overlay always hidden until responsive.css shows it */

.mobile-nav-overlay {
    display: none;
}

@media (max-width: 900px) {
    .mobile-nav-overlay {
        display: block;
    }
}


/* Initially hidden elements for GSAP ScrollTrigger to reveal */

.gs-reveal {
    visibility: hidden;
}


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

.about-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: start;
}


/* Left sticky card */

.about-photo-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 96px;
}

.about-photo-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.35);
    flex-shrink: 0;
}

.about-photo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    border: 3px solid var(--bg);
    display: block;
}

.about-name {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.about-role-tag {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
}

.about-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse-dot {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
}

.about-quick-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1.1rem 0.5rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.qstat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.qstat strong {
    font-size: 1.5rem;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.qstat span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.qstat-divider {
    width: 1px;
    height: 36px;
    background: var(--line);
    flex-shrink: 0;
}

.about-cv-btn {
    width: 100%;
    gap: 0.5rem;
}


/* Right text content */

.about-right h3 {
    margin-top: 0;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    line-height: 1.3;
}

.about-right p {
    color: var(--text-muted);
    line-height: 1.85;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 1.8rem 0;
}

.about-info-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-info-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.info-green {
    color: var(--accent);
}

.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}


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

.contact-lead {
    max-width: 540px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    line-height: 1.75;
}

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


/* Left: contact card items */

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    transition: all 0.25s ease;
    color: inherit;
}

.contact-card-item:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: -4px 0 20px rgba(129, 140, 248, 0.12);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-icon {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary);
}

.linkedin-icon {
    background: rgba(10, 102, 194, 0.15);
    color: #4da3e8;
}

.github-icon {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.contact-card-text span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-card-text strong {
    font-size: 0.92rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.contact-card-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-card-item:hover .contact-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.contact-availability-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.3rem;
    border-radius: 16px;
    border: 1px dashed rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.06);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 0.4rem;
}


/* Right: form card */

.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    box-shadow: var(--shadow);
}

.contact-form-card h4 {
    margin: 0;
    font-size: 1.4rem;
    font-family: "Outfit", sans-serif;
}


/* Floating label inputs */

.floating-field {
    position: relative;
}

.floating-field input,
.floating-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    padding: 1.4rem 1rem 0.5rem;
    outline: none;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
}

.floating-field label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: top 0.22s ease, font-size 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.floating-field textarea~label {
    top: 1.15rem;
    transform: none;
}

.floating-field input:focus,
.floating-field textarea:focus {
    border-color: var(--primary);
    background: var(--bg-soft);
    box-shadow: 0 0 0 3px var(--primary-glow);
}


/* Float the label up on focus or when value is entered */

.floating-field input:focus~label,
.floating-field input:not(:placeholder-shown)~label {
    top: 0.45rem;
    transform: none;
    font-size: 0.72rem;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.floating-field textarea:focus~label,
.floating-field textarea:not(:placeholder-shown)~label {
    top: 0.45rem;
    font-size: 0.72rem;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.contact-send-btn {
    width: 100%;
    gap: 0.6rem;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.25s ease, opacity 0.2s ease;
}

.contact-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    min-height: 1.2rem;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    color: var(--accent);
}

.form-status.error {
    color: #f87171;
}


/* Field-level inline error message */

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #f87171;
    min-height: 1rem;
    padding-top: 0.3rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-field.has-error .field-error {
    opacity: 1;
    transform: translateY(0);
}

.floating-field.has-error input,
.floating-field.has-error textarea {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.floating-field.is-valid input,
.floating-field.is-valid textarea {
    border-color: var(--accent);
}


/* honeypot — completely off-screen for real users, bots fill it */

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}


/* =========================================================
   ABOUT + CONTACT RESPONSIVE OVERRIDES
   ========================================================= */

@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 820px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    .about-photo-card {
        position: static;
        max-width: 340px;
        margin: 0 auto;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .about-info-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-card {
        padding: 1.5rem;
    }
}