/* ================================
   Bootstrap Custom Variables
   ================================ */
:root {
    --bs-primary: #19A7CE;
    --bs-primary-rgb: 25, 167, 206;
    --bs-secondary: #146C94;
    --bs-secondary-rgb: 20, 108, 148;
    --bs-light-blue: #AFD3E2;
    --bs-light-blue-rgb: 175, 211, 226;
    --bs-off-white: #F6F1F1;
    --bs-off-white-rgb: 246, 241, 241;
    
    /* Light Mode Colors - All White Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --navbar-bg: #ffffff;
    --footer-bg: #fafafa;
    --footer-text: #2d3748;
    --accent-bg: #f8f9fa;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --navbar-bg: #1e293b;
    --footer-bg: #020617;
    --footer-text: #f1f5f9;
    --accent-bg: #1e293b;
}

/* ================================
   Global Styles
   ================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Section Spacing */
section {
    position: relative;
    z-index: 1;
}

section.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section {
    scroll-margin-top: 80px;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    transition: all 0.3s ease;
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
}

.navbar.scrolled {
    background-color: var(--navbar-bg) !important;
    box-shadow: 0 2px 10px rgba(25, 167, 206, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--text-primary) !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    min-width: 250px;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--bs-primary);
}

.dropdown-item i {
    color: var(--bs-primary);
}

.dropdown-divider {
    border-color: var(--border-color);
}

.dropdown-toggle::after {
    margin-left: 0.5em;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--bs-primary);
    color: white;
    transform: rotate(180deg);
    border-color: var(--bs-primary);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Mobile theme toggle positioning */
@media (max-width: 991px) {
    .theme-toggle.d-lg-none {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
}

/* Navbar Toggler (Hamburger Menu) */
.navbar-toggler {
    border: 2px solid var(--text-primary);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 167, 206, 0.25);
    border-color: var(--bs-primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45, 55, 72, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Dark mode navbar toggler */
[data-theme="dark"] .navbar-toggler {
    border-color: var(--text-primary);
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241, 245, 249, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--bs-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    transition: background 0.3s ease;
    margin-bottom: 0;
}

.hero-section h1,
.hero-section p,
.hero-section .lead {
    color: var(--text-primary);
}

.bg-gradient-primary {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.min-vh-75 {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-illustration {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.hero-illustration i {
    font-size: 15rem;
    color: rgba(0, 0, 0, 0.03);
    transition: color 0.3s ease;
}

[data-theme="dark"] .hero-illustration i {
    color: rgba(255, 255, 255, 0.05);
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.hero-main-image {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 1rem !important;
}

.hero-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 2rem 4rem rgba(25, 167, 206, 0.3) !important;
}

/* Dark mode image adjustments */
[data-theme="dark"] .hero-main-image {
    opacity: 0.9;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .hero-main-image:hover {
    opacity: 1;
    box-shadow: 0 2rem 4rem rgba(25, 167, 206, 0.4) !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ================================
   Cards & Hover Effects
   ================================ */
.hover-lift {
    transition: all 0.3s ease;
    background-color: var(--card-bg);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08) !important;
}

.feature-card,
.service-card,
.value-card,
.team-card,
.info-card,
.faq-card {
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    border-left: 3px solid transparent;
    border: 1px solid var(--border-color);
}

.feature-card:hover,
.service-card:hover,
.value-card:hover,
.info-card:hover,
.faq-card:hover {
    border-left-color: var(--bs-primary);
}

.team-card:hover {
    border-top: 3px solid var(--bs-primary);
}

.card {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.card-body {
    color: var(--text-primary);
}

/* ================================
   Feature Icons
   ================================ */
.feature-icon i {
    font-size: 3.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ================================
   Service Cards
   ================================ */
.service-icon i {
    font-size: 3rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.2) rotate(5deg);
}

.service-features li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

/* ================================
   Process Section
   ================================ */
.process-number {
    width: 70px;
    height: 70px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 0.5rem 1rem rgba(25, 167, 206, 0.2);
    transition: all 0.3s ease;
}

.process-card:hover .process-number {
    transform: scale(1.1);
    box-shadow: 0 1rem 2rem rgba(25, 167, 206, 0.3);
}

/* ================================
   Team Cards
   ================================ */
.team-img-wrapper {
    height: 300px;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}

.social-links-team a {
    transition: all 0.3s ease;
}

.social-links-team a:hover {
    color: var(--bs-primary) !important;
    transform: translateY(-3px);
}

/* ================================
   Stats Counter
   ================================ */
.stat-item {
    padding: 2rem;
}

.counter {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-section {
    background: var(--bs-primary);
    color: white;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ================================
   Contact Form
   ================================ */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(25, 167, 206, 0.15);
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

#formMessage {
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
}

#formMessage.show {
    display: block;
}

#formMessage.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#formMessage.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ================================
   Buttons
   ================================ */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    box-shadow: 0 0.5rem 1rem rgba(25, 167, 206, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(25, 167, 206, 0.4);
    background: linear-gradient(135deg, var(--bs-secondary) 0%, var(--bs-primary) 100%);
}

.btn-outline-light {
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--bs-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ================================
   Back to Top Button
   ================================ */
.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.btn-floating.show {
    display: flex;
}

/* ================================
   Footer
   ================================ */
footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
}

footer a:hover {
    color: var(--bs-primary) !important;
}

footer .text-white-50 {
    color: var(--text-muted) !important;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    color: var(--footer-text) !important;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--bs-primary) !important;
}

/* ================================
   Page Header
   ================================ */
.page-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.page-header h1,
.page-header p {
    color: var(--text-primary);
}

/* ================================
   Story Section
   ================================ */
.story-badge {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ================================
   Map Container
   ================================ */
.map-container {
    border: 3px solid var(--border-color);
}

/* ================================
   Text Colors
   ================================ */
.text-muted {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text-primary);
}

/* ================================
   Background Sections
   ================================ */
section.bg-light,
.bg-light {
    background-color: var(--bg-tertiary) !important;
}

.bg-dark {
    background-color: var(--bg-secondary) !important;
}

/* ================================
   Benefit Cards
   ================================ */
.benefit-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-card:hover {
    transform: scale(1.05);
}

.benefit-card i {
    transition: transform 0.3s ease;
}

.benefit-card:hover i {
    transform: rotate(360deg);
}

/* ================================
   Info Cards
   ================================ */
.info-card a {
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.info-card a:hover {
    color: var(--bs-secondary);
}

/* ================================
   Animations (AOS overrides)
   ================================ */
[data-aos] {
    pointer-events: auto;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 991px) {
    .hero-illustration i {
        font-size: 8rem;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .theme-toggle.d-lg-none {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 1031;
    }
    
    .theme-toggle.d-lg-none:hover {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: var(--navbar-bg);
        border-radius: 0.5rem;
        padding: 1rem;
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        border: 1px solid var(--border-color);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    }
    
    .nav-link::after {
        display: none;
    }
    
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-illustration {
        display: none;
    }
    
    .btn-floating {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .feature-icon i {
        font-size: 2.5rem;
    }
    
    .service-icon i {
        font-size: 2.5rem;
    }
    
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ================================
   Loading Animation
   ================================ */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ================================
   Utility Classes
   ================================ */
.text-gradient {
    color: var(--bs-primary);
}

.shadow-primary {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.border-gradient {
    border: 2px solid var(--border-color);
}

/* ================================
   Custom Scrollbar
   ================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-secondary);
}