﻿:root {
    color-scheme: dark;
    --bg: #050915;
    --surface: rgba(16, 24, 45, 0.95);
    --surface-strong: rgba(9, 15, 34, 0.98);
    --text: #edf2ff;
    --muted: #9ab2ff;
    --accent: #5f97ff;
    --accent-2: #8a48ff;
    --accent-soft: rgba(95, 151, 255, 0.16);
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
    --radius: 28px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(78, 109, 255, 0.18), transparent 28%),
                radial-gradient(circle at bottom right, rgba(108, 63, 255, 0.12), transparent 24%),
                linear-gradient(180deg, #050815 0%, #04070d 45%, #07111f 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
    opacity: 0.3;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.section-head {
    max-width: var(--max-width);
    margin: 0 auto 40px;
    padding: 0 24px;
    text-align: center;
}

.section-head span {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 3.4rem);
    line-height: 1.05;
    max-width: 860px;
    margin-inline: auto;
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    width: min(1120px, calc(100% - 36px));
    padding: 18px 24px;
    z-index: 2000;
    transition: transform 0.28s ease, background 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    background: rgba(3, 8, 18, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(68, 155, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.site-header.visible {
    transform: translateX(-50%) translateY(0);
}

.site-header.scrolled {
    background: rgba(5, 9, 20, 0.95);
    border-color: rgba(95, 151, 255, 0.22);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.site-header.scrolled {
    background: rgba(4, 9, 23, 0.92);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    color: #76b6ff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(110, 180, 255, 0.25);
}

.brand span {
    color: #58a1ff;
}

.navbar-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(95, 151, 255, 0.24);
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.navbar-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.1);
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 4px 0;
    background: #8cc5ff;
    border-radius: 999px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    color: rgba(237, 242, 255, 0.8);
    padding: 10px 14px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(95, 151, 255, 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-close {
    display: none;
}

.theme-toggle {
    min-width: 40px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(95, 151, 255, 0.14);
}

.theme-toggle .theme-icon {
    font-size: 1.1rem;
}

.theme-toggle .theme-label {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

body.light-theme {
    background: radial-gradient(circle at top left, rgba(96, 150, 255, 0.08), transparent 20%),
                radial-gradient(circle at bottom right, rgba(138, 72, 255, 0.05), transparent 16%),
                linear-gradient(180deg, #f8fbff 0%, #eef2ff 55%, #f8f9ff 100%);
    color: #111827;
}

body.light-theme::before {
    opacity: 0.08;
    background-image: radial-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px);
}

body.light-theme .site-header {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body.light-theme .brand {
    color: #111827;
}

body.light-theme .nav-links a {
    color: rgba(17, 24, 39, 0.76);
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
    background: rgba(95, 151, 255, 0.14);
    color: #111827;
}

body.light-theme .navbar-toggle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.28);
}

body.light-theme .navbar-toggle span {
    background: #111827;
}

body.light-theme .theme-toggle {
    background: rgba(17, 24, 39, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    color: #111827;
}

body.light-theme .home-glow {
    background: radial-gradient(circle at 18% 20%, rgba(95, 151, 255, 0.18), transparent 22%),
                radial-gradient(circle at 82% 14%, rgba(138, 72, 255, 0.12), transparent 20%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.14), transparent 16%);
}

body.light-theme .hero-card,
body.light-theme .about-copy,
body.light-theme .about-card,
body.light-theme .contact-info-panel,
body.light-theme .contact-form-panel,
body.light-theme .project-card,
body.light-theme .skill-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
    color: #111827;
}

body.light-theme .hero-copy p,
body.light-theme .hero-role,
body.light-theme .about-copy p,
body.light-theme .about-card p,
body.light-theme .project-content p,
body.light-theme .project-back-content p,
body.light-theme .percentage,
body.light-theme .contact-info-panel p,
body.light-theme .contact-item a,
body.light-theme .contact-item span,
body.light-theme .form-group label {
    color: rgba(17, 24, 39, 0.78);
}

body.light-theme .contact-direct-link {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(148, 163, 184, 0.24);
}

body.light-theme .contact-direct-link:hover {
    background: rgba(236, 254, 255, 0.92);
    border-color: rgba(8, 145, 178, 0.38);
}

body.light-theme .contact-link-name {
    color: #111827;
}

body.light-theme .contact-link-value,
body.light-theme .contact-link-arrow,
body.light-theme .contact-form-actions p {
    color: #52647e;
}

body.light-theme .eyebrow {
    color: #2563eb;
}

body.light-theme .section-head h2 {
    color: #111827;
}

body.light-theme .btn-secondary {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-theme .tab,
body.light-theme .tab:hover,
body.light-theme .tab.active {
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    border-color: rgba(96, 165, 250, 0.45);
}

body.light-theme .tab.active {
    background: rgba(96, 165, 250, 0.18);
    box-shadow: 0 12px 36px rgba(96, 165, 250, 0.16);
}

body.light-theme .submit-btn {
    background: linear-gradient(135deg, #5f97ff, #8a48ff);
}

body.light-theme .project-link {
    color: #2563eb;
}

body.light-theme .hero-stats div {
    background: linear-gradient(180deg, rgba(221, 219, 219, 0.96), rgba(244, 246, 255, 0.92));
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.light-theme .hero-stats strong {
    color: #111827;
}

body.light-theme .hero-stats span {
    color: rgba(55, 65, 81, 0.72);
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
    color: #111827;
    background: rgba(95, 151, 255, 0.14);
}

body.light-theme .about-copy strong,
body.light-theme .contact-item strong,
body.light-theme .section-head h2,
body.light-theme .hero-stats strong {
    color: #111827;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .social-icons a {
    color: #111827;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: #f8fafc;
    border: 1px solid rgba(100, 116, 139, 0.38);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
    color: rgba(71, 85, 105, 0.68);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    border-color: #5f83ee;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(95, 131, 238, 0.15);
}

body.light-theme .social-icons {
    gap: 10px;
}

body.light-theme .social-icons a {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 36px rgba(148, 163, 184, 0.12), inset 0 0 0 1px rgba(255,255,255,0.5);
}

body.light-theme .social-icons a::before {
    background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.6), transparent 36%),
                radial-gradient(circle at 85% 85%, rgba(248, 250, 252, 0.36), transparent 40%);
}

body.light-theme .social-icons a::after {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24), transparent 45%);
}

body.light-theme .social-icons a:hover {
    background: rgba(245, 247, 255, 0.98);
    box-shadow: 0 20px 54px rgba(148, 163, 184, 0.18), inset 0 0 0 1px rgba(255,255,255,0.55);
}

body.light-theme .social-icons a:hover svg {
    filter: drop-shadow(0 0 16px rgba(15, 23, 42, 0.18));
}

body.light-theme .social-icons a.whatsapp {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.25);
    background: rgba(237, 255, 244, 0.98);
}

body.light-theme .social-icons a.whatsapp::before {
    background: radial-gradient(circle at 10% 10%, rgba(37, 211, 102, 0.28), transparent 42%),
                radial-gradient(circle at 90% 90%, rgba(37, 211, 102, 0.16), transparent 42%);
}

body.light-theme .social-icons a.whatsapp:hover {
    box-shadow: 0 18px 54px rgba(37, 211, 102, 0.18), inset 0 0 0 1px rgba(37, 211, 102, 0.16);
}

body.light-theme .social-icons a.whatsapp:hover svg {
    filter: drop-shadow(0 0 18px rgba(37, 211, 102, 0.5));
}

body.light-theme .social-icons a.github {
    color: #111827;
    border-color: rgba(31, 41, 55, 0.25);
    background: rgba(226, 232, 240, 0.95);
}

body.light-theme .social-icons a.github::before {
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.2), transparent 42%),
                radial-gradient(circle at 90% 90%, rgba(255,255,255,0.12), transparent 42%);
}

