@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body > footer {
    margin-top: auto;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10B981;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(to right, #10B981, #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #000627 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1f2937, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Scroll Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Intersection Observer Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-left.animated {
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(50px);
}

.slide-in-right.animated {
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
}

.fade-in.animated {
    opacity: 1;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding-top: 5rem;
    overflow-y: auto;
    display: block;
}

.mobile-menu.open {
    max-height: 100vh;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in, visibility 0.3s ease-in;
}

.mobile-menu nav a {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: block;
    cursor: pointer;
}

.mobile-menu nav a:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

/* Ensure mobile menu button is clickable */
#mobile-menu-btn {
    cursor: pointer !important;
    z-index: 10000 !important;
    position: relative;
    background: transparent;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.3);
    touch-action: manipulation;
    user-select: none;
    pointer-events: auto !important;
}

#mobile-menu-btn:hover {
    opacity: 0.8;
}

#mobile-menu-btn:focus {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

#mobile-menu-btn:active {
    transform: scale(0.95);
    opacity: 0.7;
}

/* Ensure search button is clickable */
#hero-search-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.3);
    touch-action: manipulation;
    user-select: none;
}

#hero-search-btn:active {
    transform: scale(0.95);
}

/* Team Card Responsive Styles */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.team-card img {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .team-card {
        padding: 1.25rem;
        margin: 0 auto;
    }
    
    .team-card img {
        width: 7rem;
        height: 7rem;
    }
    
    .mobile-menu {
        padding-top: 5rem;
    }
    
    /* Improve touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing on mobile */
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .team-card img {
        width: 6rem;
        height: 6rem;
    }
    
    .team-card h3 {
        font-size: 1.125rem;
    }
    
    .team-card p {
        font-size: 0.875rem;
    }
}

/* Glass Panel Styles */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.5rem;
    backdrop-filter: blur(16px);
}

/* Footer Form Styles */
.footer-form input,
.footer-form select,
.footer-form textarea {
    width: 100%;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.85rem 1rem;
    color: #e2e8f0;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

.footer-form button {
    width: 100%;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    background: linear-gradient(120deg, #00ff99, #00c3ff);
    color: #020617;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 153, 0.3);
}

.eyebrow {
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #38bdf8;
}

/* Footer Responsive Styles */
footer {
    overflow-x: hidden;
}

footer .grid {
    gap: 2rem;
}

@media (max-width: 1024px) {
    footer .grid {
        gap: 3rem;
    }
    
    footer .glass-panel {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    
    footer .grid {
        gap: 2rem;
    }
    
    footer .grid.grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer .grid.grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    footer .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    footer .footer-form {
        padding: 1.5rem;
    }
    
    footer .footer-form input,
    footer .footer-form select,
    footer .footer-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    footer .logo-text {
        font-size: 1.5rem;
    }
    
    footer .text-2xl {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    footer {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }
    
    footer .grid {
        gap: 1.5rem;
    }
    
    footer .footer-form {
        padding: 1.25rem;
    }
    
    footer .text-3xl {
        font-size: 1.5rem;
    }
    
    footer .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Blog Page Responsive Styles */
#blogModal {
    padding: 1rem;
}

#blogModal .bg-white {
    max-height: 90vh;
}

@media (max-width: 768px) {
    .blog-card {
        padding: 1rem;
    }
    
    .blog-card img {
        height: 12rem;
    }
    
    #blogModal {
        padding: 0.5rem;
    }
    
    #blogModal .bg-white {
        max-height: 95vh;
        padding: 1rem;
    }
    
    #blogModal h2 {
        font-size: 1.5rem;
    }
    
    .blog-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-buttons button,
    .blog-buttons a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .blog-card h3 {
        font-size: 1.125rem;
    }
    
    .blog-card p {
        font-size: 0.875rem;
    }
    
    .blog-featured {
        flex-direction: column;
    }
    
    .blog-featured img {
        order: -1;
    }
    
    #blogModal .bg-white {
        padding: 0.75rem;
    }
    
    #blogModal h2 {
        font-size: 1.25rem;
    }
}

/* Logo Styles */
.logo-text {
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-text .text-white {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text .text-emerald-400 {
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #10B981, #059669);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
