@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --primary: rgb(108, 85, 224);
    --primary-dark: rgb(84, 63, 190);
    --text: #111827;
    --muted: #6b7280;
    --soft-muted: #9ca3af;
    --surface: #ffffff;
    --surface-soft: #f6f4ff;
    --border: #e5e7eb;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    --radius: 18px;
    --theme-transition-duration: 300ms;
    --theme-transition-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
    --primary: rgb(139, 116, 255);
    --primary-dark: rgb(122, 96, 238);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft-muted: #94a3b8;
    --surface: #111827;
    --surface-soft: #1f2937;
    --border: rgba(148, 163, 184, 0.22);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(108, 85, 224, 0.12), transparent 28rem),
        linear-gradient(180deg, var(--page-start, #ffffff) 0%, var(--page-end, #fbfbff) 100%);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
}

:root {
    color-scheme: light;
    --page-start: #ffffff;
    --page-end: #fbfbff;
}

[data-theme="dark"] {
    color-scheme: dark;
    --page-start: #020617;
    --page-end: #0f172a;
}

a {
    color: inherit;
}

.container {
    width: min(88%, 1200px);
    margin: 0 auto;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.9rem 1.1rem;

    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(30px) saturate(170%);
    -webkit-backdrop-filter: blur(30px) saturate(170%);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    box-shadow:
        0 16px 40px rgba(17, 24, 39, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    isolation: isolate;
    overflow: hidden;
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(120deg,
            rgba(255, 255, 255, 0.28),
            rgba(255, 255, 255, 0.08),
            rgba(108, 85, 224, 0.10));

    pointer-events: none;
}

.navbar>* {
    position: relative;
    z-index: 1;
}

.navbar:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 36px rgba(17, 24, 39, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

#logoLink {
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease, transform 0.25s ease;
}

#logoLink:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-items {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-items a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    padding: 8px 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-items a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-items a:hover {
    color: var(--primary);
}

.nav-items a:hover::after {
    transform: scaleX(1);
}

/* THEME TOGGLE */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 6.15rem;
    height: 2.35rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px rgba(17, 24, 39, 0.06);
    transition:
        background-color var(--theme-transition-duration) var(--theme-transition-easing),
        border-color var(--theme-transition-duration) var(--theme-transition-easing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-easing),
        transform 180ms ease;
    will-change: transform, box-shadow;
    isolation: isolate;
    overflow: hidden;
    gap: 0.2rem;
    --theme-selector-thumb-x: 0rem;
    --theme-selector-thumb-scale: 1;
}

.theme-selector::after {
    content: "";
    position: absolute;
    inset: -20%;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 360ms ease;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 64%);
}

.theme-selector.is-rippling::after {
    opacity: 0.42;
    transform: scale(1.35);
}

.theme-selector:active,
.theme-selector.is-pressing {
    transform: scale(0.95);
}

.theme-selector:hover {
    border-color: rgba(108, 85, 224, 0.45);
}

.theme-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.88rem;
    opacity: 0.55;
    transform: scale(0.88);
    transition:
        color var(--theme-transition-duration) var(--theme-transition-easing),
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 280ms ease;
    will-change: transform, opacity;
}

.theme-btn i {
    pointer-events: none;
}

.theme-btn.is-active {
    opacity: 1;
    transform: scale(1.08);
    color: var(--primary);
}

.theme-selector__thumb {
    position: absolute;
    z-index: 1;
    left: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
    transform: translateX(var(--theme-selector-thumb-x)) scale(var(--theme-selector-thumb-scale));
    transition:
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color var(--theme-transition-duration) var(--theme-transition-easing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-easing);
    will-change: transform;
}

.theme-selector.is-popping .theme-selector__thumb {
    --theme-selector-thumb-scale: 1.08;
}

[data-theme="light"] .theme-selector {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 8px 20px rgba(17, 24, 39, 0.07),
        0 0 0 1px rgba(245, 158, 11, 0.16),
        0 0 14px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .theme-selector {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 8px 20px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(56, 189, 248, 0.2),
        0 0 14px rgba(56, 189, 248, 0.25);
}

.theme-selector[data-theme-preference="light"] {
    --theme-selector-thumb-x: 0rem;
}

.theme-selector[data-theme-preference="dark"] {
    --theme-selector-thumb-x: 1.95rem;
}

.theme-selector[data-theme-preference="system"] {
    --theme-selector-thumb-x: 3.9rem;
}

html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition-property: background-color, color, border-color, box-shadow, fill, stroke;
    transition-duration: var(--theme-transition-duration);
    transition-timing-function: var(--theme-transition-easing);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .navbar::before {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 35%),
        radial-gradient(circle at bottom right, rgba(139, 116, 255, 0.06), transparent 42%);
}

