:root {
  --primary-color: #00d4ff;
  --secondary-color: #090979;
  --accent-color: #667eea;
  --bg-color: #f0f0f0;
  --text-color: #333;
  --shadow: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
}

.light-theme {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --accent-color: #28a745;
  --bg-color: #ffffff;
  --text-color: #000000;
  --shadow: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 1200px at 10% 10%, rgba(0, 212, 255, 0.08), transparent),
                radial-gradient(900px 900px at 90% 20%, rgba(102, 126, 234, 0.12), transparent),
                var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

header {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.35) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: var(--secondary-color);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    position: absolute;
    bottom: 10px;
    left: 30px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    z-index: 100;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
    margin-right: 20px;
    transition: color 0.3s ease;
}

#theme-toggle:hover {
    color: var(--accent-color);
}

.light-theme header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: var(--text-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 25px 25px;
}

.light-theme #brand {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.3) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

#navbar ul li {
    margin: 0 15px;
}

#navbar ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(6px);
}

#navbar ul li a:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
    transform: translateY(-2px);
}

#welcome-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    position: relative;
    background: black;
    z-index: 2;
}

.light-theme #welcome-section {
    color: var(--text-color);
}

.light-theme #welcome-section {
    background: white;
}

#skyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.light-theme #welcome-section::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

#welcome-section h1, #welcome-section p {
    position: relative;
    z-index: 2;
}

#welcome-section h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    margin: 0;
}

#welcome-section .welcome-word {
    margin: 0 0 10px;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    display: inline-block;
    position: relative;
    z-index: 2;
}

#welcome-section .welcome-word span {
    display: inline-block;
    opacity: 0;
    transform: translateX(var(--wx, 60vw));
}

#welcome-section .welcome-word.is-inview span {
    animation: welcomeSlide 2s ease forwards;
}

#welcome-section .welcome-word span:nth-child(1) { --wx: 70vw; animation-delay: 0ms; }
#welcome-section .welcome-word span:nth-child(2) { --wx: 68vw; animation-delay: 120ms; }
#welcome-section .welcome-word span:nth-child(3) { --wx: 66vw; animation-delay: 240ms; }
#welcome-section .welcome-word span:nth-child(4) { --wx: 64vw; animation-delay: 360ms; }
#welcome-section .welcome-word span:nth-child(5) { --wx: 62vw; animation-delay: 480ms; }
#welcome-section .welcome-word span:nth-child(6) { --wx: 60vw; animation-delay: 600ms; }
#welcome-section .welcome-word span:nth-child(7) { --wx: 58vw; animation-delay: 720ms; }
#welcome-section .welcome-word span:nth-child(8) { --wx: 56vw; animation-delay: 840ms; }
#welcome-section .welcome-word span:nth-child(9) { --wx: 54vw; animation-delay: 960ms; }
#welcome-section .welcome-word span:nth-child(10) { --wx: 52vw; animation-delay: 1080ms; }
#welcome-section .welcome-word span:nth-child(11) { --wx: 50vw; animation-delay: 1200ms; }

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

#welcome-section .brand-word {
    display: inline-block;
    background: linear-gradient(90deg, #00d4ff, #667eea, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
    letter-spacing: 2px;
    outline: none;
}

#welcome-section .brand-word span {
    display: inline-block;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0.45;
    filter: blur(0.6px) drop-shadow(0 0 4px rgba(0, 212, 255, 0.25));
    position: relative;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.2);
    transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg));
    transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
    will-change: transform, opacity, filter;
}

#welcome-section .brand-word span::after {
    content: attr(data-char);
    position: absolute;
    left: 0;
    top: 0;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    filter: blur(4px);
    transform: translate(-14px, -16px);
    pointer-events: none;
}

#welcome-section .brand-word.is-inview span,
#welcome-section .brand-word:hover span,
#welcome-section .brand-word:focus-visible span {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) rotate(0deg);
}

