/* ═══════════════════════════════════════════════════════════════
   MODERN SLICK DESIGN - SecureVision Pro
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --secondary: #1a1a2e;
    --accent: #00d4ff;
    --success: #00d084;
    --warning: #ff6b35;
    --light: #f5f7fa;
    --lighter: #ffffff;
    --dark: #2d3436;
    --gray: #636e72;
    --gray-light: #b2bec3;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --topbar-height: 44px;
    --navbar-height: 64px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px;
    background: transparent;
}

/* Desktop view: limit width */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Mobile view: ensure images fit properly */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    .nav-bar {
        padding: 0 20px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.85rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .service-card h3 { font-size: 1rem; }
    .service-card p { font-size: 0.8rem; }
    .project-card h4 { font-size: 0.9rem; }
    .project-card p { font-size: 0.8rem; }
    .mobile-container img,
    .mobile-hero img {
        width: 100%;
        height: auto;
        max-height: 200px; /* Limit height to fit better */
        object-fit: contain;
    }
}

/* Info Bar */
.info-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.top-bar {
    top: 0;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Mobile Top Bar Styles */
@media (max-width: 768px) {
    .mobile-top-bar {
        padding: 0 15px;
        height: 35px;
        font-size: 0.9rem;
    }

    .mobile-top-bar .contact-info span {
        font-size: 0.8rem;
    }

    .mobile-top-bar .cta-btn {
        padding: 2px 10px;
        font-size: 0.8rem;
        background: #000;
    }
}

.nav-bar {
    position: relative;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    width: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(10,10,10,0.95) 50%, rgba(0,0,0,0.95) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.nav-bar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-bar .logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00f5ff, #007bff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
    transition: all 0.3s ease;
}

.nav-bar .logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.7);
}

.nav-bar .logo i {
    font-size: 18px;
    color: #fff;
}

.nav-bar .brand-text {
    display: flex;
    flex-direction: column;
}

.nav-bar .brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.nav-bar .brand-tagline {
    font-size: 11px;
    opacity: 0.7;
    color: #fff;
}

.nav-bar .nav-links {
    display: flex;
    gap: 24px;
}

.nav-bar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.nav-bar .nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #00f5ff;
    transition: width 0.3s;
}

.nav-bar .nav-links a:hover {
    opacity: 1;
}

.nav-bar .nav-links a:hover::after {
    width: 100%;
}

.nav-bar .search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 18px;
}

.nav-bar .search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 140px;
    font-size: 13px;
}

.nav-bar .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-bar .search-box i {
    font-size: 13px;
    opacity: 0.7;
    color: #00f5ff;
}

.brand h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: white;
}

.brand-name {
    font-size: 22px;
    color: white;
}

.brand-tagline {
    font-size: 0.85rem;
    font-weight: 300;
    color: white;
}

.search-bar input {
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    width: 200px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.contact-cta .btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Top contact bar (above the main navbar) */
.topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background: linear-gradient(90deg, rgba(0,102,255,0.08), rgba(0,212,255,0.06));
    align-items: center;
    color: var(--dark);
    font-size: 0.95rem;
    z-index: 1200;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.topbar .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.topbar-left .company {
    font-weight: 700;
    color: var(--primary);
}

.topbar-center {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.topbar .contact-item { display: inline-flex; gap: 8px; align-items: center; }

.topbar-right .contact-email { color: var(--dark); text-decoration: none; font-weight:600; }

.topbar a.contact-email i { margin-right: 6px; }

/* Navigation */
.navbar {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    position: relative;
    width: 100%;
    top: auto;
    left: 0;
    z-index: auto;
    border-bottom: none;
    padding: 14px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 40px;
    max-width: none;
    width: 100%;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.6rem;
    color: var(--primary);
}

/* Brand styling */
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 3px;
    font-weight: 500;
}

.contact-cta {
    margin-left: 12px;
}

/* nav toggle (mobile) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

/* Service card details and buttons */
.service-details ul {
    margin: 8px 0 12px 18px;
    color: var(--gray);
    line-height: 1.45;
}

.service-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.service-btn span { font-weight: 800; }

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .service-btn { position: absolute; bottom: 40px; left: 20px; right: 20px; z-index: 10; justify-content: center; padding: 10px 14px; margin-top: 100px; }
    .service-card { overflow: visible; min-height: 500px; }
    .service-image { height: 250px; }
}

