/* Main Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

/* Prevent background scroll when mobile menu is open */
body.no-scroll {
    height: 100vh;
    overflow: hidden;
}

/* Navigation Styles */
.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00b3ff, #0080ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 179, 255, 0.5);
}

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

.nav-link:hover,
.nav-link.active {
    color: #0080ff;
    text-shadow: 0 0 5px rgba(0, 179, 255, 0.3);
}

/* Logo Container */
.logo-container {
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 179, 255, 0.1), transparent);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Input Styles */
.search-input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 179, 255, 0.3);
    color: #333;
}

.search-input:focus {
    border-color: #00b3ff;
    box-shadow: 0 0 0 3px rgba(0, 179, 255, 0.1), 0 10px 30px rgba(0, 179, 255, 0.2);
}

.search-input::placeholder {
    color: #999;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .text-6xl {
        font-size: 3rem !important;
    }
    
    /* Mobile Navigation - Evenly space the three icons */
    nav .container > div.flex {
        justify-content: space-between !important;
    }
    
    nav .flex.items-center.space-x-2.w-1\/4,
    nav .flex.items-center.gap-8.w-1\/4 {
        width: auto !important;
    }
    
    nav .flex.items-center.gap-8 {
        gap: 1.5rem !important;
    }
    
    .text-8xl {
        font-size: 4rem !important;
    }
    
    /* Mobile navigation fixes */
    nav .container .flex {
        gap: 8px;
    }
    
    nav .flex.items-center.gap-6 {
        gap: 24px !important;
        min-width: auto;
    }
    
    nav .flex.items-center.gap-8 {
        gap: 32px !important;
        min-width: auto;
    }
    
    /* Ensure buttons don't interfere with each other */
    #mobileMenuBtn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile menu improvements */
    #mobileMenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
}

/* Page Transitions */
.page-content {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 179, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00b3ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00b3ff, #0080ff);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0080ff, #0060ff);
}

/* Form Styles for Contact Page */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 179, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 10;
    cursor: text;
    box-sizing: border-box;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: #00b3ff;
    box-shadow: 
        0 0 0 3px rgba(0, 179, 255, 0.1),
        0 0 20px rgba(0, 179, 255, 0.2);
}

.form-input:hover {
    border-color: rgba(0, 179, 255, 0.4);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 179, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent, 
        rgba(0, 179, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

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

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-content {
    padding: 24px;
}

/* Team Cards */
.team-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 179, 255, 0.2);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 179, 255, 0.2),
        0 0 20px rgba(0, 179, 255, 0.1);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00b3ff, #0080ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 
        0 0 30px rgba(0, 179, 255, 0.4),
        inset 0 0 20px rgba(0, 179, 255, 0.2);
}

/* Service Cards */
.service-card {
    padding: 40px;
    background: linear-gradient(135deg, white, #f8fbff);
    border-radius: 16px;
    border: 1px solid rgba(0, 179, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00b3ff, #0080ff, #00b3ff);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #00b3ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.shadow-neon {
    box-shadow: 
        0 0 20px rgba(0, 179, 255, 0.3),
        0 0 40px rgba(0, 179, 255, 0.1);
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Social Icons */
.social-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0080ff;
    border: 2px solid rgba(0, 179, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 179, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon-link:hover .social-icon {
    transform: scale(1.2);
    border-color: #00b3ff;
    box-shadow: 
        0 10px 30px rgba(0, 179, 255, 0.3),
        0 0 20px rgba(0, 179, 255, 0.2);
}

.social-icon-link:hover .social-icon::before {
    opacity: 1;
}

.social-icon-link:hover {
    transform: translateY(-5px);
}

.social-icon svg {
    transition: all 0.3s ease;
}

.social-icon-link:hover svg {
    color: #00b3ff;
}

/* Coming Soon Icons */
.social-icon-link.opacity-50 .social-icon {
    background: linear-gradient(135deg, #f5f5f5, #e5e5e5);
    border-color: #ccc;
    color: #999;
}

.social-icon-link.opacity-50:hover .social-icon {
    transform: none;
    box-shadow: none;
}

/* Footer Social Icons */
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0080ff;
    border: 1px solid rgba(0, 179, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #00b3ff, #0080ff);
    color: white;
    box-shadow: 
        0 5px 15px rgba(0, 179, 255, 0.3),
        0 0 15px rgba(0, 179, 255, 0.2);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    z-index: 100;
}

.custom-select {
    position: relative;
    width: 100%;
    z-index: 100;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 179, 255, 0.2);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #333;
    position: relative;
    z-index: 150;
    pointer-events: auto;
    box-sizing: border-box;
    min-height: 48px;
    user-select: none;
}

/* Dark mode support for trigger */
.dark-mode .custom-select-trigger {
    background: rgba(20, 25, 30, 0.95);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 179, 255, 0.3);
}

.custom-select-trigger:hover {
    border-color: rgba(0, 179, 255, 0.6);
}

.custom-select.open .custom-select-trigger {
    border-color: #00b3ff;
    box-shadow: 
        0 0 0 3px rgba(0, 179, 255, 0.1),
        0 0 20px rgba(0, 179, 255, 0.2);
}

.custom-select-trigger svg {
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 20, 35, 0.98), rgba(15, 28, 45, 0.98));
    border: 1px solid rgba(0, 179, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 179, 255, 0.3),
        inset 0 1px 0 rgba(0, 179, 255, 0.2),
        inset 0 0 30px rgba(0, 179, 255, 0.08);
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 179, 255, 0.15);
    background: transparent;
    pointer-events: auto;
    z-index: 10000;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, #00b3ff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effect - glow on hover */
.custom-option:hover {
    background: rgba(0, 179, 255, 0.2);
    color: #00e1ff;
    box-shadow: 
        inset 0 0 30px rgba(0, 179, 255, 0.2),
        0 0 20px rgba(0, 179, 255, 0.3);
}

.custom-option:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px #00b3ff;
}

/* Selected state - just mark it, no extra glow */
.custom-option.selected {
    color: #00d9ff;
}

/* Circuit pattern effect */
.custom-options::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(0, 179, 255, 0.08) 50%, transparent 100%);
    pointer-events: none;
    animation: circuit-scan 4s linear infinite;
}

@keyframes circuit-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
