/* ═══════════════════════════════════════════
   Evortas Interactive — Styles
   ═══════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:          #09090b;
    --bg-subtle:   #111113;
    --bg-card:     #16161a;
    --border:      #23232a;
    --border-hover:#38383f;
    --text:        #ececef;
    --text-muted:  #8a8a96;
    --text-dim:    #63636e;
    --accent:      #818cf8;
    --accent-soft: #6366f1;
    --accent-glow: rgba(129, 140, 248, 0.12);
    --purple:      #c084fc;
    --green:       #34d399;

    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Noise Overlay ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ─── Ambient Background ─── */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.ambient .orb-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    animation: drift-1 25s ease-in-out infinite;
}

.ambient .orb-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: -10%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.06), transparent 70%);
    animation: drift-2 30s ease-in-out infinite;
}

.ambient .orb-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 40%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.04), transparent 70%);
    animation: drift-3 20s ease-in-out infinite;
}

@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-40px, 30px) scale(1.05); }
    66%      { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -40px) scale(1.08); }
    66%      { transform: translate(-20px, 20px) scale(0.92); }
}

@keyframes drift-3 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(40px, -30px); }
}

/* ─── Layout ─── */
.page {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ─── Nav ─── */
.nav {
    padding: 1.5rem 0;
    animation: fadeDown 0.8s var(--ease-out) both;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
}

.logo span {
    color: var(--text-dim);
    font-weight: 400;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(17, 17, 19, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.status:hover {
    border-color: var(--border-hover);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
    50%      { opacity: 0.6; box-shadow: 0 0 16px rgba(52, 211, 153, 0.3); }
}

/* ─── Hero ─── */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 760px;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s var(--ease-out) 0.15s both;
}

.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
    animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}

.hero h1 .line-2 {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
    animation: fadeUp 0.7s var(--ease-out) 0.45s both;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeUp 0.7s var(--ease-out) 0.6s both;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bg);
    background: var(--text);
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    transition: all 0.25s var(--ease-out);
}

.cta-primary:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.cta-primary .arrow {
    transition: transform 0.25s var(--ease-out);
    font-size: 1.1rem;
}

.cta-primary:hover .arrow {
    transform: translateX(3px);
}

.cta-secondary {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
    padding: 0.7rem 0.5rem;
    transition: color 0.25s ease;
}

.cta-secondary:hover {
    color: var(--text);
}

/* ─── Divider ─── */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    margin: 0;
}

/* ─── Expertise ─── */
.expertise {
    padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.expertise-card {
    background: var(--bg-subtle);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.expertise-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.expertise-card:hover {
    background: var(--bg-card);
}

.expertise-card:hover::after {
    opacity: 1;
}

.card-icon {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(0.2);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.1rem;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-dim);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.5);
    transition: all 0.25s ease;
}

.expertise-card:hover .card-tag {
    border-color: var(--border-hover);
    color: var(--text-muted);
}

/* ─── Clients ─── */
.clients {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.clients-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    flex-wrap: wrap;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
    filter: grayscale(1) brightness(0) invert(1);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.client-logo:hover {
    opacity: 0.6;
}

.client-logo img {
    height: 26px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.client-logo--sm img {
    height: 20px;
    max-width: 100px;
}

.client-logo--lg img {
    height: 40px;
    max-width: 180px;
}

@media (max-width: 480px) {
    .clients-row {
        gap: 2rem;
    }

    .client-logo img {
        height: 20px;
    }

    .client-logo--lg img {
        height: 26px;
    }
}

/* ─── Footer ─── */
.footer {
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.footer-contact h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.footer-email {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    transition: color 0.25s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-email:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-location {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.footer-legal {
    text-align: right;
}

.legal-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.legal-details {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.footer-bottom {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.78rem;
    color: var(--text-dim);
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: var(--text);
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-legal {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero {
        min-height: calc(100vh - 60px);
        min-height: calc(100svh - 60px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .status {
        font-size: 0;
        padding: 0.5rem;
        gap: 0;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }
}

/* ─── Accessibility ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
