/* =============================================================
   FORVIA DIGITAL – CUSTOM STYLES
   Dark premium aesthetic | Gold accent
============================================================= */

/* ── Root Variables ── */
:root {
    --gold: #c9a743;
    --gold-light: #e8c870;
    --gold-dark: #a07c28;
    --gold-glow: rgba(201, 167, 67, 0.15);
    --bg: #0a0807;
    --surface: #141009;
    --raised: #1c160b;
    --border: rgba(201, 167, 67, 0.10);
    --text-primary: #f0ead8;
    --text-secondary: #a89878;
    --text-muted: #6b5e44;
    --font-syne: 'Syne', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-space: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-inter);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--gold-glow); color: var(--gold-light); }

/* ── Hero CSS entrance animations (JS-independent) ── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim--1 { animation-delay: 0.15s; }
.hero-anim--2 { animation-delay: 0.3s;  }
.hero-anim--3 { animation-delay: 0.5s;  }
.hero-anim--4 { animation-delay: 0.65s; }
.hero-anim--5 { animation-delay: 0.8s;  }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* =============================================================
   NAVIGATION
============================================================= */
#mainNav {
    background: transparent;
}
#mainNav.scrolled {
    background: rgba(10, 8, 7, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.mobile-menu {
    background: rgba(10, 8, 7, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Hamburger animation */
#mobileMenuBtn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#mobileMenuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
#mobileMenuBtn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =============================================================
   BUTTONS
============================================================= */
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: #0a0807;
    border: 1px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: var(--font-space);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #0a0807;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(201, 167, 67, 0.25);
}

.btn-gold-outline {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(201, 167, 67, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: var(--font-space);
}
.btn-gold-outline:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: var(--font-space);
}
.btn-ghost:hover {
    border-color: var(--border);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* =============================================================
   SECTION SHARED
============================================================= */
.section-label {
    display: inline-block;
    font-family: var(--font-space);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 167, 67, 0.08);
    border: 1px solid rgba(201, 167, 67, 0.2);
    padding: 5px 14px;
    border-radius: 50px;
}

.section-title {
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--text-primary);
}

.section-sub {
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================================
   HERO
============================================================= */
.hero-section {
    background-color: var(--bg);
    position: relative;
}

/* Grid background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 167, 67, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 167, 67, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 0%, transparent 70%);
}

.hero-label {
    background: rgba(201, 167, 67, 0.06);
    border: 1px solid rgba(201, 167, 67, 0.15);
    border-radius: 50px;
    padding: 8px 16px;
}

.glass-card {
    background: rgba(20, 16, 9, 0.8);
    border: 1px solid rgba(201, 167, 67, 0.10);
    backdrop-filter: blur(10px);
}

.hero-visual .floating-badge,
.hero-visual .floating-stat {
    animation: floatY 3s ease-in-out infinite;
}
.hero-visual .floating-stat {
    animation-delay: 1.5s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(6px) rotate(45deg); }
}

/* =============================================================
   PRICING CARDS
============================================================= */
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}
.pricing-card:hover {
    border-color: rgba(201, 167, 67, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pricing-card--featured {
    background: #1a1408;
    border-color: rgba(201, 167, 67, 0.3);
    box-shadow: 0 0 0 1px rgba(201, 167, 67, 0.1), 0 20px 60px rgba(201, 167, 67, 0.08);
}
.pricing-card--featured:hover {
    box-shadow: 0 0 0 1px rgba(201, 167, 67, 0.3), 0 30px 80px rgba(201, 167, 67, 0.15);
}

/* Shine effect on featured */
.pricing-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 167, 67, 0.04), transparent);
    transition: left 0.6s ease;
}
.pricing-card--featured:hover::before {
    left: 150%;
}

.popular-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gold);
    color: #0a0807;
    font-family: var(--font-space);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 40px;
    transform: rotate(35deg);
    transform-origin: top right;
}
.popular-ribbon span { display: block; }

.card-tier {
    font-family: var(--font-space);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-name {
    font-family: var(--font-syne);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.card-price {
    font-family: var(--font-syne);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}
.card-price .currency { font-size: 1.5rem; }
.card-price .period {
    font-family: var(--font-inter);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}
.card-price .price-text {
    font-size: 2rem;
}

.card-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.card-features li .fa-check { color: var(--gold); font-size: 0.65rem; }
.card-features li.text-muted-feat { opacity: 0.35; }
.card-features li.text-muted-feat .fa-times { color: var(--text-muted); font-size: 0.65rem; }

.card-cta-gold,
.card-cta-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-family: var(--font-space);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}
.card-cta-gold {
    background: var(--gold);
    color: #0a0807;
    border: 1px solid var(--gold);
}
.card-cta-gold:hover {
    background: var(--gold-light);
    color: #0a0807;
    box-shadow: 0 8px 30px rgba(201, 167, 67, 0.3);
    transform: translateY(-1px);
}
.card-cta-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(201, 167, 67, 0.3);
}
.card-cta-outline:hover {
    background: rgba(201, 167, 67, 0.08);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-1px);
}

