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

html {
    scroll-behavior: smooth;
}

/* ========== BACKGROUND ========== */
.body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #070a1c 0%, #111b38 35%, #0f1a33 65%, #0a0f20 100%);
    color: #f5f7ff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.body::before,
.body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
}

.body::before {
    background: radial-gradient(circle at 20% 15%, rgba(125, 182, 255, 0.25) 0%, transparent 24%),
        radial-gradient(circle at 75% 25%, rgba(155, 95, 255, 0.20) 0%, transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(255, 74, 255, 0.12) 0%, transparent 22%);
    filter: blur(120px);
    opacity: 0.85;
    animation: blobMove 22s ease-in-out infinite alternate;
}

.body::after {
    background: radial-gradient(circle at 15% 80%, rgba(99, 255, 200, 0.18) 0%, transparent 26%),
        radial-gradient(circle at 85% 80%, rgba(95, 136, 255, 0.16) 0%, transparent 24%);
    filter: blur(140px);
    opacity: 0.7;
    animation: blobMoveAlt 28s ease-in-out infinite alternate;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(8%, -6%) scale(1.05);
    }

    100% {
        transform: translate(-7%, 8%) scale(1);
    }
}

@keyframes blobMoveAlt {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10%, 10%) scale(1.1);
    }

    100% {
        transform: translate(6%, -8%) scale(1);
    }
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 10, 28, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(125, 182, 255, 0.1);
}

.navbar {
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7db6ff, #ff4aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.32rem;
    border: 1px solid rgba(125, 182, 255, 0.24);
    border-radius: 12px;
    background: rgba(245, 247, 255, 0.06);
    color: #f5f7ff;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(125, 182, 255, 0.14);
    border-color: rgba(125, 182, 255, 0.42);
}

.nav-toggle:focus-visible {
    outline: 2px solid rgba(99, 255, 200, 0.75);
    outline-offset: 3px;
}

.nav-toggle-line {
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(0.44rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-0.44rem) rotate(-45deg);
}

.nav-link {
    color: #f5f7ff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7db6ff, #ff4aff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #7db6ff;
}

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