[data-theme="dark"] .image-wrap {
    background: linear-gradient(145deg, rgba(139, 116, 255, 0.24), rgba(139, 116, 255, 0.05));
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    background-color: #0f172a;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.3rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 5px;
    transition: 0.3s ease;
}

/* HERO */
.hero {
    min-height: calc(100vh - 7rem);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    padding: 5rem 0 4rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.8rem;
    color: var(--primary);
    background: var(--surface-soft);
    border: 1px solid rgba(108, 85, 224, 0.16);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.leftCol h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.leftCol h2 {
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.hero-description {
    margin-top: 1rem;
    color: var(--muted);
    max-width: 540px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.6rem;
}

.rightCol {
    display: flex;
    justify-content: center;
}

.image-wrap {
    width: min(21rem, 80vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(108, 85, 224, 0.20), rgba(108, 85, 224, 0.03));
    box-shadow: var(--shadow);
}

#heroImg {
    width: 82%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--surface);
}

/* BUTTONS */
.buttons,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.buttons {
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 25px rgba(108, 85, 224, 0.25);
}

.buttons:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.secondary-btn {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    color: var(--primary);
    border-color: rgba(108, 85, 224, 0.35);
    transform: translateY(-3px);
}

/* GENERAL SECTIONS */
.section-block {
    margin: 6rem auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

/* MOBILE: remove decorative navbar pseudo-element that creates a rectangular background */
@media (max-width: 640px) {
    .navbar::before {
        display: none;
    }
}

.section-heading h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    letter-spacing: -0.04em;
}

.section-heading h4 {
    color: var(--muted);
    font-weight: 500;
}

/* ABOUT */
.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.about-img {
    display: flex;
    justify-content: center;
}

.about-content img {
    width: min(18rem, 80vw);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-text {
    color: var(--muted);
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.cv-button {
    margin-top: 1.7rem;
}

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

.statBlock {
    padding: 1rem;
    text-align: center;
    background: var(--surface-soft);
    border: 1px solid rgba(108, 85, 224, 0.12);
    border-radius: 14px;
}

.number {
    font-size: 1.6rem;
    color: var(--text);
    font-weight: 800;
    line-height: 1.2;
}

.statBlock p:last-child {
    font-size: 0.9rem;
}

/* SKILLS */
#skills {
    text-align: center;
}

.skills-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.skillBox {
    background-color: var(--surface);
    color: var(--text);
    min-width: 13rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: 0.3s ease;
    user-select: none;
    cursor: default;
    font-weight: 700;
}

.skillBox i {
    color: var(--primary);
    font-size: 1.25rem;
}

.skillBox:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 85, 224, 0.35);
    box-shadow: 0 16px 35px rgba(108, 85, 224, 0.12);
}


/* CERTIFICATIONS */
#certifications {
    text-align: center;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.certification-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    min-height: 19rem;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 85, 224, 0.35);
    box-shadow: 0 18px 40px rgba(108, 85, 224, 0.12);
}

.credly-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid rgba(108, 85, 224, 0.12);
    border-radius: 16px;
    overflow: hidden;
}

.credly-link {
    display: inline-block;
}

.credly-img {
    width: 140px;
    height: auto;
    display: block;
    border-radius: 12px;
    background: transparent;
}

.certification-content h3 {
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0.35rem 0 0.65rem;
}

.certification-provider {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.65rem;
    color: var(--primary);
    background: rgba(108, 85, 224, 0.10);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.certification-content p:not(.certification-provider) {
    color: var(--muted);
    margin-bottom: 1rem;
}

.certification-content a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.certification-content a:hover {
    text-decoration: underline;
}

/* CONTACT */
#contact-sec {
    margin-bottom: 4rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.social-details {
    display: grid;
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.04);
    transition: 0.3s ease;
    font-weight: 700;
}

.social-card:hover {
    color: var(--primary);
    transform: translateY(-4px);
    border-color: rgba(108, 85, 224, 0.35);
}

.social-icons {
    font-size: 2rem;
    flex: 0 0 auto;
}

.leetcode-icon {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#subject-box,
#message-box {
    grid-column: span 2;
}