body.light-theme .social-icons a.github:hover {
    box-shadow: 0 18px 54px rgba(31, 41, 55, 0.18), inset 0 0 0 1px rgba(255,255,255,0.18);
}

body.light-theme .social-icons a.github:hover svg {
    filter: drop-shadow(0 0 20px rgba(31, 41, 55, 0.4));
}

body.light-theme .social-icons a.email {
    color: #111827;
    border-color: rgba(248, 113, 113, 0.2);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.08), rgba(34, 211, 238, 0.1));
}

body.light-theme .social-icons a.email::before {
    background: radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.22), transparent 38%),
                radial-gradient(circle at 90% 90%, rgba(14, 165, 233, 0.16), transparent 40%);
}

body.light-theme .social-icons a.email:hover {
    box-shadow: 0 18px 54px rgba(249, 115, 22, 0.16), inset 0 0 0 1px rgba(255,255,255,0.18);
}

body.light-theme .social-icons a.email:hover svg {
    filter: drop-shadow(0 0 18px rgba(234, 88, 12, 0.45));
}

body.light-theme .social-icons a.linkedin {
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.22);
    background: rgba(219, 234, 254, 0.95);
}

body.light-theme .social-icons a.linkedin::before {
    background: radial-gradient(circle at 10% 10%, rgba(10, 102, 194, 0.28), transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(10, 102, 194, 0.16), transparent 40%);
}

