* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #090d18;
    --card: rgba(17, 24, 39, 0.88);
    --text: #f8fafc;
    --muted: #a8b3c7;
    --accent: #8b5cf6;
    --accent2: #4f7cff;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    --whatsapp: #25d366;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(79, 124, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #070a13, #0d1324);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(9, 13, 24, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #c4b5fd, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #d9e2f2;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c4b5fd;
}

.lang-switch {
    display: flex;
    gap: 0.3rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.lang-btn {
    border: 0;
    cursor: pointer;
    color: #cbd5e1;
    background: transparent;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
}

.lang-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* GLOBAL */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

/* HERO */
.hero {
    padding-top: 5rem;
}

.hero-card,
.about-card,
.contact-card,
.project-slider-card,
.slider-controls {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-card {
    text-align: center;
    border-radius: 28px;
    padding: 4rem 2rem;
}

.badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.13);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 800;
    font-size: 0.85rem;
}

.hero-card h1 {
    font-size: clamp(3rem, 8vw, 5.4rem);
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #c4b5fd, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: #c4b5fd;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-desc {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.hero-tags,
.tech-stack,
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-tags {
    justify-content: center;
    margin: 1.5rem 0;
}

.hero-tags span,
.tech,
.skill-list li {
    list-style: none;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    color: #ddd6fe;
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.09);
    font-weight: 600;
    font-size: 0.86rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline,
.project-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.85rem 1.45rem;
    transition: 0.25s;
}

.btn-primary,
.project-link {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.25);
}

.btn-outline {
    color: #c4b5fd;
    border: 1px solid var(--accent);
}

.btn-primary:hover,
.btn-outline:hover,
.project-link:hover {
    transform: translateY(-3px);
}

/* ABOUT */
.about-grid,
.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card,
.contact-card {
    border-radius: 24px;
    padding: 2rem;
}

.about-card p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 1rem;
}

.dispo {
    display: inline-block;
    margin: 0.8rem 0 1.2rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.13);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 800;
}

.study-line {
    margin-top: 1.5rem;
}

.cv-btn {
    margin-top: 1rem;
}

/* PROJECTS */
.projects-container {
    display: block;
}

.project-slider-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: center;
    min-height: 520px;
    border-radius: 28px 28px 0 0;
    padding: 2.5rem;
    animation: fadeProject 0.35s ease;
}

@keyframes fadeProject {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-preview {
    width: 100%;
}

.preview-box {
    position: relative;
    width: 100%;
    min-height: 360px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.project-video {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
    border-radius: 22px;
    transition: transform 0.4s ease;
}

.preview-box:hover .project-video {
    transform: scale(1.03);
}

.project-number {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #c4b5fd;
    font-weight: 900;
}

.project-details h3 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.project-subtitle {
    color: #c4b5fd;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.project-desc {
    color: var(--muted);
    font-size: 1.03rem;
    margin-bottom: 1.3rem;
}

.reflex-box {
    margin-top: 1.2rem;
    padding: 1rem;
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    color: #d4dbea;
}

.project-link {
    margin-top: 1.5rem;
    width: fit-content;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-top: 0;
    border-radius: 0 0 28px 28px;
    padding: 1.2rem;
}

.slider-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.25s;
}

.slider-btn:hover {
    background: var(--accent);
}

.slider-dots {
    display: flex;
    gap: 0.55rem;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.25);
}

.slider-dot.active {
    width: 32px;
    background: var(--accent);
}

.slide-count {
    color: var(--muted);
    font-weight: 700;
}

/* CONTACT */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.contact-info i {
    color: #c4b5fd;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: 0.25s;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-family: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.contact-form button {
    border: 0;
    cursor: pointer;
    color: white;
    font-weight: 800;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.form-feedback {
    margin-top: 1rem;
    color: #c4b5fd;
    font-weight: 700;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: #7c8ba1;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--whatsapp);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: 0.25s;
}

.whatsapp-float i {
    color: white;
    font-size: 1.9rem;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .project-slider-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .about-grid,
    .contact-flex {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .container {
        padding: 0 1.2rem;
    }

    .nav-links {
        justify-content: center;
        gap: 0.9rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-card,
    .about-card,
    .contact-card,
    .project-slider-card {
        padding: 1.5rem;
    }

    .preview-box,
    .project-video {
        min-height: 230px;
    }

    .slider-controls {
        flex-wrap: wrap;
    }

    .project-link {
        width: 100%;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
    }
}