/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0c3a5a 0%, #1b6b93 50%, #3a9bd9 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 20%);
    z-index: 0;
}

/* Map Container */
.map-container {
    height: 500px;
    background-image: url('https://images.unsplash.com/photo-1605000797499-95a51c5269ae?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Feature Cards Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    transition: all 0.3s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.feature-card .image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.feature-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Climate Risk Specific Styles */
.feature-card[data-feature="climate-risk"] .image-overlay {
    background: linear-gradient(to top, rgba(139,0,0,0.6) 0%, transparent 100%);
}

/* Mobile Menu Styles */
#mobile-menu {
    display: none;
}

#mobile-menu.block {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 40;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
    
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Team Profile Images */
#leadership .md\:w-1\/3 {
    height: 300px;
    min-height: 300px;
}

#technical-team .relative {
    height: 200px;
}

#leadership img,
#technical-team img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation */
nav {
    position: relative;
    z-index: 1000;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.cta-pulse {
    animation: pulse 2s infinite;
}

.cta-pulse:hover {
    animation: none;
}

/* Mission Section */
#mission .grid {
    max-width: 900px;
    margin: 0 auto;
}

#mission .rounded-xl {
    transition: all 0.3s ease;
}

#mission .rounded-xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* Solutions Section Background */
#solutions {
    background: linear-gradient(
        to bottom,
        rgba(187, 225, 250, 0.2) 0%,
        rgba(255, 255, 255, 1) 120px
    );
}

#solutions .dashboard-grid {
    position: relative;
    margin-top: -20px;
}

/* Utility Classes */
.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.border-opacity-20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Text Colors */
.text-blue-50 {
    color: rgba(239, 246, 255, 1);
}

.text-blue-100 {
    color: rgba(219, 234, 254, 1);
}

.text-blue-200 {
    color: rgba(191, 219, 254, 1);
}

.text-blue-300 {
    color: rgba(147, 197, 253, 1);
}

.text-blue-400 {
    color: rgba(96, 165, 250, 1);
}

.text-blue-500 {
    color: rgba(59, 130, 246, 1);
}

.text-blue-600 {
    color: rgba(37, 99, 235, 1);
}

.text-blue-700 {
    color: rgba(29, 78, 216, 1);
}

.text-blue-800 {
    color: rgba(30, 64, 175, 1);
}

.text-blue-900 {
    color: rgba(30, 58, 138, 1);
}

/* Background Colors */
.bg-blue-50 {
    background-color: rgba(239, 246, 255, 1);
}

.bg-blue-100 {
    background-color: rgba(219, 234, 254, 1);
}

.bg-blue-200 {
    background-color: rgba(191, 219, 254, 1);
}

.bg-blue-300 {
    background-color: rgba(147, 197, 253, 1);
}

.bg-blue-400 {
    background-color: rgba(96, 165, 250, 1);
}

.bg-blue-500 {
    background-color: rgba(59, 130, 246, 1);
}

.bg-blue-600 {
    background-color: rgba(37, 99, 235, 1);
}

.bg-blue-700 {
    background-color: rgba(29, 78, 216, 1);
}

.bg-blue-800 {
    background-color: rgba(30, 64, 175, 1);
}

.bg-blue-900 {
    background-color: rgba(30, 58, 138, 1);
}

/* Opacity Utilities */
.opacity-90 {
    opacity: 0.9;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-20 {
    opacity: 0.2;
}

/* new for icon */



@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }
    
    #mobile-menu-button {
        display: flex !important;
    }
    
    /* Add this to ensure the button is visible */
    .md\:flex {
        display: none;
    }
}


/* Add this to your styles.css file */

/* Hero Section Mobile Fixes */
@media (max-width: 768px) {
  .hero-gradient {
    padding-top: 6rem;
    padding-bottom: 6rem;
    min-height: 100vh; /* Ensure it takes full viewport height */
  }
  
  .globe-container {
    height: 300px !important;
    margin-top: 2rem;
  }
  
  #hero .md\:flex {
    flex-direction: column;
  }
  
  #hero .md\:w-1\/2 {
    width: 100%;
    padding: 0 1rem; /* Add some padding */
  }
  
  #hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  #hero p.text-xl {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-gradient::before {
    background: 
      radial-gradient(circle at 20% 10%, rgba(255,255,255,0.1) 0%, transparent 30%),
      radial-gradient(circle at 80% 90%, rgba(255,255,255,0.1) 0%, transparent 30%);
  }
  
  /* Fix button layout on mobile */
  #hero .flex-col.sm\:flex-row {
    flex-direction: column;
  }
  
  #hero .flex-col.sm\:flex-row .cta-pulse,
  #hero .flex-col.sm\:flex-row a {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Adjust the "Why Choose SpatioAI" box */
  #hero .bg-white.bg-opacity-10 {
    padding: 1.5rem;
  }
  
  /* Ensure text is readable on mobile */
  #hero .text-blue-100,
  #hero .text-blue-50,
  #hero .text-blue-200 {
    color: white !important;
  }
}