/* =========================================
   1. ROOT VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette - Theme: "Forest Gold" (green + gold, no blue/purple) */
    --primary-color: #16a34a;
    /* Green 600 */
    --primary-dark: #166534;
    /* Green 800 */
    --secondary-color: #f59e0b;
    /* Amber 500 */
    --accent-color: #ef4444;
    /* Red 500 */

    /* Dark Mode / Backgrounds */
    --bg-dark: #07110c;
    /* Deep forest */
    --bg-darker: #040a07;
    /* Deeper forest */
    --bg-light: #ffffff;
    --bg-off-white: #f7faf9;
    /* Slight green-tint white */

    /* Typography Colors */
    --text-main: #1f2937;
    /* Slate 800 */
    --text-light: #94a3b8;
    /* Slate 400 */
    --text-white: #ffffff;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));

    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 6px 10px -6px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 14px 22px -10px rgba(0, 0, 0, 0.22);
    --shadow-neon: 0 0 22px rgba(245, 158, 11, 0.35);
    /* gold glow */

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.bg-light {
    background-color: var(--bg-off-white);
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--text-white);
    box-shadow: var(--shadow-neon);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-dark);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* =========================================
   3. HEADER STYLES
   ========================================= */
.header {
    background-color: var(--bg-dark);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    width: 150px;
    height: auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Animated Background Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 50px;
    left: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.stat-floating {
    position: absolute;
    background: var(--bg-light);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: bounce 3s infinite;
}

.stat-1 {
    top: -20px;
    right: -20px;
}

.stat-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 1.5s;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.stat-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::after {
    opacity: 0.15;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-off-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--text-white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.service-list {
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* =========================================
   6. CALCULATOR SECTION
   ========================================= */
.calculator-section {
    background: var(--bg-dark);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-inputs label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.range-wrap {
    margin-bottom: 30px;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
    background: transparent;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.range-value {
    color: var(--secondary-color);
    font-weight: 700;
    float: right;
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--gradient-main);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-neon);
}

.roi-circle {
    width: 150px;
    height: 150px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: spin 10s linear infinite;
}

.roi-text {
    font-size: 2.5rem;
    font-weight: 800;
}

.roi-label {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

/* =========================================
   7. PROCESS TIMELINE
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e2e8f0;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.timeline-content {
    width: 45%;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-normal);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px #e2e8f0;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 50px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: center;
    border-left: 5px solid var(--primary-color);
}

.quote-icon {
    font-size: 3rem;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 50%;
}

.client-details h5 {
    font-weight: 700;
    color: var(--bg-dark);
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =========================================
   9. CONTACT & FORMS
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-box {
    background: var(--bg-dark);
    color: white;
    padding: 40px;
    border-radius: 20px;
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.form-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.form-label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #94a3b8;
    pointer-events: none;
    transition: var(--transition-fast);
    background: transparent;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: #fff;
    padding: 0 5px;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    background: var(--bg-darker);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-about p {
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   11. LEGAL PAGES STYLES
   ========================================= */
.legal-content {
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--bg-dark);
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* =========================================
   12. ANIMATIONS
   ========================================= */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Reveal on Scroll Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    /* Hide 3D graphic on smaller screens */
    .calc-container {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        padding: 40px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-content {
        width: 90%;
        margin-left: 30px !important;
    }

    .timeline-dot {
        left: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 30px;
    }
}