#welcome-section .brand-word span:nth-child(1) { --x: -220px; --y: -180px; --r: -20deg; transition-delay: 0ms; }
#welcome-section .brand-word span:nth-child(2) { --x: 260px; --y: -140px; --r: 18deg; transition-delay: 40ms; }
#welcome-section .brand-word span:nth-child(3) { --x: -180px; --y: 200px; --r: -16deg; transition-delay: 80ms; }
#welcome-section .brand-word span:nth-child(4) { --x: 210px; --y: 160px; --r: 14deg; transition-delay: 120ms; }
#welcome-section .brand-word span:nth-child(5) { --x: -240px; --y: 80px; --r: -12deg; transition-delay: 160ms; }
#welcome-section .brand-word span:nth-child(6) { --x: 190px; --y: -220px; --r: 16deg; transition-delay: 200ms; }
#welcome-section .brand-word span:nth-child(7) { --x: -160px; --y: 180px; --r: -14deg; transition-delay: 240ms; }
#welcome-section .brand-word span:nth-child(8) { --x: 230px; --y: -80px; --r: 12deg; transition-delay: 280ms; }
#welcome-section .brand-word span:nth-child(9) { --x: -200px; --y: 120px; --r: -10deg; transition-delay: 320ms; }

@keyframes fallIn {
    0% {
        transform: translate3d(var(--x, 0), calc(var(--y, 0) - 160px), 0) scale(0.2) rotate(var(--r, 0deg));
        opacity: 0;
        filter: blur(6px) drop-shadow(0 0 8px rgba(0, 212, 255, 0.35));
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
    }
    60% {
        opacity: 0.7;
        filter: blur(3px) drop-shadow(0 0 6px rgba(0, 212, 255, 0.3));
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 4px rgba(0, 212, 255, 0.2));
        text-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
    }
}

#welcome-section .brand-word.is-inview span {
    animation: fallIn 2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#welcome-section .brand-word.is-inview span::after {
    animation: trailFade 0.7s ease-out both;
}

#welcome-section .brand-word.is-inview span:nth-child(1) { animation-delay: 0ms; }
#welcome-section .brand-word.is-inview span:nth-child(2) { animation-delay: 120ms; }
#welcome-section .brand-word.is-inview span:nth-child(3) { animation-delay: 240ms; }
#welcome-section .brand-word.is-inview span:nth-child(4) { animation-delay: 360ms; }
#welcome-section .brand-word.is-inview span:nth-child(5) { animation-delay: 480ms; }
#welcome-section .brand-word.is-inview span:nth-child(6) { animation-delay: 600ms; }
#welcome-section .brand-word.is-inview span:nth-child(7) { animation-delay: 720ms; }
#welcome-section .brand-word.is-inview span:nth-child(8) { animation-delay: 840ms; }
#welcome-section .brand-word.is-inview span:nth-child(9) { animation-delay: 960ms; }

#welcome-section .brand-word.is-inview span:nth-child(1)::after { animation-delay: 60ms; }
#welcome-section .brand-word.is-inview span:nth-child(2)::after { animation-delay: 240ms; }
#welcome-section .brand-word.is-inview span:nth-child(3)::after { animation-delay: 420ms; }
#welcome-section .brand-word.is-inview span:nth-child(4)::after { animation-delay: 600ms; }
#welcome-section .brand-word.is-inview span:nth-child(5)::after { animation-delay: 780ms; }
#welcome-section .brand-word.is-inview span:nth-child(6)::after { animation-delay: 960ms; }
#welcome-section .brand-word.is-inview span:nth-child(7)::after { animation-delay: 1140ms; }
#welcome-section .brand-word.is-inview span:nth-child(8)::after { animation-delay: 1320ms; }
#welcome-section .brand-word.is-inview span:nth-child(9)::after { animation-delay: 1500ms; }

@keyframes trailFade {
    0% {
        opacity: 0.55;
        filter: blur(5px);
        transform: translate(-14px, -16px) scale(0.9);
    }
    100% {
        opacity: 0;
        filter: blur(7px);
        transform: translate(-6px, -6px) scale(0.6);
    }
}

#welcome-section p {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}

#about {
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    z-index: 2;
    color: #fff;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.light-theme #about {
    color: var(--text-color);
}

.light-theme #about::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

#about h2, #about .intro {
    position: relative;
    z-index: 2;
}

#about .intro {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 22px auto 0;
    padding: 26px 30px;
    display: grid;
    gap: 14px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#about .intro::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(102, 126, 234, 0.2));
    filter: blur(2px);
    z-index: -1;
}

