/* css/main.css */

:root {
    --brand-green: #00876c;
    --brand-orange: #f58220;
    --brand-blue: #007bff;
    
    /* Light Mode */
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --section-bg: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.05);
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #0f172a; 
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --card-bg: rgba(30, 41, 59, 0.9); 
    --nav-bg: rgba(15, 23, 42, 0.95);
    --section-bg: #1e293b;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: #1e293b;
    --input-border: #334155;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- NAVBAR STYLES --- */
#main-header {
    background: transparent;
    border-bottom: none;
}

/* Nav Link Pills */
.nav-link-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    color: var(--text-color); /* Default color */
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* FIX: Force White Text in Dark Mode */
body.dark-mode .nav-link-pill {
    color: #ffffff !important;
}

/* Hover */
.nav-link-pill:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
body.dark-mode .nav-link-pill:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

/* Active State */
.nav-link-pill.active {
    background-color: var(--brand-green);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 135, 108, 0.3);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: var(--input-bg); color: var(--text-color); border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.theme-toggle:hover { color: var(--brand-orange); border-color: var(--brand-orange); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #d9680c 100%);
    color: white; font-weight: 700; border-radius: 9999px; transition: all 0.3s ease; border: none; letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(245, 130, 32, 0.5); }

/* Floating Buttons */
.fixed-buttons { z-index: 100; }
.float-btn {
    position: fixed; width: 50px; height: 50px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.3s ease; cursor: pointer;
}
.float-btn:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.whatsapp-btn { bottom: 30px; left: 30px; background-color: #25D366; }
.scroll-top-btn { bottom: 30px; right: 30px; background-color: var(--brand-orange); opacity: 0; visibility: hidden; }
.scroll-top-btn.show { opacity: 1; visibility: visible; }

/* Styles */
.glass-card {
    background: var(--card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
body.dark-mode .glass-card { border-color: rgba(255,255,255,0.1); }

.section-bg { background-color: var(--section-bg); }
.text-main { color: var(--text-color); }
.text-muted { color: var(--text-muted); }

.bento-card { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; cursor: pointer; }
.bento-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* Forms */
.form-input {
    width: 100%; border: 1px solid var(--input-border); border-radius: 12px;
    background-color: var(--input-bg); color: var(--text-color); transition: all 0.2s ease;
}
.form-input:focus { outline: none; border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(0, 135, 108, 0.15); }

.form-select {
    width: 100%; border: 1px solid var(--input-border); border-radius: 12px;
    background-color: var(--input-bg); color: var(--text-color); transition: all 0.2s ease;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 1.25rem center; background-size: 1.5em 1.5em; padding-right: 2.5rem; 
}
.form-select:focus { outline: none; border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(0, 135, 108, 0.15); }

/* Animation */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes blob { 0% { transform: translate(0px, 0px) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0px, 0px) scale(1); } }
.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }