/* =============== FONTS =============== */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

/* =============== VARIABLES =============== */
:root {
    /* Colors - Deep Space Theme */
    --bg-color: #030014;
    /* Almost Black with hint of purple */
    --card-bg: #0f172a;
    --card-border: rgba(255, 255, 255, 0.08);

    /* Accents */
    --primary: #8b5cf6;
    /* Violet */
    --secondary: #06b6d4;
    /* Cyan */
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);

    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-gradient: linear-gradient(to right, #ffffff, #cbd5e1);

    /* Spacing & Layout */
    --header-height: 4rem;
    --section-spacing: 8rem;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Glows */
    --glow-primary: 0 0 40px -10px rgba(139, 92, 246, 0.4);
}

/* =============== RESET & BASE =============== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    /* Grid Pattern Background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

/* Background Vignette */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* =============== LIGHT THEME VARIABLES =============== */
body.light-theme {
    --body-color: #ffffff;
    --container-color: #ffffff;
    --text-color: #0f172a;
    --text-muted: #475569;
    --card-bg: #ffffff;
}

/* Override body background for light theme */
body.light-theme {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
}

/* Override vignette for light theme */
body.light-theme::before {
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.06), transparent 70%);
}

body.light-theme .bento-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .header {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .nav__link {
    color: var(--text-color);
}

body.light-theme .nav__link:hover {
    color: var(--primary);
}

body.light-theme .modal {
    background-color: rgba(0, 0, 0, 0.7);
}

body.light-theme .modal__content {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .contact__form-input,
body.light-theme .testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .stat-number,
body.light-theme .testimonial__name,
body.light-theme .contact__card-title,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
    color: var(--text-color);
}

body.light-theme .scrollup {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .section__subtitle {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: #7c3aed;
}

body.light-theme .section__title {
    color: #000000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

body.light-theme .home__description,
body.light-theme .service__desc,
body.light-theme .project__desc,
body.light-theme .stat-label,
body.light-theme .testimonial__text,
body.light-theme .testimonial__role {
    color: var(--text-muted);
}

body.light-theme .button--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

body.light-theme .button--primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

body.light-theme .button--ghost {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

body.light-theme .nav__link.active-link {
    color: var(--primary);
    font-weight: 600;
}

body.light-theme .project__tag,
body.light-theme .skill-tag {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

body.light-theme .timeline__item {
    border-left-color: rgba(139, 92, 246, 0.3);
}

body.light-theme .timeline__dot {
    background: var(--primary);
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

body.light-theme .timeline__title,
body.light-theme .service__title,
body.light-theme .project__title {
    color: var(--text-color);
}

body.light-theme .timeline__desc,
body.light-theme .timeline__company {
    color: var(--text-muted);
}

body.light-theme .project__item {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .project__item:hover {
    background: rgba(139, 92, 246, 0.15);
}

body.light-theme .project__item.active-project {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

body.light-theme .project__link {
    color: var(--secondary);
    font-weight: 700;
}

body.light-theme .project__link:hover {
    color: var(--primary);
}

body.light-theme .home__title-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .contact__footer {
    border-top-color: rgba(139, 92, 246, 0.15);
}

body.light-theme .theme-toggle {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
}

body.light-theme .theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

body.light-theme .nav__lang-option.active-lang {
    color: var(--primary);
    font-weight: 600;
}

body.light-theme .testimonial__btn {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
}

body.light-theme .testimonial__btn:hover {
    background: var(--primary);
    color: #fff;
}

body.light-theme .scroll-progress {
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =============== UTILS =============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: var(--section-spacing) 0;
}

/* Badge Style for Subtitles */
.section__subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.section__title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Centered Header Helper */
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* =============== NAV (Island Style) =============== */
.header {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Allow click interaction only on the nav bar itself */
}

.nav {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: auto;
    max-width: 90%;
}

.nav__logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.nav__logo span {
    color: var(--primary);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

.nav__link:hover,
.active-link {
    color: #fff;
}

.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.nav__btns {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__lang {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav__lang-option {
    cursor: pointer;
    transition: 0.3s;
}

.nav__lang-option:hover {
    color: #fff;
}

.active-lang {
    color: var(--primary);
    /* Highlight active language with primary color */
    font-weight: 700;
}

/* Mobile Nav Toggle */
.nav__toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* =============== THEME TOGGLE =============== */
.theme-toggle {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary);
}

.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(20deg);
}

.theme-toggle i {
    font-size: 1.1rem;
}

.nav__close {
    display: none;
}

/* =============== HERO =============== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
    /* Account for fixed header space */
}

.home__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

/* Light beams effect */
.home::before {
    content: '';
    position: absolute;
    width: 600px;
    max-width: 100%;
    /* Prevent overflow on mobile */
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(80px);
    z-index: -1;
}

.home__title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.home__title-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.home__subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 300;
}

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--secondary);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.home__description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

/* Buttons */
.home__buttons {
    display: flex;
    gap: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: var(--font-heading);
}

.button--primary {
    background: #fff;
    color: #000;
}

.button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Hero Image & Blob */
.home__img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.home__blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    to {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.home__img {
    width: 350px;
    height: 350px;
    border-radius: 40px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transform: rotate(-3deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    background-color: var(--card-bg);
}

.home__social {
    position: absolute;
    right: -2rem;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.home__social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    transition: 0.3s;
}

.home__social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}


/* =============== BENTO GRID CARDS (General) =============== */
.bento-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

/* Spotlight Effect via CSS Variable (to be set by JS) */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* =============== SERVICES (3 Columns) =============== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service__icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =============== SKILLS (Bento Layout) =============== */
.skills__container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
}

.skill-box {
    grid-column: span 4;
}

.skills__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skills__title i {
    color: var(--primary);
}

.skills__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* =============== PROJECTS (Showcase) =============== */
.projects__container {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.project-card {
    padding: 0;
    /* Image takes full width */
    display: flex;
    flex-direction: column;
}

.project__img-box {
    height: 200px;
    background: #1e293b;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project__img-box img {
    transform: scale(1.05);
}

.project__content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project__tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project__tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    font-weight: 600;
}

.project__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project__desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project__link:hover {
    gap: 0.75rem;
    color: var(--primary);
}


/* =============== EXPERIENCE (Tech Timeline) =============== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline__item {
    margin-left: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline__dot {
    position: absolute;
    left: -2.35rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.timeline__date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.timeline__title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline__company {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.timeline__desc ul {
    list-style: none;
}

.timeline__desc li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline__desc li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
}


/* =============== CONTACT =============== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact__card {
    text-align: center;
    padding: 3rem 2rem;
}

.contact__icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact__footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =============== RESPONSIVE =============== */
/* =============== RESPONSIVE =============== */
@media screen and (max-width: 968px) {
    .home__title {
        font-size: 3.5rem;
    }

    .skill-box {
        grid-column: span 6;
    }

    .projects__container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .header {
        top: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(3, 0, 20, 0.9);
    }

    .nav {
        max-width: 100%;
        border-radius: 0;
        border: none;
        padding: 1rem;
    }

    .nav__menu {
        position: fixed;
        top: 3.5rem;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 3rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(-150%);
        transition: 0.4s;
        z-index: 999;
        display: flex;
        justify-content: center;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .show-menu {
        transform: translateY(0);
    }

    .nav__toggle {
        display: block;
    }

    .nav__contact-btn {
        display: none;
    }

    .home__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .home__buttons {
        justify-content: center;
    }

    .home__img-wrapper {
        margin-top: 2rem;
        order: -1;
        /* Image first on mobile */
    }

    .home__social {
        position: relative;
        right: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-box {
        grid-column: span 12;
    }

    /* Force 1 column for projects/services on mobile to prevent overflow */
    .services__container,
    .projects__container {
        grid-template-columns: 1fr;
    }

    /* Adjust Timeline for Mobile */
    .timeline {
        padding-left: 1rem;
    }

    .timeline__item {
        margin-left: 1.5rem;
    }

    .timeline__dot {
        left: -1.85rem;
    }
}

@media screen and (max-width: 480px) {
    .home__title {
        font-size: 2.25rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .project__img-box {
        height: 180px;
    }
}

/* =============== SCROLL UP BUTTON =============== */
.scrollup {
    position: fixed;
    right: 2rem;
    bottom: -50%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scrollup:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.scrollup__icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: 0.3s;
}

.scrollup:hover .scrollup__icon {
    color: #fff;
    transform: translateY(-2px);
}

/* Show Scroll Up */
.show-scroll {
    bottom: 3rem;
}

@media screen and (max-width: 768px) {
    .scrollup {
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .show-scroll {
        bottom: 2rem;
    }

    .scrollup__icon {
        font-size: 1rem;
    }
}

/* =============== STATISTICS SECTION =============== */
.stats {
    padding: 2rem 0;
}

.stats__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media screen and (max-width: 968px) {
    .stats__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .stats__container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* =============== TESTIMONIALS SECTION =============== */
.testimonials {
    padding: 4rem 0;
}

.testimonials__wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.testimonials__container {
    position: relative;
    height: 350px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    pointer-events: none;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
}

.testimonial-card.active-testimonial {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.testimonial__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.testimonial__name {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.testimonial__role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial__stars {
    display: flex;
    gap: 0.25rem;
}

.testimonial__stars i {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonials__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial__btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: var(--primary);
}

.testimonial__btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.testimonials__dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: 0.3s;
}

.testimonial__dot.active-dot {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonials__container {
        height: 400px;
    }
}

/* =============== CONTACT SECTION =============== */
.contact {
    padding: 4rem 0 2rem;
}

.contact__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__card {
    padding: 1.5rem;
    text-align: center;
}

.contact__icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.contact__card-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact__card-data {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__form-div {
    position: relative;
}

.contact__form-tag {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact__form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 1rem;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact__form-input::placeholder {
    color: var(--text-muted);
}

.contact__form-area textarea {
    resize: vertical;
    min-height: 150px;
}

.contact__button {
    justify-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__message {
    font-size: 0.9rem;
    margin-top: -0.5rem;
    font-weight: 500;
}

.contact__footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media screen and (max-width: 968px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}

/* =============== MODAL =============== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    opacity: 0;
    transition: 0.3s;
}

.modal.active-modal {
    display: flex;
    opacity: 1;
}

.modal__content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    width: 600px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(50px);
    transition: 0.3s;
}

.modal.active-modal .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.modal__close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal__title {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
}

.modal__list {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal__tag {
    font-size: 0.75rem;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.modal__description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal__challenges h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal__challenges p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* =============== SCROLL PROGRESS BAR =============== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.1s;
}

/* =============== TYPEWRITER CURSOR =============== */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--secondary);
    animation: blink 1s infinite;
    margin-left: 5px;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* =============== PROJECT FILTERS =============== */
.projects__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project__item {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    border: 1px solid transparent;
}

.project__item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.project__item.active-project {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Filter Animation Helpers */
.project-card {
    transition: all 0.4s ease;
}

/* =============== SCROLL PROGRESS BAR =============== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.1s;
}

/* =============== TYPEWRITER CURSOR =============== */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--secondary);
    animation: blink 1s infinite;
    margin-left: 5px;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* =============== PROJECT FILTERS =============== */
.projects__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project__item {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project__item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.project__item.active-project {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    border-color: var(--primary);
}

/* Filter Animation Helpers */
.project-card {
    transition: all 0.4s ease;
}

/* =============== SWIPER PROJECTS STYLES =============== */
.projects-swiper {
    padding-bottom: 4rem !important;
    /* Plus d'espace pour pagination */
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: var(--text-color) !important;
    opacity: 0.3;
    width: 0.75rem;
    height: 0.75rem;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    opacity: 1;
    width: 2rem;
    /* Elongated active bullet */
    border-radius: 10px;
}

.swiper-slide.project-card {
    height: auto;
    display: flex;
    flex-direction: column;
}