body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Performance optimizations */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Optimize image loading */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Reduce layout shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bg-navy { 
    background-color: #050b1a; 
}

.text-gaia-blue { 
    color: #034AFE; 
}

.bg-gaia-blue { 
    background-color: #034AFE; 
}

.border-gaia-blue { 
    border-color: #034AFE; 
}

.gradient-overlay {
    background: linear-gradient(to bottom, rgba(5, 11, 26, 0.8), rgba(5, 11, 26, 0.4));
}

/* Selection styles */
::selection {
    background-color: #dbeafe;
    color: #1e3a8a;
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-in {
    animation-duration: 300ms;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.fade-in {
    animation-name: fadeIn;
}

.zoom-in {
    animation-name: zoomIn;
}

.slide-in-from-top-4 {
    animation-name: slideInFromTop;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Icon placeholders - will be replaced with images */
.icon-globe,
.icon-menu,
.icon-arrow,
.icon-send,
.icon-database,
.icon-chart,
.icon-shield,
.icon-linkedin,
.icon-x {
    display: inline-block;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-out;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Backdrop blur support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Ensure modal is centered */
#contact-modal {
    display: none;
}

#contact-modal.flex {
    display: flex;
}

/* Fix for hero title highlighting */
#hero-title .highlight {
    color: #034AFE;
}

/* Hero title - ensure content fits in 2 lines by adjusting container width */
#hero-title {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    display: block;
    overflow: visible;
    line-height: 1.25;
}

/* Hero paragraph text style - only for Hero Section */
#hero-section .max-w-4xl p,
#hero-section .max-w-5xl p,
#hero-section .max-w-6xl p,
#hero-section .max-w-7xl p {
    font-family: Poppins, Poppins;
    font-weight: 400;
    font-size: 20px;
    color: rgba(255,255,255,0.6);
    line-height: 30px;
    text-align: center;
    font-style: normal;
    text-transform: none;
    overflow: visible;
    word-wrap: break-word;
    word-break: break-word;
}

/* Ensure proper z-index stacking */
nav {
    z-index: 50;
}

#contact-modal {
    z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }
}

/* Smooth hover effects */
.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:translate-y-\[-1px\]:hover {
    transform: translateY(-1px);
}

/* Active scale effect */
.active\:scale-95:active {
    transform: scale(0.95);
}

.active\:scale-\[0\.98\]:active {
    transform: scale(0.98);
}

/* Focus styles */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-blue-500:focus {
    border-color: #034AFE;
}

/* Disabled state */
.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

/* Partner card styles */
.partner-card {
    width: 213px;
    height: 86px;
    background: #FFFFFF;
    box-shadow: 0px 0px 10px 0px rgba(27, 33, 50, 0.06);
    border-radius: 8px;
    border: 1px dashed #E5E7EB;
}

/* Team carousel cards */
.team-card {
    width: calc((100% - 72px) / 4);
    min-width: 280px;
}

@media (max-width: 1024px) {
    .team-card {
        width: calc((100% - 24px) / 2);
        min-width: 280px;
    }
}

@media (max-width: 640px) {
    .team-card {
        width: 100%;
        min-width: 280px;
    }
}

/* Responsive partner cards */
@media (max-width: 1024px) {
    .partner-card {
        width: 100%;
        max-width: 213px;
    }
}

@media (max-width: 768px) {
    .partner-card {
        width: 100%;
        max-width: 180px;
        height: 75px;
    }
}

@media (max-width: 640px) {
    .partner-card {
        width: 100%;
        max-width: 150px;
        height: 70px;
    }
}

