/*
================================================
TABLE OF CONTENTS
================================================
1.  Setup & Variables
2.  Base & Typography
3.  Preloader
4.  Header & Navigation
5.  Buttons & Utility Classes
6.  Hero Section
7.  Client Marquee
8.  Services Section (3D Tilt Cards)
9.  Results Driver Section
10. ROI Forecaster Section
11. Testimonials Section (Slider)
12. Footer
13. Contact & Legal Pages
14. Animations & Scroll Effects
15. Responsive Design
================================================
*/

/* 1. Setup & Variables
------------------------------------------------ */
:root {
    --primary-grad: linear-gradient(90deg, #FF6B6B, #C44569);
    --orange: #FF6B6B;
    --pink: #C44569;
    --accent: #FF9F43;
    --dark-bg: #1B143F;
    --card-bg: #292250;
    --light-text: #EAEAF4;
    --medium-text: #A7A2CC;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 12px;
}

/* 2. Base & Typography
------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--medium-text);
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 3. Preloader
------------------------------------------------ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-bar {
    width: 8px;
    height: 50px;
    background: var(--orange);
    animation: pulse 1s infinite ease-in-out;
}

.loader-bar:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-bar:nth-child(3) {
    animation-delay: 0.4s;
}

/* 4. Header & Navigation
------------------------------------------------ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background: rgba(27, 20, 63, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-grad);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* 5. Buttons & Utility Classes
------------------------------------------------ */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-title p {
    max-width: 600px;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-grad);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--dark-bg);
}

/* 6. Hero Section
------------------------------------------------ */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}

.hero-actions .btn {
    margin: 0 0.5rem;
}

/* 7. Client Marquee
------------------------------------------------ */
#clients {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--medium-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee span {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 2rem;
    color: var(--medium-text);
}

/* 8. Services Section (3D Tilt Cards)
------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: transform 0.5s, border-color 0.5s;
    transform-style: preserve-3d;
}

.service-card:hover {
    border-color: var(--orange);
}

.card-content {
    transform: translateZ(20px);
}

/* Push content forward for 3D effect */
.service-card h3 {
    margin-bottom: 1rem;
}

/* 9. Results Driver Section
------------------------------------------------ */
#results-driver {
    background: var(--card-bg);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.results-image img {
    border-radius: var(--border-radius);
}

.results-list {
    list-style: none;
    margin-top: 2rem;
}

.results-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 1.5rem;
}

.results-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 25px;
    height: 25px;
    background: var(--primary-grad);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: bold;
}

.results-list li span {
    font-weight: 700;
    display: block;
    color: #fff;
}

/* 10. ROI Forecaster Section
------------------------------------------------ */
.forecaster-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--dark-bg);
    border-radius: 5px;
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--orange);
    border-radius: 50%;
    cursor: pointer;
}

.form-group span {
    float: right;
    font-weight: 700;
    color: var(--accent);
}

.forecaster-visuals {
    text-align: center;
}

.visual-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    border-bottom: 2px solid var(--medium-text);
    margin-bottom: 2rem;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visual-bar {
    width: 40px;
    background: var(--primary-grad);
    border-radius: 5px 5px 0 0;
    transition: height 0.5s ease;
}

.bar-container span {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.forecaster-results {
    display: flex;
    justify-content: space-around;
}

.result-box h4 {
    color: var(--medium-text);
    font-size: 1rem;
}

.result-box span {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 1rem;
    opacity: 0.7;
}

/* 11. Testimonials Section (Slider)
------------------------------------------------ */
#testimonials {
    background: var(--card-bg);
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform var(--transition);
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 2rem;
}

.quote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author h4 {
    color: #fff;
}

.author span {
    color: var(--accent);
}

.slider-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--medium-text);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--orange);
    transform: scale(1.2);
}

/* 12. Footer
------------------------------------------------ */
#main-footer {
    padding-top: 80px;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a,
.footer-col p,
.footer-col address {
    color: var(--medium-text);
    font-style: normal;
}

.footer-col ul a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--medium-text);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* 13. Contact & Legal Pages
------------------------------------------------ */
#contact-page,
#legal-page {
    padding-top: 120px;
    padding-bottom: 120px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}

#contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--dark-bg);
    border: 1px solid var(--medium-text);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    font-family: var(--body-font);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--medium-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.contact-info-container h3 {
    margin-bottom: 1rem;
}

.contact-info-container ul li {
    margin-bottom: 1rem;
}

.contact-info-container ul li strong {
    display: block;
}

.contact-info-container ul li span {
    color: var(--accent);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    margin: 2rem 0 1rem;
}

/* 14. Animations & Scroll Effects
------------------------------------------------ */
@keyframes pulse {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.animate-on-load {
    animation: 0.8s ease-out both;
}

.fade-in-up {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up {
    transform: translateY(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 15. Responsive Design
------------------------------------------------ */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cta-button {
        display: none;
    }

    .results-grid,
    .forecaster-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .results-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    #contact-form {
        grid-template-columns: 1fr;
    }
}