/* Pitch Deck WebGIS - Premium Warm & Minimalist Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Warm & Minimalist Palette */
    --primary: #8B4513;
    /* SaddleBrown/Terracota subtle */
    --primary-soft: #D2B48C;
    /* Tan */
    --accent: #DAA520;
    /* GoldenRod subtle */
    --bg-main: #FDFBF7;
    /* Off-white / Warm Page Background */
    --bg-secondary: #F5F1E8;
    /* Light Beige */
    --bg-card: #FFFFFF;
    --text-main: #2C241B;
    /* Dark Warm Brown */
    --text-muted: #6B5D50;
    /* Muted Brown */
    --text-light: #FDFBF7;

    /* Effects */
    --shadow-soft: 0 10px 30px -10px rgba(139, 69, 19, 0.08);
    --shadow-card: 0 20px 40px -15px rgba(139, 69, 19, 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Layout */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 128px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-card);
    border: 2px solid var(--text-main);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 69, 19, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Fix for Navbar Contact Button Specificity */
.nav-links .btn {
    color: var(--bg-card) !important;
    /* Force white text on primary button */
    display: flex;
    /* Ensure button flex props work */
}

.nav-links .btn:hover {
    color: var(--text-main) !important;
    /* Dark text on hover (transparent bg) */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('hero-bg.png');
    /* To be replaced with generated asset */
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.8;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

.hero-content {
    width: 50%;
    padding-right: var(--spacing-lg);
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

/* Features / Benefits */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

/* Modules Section */
.module-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
    overflow: hidden;
}

.module-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.module-text {
    flex: 1;
}

.module-image {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.module-image img {
    width: 100%;
    height: auto;
    display: block;
}

.reverse {
    flex-direction: row-reverse;
}

/* Comparison Table */
.comparison {
    margin-top: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: var(--spacing-sm);
    border-bottom: 1px solid rgba(139, 69, 19, 0.05);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    font-weight: 700;
    color: var(--primary);
}

/* Project Types */
.project-types {
    text-align: center;
}

.types-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.type-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    width: 300px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 69, 19, 0.05);
}

.type-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--text-main);
    color: var(--bg-main);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

footer p {
    color: rgba(253, 251, 247, 0.6);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
    }

    .hero-bg {
        position: relative;
        width: 100%;
        height: 300px;
        mask-image: none;
        margin-top: var(--spacing-md);
    }

    .module-content {
        flex-direction: column;
    }

    .module-content.reverse {
        flex-direction: column;
    }

    .nav-links {
        /* Simplified mobile menu for now */
        display: none;
    }
}

/* Extended Module Styles */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.module-card-detailed {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(139, 69, 19, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.module-card-detailed:hover {
    transform: translateY(-5px);
    border-color: var(--primary-soft);
}

.module-icon-large {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-secondary);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.module-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.module-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-radius: 12px;
    font-weight: 500;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(139, 69, 19, 0.2), transparent);
    margin: var(--spacing-xl) 0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 27, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--primary-soft);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.modal-header h3 {
    font-size: 2rem;
    color: var(--primary);
}

.modal-body h4 {
    color: var(--text-main);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.modal-body p {
    margin-bottom: var(--spacing-sm);
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

.click-hint {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustment for float */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}