@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary-green: #10B981;
    --primary-navy: #0F172A;
    --secondary-navy: #1E293B;
    --light-grey: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --accent-glow: rgba(16, 185, 129, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--primary-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
    background-color: #059669;
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary-navy);
}

.section-title p {
    color: var(--light-grey);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: rgba(45, 55, 72, 0.4);
    /* Subtle semi-transparent grey */
    backdrop-filter: blur(8px);
}

nav.sticky {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    height: 112px;
    width: auto;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    /* White text for better contrast on dark hero */
}

nav.sticky .nav-links a {
    color: var(--primary-navy);
    /* Dark text when scrolled */
}

nav.sticky .logo {
    color: var(--primary-navy);
}

.nav-links a:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-text h1 span {
    color: var(--primary-green);
}

.hero-text p {
    font-size: 1.25rem;
    color: #CBD5E1;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 5px solid rgba(16, 185, 129, 0.3);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 4rem 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

/* Service Timeline */
.services-timeline {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-green);
    opacity: 0.2;
    line-height: 1;
    min-width: 80px;
}

.service-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

/* References Section */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.reference-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.reference-item:hover {
    transform: translateY(-5px);
    background: var(--white);
}

.reference-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.reference-item:hover img {
    filter: grayscale(0%) opacity(1);
}

.placeholder-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-grey);
}

.placeholder-logo i {
    font-size: 2rem;
}

.placeholder-logo span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Audience Section */
.audience .container.glass {
    padding: 5rem;
}

.audience-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.audience-text h2 {
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
}

.audience-text ul li {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.audience-text ul li i {
    color: var(--primary-green);
    font-size: 1.4rem;
}

.audience-desc p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.full-width {
    grid-column: span 2;
}

.form-submit {
    text-align: right;
}

.form-submit button {
    font-size: 1.1rem;
    padding: 1rem 3rem;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

.form-status {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: rgba(39, 174, 96, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(192, 57, 43, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.btn.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
    margin-bottom: 30px;
}

.footer-info .logo {
    margin-bottom: 2rem;
}

.footer-info .logo img {
    height: 135px;
}

.footer-info p {
    color: #94A3B8;
    max-width: 300px;
}

.footer-grid h4 {
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1.5rem;
    color: #94A3B8;
}

.footer-contact i {
    color: var(--primary-green);
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 2.5rem;
    transition: var(--transition);
}

.faq-item:hover {
    background: var(--white);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.faq-item p {
    color: var(--light-grey);
    line-height: 1.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 110px;
    /* Offset from WhatsApp button */
    background-color: var(--secondary-navy);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
}

.back-to-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.back-to-top:hover {
    background-color: var(--primary-green);
    transform: translateY(-5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Catalog Card Enhanced */
.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.15);
    background: var(--white);
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Technical Catalog */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    background: var(--white);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-header i {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.product-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.product-specs {
    list-style: none;
    margin-bottom: 2rem;
}

.product-specs li {
    margin-bottom: 0.5rem;
    color: var(--light-grey);
}

.product-specs li::before {
    content: "✓";
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.btn-whatsapp {
    background: #25d366;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* Map Section */
.map-wrapper {
    overflow: hidden;
    line-height: 0;
    filter: grayscale(100%) contrast(1.1);
    transition: var(--transition);
}

.map-wrapper:hover {
    filter: grayscale(30%) contrast(1);
}

/* Responsive Customizations */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        justify-content: center;
    }

    .audience-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .audience .container.glass {
        padding: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }
}

/* @media (max-width: 768px) block starting... */
@media (max-width: 768px) {

    /* Logo scaling on mobile */
    .logo img {
        height: 60px;
    }

    #navbar.sticky .logo img {
        height: 50px;
    }

    #navbar {
        height: 80px;
    }

    /* Hamburger Menu Button */
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--primary);
        cursor: pointer;
        z-index: 1001;
    }

    /* Mobile Nav Links */
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        /* Override display: none */
    }

    .nav-links.active {
        right: 0 !important;
        display: flex !important;
    }

    /* Contact Form Mobile Optimization */
    .contact-form {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    .form-group {
        width: 100% !important;
        grid-column: span 1 !important;
    }

    .form-group input,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.8rem !important;
        box-sizing: border-box !important;
    }

    .full-width {
        width: 100% !important;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
        color: var(--dark);
    }

    /* Hero Section Adjustments */
    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* Grid layout fixes for mobile */
    .features-grid,
    .product-grid,
    .references-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ Overflow fix */
    .faq-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .faq-item {
        min-width: 0 !important;
        /* Force content to stay within screen */
    }

    /* Padding & Spacing optimization */
    section {
        padding: 4rem 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem !important;
    }

    .glass {
        padding: 2rem 1.5rem !important;
    }

    /* Floating buttons adjustment to avoid overlap */
    .whatsapp-float {
        bottom: 80px;
        /* Move up slightly */
    }

    .back-to-top {
        bottom: 20px;
    }

    /* Footer Logo */
    footer .logo img {
        height: 80px;
    }
}