/* ═══════════════════════════════════════════════════
   OVERFITTING — AI Services by Cris Cappellano
   Main Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #111115;
    --bg-card: #16161b;
    --bg-card-hover: #1c1c22;
    --gold-primary: #c9a84c;
    --gold-light: #e8cc6e;
    --gold-dim: #8a7233;
    --gold-glow: rgba(201, 168, 76, 0.15);
    --gold-glow-strong: rgba(201, 168, 76, 0.3);
    --text-primary: #e8e6e1;
    --text-secondary: #9a9890;
    --text-dim: #5a5850;
    --border-subtle: rgba(201, 168, 76, 0.08);
    --border-hover: rgba(201, 168, 76, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ══════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════ */
.navbar-custom {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar-custom.scrolled {
    padding: 0.6rem 0;
    background: rgba(10, 10, 12, 0.95);
}

.navbar-brand-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand-text span {
    color: var(--gold-primary);
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary) !important;
}

.navbar-toggler {
    border: 1px solid var(--border-hover);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201,168,76,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ══════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-glow-strong), transparent 70%);
    top: 10%;
    right: -5%;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent 70%);
    bottom: 10%;
    left: 5%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Hero tag */
.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    border: 1px solid var(--border-hover);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.hero-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-glow);
}

/* Hero title */
.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dim));
    color: var(--bg-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.2rem;
    border: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-cta:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.25);
}

.hero-cta:hover::before {
    opacity: 1;
}

.hero-cta span,
.hero-cta i {
    position: relative;
    z-index: 1;
}

.hero-cta i {
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(4px);
}

/* Hero stats */
.hero-stats {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
}

.hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.hero-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* Hero neural visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-neural {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    position: relative;
}

.neural-ring {
    position: absolute;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: neuralSpin 25s linear infinite;
}

.neural-ring:nth-child(1) {
    width: 80%;
    height: 80%;
}

.neural-ring:nth-child(2) {
    width: 60%;
    height: 60%;
    animation-direction: reverse;
    animation-duration: 18s;
    border-color: var(--border-hover);
}

.neural-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    animation-duration: 12s;
}

.neural-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--gold-glow-strong);
}

@keyframes neuralSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.neural-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, var(--gold-glow-strong), transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-core i {
    font-size: 2rem;
    color: var(--gold-primary);
}


/* ══════════════════════════════════════════════════
   SECTION COMMONS
   ══════════════════════════════════════════════════ */
section {
    padding: 7rem 0;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold-primary);
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 560px;
    font-weight: 300;
}


/* ══════════════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════════════ */
.services-section {
    background: var(--bg-secondary);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.2rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--gold-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border: 1px solid var(--border-hover);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 1.3rem;
    color: var(--gold-primary);
}

.service-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.8rem;
    color: var(--gold-light);
}


/* ══════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════ */
.about-section {
    position: relative;
}

.about-content {
    border-left: 2px solid var(--gold-dim);
    padding-left: 2.5rem;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-features li i {
    color: var(--gold-primary);
    font-size: 0.75rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-metric {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: border-color 0.3s ease;
}

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

.about-metric-value {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.about-metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════ */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.form-floating > .form-control,
.form-floating > textarea.form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    border-radius: 0;
    padding: 1.2rem 1rem 0.6rem;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    background: var(--bg-card-hover);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
    color: var(--text-primary);
}

.form-floating > label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 1.2rem 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--gold-primary);
}

.form-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    border-radius: 0;
    padding: 0.9rem 1rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9a84c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
    background-color: var(--bg-card-hover);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
    color: var(--text-primary);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dim));
    color: var(--bg-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    padding: 1rem 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.25);
    color: var(--bg-primary);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border: 1px solid var(--border-hover);
    flex-shrink: 0;
}

.contact-info-icon i {
    color: var(--gold-primary);
    font-size: 1rem;
}

.contact-info-text span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}

.contact-info-text a,
.contact-info-text p {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin: 0;
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: var(--gold-primary);
}


/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.footer-brand span {
    color: var(--gold-primary);
}

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.footer-social a {
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    margin-left: 1.2rem;
}

.footer-social a:hover {
    color: var(--gold-primary);
}


/* ══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ══════════════════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════════════════ */
.toast-confirm {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-confirm.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-confirm i {
    color: var(--gold-primary);
}


/* ══════════════════════════════════════════════════
   SKIP TO CONTENT (ACCESSIBILITY)
   ══════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--gold-primary);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
}


/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .hero-visual {
        margin-top: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .about-visual {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-neural {
        max-width: 300px;
    }

    section {
        padding: 5rem 0;
    }

    .footer .row > div {
        text-align: center !important;
        margin-bottom: 0.8rem;
    }

    .footer-social {
        margin-top: 0.5rem;
    }

    .footer-social a {
        margin: 0 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .about-content {
        padding-left: 1.5rem;
    }
}