body.light-theme .social-icons a.linkedin:hover {
    box-shadow: 0 18px 54px rgba(10, 102, 194, 0.18), inset 0 0 0 1px rgba(255,255,255,0.18);
}

body.light-theme .social-icons a.linkedin:hover svg {
    filter: drop-shadow(0 0 18px rgba(10, 102, 194, 0.55));
}

body.light-theme .social-icons a.x-icon {
    color: #0284c7;
    border-color: rgba(56, 189, 248, 0.22);
    background: rgba(219, 244, 255, 0.95);
}

body.light-theme .social-icons a.x-icon::before {
    background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.3), transparent 36%),
                radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.18), transparent 36%);
}

body.light-theme .social-icons a.x-icon:hover {
    box-shadow: 0 18px 54px rgba(56, 189, 248, 0.18), inset 0 0 0 1px rgba(255,255,255,0.18);
}

body.light-theme .social-icons a.x-icon:hover svg {
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.65));
}

body.light-theme .social-icons a.instagram {
    color: #8b5cf6;
    border-color: rgba(168, 85, 247, 0.24);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.14));
}

body.light-theme .social-icons a.instagram::before {
    background: radial-gradient(circle at 10% 10%, rgba(168, 85, 247, 0.28), transparent 34%),
                radial-gradient(circle at 90% 90%, rgba(245, 158, 11, 0.18), transparent 38%);
}

body.light-theme .social-icons a.instagram:hover {
    box-shadow: 0 18px 54px rgba(191, 90, 242, 0.18), inset 0 0 0 1px rgba(255,255,255,0.18);
}

body.light-theme .social-icons a.instagram:hover svg {
    filter: drop-shadow(0 0 18px rgba(191, 90, 242, 0.55));
}

body.light-theme .hero-stats div {
    background: linear-gradient(180deg, rgba(221, 219, 219, 0.96), rgba(244, 246, 255, 0.92));
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.light-theme .project-card-face {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

body.light-theme .project-card-back {
    background: rgba(247, 250, 255, 0.95);
}

body.light-theme .project-content h3,
body.light-theme .project-back-content h3 {
    color: #111827;
}

body.light-theme .project-tags span {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.8);
}

body.light-theme .project-action.btn-secondary,
body.light-theme .show-more-btn {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-theme .show-more-btn:hover {
    background: rgba(96, 165, 250, 0.16);
}

body.light-theme .footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body.light-theme .footer-inner {
    color: rgba(17, 24, 39, 0.72);
}

body.light-theme .footer-inner p {
    color: rgba(17, 24, 39, 0.72);
}

body.light-theme .footer-name {
    color: #111827;
}

body.light-theme .footer-social-links a,
body.light-theme .footer-legal-links a {
    color: #2563eb;
}

main {
    position: relative;
    z-index: 1;
}

.home {
    position: relative;
    padding: 90px 20px 70px;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.16;
    pointer-events: none;
    transform: translateY(0);
}

.home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(95, 151, 255, 0.18), transparent 14%),
                radial-gradient(circle at 85% 15%, rgba(138, 72, 255, 0.12), transparent 16%),
                radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08), transparent 18%);
    opacity: 0.7;
    pointer-events: none;
}

