/*
========================================
    TABLE OF CONTENTS
========================================
1.  VARIABLES & RESET
2.  GENERAL STYLES & UTILITIES
3.  HEADER & NAVIGATION
4.  HERO SECTION
5.  SERVICES SECTION
6.  APPROACH (SCROLLING FEATURE) SECTION
7.  WHY US SECTION
8.  TESTIMONIALS (MARQUEE) SECTION
9.  CTA SECTION
10. FOOTER
11. PAGE-SPECIFIC STYLES (Contact, Legal)
12. ANIMATIONS & KEYFRAMES
13. RESPONSIVE DESIGN (Media Queries)
========================================
*/

/* ======================================== 1. VARIABLES & RESET ======================================== */
:root {
    /* ===== Colors ===== */
    --color-primary: #00C9A7;
    /* Aqua Mint */
    --color-primary-dark: #00997C;
    --color-background: #0D0D0D;
    /* Deep black */
    --color-surface: #181818;
    /* Soft dark grey for cards */
    --color-text-primary: #EAEAEA;
    /* Off-white for better contrast */
    --color-text-secondary: #9A9A9A;
    /* Subtle grey for secondary text */
    --color-border: #2A2A2A;
    /* Subtle border tone */

    /* ===== Typography ===== */
    --font-family-primary: 'Sora', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* ===== Effects ===== */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;

    /* ===== Layout ===== */
    --container-width: 1240px;
    --border-radius: 8px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}


*,
*::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-family-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ======================================== 2. GENERAL STYLES & UTILITIES ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 750px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid var(--color-primary);
}

.btn--primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn--full-width {
    width: 100%;
}

/* ======================================== 3. HEADER & NAVIGATION ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 55px;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.25rem;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ======================================== 4. HERO SECTION ======================================== */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.08), transparent 70%);
    animation: spin 20s linear infinite reverse;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.hero__tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero__visual {
    position: relative;
    height: 400px;
}

.grid-anim {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    width: 100%;
    height: 100%;
}

.grid-anim span {
    background-color: var(--color-surface);
    opacity: 0;
    animation: grid-pulse 5s ease-in-out infinite;
}

/* ======================================== 5. SERVICES SECTION ======================================== */
.services-section {
    background-color: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(145deg, #1f1f1f, #151515);
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.1);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card__title {
    margin-bottom: 1rem;
}

.service-card__description {
    min-height: 100px;
}

.service-card__link {
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.service-card:hover .service-card__link {
    color: var(--color-primary);
}

/* ======================================== 6. APPROACH (SCROLLING FEATURE) SECTION ======================================== */
.approach-section {
    background-color: var(--color-background);
}

.approach-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.approach-steps {
    padding-top: 10vh;
    padding-bottom: 20vh;
}

.step-content {
    padding: 2rem 0;
    border-left: 3px solid var(--color-border);
    padding-left: 2rem;
    opacity: 0.4;
    transition: opacity var(--transition-medium), border-color var(--transition-medium);
}

.step-content:not(:last-child) {
    margin-bottom: 20vh;
}

.step-content.is-active {
    opacity: 1;
    border-color: var(--color-primary);
}

.step-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.approach-visual {
    position: sticky;
    top: 150px;
    height: 60vh;
}

.visual-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-color: var(--color-surface);
}

.feature-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.feature-image.active {
    opacity: 1;
}

/* ======================================== 7. WHY US SECTION ======================================== */
.why-us-section {
    background-color: var(--color-surface);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-card {
    text-align: center;
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.why-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======================================== 8. TESTIMONIALS (MARQUEE) SECTION ======================================== */
.testimonials-section {
    overflow: hidden;
    padding-top: 7rem;
    padding-bottom: 0;
}

.testimonial-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    animation: marquee-scroll 40s linear infinite;
}

.testimonial-marquee.reverse .marquee-track {
    animation-direction: reverse;
}

.testimonial-card {
    width: 450px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 0 1rem;
    font-size: 1.1rem;
}

.testimonial-card .author {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* ======================================== 9. CTA SECTION ======================================== */
.cta-section {
    background-color: var(--color-background);
}

.cta-container {
    background-color: var(--color-primary);
    color: #000;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--border-radius);
}

.cta-title {
    color: #000;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: #222;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-section .btn--primary {
    background-color: #000;
    color: var(--color-primary);
    border-color: #000;
}

.cta-section .btn--primary:hover {
    background-color: #222;
}

/* ======================================== 10. FOOTER ======================================== */
.footer {
    background-color: var(--color-surface);
    padding-top: 5rem;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 1rem;
}

.footer-about-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-col-title {
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--color-primary);
}

.footer-col p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ======================================== 11. PAGE-SPECIFIC STYLES ======================================== */
/* --- Contact Page --- */
.contact-page-section {
    padding-top: 10rem;
}

.contact-layout {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background-color: var(--color-surface);
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

/* --- Legal Pages --- */
.legal-section {
    padding-top: 10rem;
    background: var(--color-background);
}

.legal-container {
    max-width: 800px;
    background-color: var(--color-surface);
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.legal-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 1rem;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-container p,
.legal-container ul li {
    color: var(--color-text-secondary);
}

.legal-container ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.legal-container ul li {
    margin-bottom: 0.5rem;
}

/* ======================================== 12. ANIMATIONS & KEYFRAMES ======================================== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes grid-pulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================== 13. RESPONSIVE DESIGN ======================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__content {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }

    .hero__visual {
        display: none;
    }

    .approach-container {
        grid-template-columns: 1fr;
    }

    .approach-visual {
        display: none;
    }

    .approach-steps {
        padding-bottom: 0;
    }

    .step-content:not(:last-child) {
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 5rem 0;
    }

    h1,
    .hero__title {
        font-size: 2.5rem;
    }

    .header__cta {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-surface);
        padding-top: 6rem;
        transition: right 0.4s ease-in-out;
        border-left: 1px solid var(--color-border);
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav.open+.nav-toggle .hamburger {
        background-color: transparent;
    }

    .nav.open+.nav-toggle .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav.open+.nav-toggle .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .testimonial-card {
        width: 320px;
    }
}