/*
============================================================
ARVISIA GLOBAL — Light Steel Blue Theme (#B0C4DE)
============================================================
*/

:root {
    /* Neutrals */
    --black: #0b0b0b;
    --charcoal-900: #111213;
    --charcoal-800: #171819;
    --charcoal-700: #1c1d1f;
    --charcoal-600: #232427;
    --charcoal-500: #2c2e31;
    --charcoal-400: #3a3d41;

    /* Accent Color - Light Steel Blue */
    --accent: #B0C4DE;
    --accent-dark: #8fa4c2;

    /* Text */
    --text-hi: #ffffff;
    --text: #e8e8e8;
    --text-dim: #cfcfcf;

    /* Lines */
    --line: #3b3d40;
    --line-soft: #2a2c2f;

    /* Focus */
    --focus: rgba(176, 196, 222, 0.35);

    /* Gradients */
    --bg-gradient: radial-gradient(1200px 600px at 20% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
        radial-gradient(1000px 500px at 90% 10%, rgba(255, 255, 255, 0.04), transparent 60%),
        linear-gradient(180deg, var(--black), var(--charcoal-800));

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.55);

    /* Motion */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

/* Subtle moving grain for luxe depth */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="300" height="300" filter="url(%23n)" opacity="0.04"/></svg>');
    animation: grainShift 14s linear infinite;
    mix-blend-mode: soft-light;
    z-index: -1;
}

@keyframes grainShift {
    to {
        transform: translate3d(-3%, 2%, 0);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text-hi);
    letter-spacing: 0.2px;
    line-height: 1.3;
}

h1 {
    margin-bottom: 1.5rem;
}

h2 {
    margin-bottom: 1.25rem;
}

h3 {
    margin-bottom: 1rem;
}

p, li, .text-gray {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

hr {
    background-color: var(--line);
    height: 1px;
    opacity: 1;
    border: 0;
}

section {
    padding: 5rem 0;
}

/* Reduce spacing for contact section */
#contact {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

#contact .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Logo Styles */
.navbar-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: logoReveal 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    box-shadow: 0 0 0 2px rgba(176, 196, 222, 0.3);
}

.navbar-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 0 3px var(--accent);
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    70% {
        transform: scale(1.1) rotate(15deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* NAVBAR */
.navbar {
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    transition: background 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    border-color: var(--line);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-hi);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
}

.nav-link {
    color: var(--text-dim) !important;
    border-radius: 6px;
    padding: 8px 12px !important;
    transition: color 250ms var(--ease), background-color 250ms var(--ease), transform 250ms var(--ease);
    font-weight: 500;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
    background: var(--charcoal-700);
    transform: translateY(-2px);
}

.nav-link:hover::before, .nav-link.active::before {
    width: 80%;
}

/* BUTTONS */
.btn {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 250ms var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
    border: 0;
    padding: 14px 32px;
    box-shadow: var(--shadow-soft);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--accent-dark);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:focus {
    background: var(--accent);
    box-shadow: 0 0 0 0.25rem var(--focus);
}

.btn-outline-light {
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: transparent;
    padding: 12px 28px;
}

.btn-outline-light:hover {
    background: var(--accent);
    color: var(--black);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
}

.btn-outline-light:focus {
    box-shadow: 0 0 0 0.25rem var(--focus);
}

/* SECTIONS */
.hero-section {
    padding: 140px 0 96px;
    background: radial-gradient(1000px 500px at 75% -10%, rgba(255, 255, 255, 0.05), transparent 60%), var(--black);
    position: relative;
    overflow: clip;
    border-bottom: 1px solid var(--line);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,80 1000,0 L1000,100 L0,100 Z" fill="rgba(176,196,222,0.05)"></path></svg>'), radial-gradient(1000px 500px at 75% -10%, rgba(255, 255, 255, 0.05), transparent 60%);
    background-position: bottom;
    background-size: 100% 20px, cover;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.0) 60%);
    mix-blend-mode: soft-light;
    opacity: .6;
    animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
    from {
        transform: translateX(-6%);
    }
    to {
        transform: translateX(6%);
    }
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-soft);
}

.social-proof-text {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.social-proof-logos {
    display: flex;
    gap: 1rem;
}

.social-proof-logos img {
    height: 24px;
    filter: grayscale(100%) brightness(500%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.social-proof-logos img:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 64px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.2);
    }
    100% {
        transform: scaleX(1);
    }
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.feature-card, .service-card, .quote-card {
    background: var(--charcoal-800);
    border-radius: 14px;
    padding: 32px;
    height: 100%;
    border: 1px solid var(--line-soft);
    transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), background-color 260ms var(--ease), border-color 260ms var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before, .service-card::before, .quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 1;
}

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