.home-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(95, 151, 255, 0.14), transparent 24%),
                radial-gradient(circle at 50% 70%, rgba(138, 72, 255, 0.08), transparent 18%);
    pointer-events: none;
}

.home-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0.9;
    isolation: isolate;
    border: 1px solid rgba(237, 249, 255, 0.62);
    background:
        radial-gradient(ellipse at 29% 19%, rgba(255, 255, 255, 0.98) 0 1.5%, rgba(255, 255, 255, 0.5) 4%, rgba(255, 255, 255, 0.08) 13%, transparent 24%),
        radial-gradient(ellipse at 68% 78%, rgba(255, 255, 255, 0.28), transparent 27%),
        radial-gradient(circle at 36% 32%, rgba(var(--orb-tint), 0.08) 0 33%, rgba(var(--orb-tint), 0.2) 62%, rgba(255, 255, 255, 0.14) 78%, rgba(var(--orb-tint), 0.34) 96%, rgba(255, 255, 255, 0.72) 100%);
    box-shadow: inset -9px -12px 22px rgba(10, 24, 55, 0.16),
                inset 3px 4px 12px rgba(255, 255, 255, 0.34),
                inset 0 0 0 1px rgba(255, 255, 255, 0.16),
                0 12px 28px rgba(var(--orb-tint), 0.1);
    backdrop-filter: blur(2px) saturate(1.35);
    transform: translate3d(var(--bubble-x, -200px), var(--bubble-y, -200px), 0);
    will-change: transform;
}

.orb-growing {
    scale: 0.12;
    animation: bubbleBirth 420ms cubic-bezier(0.18, 0.75, 0.28, 1) both;
}

.orb-popping {
    z-index: 2;
    pointer-events: none;
    animation: bubblePop 300ms ease-in forwards;
}

.bubble-impact {
    position: absolute;
    z-index: 2;
    width: 1px;
    height: 1px;
    pointer-events: none;
    animation: impactFlash 520ms ease-out both;
}

