/* 
 * Velaro Link - Unique Design Version 1
 * Theme: Deep Navy & Electric Teal
 * Font: Outfit (Google Fonts)
 */

:root {
    /* Color Palette - Indigo & Purple with Amber Accents */
    --primary: #6366f1;
    /* Indigo */
    --primary-dim: #4f46e5;
    --secondary: #ffffff;
    /* White */
    --accent: #a855f7;
    /* Purple */

    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --bg-lighter: #1e293b;
    /* Slate 800 */

    --text-main: #94a3b8;
    /* Slate 400 */
    --text-heading: #f8fafc;
    /* Slate 50 */
    --text-muted: #64748b;
    /* Slate 500 */

    --success: #10b981;
    --error: #ef4444;
    --radius: 12px;
    --radius-xl: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --nav-height: 80px;
    --glass: rgba(15, 23, 42, 0.8);
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Sophisticated subtle gradient */
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.section {
    padding: clamp(3rem, 10vw, 8rem) 0;
}

.text-center {
    text-align: center;
}

.text-highlight {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: var(--glass);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--text-heading);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link:not(.nav__link--cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav__link:not(.nav__link--cta):hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav__link--cta:hover {
    background-color: var(--primary-dim);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger__line {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* Mobile Nav Overlay */
@media (max-width: 1024px) {
    .burger {
        display: flex;
        z-index: 2000;
        position: relative;
    }

    .burger__line {
        transition: var(--transition);
    }

    /* Transform Burger to X */
    [aria-expanded="true"] .burger__line:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    [aria-expanded="true"] .burger__line:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    [aria-expanded="true"] .burger__line:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        padding: 6rem 2rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 1500;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav.nav--active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav__link {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .nav__link--cta {
        margin-top: 1rem;
        padding: 1rem 3rem;
        border: 2px solid var(--primary);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero__content {
    flex: 1;
    max-width: 600px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    color: var(--text-heading);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 99px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero__note {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 1rem;
    font-style: italic;
}

/* Visual Placeholder using shapes logic */
.hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero__card {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--accent), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero__data-viz {
    width: 80%;
    height: 60%;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.2);
}

.hero__data-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-out infinite alternate;
}

@keyframes barGrow {
    from {
        height: 20%;
    }

    to {
        height: var(--h);
    }
}

.hero__card-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass);
    padding: 0.8rem 1.2rem;
    border-radius: 99px;
    border: 1px solid var(--primary);
    color: var(--text-heading);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .hero__container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
    }

    .hero__content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero__card {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.6);
}

.btn--secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-heading);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn--small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn--outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn--full {
    width: 100%;
}

/* Features Grid */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 350px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.feature-card__icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

/* Services Masonry */
.services__masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    flex: 1 1 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-card--large {
    flex: 2 1 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
}

.service-card--wide {
    flex: 1 1 100%;
}

.link-arrow {
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 0.8rem;
    color: var(--accent);
}

/* Reviews */
.reviews__slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.review-card {
    flex: 0 0 380px;
    scroll-snap-align: center;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-lighter);
    margin: 0 auto 1rem;
    /* Placeholder gradient */
    background: linear-gradient(135deg, var(--bg-lighter), var(--secondary));
}

.review-card blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Contact */
.contact__container {
    display: flex;
    gap: 4rem;
    justify-content: space-between;
}

.contact__info {
    flex: 1;
    max-width: 400px;
}

.contact__form-wrapper {
    flex: 1;
    max-width: 600px;
}

.contact-form {
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    background-color: var(--bg-card);
}

.contact__list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.contact__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-lighter);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-heading);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1.2em;
}

@media (max-width: 768px) {
    .contact__container {
        flex-direction: column;
    }
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: #020c1b;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-lighter);
    color: var(--secondary);
    font-size: 0.9rem;
}

.footer-link {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 0.5rem;
    display: block;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 12, 27, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.modal {
    background-color: var(--bg-dark);
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    z-index: 100000;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-lighter);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 100001;
}

.modal-close:hover {
    background-color: var(--primary);
    color: var(--bg-card);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-lighter);
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.modal-body {
    color: var(--text-main);
    line-height: 1.7;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--glass);
    padding: 2rem;
    width: calc(100% - 48px);
    max-width: 420px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    z-index: 1500;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
}

.cookie-banner.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.cookie-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* Spinner */
.spinner {
    border: 3px solid rgba(100, 255, 218, 0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-left-color: var(--primary);
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 1024px) {
    :root {
        --nav-height: 70px;
    }

    .hero__card {
        height: 350px;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero__container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }

    .hero__content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__card {
        height: 300px;
        max-width: 100%;
    }

    .hero__data-viz {
        width: 90%;
        height: 70%;
    }

    .review-card {
        flex: 0 0 85%;
        padding: 2rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer__col ul {
        align-items: center;
    }

    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
        min-height: 250px;
    }

    .review-card {
        flex: 0 0 95%;
    }

    .modal {
        padding: 2rem 1.5rem;
    }
}

/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--bg-lighter);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.legal-content h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-content h3 {
    color: var(--text-heading);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-main);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-main);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}

/* Contact CTA Section */
.contact-cta {
    background-color: var(--bg-dark);
    padding-bottom: 8rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-lighter) 100%);
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.5);
    max-width: 1000px;
    margin: 0 auto;
}

.cta-card .section-title {
    margin-bottom: 1rem;
    color: var(--primary);
}

.cta-card .section-desc {
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn--large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .cta-card {
        padding: 3rem 1.5rem;
    }
}