.feature-card:hover, .service-card:hover, .quote-card:hover {
    background: var(--charcoal-700);
    border-color: var(--accent);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4));
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.2);
}

.process-step {
    position: relative;
    padding-left: 84px;
    margin-bottom: 3.5rem;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 24px;
    border-radius: 12px;
    color: var(--black);
    background: var(--accent);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    z-index: 1;
}

.process-step:hover .process-step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(176, 196, 222, 0.3);
}

.approach-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(176, 196, 222, 0.1);
}

.approach-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-hi);
}

footer {
    background: var(--black);
    padding: 80px 0 30px;
    border-top: 1px solid var(--line);
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 220ms var(--ease), transform 220ms var(--ease);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
    transform: translateX(5px);
}

.form-control, .form-select {
    background-color: var(--charcoal-800);
    border: 1px solid var(--line);
    color: var(--text-hi);
    padding: 14px 16px;
    border-radius: 10px;
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.form-control:focus, .form-select:focus {
    background-color: var(--charcoal-800);
    border-color: var(--accent);
    color: var(--text-hi);
    box-shadow: 0 0 0 0.25rem var(--focus);
    transform: translateY(-2px);
}

.form-label {
    color: var(--text-hi);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card {
    background-color: var(--charcoal-800);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Quote card styles */
.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.quote-text {
    font-style: italic;
    position: relative;
    padding: 0 1.5rem;
}

.quote-author {
    font-weight: 600;
    color: var(--text-hi);
    margin-top: 1.5rem;
    font-style: normal;
}

.quote-role {
    color: var(--accent);
    font-size: 0.9rem;
    font-style: normal;
}

/* Sticky CTA for mobile */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--charcoal-900);
    padding: 1rem;
    border-top: 1px solid var(--line);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
}

.sticky-cta.visible {
    transform: translateY(0);
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (min-width: 992px) {
    .sticky-cta {
        display: none;
    }
}

/* Pulse animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(176, 196, 222, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(176, 196, 222, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(176, 196, 222, 0);
    }
}

.pulse {
    animation: pulse-glow 2s infinite;
}

/* UTIL ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) forwards;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .15s;
}

.delay-3 {
    animation-delay: .2s;
}

.delay-4 {
    animation-delay: .25s;
}

.delay-5 {
    animation-delay: .3s;
}

/* Text reveal animation */
.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    animation: text-reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes text-reveal {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(101%);
    }
}

/* NEW CONTACT FORM STYLES */
.contact-form-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(176, 196, 222, 0.1);
}

.form-group-enhanced {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-label-enhanced {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--text-hi);
    transition: all 0.3s ease;
}

.form-label-enhanced .required {
    color: #ff4d4d;
    margin-left: 4px;
}

.form-control-enhanced {
    background-color: var(--charcoal-700);
    border: 2px solid var(--line);
    color: var(--text-hi);
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control-enhanced:focus {
    background-color: var(--charcoal-700);
    border-color: var(--accent);
    color: var(--text-hi);
    box-shadow: 0 0 0 0.25rem var(--focus);
    transform: translateY(-2px);
}

.form-control-enhanced:hover {
    border-color: var(--accent-dark);
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-option {
    background: var(--charcoal-700);
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-option:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.service-option.selected {
    border-color: var(--accent);
    background: rgba(176, 196, 222, 0.1);
}

.service-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(176, 196, 222, 0.1);
}

.service-option h5 {
    margin-bottom: 0.5rem;
    color: var(--text-hi);
}

.service-option p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0;
}

.submit-btn-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: rgba(176, 196, 222, 0.05);
    border-radius: 12px;
    border: 1px solid var(--accent);
    margin-top: 1.5rem;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-logo {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .service-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }

    .display-4 {
        font-size: 2.35rem;
    }

    .process-step {
        padding-left: 0;
        padding-top: 70px;
    }

    .process-step-number {
        top: 0;
        left: 0;
    }

    .social-proof {
        flex-direction: column;
        text-align: center;
    }

    .navbar-logo {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    body::after {
        display: none;
    }

    .reveal-text::after {
        display: none;
    }

    .navbar-logo {
        animation: none !important;
        opacity: 1;
        transform: scale(1);
    }
}