.impact-ripple {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(244, 253, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(116, 211, 255, 0.55), inset 0 0 8px rgba(255, 255, 255, 0.25);
    animation: waterRipple 620ms cubic-bezier(0.1, 0.55, 0.35, 1) both;
}

.impact-ripple-secondary {
    width: 10px;
    height: 10px;
    border-color: rgba(173, 231, 255, 0.76);
    animation-delay: 65ms;
}

.impact-droplet {
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 8px;
    border: 1px solid rgba(245, 253, 255, 0.82);
    border-radius: 70% 30% 65% 35%;
    background: radial-gradient(ellipse at 30% 20%, #fff, rgba(125, 209, 255, 0.52) 60%, rgba(125, 209, 255, 0.12));
    box-shadow: 0 0 7px rgba(116, 211, 255, 0.45);
    animation: waterDroplet 440ms cubic-bezier(0.15, 0.65, 0.3, 1) both;
}

.impact-droplet-1 { --dx: -22px; --dy: -17px; }
.impact-droplet-2 { --dx: 21px; --dy: -20px; animation-delay: 18ms; }
.impact-droplet-3 { --dx: 29px; --dy: 7px; animation-delay: 34ms; }
.impact-droplet-4 { --dx: 12px; --dy: 23px; animation-delay: 12ms; }
.impact-droplet-5 { --dx: -20px; --dy: 18px; animation-delay: 28ms; }
.impact-droplet-6 { --dx: -29px; --dy: 0px; animation-delay: 45ms; }

.orb::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 8% 12% auto auto;
    width: 19%;
    height: 8%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    filter: blur(2px);
    transform: rotate(38deg);
}

@keyframes bubbleBirth {
    0% { scale: 0.08; opacity: 0; filter: blur(3px) brightness(1.5); }
    58% { scale: 1.14; opacity: 1; filter: blur(0) brightness(1.2); }
    78% { scale: 0.96; }
    100% { scale: 1; opacity: 0.9; filter: none; }
}

@keyframes bubblePop {
    0% { scale: 1; opacity: 0.9; filter: brightness(1) blur(0); }
    35% { scale: 1.2; opacity: 1; filter: brightness(1.45) blur(0); }
    100% { scale: 0.04; opacity: 0; filter: brightness(1.8) blur(3px); }
}

@keyframes waterRipple {
    0% { transform: translate(-50%, -50%) scale(0.2, 0.2); opacity: 0.95; }
    45% { opacity: 0.75; }
    100% { transform: translate(-50%, -50%) scale(4.2, 2.6); opacity: 0; }
}

@keyframes waterDroplet {
    0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0; }
    18% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; }
}

@keyframes impactFlash {
    0%, 100% { opacity: 1; }
    18% { opacity: 0.25; }
}

.orb::after {
    content: '';
    position: absolute;
    top: 19%;
    left: 23%;
    width: 24%;
    height: 11%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    filter: blur(3px);
    transform: rotate(-35deg);
}

.orb-1 {
    --orb-tint: 95, 151, 255;
    width: 112px;
    height: 112px;
}

.orb-2 {
    --orb-tint: 138, 72, 255;
    width: 88px;
    height: 88px;
}

.orb-3 {
    --orb-tint: 60, 220, 232;
    width: 62px;
    height: 62px;
}

.orb-4 {
    --orb-tint: 95, 151, 255;
    width: 130px;
    height: 130px;
}

.home-grid {
    position: relative;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 20px 18px;
}

.hero-copy::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle at 15% 15%, rgba(138, 72, 255, 0.12), transparent 20%),
                radial-gradient(circle at 85% 25%, rgba(95, 151, 255, 0.1), transparent 18%);
    z-index: -1;
    border-radius: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 34px rgba(19, 33, 68, 0.2);
}

.hero-copy p {
    margin: 20px auto 0;
    max-width: 680px;
    color: rgba(237, 242, 255, 0.88);
    line-height: 1.75;
    font-size: 0.99rem;
}

.hero-role {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #d9e4ff;
}

.hero-role .typing-roles {
    color: var(--accent);
}

.hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    filter: drop-shadow(0 16px 32px rgba(29, 78, 255, 0.2));
}

.hero-chips {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hero-chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(237, 242, 255, 0.82);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-chips span:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(95, 151, 255, 0.22);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 24px;
    border: 1px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(32, 103, 255, 0.18);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(95, 151, 255, 0.96), rgba(138, 72, 255, 0.94));
    color: #fff;
    background-size: 220% 220%;
    animation: shiftGradient 6s ease infinite;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
}

@keyframes shiftGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulseText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.hero-card {
    position: relative;
    padding: 24px;
    border-radius: 28px;
    background: rgba(11, 19, 41, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(1, 8, 24, 0.24);
    overflow: hidden;
    min-width: 300px;
}

.card-decor {
    position: absolute;
    inset: -18px -26px auto auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(95,151,255,0.18), transparent 52%);
    filter: blur(22px);
    pointer-events: none;
}

