/* ═══════════════════════════════════════════════════════════════
   WondersDesign — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ──────────────────────────────────────────── */
:root {
    --bg:          #0d1117;
    --bg-2:        #161b22;
    --bg-3:        #21262d;
    --border:      #30363d;
    --blue:        #2563eb;
    --blue-light:  #3b82f6;
    --blue-dark:   #1d4ed8;
    --accent:      #06b6d4;
    --text:        #f0f6fc;
    --text-muted:  #8b949e;
    --text-dim:    #484f58;
    --green:       #22c55e;
    --red:         #ef4444;
    --yellow:      #f59e0b;
    --radius:      12px;
    --radius-sm:   8px;
    --radius-lg:   20px;
    --shadow:      0 4px 24px rgba(0,0,0,0.4);
    --shadow-blue: 0 4px 24px rgba(37,99,235,0.3);
    --transition:  0.2s ease;
    --container:   1200px;
    --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ─── CONTAINER ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}
.btn--primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}
.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn--ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--bg-2);
}
.btn--outline {
    background: transparent;
    color: var(--blue-light);
    border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--danger { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── GRADIENT TEXT ──────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── HEADER / NAV ───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 64px;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
}
.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}
.nav__link {
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}
.nav__link:hover, .nav__link.active { color: var(--text); background: var(--bg-2); }
.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}
.lang-switch { display: flex; align-items: center; gap: 0.25rem; }
.lang-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all var(--transition);
    text-decoration: none;
}
.lang-btn.active { color: var(--blue-light); background: rgba(37,99,235,0.15); }
.lang-btn:hover  { color: var(--text); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
}
.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: var(--blue);
    top: -200px;
    right: -100px;
}
.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
}
.hero__content {
    position: relative;
    z-index: 1;
    padding: 5rem 1.5rem;
    max-width: 800px;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--green);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}
.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.hero__stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.stat__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}
.stat__divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}
.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}
.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* ─── SECTIONS ───────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section__header {
    text-align: center;
    margin-bottom: 3rem;
}
.section__tag {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    color: var(--blue-light);
    border: 1px solid rgba(37,99,235,0.3);
    padding: 0.25rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section__header h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.section__cta { text-align: center; margin-top: 3rem; }

/* ─── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
}
.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.service-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ─── WHY ME ─────────────────────────────────────────────────── */
.why-me { background: var(--bg-2); }
.why-me__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.why-me__content .section__tag { margin-bottom: 0.75rem; }
.why-me__content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 2rem;
}
.why-me__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.why-me__list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.check-icon {
    width: 28px;
    height: 28px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.why-me__list li strong { display: block; margin-bottom: 0.25rem; }
.why-me__list li p { color: var(--text-muted); font-size: 0.9375rem; }
.why-me__visual { display: flex; align-items: center; justify-content: center; }
.code-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}
.code-preview__bar {
    background: var(--bg-3);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.code-preview__bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}
.code-preview__bar span:nth-child(1) { background: #ef4444; }
.code-preview__bar span:nth-child(2) { background: var(--yellow); }
.code-preview__bar span:nth-child(3) { background: var(--green); }
.code-preview__code {
    padding: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #c9d1d9;
    overflow-x: auto;
}
.code-preview__code code { font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace; }
.c-blue   { color: #79c0ff; }
.c-yellow { color: #e3b341; }
.c-purple { color: #d2a8ff; }
.c-green  { color: #7ee787; }
.c-orange { color: #ffa657; }

/* ─── CTA SECTION ────────────────────────────────────────────── */
.cta-box {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
}
.cta-box p {
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    margin: 0 auto 2rem;
    position: relative;
}
.cta-box__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.cta-box .btn--primary {
    background: #fff;
    color: var(--blue-dark);
    border-color: #fff;
}
.cta-box .btn--primary:hover { background: rgba(255,255,255,0.9); }
.cta-box .btn--ghost {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.cta-box .btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer__brand p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }
.footer__links h4,
.footer__contact h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer__links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { color: var(--text-muted); font-size: 0.9375rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--text); }
.footer__contact p { margin-bottom: 0.5rem; }
.footer__contact a { color: var(--text-muted); font-size: 0.9375rem; }
.footer__contact a:hover { color: var(--text); }
.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ─── FLASH MESSAGES ─────────────────────────────────────────── */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
}
.flash--success { background: rgba(34,197,94,0.15); color: var(--green); border-bottom: 1px solid rgba(34,197,94,0.3); }
.flash--error   { background: rgba(239,68,68,0.15); color: var(--red); border-bottom: 1px solid rgba(239,68,68,0.3); }
.flash__close   { background: none; border: none; cursor: pointer; font-size: 1.25rem; opacity: 0.7; }

/* ─── ALERT ──────────────────────────────────────────────────── */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}
.alert--success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.alert--error   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.alert p { margin: 0; }

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.form-label-link { color: var(--blue-light); font-weight: 400; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-control::placeholder { color: var(--text-dim); }
.input-password { position: relative; }
.input-password .form-control { padding-right: 3rem; }
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0.25rem;
}
.form-group--check label { cursor: pointer; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}
.checkbox-label input { margin-top: 2px; accent-color: var(--blue); }
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-3);
    margin-top: 0.5rem;
    transition: all var(--transition);
    overflow: hidden;
}

/* ─── AUTH LAYOUT ────────────────────────────────────────────── */
.auth-body {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}
.auth-wrap { width: 100%; max-width: 440px; }
.auth-box {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 2rem;
    justify-content: center;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.auth-form { display: flex; flex-direction: column; }
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.auth-footer a { color: var(--blue-light); font-weight: 600; }

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 3rem);
    max-width: 600px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}
.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner__content p { flex: 1; color: var(--text-muted); font-size: 0.9rem; min-width: 200px; }
.cookie-banner__content p a { color: var(--blue-light); }
.cookie-banner__actions { display: flex; gap: 0.75rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .why-me__grid { grid-template-columns: 1fr; gap: 2rem; }
    .why-me__visual { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav__menu, .nav__actions { display: none; }
    .nav__menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.25rem;
        z-index: 99;
    }
    .nav__toggle { display: flex; }
    .hero__content { padding: 3rem 1.5rem; }
    .hero__cta { flex-direction: column; }
    .hero__stats { gap: 1.5rem; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .section { padding: 3rem 0; }
}
