* {
    scroll-behavior: smooth;
}

/* Navbar */
.nav-wrapper {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-shell {
    display: inline-flex;
    align-items: center;
    height: 58px;
    padding: 0px 10px;
    backdrop-filter: blur(4px);
    background: rgb(15 23 42 / 60%);
    border: 2px solid #1b5bc4c4;
    border-radius: 999px;
    /* box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2); */
}

.nav-logo-box {
    position: absolute;
    left: 58px;
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.95rem;
}

/* Glass effect cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Navigation links */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    color: white;
    background: #1b5bc4c4;
}

.nav-link::after {
    content: '';
    display: none;
}

.nav-link:hover::after {
    width: 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    /* box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); */
}

.btn-primary:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5); */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Section titles */
.section-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skill bars */
.skill-bar {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
    height: 8px;
}

.skill-progress {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.skill-item {
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
}

/* Tags */
.tag {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Input fields */
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    color: white;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Social links */
.social-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    color: white;
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.animate-spin-reverse {
    animation: spin-reverse 6s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-padding-top: 80px;
}

/* Skills */
.skills {
    position: relative;
    width: 100%;
    padding: 60px 24px 60px;
    overflow: hidden;
}

.skills-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.skills-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skills-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skills-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 700;
}

.skills-title {
    color: white;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.skills-sub {
    color: #cbd5e1;
    font-size: 1rem;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skills-category-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.category-icon {
    font-size: 28px;
    margin: 0;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.skill-pill:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
}

.skill-pill i {
    font-size: 32px;
}

.skill-icon-svg {
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.skill-icon-img {
    width: 32px;
    height: 32px;
    filter: invert(0.5) sepia(1) hue-rotate(200deg) saturate(2);
}

.skill-pill span {
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .skills {
        padding: 48px 18px 48px;
    }
    .skills-inner {
        max-width: 100%;
    }
}

/* Projects */
.projects {
    position: relative;
    width: 100%;
    padding: 60px 24px 60px;
    overflow: hidden;
}

.projects-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.projects-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.projects-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projects-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 700;
}

.projects-title {
    color: white;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.projects-sub {
    color: #cbd5e1;
    font-size: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.project-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

.project-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: grid;
    place-items: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.25);
}

.project-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.project-desc {
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.project-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .projects {
        padding: 48px 18px 48px;
    }
    .projects-inner {
        max-width: 100%;
    }
}

/* Contact */
.contact {
    position: relative;
    width: 100%;
    padding: 60px 24px 60px;
    overflow: hidden;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.contact-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-title {
    color: white;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.contact-sub {
    color: #cbd5e1;
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(8px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: grid;
    place-items: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.25);
}

.contact-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.contact-value {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.contact-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field label {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
}

.contact-field textarea {
    resize: vertical;
}

.contact-submit {
    margin-top: 4px;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .contact {
        padding: 48px 18px 48px;
    }
    .contact-inner {
        max-width: 100%;
    }
}

/* Footer */
.site-footer {
    position: relative;
    width: 100%;
    padding: 72px 24px 48px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08), transparent 50%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    align-items: center;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 700;
}

.footer-title {
    color: white;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.footer-sub {
    color: #cbd5e1;
    font-size: 1rem;
    max-width: 520px;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 64px 18px 40px;
    }
    .footer-actions {
        justify-content: flex-start;
    }
    .footer-sub {
        max-width: 100%;
    }
}

/* About */
.about {
    position: relative;
    width: 100%;
    padding: 60px 24px 60px;
    overflow: hidden;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.about-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 700;
}

.about-title {
    color: white;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.about-sub {
    color: #cbd5e1;
    font-size: 1rem;
}

.about-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
}

.about-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.about-card-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.about-text {
    color: #d1d5db;
    line-height: 1.6;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.about-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.9rem;
}

.cv-button {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 14px;
}

.cv-button:hover {
    transform: translateY(-3px);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: 0.1s;
}

.timeline-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
}

.timeline-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    font-size: 1rem;
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-logo.alt {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.timeline-date {
    color: #60a5fa;
    font-weight: 700;
    font-size: 0.95rem;
}

.timeline-role {
    color: #e5e7eb;
    font-weight: 700;
    font-size: 1rem;
}

.timeline-place {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 2px 0 4px;
}

.timeline-text {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about {
        padding: 48px 18px 48px;
    }
    .about-inner {
        max-width: 100%;
    }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    padding: 140px 24px 60px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}

.hero-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    font-size: 0.85rem; 
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.hero-sub {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}

.hero-panel {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    display: grid;
    gap: 14px;
    align-content: start;
}

.mini-game {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.game-title {
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
}

.game-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.game-score-display {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

.game-score-display span {
    color: #60a5fa;
    font-size: 1.6rem;
    font-weight: 800;
    margin-left: 8px;
}

.game-status {
    width: 100%;
    padding: 10px;
    color: #60a5fa;
    font-weight: 700;
    font-size: 1rem;
    min-height: 28px;
}

.morpion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    aspect-ratio: 1;
    max-width: 280px;
}

.morpion-cell {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.morpion-cell:hover:not(.taken) {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.morpion-cell.taken {
    cursor: not-allowed;
}

.game-button {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.4);
}

.game-button:active {
    transform: scale(0.98);
}

.hero-avatar {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.hero-stat {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.hero-stat-label {
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-stat-value {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4px 0;
}

.hero-stat-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 18px 48px;
    }
    .hero-inner {
        max-width: 100%;
    }
    .nav-wrapper {
        padding: 0 12px;
    }
}

.grid {
    display: grid;
    align-items: start;
}