.hero-avatar {
    display: grid;
    place-items: center;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.hero-avatar img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.hero-stats div {
    padding: 16px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats strong {
    display: block;
    font-size: 1.4rem;
    color: #fff;
}

.hero-stats span {
    display: block;
    color: var(--muted);
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.about,
.skills,
.projects,
.contact {
    padding: 80px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
}

.about-copy {
    background: rgba(8, 18, 40, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 28px;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.about-copy p {
    margin: 0 0 16px;
    color: rgba(237, 242, 255, 0.82);
    line-height: 1.75;
    font-size: 0.98rem;
}

.about-copy strong {
    color: #fff;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 42px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: rgba(11, 20, 45, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    padding: 24px;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(95, 151, 255, 0.22);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.about-card p {
    margin: 0;
    color: rgba(237, 242, 255, 0.74);
    line-height: 1.7;
}

.skills-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.tab {
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab:hover,
.tab.active {
    background: rgba(95, 151, 255, 0.18);
    border-color: rgba(95, 151, 255, 0.4);
    color: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.skill-card {
    background: rgba(11, 18, 38, 0.92);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.16);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.08s; }
.skill-card:nth-child(2) { animation-delay: 0.14s; }
.skill-card:nth-child(3) { animation-delay: 0.2s; }
.skill-card:nth-child(4) { animation-delay: 0.26s; }
.skill-card:nth-child(5) { animation-delay: 0.32s; }
.skill-card:nth-child(6) { animation-delay: 0.38s; }

.skill-card h3 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.progress-container {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    height: 12px;
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(95, 151, 255, 0.96), rgba(138, 72, 255, 0.92));
    transition: width 1.1s ease;
}

.percentage {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.projects .project-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    border-radius: 28px;
}

.project-card {
    perspective: 1200px;
}

.project-card-inner {
    position: relative;
    width: 100%;
    min-height: 460px;
    border-radius: 28px;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-face {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    backface-visibility: hidden;
    overflow: hidden;
    background: rgba(12, 21, 43, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
}

.project-card-front {
    z-index: 2;
}

.project-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.95), rgba(12, 20, 40, 0.98));
}

.project-image {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

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

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

.project-content,
.project-back-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3,
.project-back-content h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.project-content p,
.project-back-content p {
    margin: 0 0 20px;
    color: rgba(237, 242, 255, 0.82);
    line-height: 1.7;
    flex-grow: 1;
}

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

.project-tags span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(237, 242, 255, 0.84);
    font-size: 0.88rem;
}

.project-actions {
    display: grid;
    gap: 12px;
}

.project-action {
    justify-self: start;
    width: fit-content;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.show-more-btn {
    padding: 14px 34px;
    border-radius: 18px;
    border: 1px solid rgba(95, 151, 255, 0.5);
    background: rgba(8, 15, 31, 0.95);
    color: #9cc8ff;
    letter-spacing: 0.08em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(95, 151, 255, 0.16);
    background: rgba(95, 151, 255, 0.12);
}

.project-card.hidden-card {
    display: none;
}

.project-grid.show-all .project-card.hidden-card {
    display: block;
}

.contact-grid {
    max-width: 1112px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 28px;
    padding-bottom: 20px;
}

.contact-info-panel,
.contact-form-panel {
    position: relative;
    background: rgba(11, 20, 41, 0.94);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 32px 80px rgba(2, 12, 34, 0.22);
    backdrop-filter: blur(14px);
}

.contact-info-panel::before {
    display: none;
}

.contact-info-panel h3,
.contact-form-panel h3 {
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.contact-info-panel p {
    color: rgba(237, 242, 255, 0.78);
    line-height: 1.65;
    margin: 0 0 22px;
    max-width: 38rem;
}

.contact-kicker {
    display: block;
    margin-bottom: 12px;
    color: #21cbe0;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
}

.contact-direct-links {
    display: grid;
    gap: 10px;
}

.contact-direct-link {
    min-width: 0;
    min-height: 46px;
    display: grid;
    grid-template-columns: 18px minmax(64px, 0.7fr) minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(95, 151, 255, 0.16);
    border-radius: 13px;
    background: rgba(5, 12, 27, 0.32);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-direct-link:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 203, 224, 0.5);
    background: rgba(33, 203, 224, 0.06);
}

.contact-direct-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #21cbe0;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-direct-link svg path[fill] {
    stroke: none;
}

.contact-direct-link .icon-dot {
    fill: #21cbe0;
    stroke: none;
}

.contact-link-name {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-link-value {
    min-width: 0;
    overflow: hidden;
    color: #a9c4ff;
    font-size: 0.78rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-link-arrow {
    color: #a9c4ff;
    font-size: 0.9rem;
    text-align: right;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.social-icons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(15, 20, 36, 0.85);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 32%),
                radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.12), transparent 38%);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.social-icons a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-icons a svg {
    width: 28px;
    height: 28px;
    display: block;
    flex: 0 0 28px;
    overflow: visible;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.social-icons a:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(18, 28, 60, 0.95);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    filter: saturate(1.18);
}

.social-icons a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-icons a:hover::after {
    opacity: 0.18;
}

.social-icons a:hover svg {
    transform: scale(1.12);
}

.social-icons a.whatsapp {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.24);
}

.social-icons a.whatsapp::before {
    background: radial-gradient(circle at 10% 10%, rgba(37, 211, 102, 0.3), transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(37, 211, 102, 0.15), transparent 38%);
}

.social-icons a.whatsapp:hover {
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.28), inset 0 0 0 1px rgba(37, 211, 102, 0.12);
}

.social-icons a.whatsapp:hover svg {
    filter: drop-shadow(0 0 20px rgba(37, 211, 102, 0.55));
}

.social-icons a.github {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(20, 20, 20, 0.92);
}

.social-icons a.github::before {
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.16), transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.08), transparent 40%);
}