.nav-toggle.open {
    transform: rotate(90deg);
}

/* nav-right arranges menu and CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ensure nav layout keeps CTA visible */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
}

/* Hero Section with Slider */
.hero-slider {
    margin-top: 0;
    padding-top: calc(var(--topbar-height) + var(--navbar-height) + 12px);
    height: 65vh;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    box-shadow: none;
    background: var(--secondary);
}

.slides-container {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

/* background image element for slides */
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 700px;
    animation: slideIn 0.8s ease forwards;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.slide-content .btn-primary {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
}

.slide-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    width: 32px;
    border-radius: 10px;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 50%, #ff006e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.2);
    font-style: italic;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.6), 0 0 30px rgba(255, 0, 110, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: #0066ff;
    border: 2px solid #0066ff;
    padding: 10px 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 255, 0.15));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    color: #ff006e;
    border-color: #ff006e;
}

.services {
    position: relative;
    padding: 120px 20px;
    background: radial-gradient(circle at top, #0f172a, #020617);
    overflow: hidden;
    color: #e5e7eb;
}

/* Animated background glow */
.services-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99,102,241,0.25), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(14,165,233,0.25), transparent 40%);
    filter: blur(80px);
    z-index: 0;
}

.services-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
    z-index: 1;
}

/* Header */
.services-header {
    text-align: center;
    margin-bottom: 80px;
    margin-top: -20px;
}

.services-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(99,102,241,0.15);
    color: #a5b4fc;
    margin-bottom: 16px;
}

.services-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(90deg, #c7d2fe, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-header p {
    max-width: 600px;
    margin: 16px auto 0;
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Team frames above services */
.team-frames {
    display: flex;
    justify-content: center;
    gap: 44px;
    margin-top: 64px;
    margin-bottom: 44px;
    flex-wrap: nowrap;
}
.team-frame {
    width: clamp(180px, 24vw, 340px);
    height: clamp(180px, 24vw, 340px);
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(14,165,233,0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 2px solid rgba(255,255,255,0.04);
    position: relative;
}
.team-frame::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 28%, rgba(99,102,241,0.28), transparent 36%), radial-gradient(circle at 72% 72%, rgba(14,165,233,0.26), transparent 36%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}
.team-frame img {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 8px solid rgba(255,255,255,0.95);
    box-shadow: 0 20px 60px rgba(14,165,233,0.18), 0 12px 36px rgba(99,102,241,0.16);
    position: relative;
    z-index: 1;
} 
.team-frame:hover {
    transform: translateY(-12px) scale(1.06);
    box-shadow: 0 40px 90px rgba(14,165,233,0.22);
}

/* Responsive fallback for narrow screens */
@media (max-width: 768px) {
    .team-frames {flex-wrap: wrap; gap: 20px;}
    .team-frame {width: clamp(120px, 28vw, 220px); height: clamp(120px, 28vw, 220px);}
    .team-frame::before {inset: -10px; filter: blur(10px);}
    .team-frame img {width: calc(100% - 18px); height: calc(100% - 18px); border-width: 6px}
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Card */
.service-card {
    position: relative;
    padding: 24px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-image {
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, transparent, rgba(99,102,241,0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}


/* Text */
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Link */
/* Removed service-link styles (buttons removed) */

/* CTA Section */
.services-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    animation: ctaFadeIn 1s ease-out 0.5s both;
}

@keyframes ctaFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(14,165,233,0.1));
    z-index: -1;
}

.services-cta h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #c7d2fe, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.services-cta p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta .btn-primary {
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
}

.services-cta .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px rgba(99,102,241,0.6);
    background: linear-gradient(135deg, #4f46e5, #0284c7);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title.meet-team {
    margin-top: 28px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 50%, #ff006e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    font-style: italic;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(0, 102, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5)); }
}

