/*
=================================================================
|   TABLE OF CONTENTS
=================================================================
|
|   1.  Global Styles & Variables
|   2.  Utility Classes
|   3.  Preloader
|   4.  Header & Navigation
|   5.  Main Content Sections (Homepage)
|       - Hero Section
|       - About Section
|       - Services Section
|       - Stats Section
|       - Process Section (Timeline)
|       - Testimonials Section (Slider)
|       - CTA Section
|   6.  Generic Page Styles (Contact, Privacy, etc.)
|       - Page Header
|       - Main Content Wrapper
|       - Contact Form & Info
|   7.  Footer
|   8.  Back to Top Button
|   9.  Responsive Design (Media Queries)
|
=================================================================
*/

/* 1. GLOBAL STYLES & VARIABLES
/* ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* UPDATED: Changed from green to orange */
    --color-primary: #FF7B00; 
    --color-primary-dark: #E66F00;

    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-text: #212529;
    --color-text-muted: #6C757D;
    --color-border: #DEE2E6;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --font-primary: 'Poppins', sans-serif;
    --font-size-base: 16px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

/* 2. UTILITY CLASSES
/* ======================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    border: 2px solid transparent;
    font-size: 1rem;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-black);
    transform: translateY(-3px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* Animation Utilities */
.animate-up,
.animate-left,
.animate-right {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-left {
    transform: translateX(-50px);
}

.animate-right {
    transform: translateX(50px);
}

.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* 3. PRELOADER
/* ======================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* 4. HEADER & NAVIGATION
/* ======================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: var(--color-bg);
    transition: box-shadow var(--transition-speed) var(--transition-ease);
}

.header.scrolled {
    box-shadow: var(--shadow-medium);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) var(--transition-ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 5. MAIN CONTENT SECTIONS
/* ======================================= */

/* Hero Section */
.hero {
    padding-top: var(--header-height);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.typing-text {
    color: var(--color-primary);
    white-space: nowrap;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-medium);
}

/* About Section */
.about-section {
    background-color: var(--color-bg-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-content-container p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-features i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Services Section */
.services-section {
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    color: var(--color-text-muted);
}

/* Stats Section */
.stats-section {
    background-color: var(--color-primary);
    padding: 80px 0;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
}

/* Process Section */
.process-section {
    background-color: var(--color-bg-light);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.timeline-item {
    text-align: center;
    padding: 20px;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-black);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1;
}

.timeline-title {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-bg-light);
}

/* 1. The main wrapper. This is the "viewport" that hides other slides. */
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* CRUCIAL: Anchors the absolute-positioned nav buttons. */
    overflow: hidden;  /* CRUCIAL: Hides the slides that are off-screen. */
}

/* 2. The inner container that holds all slides and moves. */
.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 3. The individual slide/card. This contains all styling. */
.testimonial-item {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    box-sizing: border-box;
    /* This makes each item take up exactly 100% of the wrapper's width. */
    flex: 0 0 100%;
    min-width: 100%; /* Fallback */
    padding: 50px;
    text-align: center;
}

.testimonial-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    font-weight: 500;
    color: var(--color-text-muted);
}

/* 4. The navigation buttons (Prev/Next). */
.testimonial-nav button {
    position: absolute; /* Positioned relative to the .testimonial-slider-wrapper */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.testimonial-nav button:hover {
    background-color: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* 5. The pagination dots at the bottom. */
.testimonial-dots {
    text-align: center;
    margin-top: 30px;
}

.testimonial-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--color-border);
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive fix for mobile */
@media (max-width: 576px) {
    .testimonial-item {
        padding: 40px 20px;
    }
    /* Hide arrows on small screens and rely on dots */
    .testimonial-nav {
        display: none;
    }
}

.prev-btn {
    transform: translateX(-25px);
}

.next-btn {
    transform: translateX(25px);
}


/* CTA Section */
.cta-section {
    background: var(--color-bg-light);
    padding: 80px 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-text-muted);
}

/* 6. GENERIC PAGE STYLES
/* ======================================= */
.page-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    text-align: center;
    background: var(--color-bg-light);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs span {
    color: var(--color-text);
}

.main-content {
    padding: 100px 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.page-content p,
.page-content li {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.page-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--color-bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-light);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 112, 0.2);
}

.contact-form button[type="submit"] {
    width: 100%;
}

/* 7. FOOTER
/* ======================================= */
.footer {
    background-color: var(--color-text);
    color: var(--color-bg-light);
    padding-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-column .footer-heading {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-about-text,
.footer-newsletter p {
    color: var(--color-border);
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-links ul li a,
.footer-contact ul li span,
.footer-contact ul li a {
    color: var(--color-border);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 5px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--color-text-muted);
    background: #343A40;
    color: var(--color-white);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.newsletter-form button {
    padding: 0 15px;
    border: none;
    background: var(--color-primary);
    color: var(--color-black);
    cursor: pointer;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
    border-top: 1px solid var(--color-text-muted);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright,
.footer-legal a {
    color: var(--color-border);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-legal a {
    margin-left: 20px;
}

/* 8. BACK TO TOP BUTTON
/* ======================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-black);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
}

/* 9. RESPONSIVE DESIGN
/* ======================================= */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-wrapper,
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-container {
        grid-row: 1;
        margin-bottom: 40px;
    }

    .hero-subtitle,
    .about-content-container {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        padding: 0;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        margin-top: 1rem;
    }

    .footer-legal a {
        margin: 0 10px;
    }

    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }


}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper,
    .page-content {
        padding: 30px;
    }
}
ul li{
    list-style: none;
}