/*
    ==================================
    TABLE OF CONTENTS
    ==================================
    1.  Variables & Root Styles
    2.  Global & Reset Styles
    3.  Preloader & Utility Classes
    4.  Header & Navigation
    5.  Buttons & Forms
    6.  Hero Section
    7.  Services Section
    8.  About Section
    9.  Process Section
    10. Testimonials Section
    11. CTA Section
    12. Footer
    13. Other Components (Back to Top, etc.)
    14. Page Header & Legal Pages
    15. Keyframe Animations
    16. Responsive Design (Media Queries)
*/

/* 1. Variables & Root Styles */
:root {
    --color-bg: #0d0c22;
    --color-bg-secondary: #1a1936;
    --color-bg-tertiary: #27264a;
    --color-primary: #3b82f6;
    /* Blue */
    --color-secondary: #a855f7;
    /* Purple */
    --color-text: #a9a8c3;
    --color-heading: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);

    --gradient-primary: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    --gradient-text: linear-gradient(90deg, #5e95f7, #c18ef8);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --section-padding: 100px 0;
}

/* 2. Global & Reset Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 25px 25px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    color: var(--color-heading);
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    overflow: hidden;
}

/* 3. Preloader & Utility Classes */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-bg-tertiary);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(13, 12, 34, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--color-heading);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-speed) ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    margin-left: 20px;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--color-heading);
    transition: all var(--transition-speed) ease-in-out;
}

/* 5. Buttons & Forms */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-secondary);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-heading);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    color: var(--color-heading);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* 6. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -200px;
    background: rgba(59, 130, 246, 0.2);
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -150px;
    background: rgba(168, 85, 247, 0.2);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin: 1.5rem 0 2.5rem 0;
    color: var(--color-text);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
}

.hero-visual-card {
    background: rgba(26, 25, 54, 0.7);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.card-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-bg-tertiary);
}

.card-body img {
    border-radius: 8px;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-heading);
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: float 5s ease-in-out infinite alternate;
}

.icon-1 {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: -30px;
    animation-delay: 1s;
}

.icon-3 {
    bottom: -20px;
    left: 40%;
    animation-delay: 0.5s;
}

.icon-4 {
    right: 10px;
    top: 0;
    animation-delay: 1.5s;
}


/* 7. Services Section */
.services-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x) var(--y), rgba(168, 85, 247, 0.25), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    color: var(--color-heading);
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.4rem;
}

.card-link {
    color: var(--color-heading);
    font-weight: 500;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link i {
    transition: transform var(--transition-speed) ease;
}

.card-link:hover i {
    transform: translateX(5px);
}


/* 8. About Section */
.about-section {
    padding: var(--section-padding);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    box-shadow: -20px -20px 0 0 var(--color-bg-secondary);
}

.about-image img {
    border-radius: var(--border-radius);
}

.about-text-content p {
    color: var(--color-text);
    font-size: 1.1rem;
}

.about-features {
    margin: 25px 0 35px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* 9. Process Section */
.process-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-secondary) 80%, transparent);
}

.step-content {
    background: var(--color-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    color: var(--color-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* 10. Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
}

.testimonial-wrapper {
    position: relative;
    background-color: var(--color-bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

.testimonial-slides-container {
    position: relative;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-heading);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.author-info h4 {
    margin: 0;
    color: var(--color-heading);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 0 20px;
}

.slider-btn {
    background: var(--color-bg-tertiary);
    color: var(--color-heading);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.slider-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* 11. CTA Section */
.cta-section {
    padding: 100px 0;
    position: relative;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 400px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    filter: blur(200px);
    opacity: 0.3;
    z-index: -1;
}

.cta-content h2 {
    font-size: 2.8rem;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 30px;
}

/* 12. Footer */
.footer {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
    padding: 80px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-about .footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--color-text);
    border: 1px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-social a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer h3 {
    font-size: 1.2rem;
    color: var(--color-heading);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text);
}

.footer-links a:hover {
    color: var(--color-heading);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--color-secondary);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--color-text);
}

/* 13. Other Components */
.back-to-top {
    position: fixed;
    bottom: -50px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: var(--color-heading);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
    z-index: 999;
}

.back-to-top.show {
    bottom: 20px;
}

/* 14. Page Header & Legal Pages */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.2), transparent 40%);
    z-index: -1;
}

.page-header h1 {
    font-size: 3rem;
}

.breadcrumbs {
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--color-text);
}

.breadcrumbs a:hover {
    color: var(--color-heading);
}

.legal-content .content-wrapper,
.contact-page-wrapper {
    /* max-width: 800px; */
    margin: 0 auto;
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
}

.legal-content h3 {
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;
}

/* Contact page specifics are already fine, will just inherit new styles */


/* 15. Keyframe Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* 16. Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 40px auto 0;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        margin: 0 auto 30px;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-bg-secondary);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header .btn-primary {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / 3;
    }

    .slider-controls {
        padding: 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .testimonial-wrapper {
        padding: 40px 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}