/* ========================================
   MeeM Technologies - Main Stylesheet
   ======================================== */

:root {
    --primary-dark: #0f172a;
    --primary-gold: #f59e0b;
    --primary-gold-dark: #d97706;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

/* Base */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #0f172a, #1e293b);
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Slider */
.hero-slider {
    min-height: 90vh;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Page Hero (for inner pages) */
.page-hero {
    min-height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 58, 95, 0.85));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.3);
}

.icon-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Letter Spacing */
.ls-2 {
    letter-spacing: 2px;
}

/* Form Focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}

/* Footer Links */
.hover-white:hover {
    color: white !important;
    transition: color 0.3s ease;
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.team-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
    transition: transform 0.3s ease;
}

.team-card:hover .team-img {
    transform: scale(1.1);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gold);
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-gold);
    border: 4px solid var(--primary-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* Image Hover Effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* Stat Counter Boxes */
.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-gold) !important;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Process Cards */
.process-card {
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(245, 158, 11, 0.25);
}

/* CTA Button Pulse */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-dark);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-gold), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social Icons Hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-gold) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    position: relative;
    overflow: hidden;
}

.map-section img {
    transition: transform 0.5s ease;
}

.map-section:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-slider {
        min-height: 70vh;
    }

    .page-hero {
        min-height: 40vh;
    }

    .display-2 {
        font-size: 2.5rem !important;
    }

    .display-5 {
        font-size: 1.75rem !important;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: scale(1) translateY(-8px);
    }
}

@media (max-width: 767.98px) {
    .hero-slider {
        min-height: 60vh;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
