/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --secondary: #38BDF8;
    --dark: #071028;
    --dark-blue: #0F172A;
    --slate: #1E293B;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.6), 0 0 60px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(37, 99, 235, 0.9), 0 0 100px rgba(37, 99, 235, 0.5);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* Navbar Blur Effect */
.navbar-blur {
    backdrop-filter: blur(10px);
    background-color: rgba(7, 16, 40, 0.9);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Testimonial Slider */
.testimonial-slider {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top.active {
    display: flex;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

/* Loading Animation */
.loading {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Multiple Elements */
.loading:nth-child(1) { transition-delay: 0.1s; }
.loading:nth-child(2) { transition-delay: 0.2s; }
.loading:nth-child(3) { transition-delay: 0.3s; }
.loading:nth-child(4) { transition-delay: 0.4s; }
.loading:nth-child(5) { transition-delay: 0.5s; }
.loading:nth-child(6) { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Hero Background Pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
}

/* Service Card Icon Glow */
.service-icon {
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    filter: drop-shadow(0 0 30px rgba(37, 99, 235, 1)) 
            drop-shadow(0 0 60px rgba(56, 189, 248, 0.8));
    transform: scale(1.2) rotate(5deg);
}

/* Form Focus Effect */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Smooth Transitions */
a, button, .card, .btn {
    transition: all 0.3s ease;
}

/* Neon Glow Text */
.neon-text {
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.8),
                 0 0 40px rgba(56, 189, 248, 0.6),
                 0 0 60px rgba(56, 189, 248, 0.4),
                 0 0 80px rgba(37, 99, 235, 0.3);
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.8),
                     0 0 40px rgba(56, 189, 248, 0.6),
                     0 0 60px rgba(56, 189, 248, 0.4),
                     0 0 80px rgba(37, 99, 235, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(56, 189, 248, 1),
                     0 0 60px rgba(56, 189, 248, 0.8),
                     0 0 90px rgba(56, 189, 248, 0.6),
                     0 0 120px rgba(37, 99, 235, 0.5);
    }
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Premium Enhancements */

/* Glassmorphism Enhanced */
.backdrop-blur-xl {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Enhanced Card Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Premium Gradient Borders */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(56, 189, 248, 0.1));
    border: 1px solid transparent;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Enhanced Button Hover */
button, a.btn, .btn {
    position: relative;
    overflow: hidden;
}

button::after, a.btn::after, .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::after, a.btn:hover::after, .btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Premium Text Selection */
::selection {
    background-color: rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

/* Enhanced Focus States */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Premium Hover Scale */
.hover-scale {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Enhanced Mobile Menu */
@media (max-width: 1024px) {
    .mobile-menu {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Premium Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Premium FAQ Animation */
.faq-answer {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Service Cards */
.service-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-style: preserve-3d;
}

/* Premium Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* Enhanced Navbar Scroll Effect */
.navbar-blur {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(7, 16, 40, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Responsive Typography */
@media (max-width: 640px) {
    h1, h2 {
        line-height: 1.2;
    }
}

/* Enhanced Back to Top Button */
.back-to-top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Premium Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Footer Links */
footer a {
    position: relative;
    display: inline-block;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #2563EB, #38BDF8);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Premium Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}