.section-title p {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--light);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.project-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="400" height="400" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.project-info {
    padding: 24px;
}

.project-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.project-info p {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 28px;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    display: grid;
    gap: 16px;
}

.about-text li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-weight: 500;
    color: var(--dark);
}

.about-text i {
    color: var(--success);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-image {
    position: relative;
}

.about-image .project-card {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.about-image i {
    font-size: 5rem;
    margin-bottom: 16px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure the about section image displays at the right size */
.about-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: block;
}


/* About videos */
.about-videos{
    margin-top:36px;
    display:flex;
    justify-content:center;
}
.video-grid{
    display:flex;
    gap:28px;
    justify-content:center;
    align-items:flex-start;
    width:100%;
    max-width:1200px;
}
.video-item{
    flex:1;
    max-width:420px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    aspect-ratio:16/9;
    min-height:220px;
    overflow:hidden;
}
.video-item video{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:14px;
    border:6px solid rgba(255,255,255,0.95);
    box-shadow:0 18px 50px rgba(14,165,233,0.12),0 10px 30px rgba(99,102,241,0.08);
    display:block;
    cursor:pointer;
}
.video-item video:focus{outline:2px solid rgba(0,212,255,0.12);outline-offset:6px} 
@media (max-width:768px){
    .video-item{aspect-ratio:16/9;min-height:180px}
    .video-item video{object-position:center}
}
@media (max-width:768px){
    .video-grid{flex-direction:column;gap:18px}
    .video-item{max-width:100%}
}

/* Video slider styles */
.video-slider{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:36px}
.video-track-wrapper{overflow:hidden;width:100%;max-width:1200px}
.video-track{display:flex;gap:28px;transition:transform .6s cubic-bezier(.22,.98,.38,.99);will-change:transform;padding-bottom:8px}
.video-item{flex:0 0 auto;width:clamp(280px,32%,420px);display:flex;align-items:stretch}
.slider-arrow{background:linear-gradient(135deg,#1e40af);border:none;color:white;width:56px;height:56px;border-radius:999px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(14,165,233,0.18);transition:transform .25s ease,box-shadow .25s ease;border:1px solid rgba(255,255,255,0.12)}
.slider-arrow i{font-size:18px;color:white}
.slider-arrow:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(30,64,175,0.28)}
.slider-arrow[disabled]{opacity:.35;cursor:default;transform:none;pointer-events:none}

/* Play overlay */
.video-item{position:relative}
    .play-overlay{display:none !important}

@media (max-width:768px){
    .video-slider{gap:12px}
    .slider-arrow{width:44px;height:44px}
    .play-overlay{width:64px;height:64px}
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

/* Animated background for non-home pages (applied via `body.animated-bg`) */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(0,102,255,0.08), rgba(0,212,255,0.06) 25%, rgba(255,0,110,0.04) 60%, rgba(255,255,255,0));
    background-size: 300% 300%;
    filter: blur(18px) saturate(120%);
    animation: bgGradientShift 12s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.95;
}

@keyframes bgGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Starlink hero — subtle star/particle parallax using radial gradients */
.starlink-hero {
    position: relative;
    padding: 120px 0 80px;
    color: white;
    background: radial-gradient(1200px 600px at 10% 20%, rgba(0,212,255,0.06), transparent 6%),
                radial-gradient(900px 400px at 90% 80%, rgba(255,0,110,0.04), transparent 6%),
                linear-gradient(180deg, rgba(4,12,30,0.9), rgba(6,10,20,0.95));
    overflow: hidden;
}

.starlink-hero::after {
    content: '';
    position: absolute;
    inset: -20%;
    background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.02) 0%, transparent 20%),
                      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.018) 0%, transparent 18%);
    background-size: 200% 200%;
    animation: starfieldDrift 18s linear infinite;
    opacity: 0.9;
    pointer-events: none;
}

@keyframes starfieldDrift {
    0% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-6%, 4%, 0) scale(1.02); }
    100% { transform: translate3d(0,0,0) scale(1); }
}