.locale-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 2.5rem;
    padding: 0.25rem;
    border: 1px solid rgba(125, 182, 255, 0.22);
    border-radius: 999px;
    background: rgba(245, 247, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.locale-form {
    display: flex;
}

.locale-button {
    min-width: 2.65rem;
    height: 2rem;
    padding: 0 0.8rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(245, 247, 255, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.locale-button:hover,
.locale-button:focus-visible {
    color: #f5f7ff;
    background: rgba(125, 182, 255, 0.14);
}

.locale-button:focus-visible {
    outline: 2px solid rgba(99, 255, 200, 0.75);
    outline-offset: 2px;
}

.locale-button.is-active {
    color: #071022;
    background: linear-gradient(135deg, #7db6ff, #63ffc8);
    box-shadow: 0 8px 18px rgba(99, 255, 200, 0.2);
}

.locale-button.is-active:hover {
    transform: translateY(-1px);
}

/* ========== MAIN CONTENT ========== */
.main {
    position: relative;
    z-index: 1;
    margin-top: 70px;
}

/* ========== HERO SECTION ========== */

.hero,
.hero-projects,
.hero-about {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(125, 182, 255, 0.05) 0%, transparent 100%);
}

.hero {
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7db6ff, #ff4aff, #63ffc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a0aec0;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #7db6ff, #5a8dd8);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #7db6ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #5a8dd8, #3d5fa8);
    box-shadow: 0 10px 30px rgba(125, 182, 255, 0.3);
    transform: translateY(-2px);
}

.hero-about {
    scroll-margin-top: 70px;
}

/* ========== ABOUT SECTION ========== */
.about-me {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    gap: 5rem;
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: left;
}

.profile-image {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    object-fit: contain;
}

.about-text {
    display: grid;
    gap: 1rem;
    max-width: 520px;
}

.stack-content h2 {
    font-size: 2rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #7db6ff, #ff4aff, #63ffc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: #cbd5e0;
    font-size: 1.18rem;
    line-height: 1.9;
}

.stack-content {
    display: grid;
    gap: 1.75rem;
}

.stack-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 1.2rem;
}

.stack-item {
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 0.8rem;
    min-height: 130px;
    padding: 1.35rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 182, 255, 0.16);
    color: #f5f7ff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stack-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PROJECTS SECTION ========== */
#projects {
    max-width: 1200px;
    margin: 0rem auto;
    padding: 0 2rem;
}

.projects-section-empty {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-section-empty .project {
    width: 100%;
    margin-bottom: 0;
    align-items: center;
}

.projects-section-title {
    font-size: 2.5rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    color: #f5f7ff;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.project-item {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(125, 182, 255, 0.1) 0%, rgba(155, 95, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(125, 182, 255, 0.2);
    min-height: 420px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.project-item:hover {
    background: linear-gradient(135deg, rgba(125, 182, 255, 0.15) 0%, rgba(155, 95, 255, 0.1) 100%);
    border-color: rgba(125, 182, 255, 0.4);
    transform: translateY(-10px);
}

.project-item:nth-child(odd) {
    flex-direction: row;
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-image {
    width: 450px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-info h2 {
    font-size: 2rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #f5f7ff;
    line-height: 1.3;
}

.project-info p {
    font-size: 1rem;
    color: #cbd5e0;
    line-height: 1.8;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    min-width: 150px;
    padding: 0.8rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.15;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-btn-primary {
    background: linear-gradient(135deg, #7db6ff, #5a8dd8);
    color: white;
    border-color: #7db6ff;
}

.project-btn-primary:hover {
    background: linear-gradient(135deg, #5a8dd8, #3d5fa8);
    box-shadow: 0 10px 30px rgba(125, 182, 255, 0.3);
}

.secondary-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0;
}

.project-btn-secondary {
    background: rgba(125, 182, 255, 0.1);
    color: #7db6ff;
    border-color: #7db6ff;
    border: 1px solid #7db6ff;
    border-bottom: 2px solid #7db6ff;
}

.project-btn-secondary:hover {
    background: rgba(125, 182, 255, 0.2);
    box-shadow: 0 10px 30px rgba(125, 182, 255, 0.2);
}

.projects-empty {
    max-width: 640px;
    width: 100%;
    min-height: 560px;
    margin: 0 auto;
    padding: 4.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.projects-empty h2 {
    margin: 0 0 1.5rem;
    color: #f5f7ff;
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    line-height: 1.3;
}

.projects-empty-visual {
    width: 260px;
    height: 260px;
    margin: 0 auto 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(125, 182, 255, 0.95), rgba(155, 95, 255, 0.72));
    box-shadow: 0 22px 55px rgba(61, 95, 168, 0.32);
}

.projects-empty-visual img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.projects-empty p {
    max-width: 520px;
    margin: 0 auto;
    color: #cbd5e0;
    font-size: 1.08rem;
    line-height: 1.8;
}

.projects-empty-title {
    margin-bottom: 0.35rem !important;
    color: #f5f7ff !important;
    font-size: 1.25rem !important;
    font-weight: 700;
}

/* ========== PROJECT DETAIL PAGE ========== */
.project-detail-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.project-detail-hero-solo {
    grid-template-columns: minmax(0, 850px);
    justify-content: center;
    text-align: center;
}

.project-detail-hero-solo .project-detail-actions,
.project-detail-hero-solo .project-back-link {
    justify-self: center;
}

.project-detail-hero-content {
    display: grid;
    gap: 2rem;
    align-content: center;
}

.project-back-link {
    width: fit-content;
    color: #7db6ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.project-back-link:hover {
    color: #63ffc8;
}

.project-detail-heading {
    display: grid;
    gap: 1rem;
}

.project-eyebrow {
    color: #63ffc8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-detail-heading h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.05;
    color: #f5f7ff;
}

.project-detail-heading p {
    max-width: 650px;
    color: #cbd5e0;
    font-size: 1.12rem;
    line-height: 1.85;
}

.project-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    align-items: flex-start;
}

.project-detail-actions > .project-btn-primary {
    min-width: 180px;
}

.project-detail-actions .project-btn {
    width: 180px;
}

.project-detail-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(125, 182, 255, 0.22);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.project-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
    display: grid;
    gap: 2rem;
}

.project-tech-panel,
.project-detail-card,
.project-empty-gallery {
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(125, 182, 255, 0.1) 0%, rgba(155, 95, 255, 0.05) 100%);
    border: 1px solid rgba(125, 182, 255, 0.18);
    backdrop-filter: blur(20px);
}

.project-tech-panel {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.project-tech-panel h2,
.project-detail-card h2,
.project-gallery-header h2 {
    font-family: 'Sora', sans-serif;
    color: #f5f7ff;
    line-height: 1.25;
}

.project-tech-panel h2 {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(125, 182, 255, 0.14);
}

.tech-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.project-tech-badge {
    color: #d7ffe7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.project-detail-card {
    position: relative;
    min-height: 280px;
    padding: 2rem;
    display: grid;
    gap: 1rem;
    align-content: start;
    overflow: hidden;
}

.project-detail-card-wide {
    grid-column: 1 / -1;
    min-height: 230px;
}

.project-card-number {
    color: rgba(125, 182, 255, 0.25);
    font-family: 'Sora', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.project-detail-card h2 {
    font-size: 1.55rem;
}

.project-detail-card p {
    color: #cbd5e0;
    font-size: 1rem;
    line-height: 1.85;
}

.project-gallery-section {
    display: grid;
    gap: 1.25rem;
    padding-top: 1rem;
}

.project-gallery-header {
    display: grid;
    gap: 0.35rem;
}

.project-gallery-header h2 {
    font-size: 2rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.project-gallery-image {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
}

.project-gallery-image img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(125, 182, 255, 0.16);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: block;
}

.project-gallery-image:hover img {
    transform: translateY(-4px);
    border-color: rgba(99, 255, 200, 0.32);
}

.project-empty-gallery {
    padding: 2rem;
    color: #a0aec0;
    text-align: center;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    display: flex;
    justify-content: center;
    padding: 4rem 2rem 3rem;
}

.contact-card {
    width: 100%;
    max-width: 850px;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(125, 182, 255, 0.12) 0%, rgba(155, 95, 255, 0.06) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(125, 182, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 1.5rem;
}

.contact-header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.contact-header h2 {
    font-size: 2.2rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #f5f7ff;
}

.contact-header p {
    max-width: 700px;
    color: #cbd5e0;
    line-height: 1.7;
    font-size: 1rem;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

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

.form-field {
    display: grid;
    gap: 0.6rem;
    color: #cbd5e0;
    font-size: 0.9rem;
}

.form-field span {
    font-weight: 600;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 0.95rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(125, 182, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #f5f7ff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: rgba(125, 182, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.contact-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.contact-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #7db6ff, #5a8dd8);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-bottom: 2px solid #7db6ff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #5a8dd8, #3d5fa8);
    box-shadow: 0 10px 30px rgba(125, 182, 255, 0.3);
}

.success-message,
.error-message {
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.success-message {
    border: 1px solid rgba(99, 255, 200, 0.25);
    background: rgba(99, 255, 200, 0.1);
    color: #d7ffe7;
}

.error-message {
    border: 1px solid rgba(255, 99, 132, 0.28);
    background: rgba(255, 99, 132, 0.1);
    color: #ffe1e8;
}

/* ========== FOOTER ========== */
.footer {
    max-width: 1200px;
    margin: 6rem auto 0;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(125, 182, 255, 0.1);
    color: #718096;
    font-size: 0.95rem;
}

.footer a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-icons {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    filter: invert(100%) sepia(100%) grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1rem);
        left: 1.25rem;
        right: 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        max-height: 0;
        padding: 0 1rem;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        border: 1px solid rgba(125, 182, 255, 0.16);
        border-radius: 16px;
        background: rgba(7, 10, 28, 0.94);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
        backdrop-filter: blur(14px);
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-links.is-open {
        max-height: 24rem;
        padding: 1rem;
        visibility: visible;
        opacity: 1;
    }

    .nav-link {
        display: block;
        padding: 0.65rem 0.25rem;
    }

    .nav-link::after {
        bottom: 0.35rem;
    }

    .locale-switcher {
        align-self: flex-start;
        margin-top: 0.65rem;
        margin-left: 0;
    }

    .about-me {
        grid-template-columns: 1fr;
        margin: 3rem 1.5rem;
        padding: 0;
        gap: 2.5rem;
    }

    .about-content {
        align-items: center;
        text-align: left;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .about-text h2,
    .stack-content h2 {
        font-size: 1.5rem;
    }

    .stack-icons {
        grid-template-columns: 1fr;
    }

    .project-item {
        flex-direction: column !important;
        padding: 2rem;
        min-height: auto;
        gap: 2rem;
    }

    .project-image {
        width: 100%;
        height: 250px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .project-info h2 {
        font-size: 1.5rem;
    }

    .project-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .project-links .project-btn {
        width: 100%;
    }

    .projects-empty {
        max-width: 100%;
        min-height: 460px;
        padding: 2.5rem 1rem;
    }

    .projects-empty h2 {
        font-size: 2.2rem;
    }

    .projects-empty-visual {
        width: 190px;
        height: 190px;
    }

    .projects-section-title {
        font-size: 1.8rem;
    }

    .contact-section {
        padding: 0 1.5rem;
    }

    .contact-card {
        padding: 2rem;
    }

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

    .project-detail-hero {
        padding: 3rem 1.5rem 2rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-detail-hero-content {
        display: contents;
    }

    .project-back-link {
        order: 1;
    }

    .project-detail-heading {
        order: 2;
    }

    .project-detail-cover {
        order: 3;
        border-radius: 14px;
    }

    .project-detail-actions {
        order: 4;
        align-items: stretch;
    }

    .project-detail-actions .project-btn {
        width: 100%;
        text-align: center;
    }

    .secondary-buttons {
        flex-direction: column;
        margin-top: 0;
        gap: 1rem;
    }

    .project-detail-page {
        padding: 0 1.5rem 1rem;
    }

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

    .project-tech-list {
        justify-content: flex-start;
    }

    .tech-item {
        min-height: 40px;
        padding: 0.4rem 0.65rem;
    }

    .tech-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .project-detail-grid,
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-detail-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .project-card-number {
        font-size: 3rem;
    }

    .project-gallery-header h2 {
        font-size: 1.55rem;
    }
}