.social-icons a.github:hover {
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.social-icons a.github:hover svg {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.75));
}

.social-icons a.email {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(251, 191, 36, 0.2), rgba(34, 211, 238, 0.2));
}

.social-icons a.email::before {
    background: radial-gradient(circle at 10% 10%, rgba(236, 72, 153, 0.22), transparent 35%),
                radial-gradient(circle at 90% 90%, rgba(34, 211, 238, 0.18), transparent 36%);
}

.social-icons a.email:hover {
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.social-icons a.email:hover svg {
    filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.75));
}

.social-icons a.linkedin {
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.24);
}

.social-icons a.linkedin::before {
    background: radial-gradient(circle at 10% 10%, rgba(10, 102, 194, 0.28), transparent 38%),
                radial-gradient(circle at 90% 90%, rgba(10, 102, 194, 0.16), transparent 38%);
}

.social-icons a.linkedin:hover {
    box-shadow: 0 20px 60px rgba(10, 102, 194, 0.24), inset 0 0 0 1px rgba(10, 102, 194, 0.12);
}

.social-icons a.linkedin:hover svg {
    filter: drop-shadow(0 0 18px rgba(10, 102, 194, 0.75));
}

.social-icons a.x-icon {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(15, 20, 36, 0.85);
}

.social-icons a.x-icon::before {
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.16), transparent 34%),
                radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.08), transparent 36%);
}

.social-icons a.x-icon:hover {
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.social-icons a.x-icon:hover svg {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.58));
}

.social-icons a.instagram {
    color: #ffffff;
    border-color: rgba(208, 74, 255, 0.22);
    background: linear-gradient(135deg, rgba(149, 45, 255, 0.14), rgba(250, 197, 79, 0.14), rgba(255, 70, 193, 0.16));
}

.social-icons a.instagram::before {
    background: radial-gradient(circle at 10% 10%, rgba(149, 45, 255, 0.28), transparent 34%),
                radial-gradient(circle at 90% 90%, rgba(252, 211, 77, 0.2), transparent 38%);
}

