/* ============================================
   YODA — NexusLogic IT
   Main Stylesheet
   ============================================ */

/* ---- TOKENS ---- */
:root {
    /* Colors */
    --clr-bg:          #0a0e1a;
    --clr-bg-2:        #0f1628;
    --clr-surface:     rgba(255,255,255,0.04);
    --clr-border:      rgba(255,255,255,0.08);

    --clr-primary:     #6c63ff;
    --clr-primary-glow:rgba(108,99,255,0.35);
    --clr-accent:      #00e5c3;
    --clr-accent-2:    #ff6b9d;

    --clr-text:        #e8eaf0;
    --clr-text-muted:  #7a8099;
    --clr-white:       #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    --gradient-hero:    radial-gradient(ellipse at 60% 20%, rgba(108,99,255,0.25) 0%, transparent 60%),
                        radial-gradient(ellipse at 20% 80%, rgba(0,229,195,0.15) 0%, transparent 50%);

    /* Typography */
    --font-base:  'Inter', system-ui, sans-serif;

    /* Spacing */
    --gap-xs:  0.5rem;
    --gap-sm:  1rem;
    --gap-md:  1.5rem;
    --gap-lg:  2.5rem;
    --gap-xl:  4rem;
    --gap-2xl: 7rem;

    /* Borders */
    --radius-sm:  0.5rem;
    --radius-md:  1rem;
    --radius-lg:  1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px var(--clr-primary-glow);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-base);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ---- UTILITIES ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gap-md);
}
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
}
.pl-2 { padding-left: 1.5rem; }
.section { padding: var(--gap-2xl) 0; }
.section__header { text-align: center; margin-bottom: var(--gap-xl); }
.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--gap-xs);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section__subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xs);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--gradient-primary);
    color: var(--clr-white);
    box-shadow: 0 4px 20px var(--clr-primary-glow);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--clr-primary-glow);
}
.btn--ghost {
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    background: var(--clr-surface);
}
.btn--ghost:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    transform: translateY(-2px);
}
.btn--full { width: 100%; }

/* ---- HEADER / NAV ---- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(10,14,26,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}
.nav__logo-icon { font-size: 1.4rem; }
.nav__logo-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}
.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: var(--transition);
    padding: 0.25rem 0;
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--clr-text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link--cta {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.nav__link--cta::after { background: var(--gradient-primary); }
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    background: var(--gradient-hero);
}
.hero__bg-glow {
    position: absolute;
    width: 700px; height: 700px;
    background: var(--clr-primary-glow);
    border-radius: 50%;
    filter: blur(120px);
    top: -200px; right: -200px;
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.1); opacity: 1; }
}
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--gap-md);
    animation: fadeInDown 0.6s ease both;
}
.hero__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--gap-md);
    animation: fadeInDown 0.6s 0.1s ease both;
}
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--clr-text-muted);
    max-width: 560px;
    margin: 0 auto var(--gap-lg);
    animation: fadeInDown 0.6s 0.2s ease both;
}
.hero__actions {
    display: flex;
    gap: var(--gap-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInDown 0.6s 0.3s ease both;
}
/* Floating shapes */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: floatShape 8s ease-in-out infinite;
}
.shape--1 { width: 300px; height: 300px; background: var(--clr-primary); top: 10%; left: 5%; animation-delay: 0s; }
.shape--2 { width: 200px; height: 200px; background: var(--clr-accent);   bottom: 15%; right: 10%; animation-delay: -3s; }
.shape--3 { width: 150px; height: 150px; background: var(--clr-accent-2); top: 60%; left: 30%; animation-delay: -6s; }
@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- FEATURES ---- */
.features { background: var(--clr-bg-2); }
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-md);
}
.feature-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    transition: var(--transition);
    cursor: default;
}
.feature-card:hover {
    border-color: rgba(108, 99, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.feature-card__icon {
    font-size: 2.2rem;
    margin-bottom: var(--gap-sm);
}
.feature-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-white);
    margin-bottom: var(--gap-xs);
}
.feature-card__text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* ---- ABOUT ---- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: center;
}
.about__content .section__title { text-align: left; }
.about__text {
    color: var(--clr-text-muted);
    margin-bottom: var(--gap-sm);
    line-height: 1.8;
}
.about__text strong { color: var(--clr-text); }
.about__stats {
    display: flex;
    gap: var(--gap-lg);
    margin-top: var(--gap-lg);
}
.stat { text-align: center; }
.stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat__label {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}
/* Code card */
.about__card {
    padding: var(--gap-md);
    overflow: hidden;
}
.about__card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--gap-sm);
    padding-bottom: var(--gap-sm);
    border-bottom: 1px solid var(--clr-border);
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    &--red    { background: #ff5f57; }
    &--yellow { background: #febc2e; }
    &--green  { background: #28c840; }
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }
.about__card-title {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-left: 0.5rem;
}
.code-line {
    display: block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--clr-text-muted);
}
.code-kw  { color: var(--clr-primary); }
.code-prop { color: var(--clr-accent); }
.code-val  { color: #ffd580; }

/* ---- CONTACT ---- */
.contact { background: var(--clr-bg-2); }
.contact__form {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--gap-xl);
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
}
.form__group { display: flex; flex-direction: column; gap: var(--gap-xs); }
.form__label { font-size: 0.85rem; font-weight: 500; color: var(--clr-text-muted); }
.form__input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    color: var(--clr-text);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    resize: vertical;
}
.form__input::placeholder { color: var(--clr-text-muted); }
.form__input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-primary-glow);
    background: rgba(108,99,255,0.05);
}
.form__textarea { min-height: 130px; }
.form__feedback {
    text-align: center;
    font-size: 0.9rem;
    min-height: 1.4em;
    color: var(--clr-accent);
}
.form__feedback.error { color: var(--clr-accent-2); }

/* ---- FOOTER ---- */
.footer {
    padding: var(--gap-lg) 0;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-bg);
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--gap-sm);
}
.footer__copy {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Nav mobile */
    .nav__menu {
        position: fixed;
        top: 0; right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: var(--gap-lg);
        background: var(--clr-bg-2);
        border-left: 1px solid var(--clr-border);
        transition: right var(--transition);
        padding: var(--gap-xl);
        z-index: 999;
    }
    .nav__menu.open { right: 0; }
    .nav__toggle { display: flex; z-index: 1000; }
    .nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav__toggle.open span:nth-child(2) { opacity: 0; }
    .nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .nav__link { font-size: 1.1rem; }

    /* About */
    .about__grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
    .about__content .section__title { text-align: center; }
    .about__stats { justify-content: center; }

    /* Form */
    .form__row { grid-template-columns: 1fr; }
    .contact__form { padding: var(--gap-lg); }

    /* Features */
    .features__grid { grid-template-columns: 1fr; }

    .section { padding: 4rem 0; }
    .hero { min-height: 100svh; }
    .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
}