/* Provide a small fallback for reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animated-bg::before,
    .starlink-hero::after {
        animation: none !important;
        transition: none !important;
    }
}

.footer-section p {
    color: #b2bec3;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    color: #b2bec3;
    font-size: 0.95rem;
}

.footer-section a {
    color: #b2bec3;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
    text-align: center;
    font-size: 0.85rem;
}

/* Starlink Special Section */
.starlink-hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('/static/images/starlink-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.starlink-hero h1 {
    margin-bottom: 20px;
}

.starlink-hero p {
    margin-bottom: 40px;
}

.starlink-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    color: white;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-item h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Hero Banner Section */
.hero-banner {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/Hero-BannerImages/imageTopBar3.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes backgroundSlides {
    0% { background-image: url('../images/Hero-BannerImages/imageTopBar6.jpg'); }
    16.67% { background-image: url('../images/Hero-BannerImages/imageTopBar6.jpg'); }
    16.68% { background-image: url('../images/Hero-BannerImages/imageTopBar7.jpg'); }
    33.33% { background-image: url('../images/Hero-BannerImages/imageTopBar7.jpg'); }
    33.34% { background-image: url('../images/Hero-BannerImages/imageTopBar3.jpg'); }
    50% { background-image: url('../images/Hero-BannerImages/imageTopBar3.jpg'); }
    50.01% { background-image: url('../images/Hero-BannerImages/imageTopBar2.jpg'); }
    66.67% { background-image: url('../images/Hero-BannerImages/imageTopBar2.jpg'); }
    66.68% { background-image: url('../images/Hero-BannerImages/imageTopBar1.jpg'); }
    83.33% { background-image: url('../images/Hero-BannerImages/imageTopBar1.jpg'); }
    83.34% { background-image: url('../images/Hero-BannerImages/imageTopBar.jpg'); }
    100% { background-image: url('../images/Hero-BannerImages/imageTopBar.jpg'); }
}

.hero-banner.mobile-hero {
    animation: none;
    background-image: url('../images/Hero-BannerImages/imageTopBar3.jpg');
    background-size: contain;
}

@keyframes backgroundSlidesMobile {
    0% { background-image: url('../images/Hero-BannerImages/imageTopBar6.webp'); }
    16.67% { background-image: url('../images/Hero-BannerImages/imageTopBar6.webp'); }
    16.68% { background-image: url('../images/Hero-BannerImages/imageTopBar7.webp'); }
    33.33% { background-image: url('../images/Hero-BannerImages/imageTopBar7.webp'); }
    33.34% { background-image: url('../images/Hero-BannerImages/imageTopBar3.webp'); }
    50% { background-image: url('../images/Hero-BannerImages/imageTopBar3.webp'); }
    50.01% { background-image: url('../images/Hero-BannerImages/imageTopBar2.webp'); }
    66.67% { background-image: url('../images/Hero-BannerImages/imageTopBar2.webp'); }
    66.68% { background-image: url('../images/Hero-BannerImages/imageTopBar1.webp'); }
    83.33% { background-image: url('../images/Hero-BannerImages/imageTopBar1.webp'); }
    83.34% { background-image: url('../images/Hero-BannerImages/imageTopBar.webp'); }
    100% { background-image: url('../images/Hero-BannerImages/imageTopBar.webp'); }
}

.hero-banner.mobile-hero {
    display: none;
}

@media (max-width: 768px) {
    .hero-banner.mobile-hero {
        display: flex;
    }
    .hero-banner.desktop-hero {
        display: none;
    }
}

.hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}



.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 50%, #ff006e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 102, 255, 0.8)); }
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 60px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    color: #ffffff;
    font-style: italic;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Boxes */
.hero-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin-top: -20px;
    opacity: 70%;
}

.hero-service-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    color: var(--dark);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: boxSlideIn 0.8s ease-out both;
}

.hero-service-box:nth-child(1) { animation-delay: 0.1s; }
.hero-service-box:nth-child(2) { animation-delay: 0.3s; }
.hero-service-box:nth-child(3) { animation-delay: 0.5s; }