/* =============================================================
   FEATURE CARDS (Why Us)
============================================================= */
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    border-color: rgba(201, 167, 67, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(201, 167, 67, 0.08);
    border: 1px solid rgba(201, 167, 67, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    background: rgba(201, 167, 67, 0.15);
    transform: scale(1.05);
}

/* =============================================================
   PROCESS
============================================================= */
.process-step {
    position: relative;
    padding: 24px 16px;
}

.process-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(201, 167, 67, 0.06);
    border: 1px solid rgba(201, 167, 67, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.process-step:hover .process-icon-wrap {
    background: rgba(201, 167, 67, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 167, 67, 0.15);
}

.process-line {
    position: absolute;
    top: 28px;
    left: calc(25% + 28px);
    right: calc(25% + 28px);
    height: 1px;
    background: linear-gradient(to right,
        rgba(201, 167, 67, 0.15) 0%,
        rgba(201, 167, 67, 0.3) 50%,
        rgba(201, 167, 67, 0.15) 100%
    );
    z-index: 0;
}

.cta-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 40px;
}

/* =============================================================
   PORTFOLIO
============================================================= */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    font-family: var(--font-space);
    font-size: 0.75rem;
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}
.filter-btn.active,
.filter-btn:hover {
    border-color: rgba(201, 167, 67, 0.4);
    color: var(--gold);
    background: rgba(201, 167, 67, 0.06);
}

.portfolio-card {
    transition: all 0.3s ease;
}
.portfolio-card:hover {
    transform: translateY(-4px);
}

.portfolio-preview {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.portfolio-card:hover .portfolio-preview {
    border-color: rgba(201, 167, 67, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mock-browser { width: 100%; flex: 1; }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 7, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item.hidden { display: none; }

/* =============================================================
   TESTIMONIALS
============================================================= */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    height: 100%;
    transition: border-color 0.3s ease;
}
.swiper-slide-active .testimonial-card {
    border-color: rgba(201, 167, 67, 0.2);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201, 167, 67, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-syne);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gold);
    flex-shrink: 0;
}

.testimonials-pagination .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
    width: 6px;
    height: 6px;
}
.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--gold);
    opacity: 1;
    width: 20px;
    border-radius: 3px;
}

/* =============================================================
   ABOUT
============================================================= */
.about-stat-box {
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.tech-badge {
    font-family: var(--font-space);
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    transition: all 0.2s ease;
}
.tech-badge:hover {
    border-color: rgba(201, 167, 67, 0.3);
    color: var(--gold);
}

/* =============================================================
   CONTACT
============================================================= */
.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
}
.contact-info-card:hover {
    border-color: rgba(201, 167, 67, 0.2);
    transform: translateX(4px);
}

.ci-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(201, 167, 67, 0.08);
    border: 1px solid rgba(201, 167, 67, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-form-wrap {
    background: var(--surface);
}

.form-group-custom { display: flex; flex-direction: column; }

.form-label-custom {
    font-family: var(--font-inter);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input-custom {
    background: var(--raised);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 0.875rem;
    transition: all 0.25s ease;
    outline: none;
    width: 100%;
}
.form-input-custom::placeholder { color: var(--text-muted); font-size: 0.8rem; }
.form-input-custom:focus {
    border-color: rgba(201, 167, 67, 0.4);
    background: rgba(28, 22, 11, 0.8);
    box-shadow: 0 0 0 3px rgba(201, 167, 67, 0.06);
}
.form-input-custom.error { border-color: rgba(239, 68, 68, 0.5); }

.form-select-custom {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5e44' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-select-custom option {
    background: #1c160b;
    color: var(--text-primary);
}

.invalid-feedback-custom {
    font-family: var(--font-inter);
    font-size: 0.7rem;
    color: #ef4444;
    margin-top: 5px;
    min-height: 16px;
}

#formAlert.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-radius: 10px;
}
#formAlert.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-radius: 10px;
}

/* =============================================================
   FOOTER
============================================================= */
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    text-decoration: none;
}
.social-btn:hover {
    border-color: rgba(201, 167, 67, 0.4);
    color: var(--gold);
    background: rgba(201, 167, 67, 0.06);
    transform: translateY(-2px);
}

.footer-cta-box {
    background: var(--surface);
    border: 1px solid rgba(201, 167, 67, 0.12);
}

/* =============================================================
   SCROLL TO TOP
============================================================= */
#scrollTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 768px) {
    .section-title { font-size: 1.85rem; }
    .hero-headline { font-size: 2.6rem; }
    .cta-bar { padding: 24px; }
    .contact-form-wrap { padding: 24px; }
    .pricing-card { padding: 24px 20px; }
    .testimonial-card { padding: 24px; }
}

@media (max-width: 576px) {
    .hero-headline { font-size: 2.2rem; }
    .card-price { font-size: 2rem; }
}

/* =============================================================
   ANIMATION HELPERS
============================================================= */
.animate-pulse-gold {
    animation: pulseGold 2s ease-in-out infinite;
}
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 167, 67, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(201, 167, 67, 0); }
}

/* Page loader */
#pageLoader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
#pageLoader.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loader-logo {
    font-family: var(--font-syne);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold);
    animation: loaderPulse 1s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
    from { opacity: 0.3; }
    to { opacity: 1; }
}
