/* Base Styles */
:root {
    --blue-50: #f0f7ff;
    --blue-100: #e0eefe;
    --blue-700: #0f4c81;
    --blue-800: #0b3c6b;
    --orange-100: #fff8ed;
    --orange-500: #ffa500;
    --orange-600: #e67e00;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--slate-800);
    line-height: 1.5;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--slate-200);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
}

.full-logo {
    height: auto;
    width: 120px; /* Adjust size as needed */
}

.main-nav {
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue-700);
}

/* Footer */
.site-footer {
    width: 100%;
    padding: 5rem 0 1.5rem;
    background-color: var(--slate-100);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .full-logo {
    width: 100px; /* Slightly smaller in footer */
}

.copyright {
    font-size: 0.875rem;
    color: var(--slate-500);
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: text-decoration 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }

    .copyright {
        text-align: left;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--blue-700);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--blue-800);
}

.btn-outline {
    background-color: transparent;
    color: var(--slate-800);
    border: 1px solid var(--slate-300);
}

.btn-outline:hover {
    background-color: var(--slate-100);
}

.btn-white {
    background-color: var(--white);
    color: var(--blue-700);
    border: none;
}

.btn-white:hover {
    background-color: var(--blue-50);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    width: 100%;
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--blue-50), var(--white));
}

.hero-content {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.hero-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-map-container {
    width: 100%;
    height: 350px;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (min-width: 400px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .home-map-container {
        height: 400px;
    }
}

/* Section Styles */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 36rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--orange-100);
    color: var(--slate-800);
    font-size: 0.875rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: var(--white);
}

.feature-card.blue {
    border-top: 4px solid var(--blue-700);
}

.feature-card.orange {
    border-top: 4px solid var(--orange-500);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-card.blue .feature-icon {
    color: var(--blue-700);
}

.feature-card.orange .feature-icon {
    color: var(--orange-500);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--slate-600);
    margin-bottom: 0.5rem;
}

.feature-detail {
    font-size: 0.875rem;
    color: var(--slate-500);
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background-color: var(--slate-50);
    background-image: url("../img/world-map.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.process-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: var(--white);
}

.process-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.process-icon.blue {
    background-color: var(--blue-100);
    color: var(--blue-700);
}

.process-icon.orange {
    background-color: var(--orange-100);
    color: var(--orange-500);
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-card p {
    color: var(--slate-600);
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Use Cases */
.use-cases {
    padding: 4rem 0;
}

/* WhatsApp Button */
.whatsapp-button {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    max-width: 320px;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.whatsapp-text {
    flex: 1;
    padding: 0.5rem;
}

.whatsapp-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate-700);
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #25d366;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-button {
        max-width: 60px;
        padding: 0.5rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-text {
        display: none;
    }
}

.use-cases-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    display: flex;
    gap: 1rem;
}

.use-case-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.use-case-icon.blue {
    background-color: var(--blue-100);
    color: var(--blue-700);
}

.use-case-icon.orange {
    background-color: var(--orange-100);
    color: var(--orange-500);
}

.use-case-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.use-case-content p {
    color: var(--slate-600);
}

@media (min-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA Section */
.cta {
    padding: 4rem 0 6rem;
    background-color: var(--blue-700);
    color: var(--white);
    position: relative;
    overflow: visible;
    /* clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); */
    margin-bottom: 3rem; /* Add space for the 3D element */
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--blue-100);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 400px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* 3D Element */
.element-3d-container {
    position: absolute;
    right: 10%;
    bottom: 0;
    transform: translateY(30%);
    z-index: 30;
    pointer-events: none; /* Ensures the element doesn't interfere with clicks */
}

.element-3d-image {
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
    animation: floating 6s ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform; /* Optimizes animation performance */
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {
    @keyframes floating {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-8px);
        }
        100% {
            transform: translateY(0px);
        }
    }
}

@media (max-width: 480px) {
    @keyframes floating {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-5px);
        }
        100% {
            transform: translateY(0px);
        }
    }
}

@media (max-width: 1024px) {
    .element-3d-container {
        right: 5%;
    }

    .element-3d-image {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .element-3d-container {
        right: 50%;
        transform: translate(50%, 40%);
    }

    .element-3d-image {
        max-width: 300px;
    }

    .cta {
        padding-bottom: 8rem;
    }
}

@media (max-width: 480px) {
    .element-3d-container {
        transform: translate(50%, 25%);
        bottom: -20px;
    }

    .element-3d-image {
        max-width: 220px;
    }

    .cta {
        padding-bottom: 6rem;
    }
}

@media (max-width: 360px) {
    .element-3d-container {
        transform: translate(50%, 20%);
        bottom: -10px;
    }

    .element-3d-image {
        max-width: 180px;
    }
}

/* Icons */
.icon {
    display: inline-block;
    vertical-align: middle;
}