@keyframes boxSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* .hero-service-box:hover {
    transform: translateY(-12px) scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.3);
    background: rgba(255, 255, 255, 0.99);
    border-color: #0066ff;
} */

.hero-service-box:hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: shine 0.6s ease-out;
}

@keyframes shine {
    to {
        top: -200%;
        left: -200%;
    }
}

.hero-service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: block;
    transition: all 0.5s ease;
    animation: iconBounce 0.6s ease-out both;
}

.hero-service-box:nth-child(1) .hero-service-icon { animation-delay: 0.2s; }
.hero-service-box:nth-child(2) .hero-service-icon { animation-delay: 0.4s; }
.hero-service-box:nth-child(3) .hero-service-icon { animation-delay: 0.6s; }

@keyframes iconBounce {
    0% { transform: scale(0) rotateZ(-180deg); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1) rotateZ(0); }
}

.hero-service-box:hover .hero-service-icon {
    transform: scale(1.2) rotateZ(10deg);
    color: #ff006e;
}

.hero-service-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-service-box:hover h3 {
    background: linear-gradient(135deg, #ff006e 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-service-box p {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.6;
    font-style: italic;
    transition: all 0.3s ease;
}

.hero-service-box:hover p {
    color: var(--secondary);
}

/* Ensure navbar inside hero-banner stays transparent */
.hero-banner .navbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hero-banner .navbar .container {
    background: transparent !important;
}

/* Container visibility for hero-banner */
.desktop-container {
    display: block;
}

.mobile-container {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 600px;
    }

    .hero-services {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
        max-width: 90%;
    }

    .hero-service-box {
        padding: 35px 25px;
    }

    .hero-service-icon {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 40px;
        --navbar-height: 56px;
    }

    .container {
        padding: 0 24px;
    }

    .navbar .container {
        padding: 0 24px;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .nav-right.open {
        display: flex;
    }

    /* on smaller screens keep the topbar compact and hide center phone list */
    .topbar { height: var(--topbar-height); }
    .topbar-center { display: none; }

    .nav-menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .contact-cta {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
    }

    .slide-content h2 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .hero-slider {
        height: 50vh;
        padding-top: 60px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .slide-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .slide-nav.prev {
        left: 16px;
    }

    .slide-nav.next {
        right: 16px;
    }

    .services,
    .projects,
    .about,
    .contact {
        padding: 60px 0;
        margin-top: 20px;
    }

    /* Mobile navigation fixes */
    .nav-bar {
        position: sticky;
        top: 0;
        z-index: 1001;
        height: auto;
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .nav-bar .nav-links {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .nav-bar .nav-links a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .nav-bar .search-box {
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }

    .nav-bar .search-box input {
        width: 200px;
    }

    /* Container visibility for mobile */
    .desktop-container {
        display: none;
    }

    .mobile-container {
        display: block;
    }

    /* Hero banner mobile adjustments */
    .hero-banner {
        height: 70vh;
        min-height: 500px;
    }

    .hero-banner.desktop-hero {
        display: none;
    }

    .hero-banner.mobile-hero {
        display: block;
    }

    .hero-content {
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
        max-width: 90%;
    }

    .hero-services {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 90%;
        opacity: 0.8;
    }

    .hero-service-box {
        padding: 30px 20px;
    }

    .hero-service-box h3 {
        font-size: 1.4rem;
    }

    .hero-service-box p {
        font-size: 0.95rem;
    }

    .hero-service-icon {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    /* Mobile container specific adjustments */
    .mobile-container .hero-title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .mobile-container .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .mobile-container .hero-services {
        gap: 18px;
    }

    .mobile-container .hero-service-box {
        padding: 25px 15px;
    }

    .mobile-container .hero-service-box h3 {
        font-size: 1.3rem;
    }

    .mobile-container .hero-service-box p {
        font-size: 0.9rem;
    }

    .mobile-container .hero-service-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    /* Increase service image size in mobile view */
    .mobile-container .service-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand-tagline {
        display: none;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 24px 16px;
    }

    /* Extra small screen navigation */
    .nav-bar {
        padding: 8px 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-bar .brand {
        align-self: center;
        margin-bottom: 10px;
    }

    .nav-bar .brand-name {
        font-size: 16px;
    }

    .nav-bar .nav-links {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-bar .nav-links a {
        font-size: 11px;
        padding: 5px 8px;
    }

    .nav-bar .search-box {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .nav-bar .search-box input {
        width: 180px;
        font-size: 12px;
    }

    /* Hero adjustments for very small screens */
    .mobile-container .hero-banner {
        height: 60vh;
        min-height: 400px;
    }

    .mobile-container .hero-content {
        padding: 30px 10px;
    }

    .mobile-container .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .mobile-container .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
        max-width: 95%;
    }

    .mobile-container .hero-services {
        gap: 15px;
        max-width: 95%;
        opacity: 0.9;
    }

    .mobile-container .hero-service-box {
        padding: 20px 15px;
    }

    .mobile-container .hero-service-box h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .mobile-container .hero-service-box p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .mobile-container .hero-service-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated background used on all pages except the home page */
.animated-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(0,102,255,0.06), rgba(255,0,110,0.04), rgba(0,212,255,0.03));
    background-size: 300% 300%;
    animation: bgGradient 12s ease infinite;
    pointer-events: none;
    filter: blur(20px) saturate(120%);
    opacity: 0.95;
}

.animated-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.04) 0, transparent 10%),
                      radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0, transparent 12%),
                      radial-gradient(circle at 50% 50%, rgba(0,0,0,0.02) 0, transparent 30%);
    background-repeat: repeat;
    animation: bgMove 25s linear infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.6;
}

@keyframes bgGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bgMove {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6%) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* Grid overlay & particle background (used on non-home pages when injected) */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,212,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
    opacity: 1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.5;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, -100px) scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
    .grid-overlay,
    .particle { animation: none !important; }
}