input,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    background-color: var(--surface-soft);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 85, 224, 0.15);
    background-color: white;
}

.send-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: var(--primary);
    color: white;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 25px rgba(108, 85, 224, 0.22);
}

.send-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.send-btn:active {
    transform: translateY(0);
}

/* FOOTER */
.site-footer {
    margin: 2rem 0 3rem;
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer__text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ================= ANIMATIONS ================= */
.typing {
    display: block;
    max-width: max-content;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--text);
    animation:
        typing 2.4s steps(22, end) forwards,
        blink 0.6s step-end 3 2.4s forwards;
}

@keyframes typing {
    from {
        max-width: 0;
    }

    to {
        max-width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }

    100% {
        border-color: transparent;
    }
}

.slideFromLeft {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInFromLeft 0.8s ease forwards;
    animation-delay: 2.5s;
}

.slideFromRight {
    opacity: 0;
    transform: translateX(60px);
    animation: slideInFromRight 0.8s ease forwards;
    animation-delay: 2.8s;
}

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .typing {
        max-width: 100%;
        border-right: 0;
    }

    .theme-selector,
    .theme-selector::after,
    .theme-btn,
    .theme-selector__thumb {
        transition: none !important;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .container {
        width: min(92%, 1200px);
    }

    /* Fix typing animation on mobile */
    .typing {
        max-width: 100%;
        width: fit-content;
        margin: 0 auto;
    }

    /* Fix slide animation on mobile */
    .slideFromLeft {
        transform: translateX(-30px);
    }

    .slideFromRight {
        transform: translateX(30px);
    }

    .navbar {
        top: 0.7rem;
        margin-top: 0.8rem;
        padding: 0.75rem 0.9rem;
        backdrop-filter: blur(24px) saturate(155%);
        -webkit-backdrop-filter: blur(24px) saturate(155%);
        overflow: visible;
    }

    .theme-selector {
        width: 5.7rem;
        height: 2.2rem;
    }

    .theme-btn {
        width: 1.6rem;
        height: 1.6rem;
    }

    .theme-selector__thumb {
        width: 1.6rem;
        height: 1.6rem;
    }

    .theme-selector[data-theme-preference="light"] {
        --theme-selector-thumb-x: 0rem;
    }

    .theme-selector[data-theme-preference="dark"] {
        --theme-selector-thumb-x: 1.8rem;
    }

    .theme-selector[data-theme-preference="system"] {
        --theme-selector-thumb-x: 3.6rem;
    }

    .nav-items {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(78%, 320px);
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.36s cubic-bezier(.2, .9, .2, 1), visibility 0.36s ease;
        will-change: right;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1003;
        padding-top: 4.5rem;
        visibility: hidden;
    }

    .nav-items.active {
        right: 0 !important;
        visibility: visible;
    }

    .hamburger {
        display: flex;
        z-index: 1004;
        width: 44px;
        height: 36px;
        align-items: center;
        justify-content: center;
        padding: 0.35rem;
        border-radius: 8px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-description {
        max-width: 100%;
    }

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

    .rightCol {
        order: -1;
    }

    .about-content,
    .contact-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        padding: 1.35rem;
    }

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

    .skills-boxes {
        flex-direction: column;
        align-items: stretch;
    }

    .certification-grid,
    .certification-card {
        grid-template-columns: 1fr;
    }

    .certification-card {
        text-align: center;
        justify-items: center;
    }

    .certification-content a,
    .certification-provider {
        margin-inline: auto;
    }

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

    #name-box,
    #email-box,
    #subject-box,
    #message-box {
        grid-column: span 1;
    }

    .send-btn {
        width: 100%;
    }
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.04);
}

[data-theme="dark"] .project-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 85, 224, 0.35);
    box-shadow: 0 16px 35px rgba(108, 85, 224, 0.12);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 16px 35px rgba(139, 116, 255, 0.12);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.project-badge {
    background: rgba(108, 85, 224, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .project-badge {
    background: rgba(139, 116, 255, 0.15);
}

.project-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.tech-tag {
    background: rgba(108, 85, 224, 0.12);
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 500;
    display: inline-block;
}

[data-theme="dark"] .tech-tag {
    background: rgba(139, 116, 255, 0.12);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

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

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    color: var(--text);
}

.icon-btn:hover:not(:disabled) {
    opacity: 0.7;
}

.icon-btn:disabled,
.icon-btn[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-badge {
        margin-top: 0.5rem;
    }
}