/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  CSS Custom Properties (Variables)
2.  General & Reset Styles
3.  Typography
4.  Utility Classes
5.  Header & Navigation
6.  Hero Section
7.  Section Styles (General)
8.  Services Section
9.  Process Section
10. ROI Calculator Section
11. Testimonials Section
12. Call to Action (CTA) Section
13. Footer
14. Contact Page Styles
15. Legal Page Styles
16. Animations & Transitions
17. Responsive Design (Media Queries)
================================================
*/

/* 1. CSS Custom Properties (Variables) */
:root {
    --color-primary: #00b894;
    --color-secondary: #ffd166;
    --color-background-dark: #0b0f0d;
    --color-background-light: #151b18;
    --color-text-primary: #f0fff9;
    --color-text-secondary: #a9c9b8;
    --color-border: rgba(255, 255, 255, 0.08);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow: 0 10px 30px rgba(0, 184, 148, 0.25);
}

/* 2. General & Reset Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background-dark);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

/* 3. Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    font-family: var(--font-secondary);
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* 4. Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--color-background-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-background-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: 1rem auto 0;
}

/* 5. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    transition: transform var(--transition-speed) ease;
}

.logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav a {
    color: var(--color-text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) ease;
}

#main-nav a:hover::after,
#main-nav a.active::after {
    width: 100%;
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--color-text-primary);
}

#hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

/* 6. Hero Section */
#hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(74, 71, 163, 0.4), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(0, 210, 255, 0.3), transparent 40%),
        var(--color-background-dark);
    z-index: -1;
    animation: pulse-background 20s infinite alternate;
}

@keyframes pulse-background {
    0% {
        background-position: 0% 50%, 100% 50%;
    }

    100% {
        background-position: 100% 50%, 0% 50%;
    }
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-text-secondary);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* 7. Section Styles (General) */
.section-padding {
    padding: 100px 0;
}

/* 8. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-background-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 71, 163, 0.2), transparent 40%);
    transition: transform var(--transition-speed) ease;
    transform: scale(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scale(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.service-card h3 {
    color: var(--color-text-primary);
}

/* 9. Process Section */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-background-dark);
    background: var(--color-secondary);
    border-radius: 50%;
    z-index: 2;
    text-align: center;
    border: 3px solid var(--color-background-light);
}

.process-step:nth-child(odd) .process-number {
    right: -25px;
}

.process-step:nth-child(even) .process-number {
    left: -25px;
}

.process-content {
    padding: 20px 30px;
    background-color: var(--color-background-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

/* 10. ROI Calculator Section */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--color-background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.calculator-form .form-group {
    margin-bottom: 30px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.calculator-form input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.calculator-form span {
    display: inline-block;
    margin-left: 15px;
    font-weight: 600;
    color: var(--color-secondary);
}

.calculator-results {
    background-color: var(--color-background-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.calculator-results h4 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.result-item {
    margin-bottom: 25px;
}

.result-item p {
    margin-bottom: 5px;
    color: var(--color-text-secondary);
}

.result-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.result-disclaimer {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 20px;
}

/* 11. Testimonials Section */
.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background-color: var(--color-background-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    color: var(--color-text-primary);
    margin-bottom: 0;
}

.testimonial-author span {
    color: var(--color-secondary);
}

.slider-controls {
    text-align: center;
    margin-top: 30px;
}

.slider-controls button {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 10px;
    transition: all var(--transition-speed) ease;
}

.slider-controls button:hover {
    background: var(--color-primary);
    color: #fff;
}

/* 12. Call to Action (CTA) Section */
#cta {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    text-align: center;
}

.cta-content h2,
.cta-content p {
    color: #fff;
}

.cta-content p {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

#cta .btn-primary {
    background-color: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

#cta .btn-primary:hover {
    background-color: transparent;
    color: #fff;
}


/* 13. Footer */
#main-footer {
    background-color: var(--color-background-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--color-text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background-color: var(--color-secondary);
}

.footer-col p {
    color: var(--color-text-secondary);
}

.footer-col.about .logo-link {
    margin-bottom: 20px;
}

.footer-col.links ul li,
.footer-col.legal ul li {
    margin-bottom: 10px;
}

.footer-col.links a,
.footer-col.legal a {
    color: var(--color-text-secondary);
}

.footer-col.links a:hover,
.footer-col.legal a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-col.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-col.contact-info svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* 14. Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form-container {
    background-color: var(--color-background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-background-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    transition: border-color var(--transition-speed) ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

#contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.contact-info-container h3 {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p {
    margin-bottom: 0;
}

/* 15. Legal Page Styles */
.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    margin-bottom: 2rem;
}

.legal-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--color-secondary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-page p,
.legal-page li {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-page ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* 16. Animations & Transitions */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1,
.hero-content p,
.hero-buttons {
    animation: fadeIn-up 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-buttons {
    animation-delay: 0.4s;
}

@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Add staggered delay for grid/list items */
.services-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.process-step:nth-child(1) {
    transition-delay: 0.1s;
}

.process-step:nth-child(2) {
    transition-delay: 0.2s;
}

.process-step:nth-child(3) {
    transition-delay: 0.3s;
}

.process-step:nth-child(4) {
    transition-delay: 0.4s;
}

/* 17. Responsive Design (Media Queries) */
@media (max-width: 992px) {
    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        transform: translateX(100%);
        transition: transform var(--transition-speed) ease-in-out;
    }

    #main-nav.active {
        display: flex;
        transform: translateX(0);
    }

    #main-nav ul {
        flex-direction: column;
        gap: 40px;
    }

    #main-nav a {
        font-size: 1.5rem;
    }

    .header-cta {
        display: none;
    }

    #hamburger-menu {
        display: block;
    }

    #hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    #hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .process-timeline::after {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
    }

    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .process-step .process-number,
    .process-step:nth-child(odd) .process-number,
    .process-step:nth-child(even) .process-number {
        left: 5px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col.contact-info p {
        justify-content: center;
    }
}