#about .intro::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -18px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 70%);
    z-index: -1;
}

#about .intro p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.85;
    letter-spacing: 0.2px;
}

#projects {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    color: #fff;
}

.light-theme #projects {
    color: var(--text-color);
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.light-theme #projects::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

#projects h2, .project-tile {
    position: relative;
    z-index: 2;
}

section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0 10px;
}

.project-tile {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.project-tile a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-media {
    position: relative;
    height: 180px;
    overflow: hidden;
    cursor: zoom-in;
}

.project-media:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.project-tile:hover .project-media img {
    transform: scale(1.15);
}

.project-body {
    display: grid;
    gap: 10px;
    padding: 16px 18px 20px;
    text-align: left;
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.project-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.status-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-done {
    color: #051b11;
    background: linear-gradient(45deg, #00d4ff, #667eea);
}

.status-progress {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.4);
}

.project-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ===== Lightbox de proyectos ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 6vh 5vw;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(1200px, 92vw);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox.is-open img {
    transform: scale(1);
}

.lightbox-caption {
    margin: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 1rem;
    text-align: center;
    max-width: 92vw;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox img,
    .lightbox-close {
        transition: none;
    }
}

#contact {
    padding: 100px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
}

.light-theme #contact {
    color: var(--text-color);
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 9, 121, 0.8) 0%, rgba(9, 9, 121, 0.6) 100%);
    z-index: 1;
}

.light-theme #contact::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

#contact h2, #contact a, #contact img {
    position: relative;
    z-index: 2;
}

#contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #fff;
}

#contact img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

#contact img:hover {
    transform: scale(1.1);
}

.contact-links {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.contact-links a {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    width: 100px;
    height: 100px;
    fill: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-links a:hover .social-icon {
    transform: translateY(-2px);
    opacity: 0.85;
}

footer {
    color: var(--primary-color);
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--accent-color);
    position: relative;
    z-index: 2;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.light-theme footer::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

footer p {
    position: relative;
    z-index: 2;
}

/* ===== OrbitStack ===== */
#orbitstack {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    color: #fff;
}

.light-theme #orbitstack {
    color: var(--text-color);
}

#orbitstack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.light-theme #orbitstack::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

#orbitstack h2,
#orbitstack .game-card,
#orbitstack .privacy-panel {
    position: relative;
    z-index: 2;
}

.game-card {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 30px;
    display: flex;
    gap: 28px;
    align-items: center;
    text-align: left;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.game-icon {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.game-info {
    display: grid;
    gap: 18px;
}

.game-desc {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #000;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(0, 123, 255, 0.7);
}

.store-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.privacy-panel {
    max-width: 900px;
    margin: 30px auto 0;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    text-align: left;
}

.privacy-panel summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 26px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-panel summary::-webkit-details-marker {
    display: none;
}

.privacy-panel summary::after {
    content: '+';
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.privacy-panel[open] summary::after {
    transform: rotate(45deg);
}

.privacy-content {
    padding: 0 26px 26px;
    line-height: 1.7;
}

.privacy-content h3 {
    font-size: 1.05rem;
    margin: 1.4em 0 0.4em;
    color: var(--primary-color);
}

.privacy-content h4 {
    font-size: 0.98rem;
    margin: 1.1em 0 0.3em;
    opacity: 0.95;
}

.privacy-content p,
.privacy-content li {
    margin: 0.5em 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.privacy-content ul {
    padding-left: 1.4em;
}

.privacy-content a {
    color: var(--primary-color);
}

.privacy-updated {
    font-style: italic;
    opacity: 0.7;
}

.privacy-fullpage {
    margin-top: 1.5em;
    font-weight: 600;
}

@media (max-width: 768px) {
    #about .intro {
        margin: 18px auto 0;
        max-width: 520px;
        text-align: center;
    }
        line-height: 1.7;
    #navbar ul {
        flex-direction: column;
    }

    #navbar ul li {
        margin: 10px 0;
    }

    #welcome-section h1 {
        font-size: 2em;
    }

    #welcome-section p {
        font-size: 1.2em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #profile-link, #contact {
        padding: 50px 10px;
    }

    .game-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .game-info {
        justify-items: center;
    }

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

    #contact img {
        width: 80px;
    }
}