/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

/* Button Styles */
.btn-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-gradient-1:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-gradient-1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-gradient-1:hover::before {
    width: 300px;
    height: 300px;
}

.btn-gradient-1:active {
    transform: translateY(0) scale(0.98);
}

/* Animation Delays */
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }

/* Navigation */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-underline {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #1d4ed8;
    transition: width 0.3s ease;
}

.nav-underline.active {
    width: 100%;
}

/* Hero Section */
#home {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Animated Hero Text */
.hero-text-animated {
    animation: heroTextFloat 3s ease-in-out infinite;
}

.hero-text-animated span {
    display: inline-block;
    animation: heroTextGlow 2s ease-in-out infinite;
}

@keyframes heroTextFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes heroTextGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
        transform: scale(1.02);
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #60a5fa 0%, 
        #a78bfa 10%, 
        #f472b6 20%, 
        #fbbf24 30%, 
        #34d399 40%, 
        #22d3ee 50%, 
        #60a5fa 60%, 
        #a78bfa 70%, 
        #f472b6 80%, 
        #fbbf24 90%, 
        #34d399 100%
    );
    background-size: 600% 600%;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
}

/* Additional flowing overlay for more color movement */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(96, 165, 250, 0.3) 0%, 
        rgba(167, 139, 250, 0.3) 20%, 
        rgba(244, 114, 182, 0.3) 40%, 
        rgba(251, 191, 36, 0.3) 60%, 
        rgba(52, 211, 153, 0.3) 80%, 
        rgba(34, 211, 238, 0.3) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite reverse;
    z-index: 1;
}

/* Animated color waves */
.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(96, 165, 250, 0.4) 0%, 
        transparent 50%
    );
    animation: colorWave 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes colorWave {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -50px) rotate(90deg); }
    50% { transform: translate(0, -100px) rotate(180deg); }
    75% { transform: translate(-100px, -50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Bubbles */
.bubble {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #60a5fa, #a78bfa, #f472b6, #fbbf24, #34d399, #22d3ee);
    border-radius: 50%;
    opacity: 0.7;
    animation: bubbleFloat 8s infinite linear;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 600;
    color: #1e40af;
}

.stat-label {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.25rem;
}

/* Live Status Card */
.live-status-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    position: relative;
    border: 1px solid #e5e7eb;
    max-width: 28rem;
    margin-left: auto;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.live-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Floating Status Bubble */
.floating-bubble {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    width: 12rem;
    z-index: 20;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .live-status-card {
        margin: 2rem auto 0;
    }
    
    .floating-bubble {
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(219, 234, 254, 0.8) 50%, rgba(219, 234, 254, 0.9) 100%);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Logo container */
.logo-container {
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.3);
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Buttons */
button,
a[role="button"] {
    transition: all 0.3s ease;
}

button:hover,
a[role="button"]:hover {
    transform: translateY(-1px);
}

button:active,
a[role="button"]:active {
    transform: translateY(1px);
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px; /* Adjust based on your content */
    transition: max-height 0.5s ease-in;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Utility classes */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Back to top button */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


.policy-pill {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 1rem;
  border-radius: 9999px;
  font-weight: 500;
  color: #1e3a8a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6),
              0 8px 20px rgba(59,130,246,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.policy-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59,130,246,0.25);
}


/* Beliefs & Values hover effects */
.value-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

.value-icon {
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.15) rotate(6deg);
  background-color: #bfdbfe;
}