.social-icons a.instagram:hover {
    box-shadow: 0 20px 60px rgba(255, 130, 230, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.social-icons a.instagram:hover svg {
    filter: drop-shadow(0 0 20px rgba(255, 130, 230, 0.75));
}

.contact-form-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.form-group label {
    color: rgba(237, 242, 255, 0.75);
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #f8fbff;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.42);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(95, 151, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(95, 151, 255, 0.12);
    background: rgba(255,255,255,0.08);
}

.submit-btn {
    width: auto;
    border: none;
    border-radius: 999px;
    background: #21cbe0;
    color: #03121b;
    padding: 13px 20px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(29, 74, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-btn svg {
    width: 17px;
    height: 17px;
    margin-right: 6px;
    vertical-align: -3px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.contact-form-actions p {
    margin: 0;
    color: #a9c4ff;
    font-size: 0.78rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(29, 74, 255, 0.22);
}

.footer {
    position: relative;
    margin-top: 48px;
    padding: 40px 24px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(3, 7, 15, 0.62);
}

.footer-inner {
    max-width: 1112px;
    margin: 0 auto;
    color: rgba(237, 242, 255, 0.64);
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 36px;
}

.footer-identity p,
.footer-bottom p {
    margin: 0;
}

.footer-name {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.footer-identity p span {
    color: #21cbe0;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 22px;
    padding-top: 2px;
}

.footer-social-links a,
.footer-legal-links a {
    color: #a9c4ff;
    transition: color 0.2s ease;
}

.footer-social-links a:hover,
.footer-legal-links a:hover {
    color: #21cbe0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.footer-bottom-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-back-to-top {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(95, 151, 255, 0.28);
    border-radius: 50%;
    color: #a9c4ff;
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-back-to-top:hover {
    color: #21cbe0;
    border-color: rgba(33, 203, 224, 0.55);
    background: rgba(33, 203, 224, 0.08);
    transform: translateY(-2px);
}

.contact-direct-link:focus-visible,
.footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 820px) {
    .footer-top {
        flex-direction: column;
        gap: 22px;
    }

    .footer-social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .contact-info-panel,
    .contact-form-panel {
        padding: 24px 18px;
    }

    .contact-direct-link {
        grid-template-columns: 18px 72px minmax(0, 1fr) 12px;
        gap: 8px;
        padding: 10px;
    }

    .contact-link-name {
        font-size: 0.82rem;
    }

    .contact-link-value {
        font-size: 0.7rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-social-links {
        gap: 12px 14px;
    }

    .footer-bottom-actions {
        width: 100%;
        justify-content: space-between;
        gap: 16px;
    }

    .footer-legal-links {
        gap: 10px 16px;
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.about-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(95, 151, 255, 0.22);
}

@media (max-width: 1040px) {
    .home-grid,
    .about-grid,
    .contact-grid,
    .skills-grid,
    .about-cards {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-avatar img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 14px 18px;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 18px;
        width: min(170px, calc(100vw - 36px));
        padding: 16px;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: rgba(6, 12, 24, 0.98);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 22px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    }

    .nav-links.show-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 12px 16px;
        border-radius: 18px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        width: 100%;
        background: rgba(95, 151, 255, 0.14);
        color: #fff;
        transform: translateY(-1px);
    }

    .hero-avatar img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }
}

@media (max-width: 640px) {
    .home {
        padding-top: 110px;
    }

    .home-orbs {
        z-index: 0;
    }

    .orb-1 { width: 60px; height: 60px; }
    .orb-2 { width: 52px; height: 52px; }
    .orb-3 { width: 42px; height: 42px; }
    .orb-4 { width: 68px; height: 68px; }

    .orb {
        opacity: 0.96;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: inset -5px -7px 12px rgba(10, 24, 55, 0.18),
                    inset 2px 3px 7px rgba(255, 255, 255, 0.48),
                    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
                    0 8px 18px rgba(var(--orb-tint), 0.18);
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-avatar img {
        width: 100%;
        height: 360px;
        object-fit: cover;
    }
    .navbar-toggle {
        display: flex;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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