/* Top Bar Visibility */
.desktop-top-bar {
    display: flex;
}

.mobile-top-bar {
    display: none;
}

@media (max-width: 768px) {
    .desktop-top-bar {
        display: none;
    }

    .mobile-top-bar {
        display: flex;
    }
}

/* Container Visibility */
.desktop-container {
    display: block;
}

.mobile-container {
    display: none;
}

.desktop-top-bar {
    display: flex !important;
}

.mobile-top-bar {
    display: none !important;
}

.desktop-nav-bar {
    display: flex !important;
}

.mobile-nav-bar {
    margin-bottom: 90px;
    display: none !important;
    flex-direction: column;
    align-items: center;
    
}

.mobile-nav-bar .brand {
    text-align: center;
    margin-bottom: 15px;
}

.mobile-nav-bar .nav-links {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.mobile-nav-bar .search-box {
    order: 3;
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .desktop-container {
        display: none;
    }

    .mobile-container {
        display: block;
    }

    .desktop-top-bar {
        display: none !important;
    }

    .mobile-top-bar {
        display: flex !important;
    }

    .desktop-nav-bar {
        display: none !important;
    }

    .mobile-nav-bar {
        display: flex !important;
    }

    /* Location map mobile styles */
    .location-map {
        margin-top: 30px !important;
    }

    .location-map iframe {
        height: 300px !important;
        border-radius: 8px !important;
    }

    .location-map h3 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    /* Modern Footer Styles */
    .footer {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
        color: white !important;
        padding: 60px 0 20px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .footer .footer-bg-pattern {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        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="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') !important;
        opacity: 0.5 !important;
    }

    .footer .footer-section {
        background: rgba(255,255,255,0.05) !important;
        border-radius: 15px !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    .footer .footer-section:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2) !important;
    }

    .footer .social-links a {
        transition: all 0.3s ease !important;
    }

    .footer .social-links a:hover {
        transform: scale(1.1) !important;
        background: rgba(0, 212, 255, 0.3) !important;
    }

    .footer a {
        transition: color 0.3s ease !important;
    }

    .footer a:hover {
        color: #00d4ff !important;
    }

    .footer .copyright {
        background: rgba(255,255,255,0.05) !important;
        border-radius: 10px !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        padding: 20px !important;
        margin-top: 40px !important;
    }
}
