:root {
    --bg-dark: #050a12;
    --bg-card: #0c1220;
    --bg-card-hover: #0f1824;
    --accent: #22d3ee;
    --accent-dim: #0891b2;
    --accent-glow: rgba(34, 211, 238, 0.25);
    --text-muted: #94a3b8;
    --border-subtle: rgba(30, 58, 95, 0.5);
}

* { scroll-behavior: smooth; box-sizing: border-box; }
body {
    font-family: 'Outfit', sans-serif; color: #e2e8f0; overflow-x: hidden; -webkit-text-size-adjust: 100%;
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.7) 0%, rgba(5, 10, 18, 0.85) 100%),
                url('../images/Wah-Cantt.jpg') center/cover no-repeat fixed;
    background-color: var(--bg-dark);
}

/* Subtle grid background */
body::before {
    content: ''; position: fixed; inset: 0;
    background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.08), transparent),
                      linear-gradient(rgba(15, 23, 42, 0.5) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15, 23, 42, 0.5) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none; z-index: 0;
}

/* Navbar */
.navbar {
    background: rgba(5, 10, 18, 0.85) !important;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 0; border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(5, 10, 18, 0.95) !important; }
.navbar-brand {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem;
    color: white !important; display: flex; align-items: center; gap: 12px;
    letter-spacing: -0.02em; text-decoration: none;
}
.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.navbar-brand .brand-name { font-size: 1.1rem; font-weight: 700; color: white; }
.navbar-brand .brand-tagline { font-size: 0.6rem; font-weight: 500; color: var(--accent); letter-spacing: 0.03em; margin-top: 2px; line-height: 1.2; }
.navbar-brand svg { transition: transform 0.3s ease; flex-shrink: 0; }
.navbar-brand:hover svg { transform: rotate(15deg); }
.navbar-nav .nav-link {
    color: var(--text-muted) !important; font-weight: 500; padding: 0.5rem 1rem !important;
    border-radius: 8px; transition: all 0.25s ease;
}
.navbar-nav .nav-link:hover { color: var(--accent) !important; background: rgba(34, 211, 238, 0.08); }
.whatsapp-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 0.5rem 1rem;
    background: rgba(37, 211, 102, 0.15); border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 50px; color: #25d366 !important; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: all 0.25s ease;
}
.whatsapp-link:hover { background: rgba(37, 211, 102, 0.25); color: #25d366 !important; transform: scale(1.02); }
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: white; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6); color: white; }

/* Hero Carousel */
.hero-carousel { height: 92vh; overflow: hidden; position: relative; }
.hero-carousel .carousel-item {
    height: 92vh; background-size: cover; background-position: center;
}
.hero-carousel .carousel-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.35) 0%, rgba(5, 10, 18, 0.6) 40%, rgba(5, 10, 18, 0.9) 100%);
}
.hero-indicators {
    z-index: 3; bottom: 2rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.hero-indicators button {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: none;
    margin: 0 6px; transition: all 0.3s ease;
}
.hero-indicators button.active {
    background: var(--accent); width: 28px; border-radius: 5px;
    box-shadow: 0 0 12px var(--accent-glow);
}
.hero-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; max-width: 920px; width: calc(100% - 2rem);
    padding: 2rem 2.5rem; z-index: 2;
    background: rgba(5, 10, 18, 0.25); backdrop-filter: blur(12px);
    border-radius: 24px; border: 1px solid rgba(34, 211, 238, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.hero-badge {
    display: inline-block; padding: 0.45rem 1.1rem; background: rgba(34, 211, 238, 0.2);
    border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}
.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: fadeInUp 0.8s ease 0.1s both;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.hero-content p {
    color: #94a3b8; font-size: 1.15rem; margin-top: 1.5rem; line-height: 1.7;
    max-width: 600px; margin-left: auto; margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.btn-cta {
    padding: 1rem 2.25rem; font-weight: 600; font-size: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    color: #0b1220; border: none; border-radius: 50px;
    box-shadow: 0 4px 24px var(--accent-glow);
    transition: all 0.3s ease; animation: fadeInUp 0.8s ease 0.3s both;
}
.btn-cta:hover {
    transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow);
    background: linear-gradient(135deg, #67e8f9 0%, var(--accent) 100%);
    color: #0b1220;
}
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-cta.loading { cursor: not-allowed; opacity: 0.85; }
.btn-cta.loading:hover { transform: none; }
.btn-cta .spinner { animation: spin 0.8s linear infinite; }
@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact-serve-note {
    padding-top: 1rem; border-top: 1px solid var(--border-subtle);
}
.contact-serve-note p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* About section */
.about-section {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.about-section::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.75) 0%, rgba(5, 10, 18, 0.85) 100%),
                url('../images/Wah-Cantt.jpg') center/cover no-repeat;
    background-attachment: fixed;
}
.about-section .container { position: relative; z-index: 1; }
.about-tagline {
    font-size: 1.15rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em;
    margin-bottom: 0.5rem; display: block;
}
.about-intro p {
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.25rem;
}
.about-intro-highlight {
    font-weight: 600; color: #e2e8f0 !important; font-style: italic;
    border-left: 3px solid var(--accent); padding-left: 1rem; margin-top: 1.5rem !important;
}
.about-block {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.6) 100%);
    padding: 1.75rem; border-radius: 16px; border: 1px solid var(--border-subtle);
    height: 100%; transition: all 0.3s ease;
}
.about-block:hover { border-color: rgba(34, 211, 238, 0.4); }
.about-block h3 {
    font-family: 'Space Grotesk', sans-serif; color: var(--accent); font-size: 1.2rem;
    font-weight: 600; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.about-block p {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.75rem;
}
.about-block p:last-child { margin-bottom: 0; }
.about-values-title {
    font-family: 'Space Grotesk', sans-serif; color: #f1f5f9; font-size: 1.35rem;
    font-weight: 600; margin-bottom: 1.5rem; text-align: center; width: 100%;
}
.about-value-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.6) 100%);
    padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border-subtle);
    height: 100%; transition: all 0.3s ease;
}
.about-value-card:hover { border-color: rgba(34, 211, 238, 0.4); }
.about-value-card h4 {
    font-family: 'Space Grotesk', sans-serif; color: var(--accent); font-size: 1.1rem;
    font-weight: 600; margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.about-value-card .value-ar { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.about-value-card p {
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin: 0;
}
.about-stat-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.6) 100%);
    padding: 2rem; border-radius: 20px; border: 1px solid var(--border-subtle);
    text-align: center; transition: all 0.3s ease;
}
.about-stat-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.about-stat-number {
    display: block; font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem;
    font-weight: 700; color: var(--accent); margin-bottom: 0.5rem;
}
.about-stat-label {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.5;
}

/* Section headers */
.section-label {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.75rem; display: block;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700; letter-spacing: -0.02em; color: #f1f5f9;
}

/* Cards */
.product-card, .service-card {
    background: var(--bg-card); padding: 2rem; border-radius: 20px;
    border: 1px solid var(--border-subtle); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%; position: relative; overflow: hidden;
}
.product-card::before, .service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover, .service-card:hover {
    transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4);
    background: var(--bg-card-hover); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.product-card:hover::before, .service-card:hover::before { opacity: 1; }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(34, 211, 238, 0.12); color: var(--accent); margin-bottom: 1.25rem;
    font-size: 1.4rem;
}
.product-card-img {
    width: 100%; height: 160px; object-fit: cover; border-radius: 12px;
    margin-bottom: 1.25rem; border: 1px solid var(--border-subtle);
}
.product-card h3, .service-card h3 {
    font-family: 'Space Grotesk', sans-serif; color: #f1f5f9; font-size: 1.2rem;
    font-weight: 600; margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.product-card p, .service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Services section - parallax */
.services-section {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.services-section::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.75) 0%, rgba(5, 10, 18, 0.85) 100%),
                url('../images/Wah-Cantt.jpg') center/cover no-repeat;
    background-attachment: fixed;
}
.services-section .container { position: relative; z-index: 1; }

/* Products section - parallax */
.products-section {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.products-section::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.75) 0%, rgba(5, 10, 18, 0.85) 100%),
                url('../images/Wah-Cantt.jpg') center/cover no-repeat;
    background-attachment: fixed;
}
.products-section .container { position: relative; z-index: 1; }

/* Contact */
.contact-box {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(15, 23, 42, 0.6) 100%);
    padding: 2.5rem; border-radius: 24px; height: 100%;
    border: 1px solid var(--border-subtle); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.contact-section-title {
    font-family: 'Space Grotesk', sans-serif; color: #f1f5f9; font-size: 1.25rem;
    font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.01em;
}
.contact-address-box .contact-info-icon {
    width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: rgba(34, 211, 238, 0.12); font-size: 1.5rem; margin-bottom: 1rem;
}
.contact-address-text {
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin: 0;
}
.contact-box input, .contact-box textarea {
    background: rgba(15, 23, 42, 0.8) !important; border: 1px solid var(--border-subtle) !important;
    color: white !important; padding: 1rem 1.25rem !important; border-radius: 12px !important;
    transition: all 0.25s ease;
}
.contact-box input:focus, .contact-box textarea:focus {
    border-color: rgba(34, 211, 238, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1) !important;
    outline: none !important;
}
.contact-box input::placeholder, .contact-box textarea::placeholder { color: #64748b; }
.contact-box .alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #4ade80; }
.contact-box .alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }

/* Footer */
footer {
    text-align: center; padding: 2.5rem 1.5rem; background: #030712;
    color: var(--text-muted); font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
}
footer .brand { color: var(--accent); font-weight: 600; }

/* Carousel controls */
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next {
    width: 50px; height: 50px; top: 50%; transform: translateY(-50%);
    background: rgba(34, 211, 238, 0.15); border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.3); opacity: 0.8;
    transition: all 0.3s ease;
}
.hero-carousel .carousel-control-prev { left: 24px; }
.hero-carousel .carousel-control-next { right: 24px; }
.hero-carousel .carousel-control-prev:hover, .hero-carousel .carousel-control-next:hover {
    background: rgba(34, 211, 238, 0.25); opacity: 1; transform: translateY(-50%) scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(20px); }
.fade-in.visible { animation: fadeInUp 0.6s ease forwards; }

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-carousel, .hero-carousel .carousel-item {
        height: 85vh;
        height: min(85vh, 100dvh);
        min-height: 480px;
    }
    .hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next {
        width: 40px; height: 40px;
    }
    .hero-carousel .carousel-control-prev { left: 12px; }
    .hero-carousel .carousel-control-next { right: 12px; }
    .hero-indicators { bottom: 1rem; }
    .hero-content {
        padding: 1.25rem 1.25rem;
        width: calc(100% - 1.5rem);
        max-width: none;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.65rem;
        line-height: 1.3;
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem);
        line-height: 1.25;
    }
    .hero-content p {
        font-size: 0.9rem;
        margin-top: 1rem;
        line-height: 1.6;
    }
    .btn-cta { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
    .navbar-brand .brand-name { font-size: 0.95rem; }
    .navbar-brand .brand-tagline { font-size: 0.55rem; }
    .navbar-brand svg { width: 32px; height: 32px; }
    .contact-box { padding: 1.5rem; margin: 0 0.5rem; }
    .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .product-card, .service-card { padding: 1.5rem; }
    .product-card-img { height: 140px; }
    .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    footer { padding: 1.5rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 576px) {
    .navbar .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .navbar-nav .nav-item.ms-2 { margin-left: 0 !important; margin-top: 0.5rem; }
    .hero-carousel, .hero-carousel .carousel-item {
        height: 80vh;
        height: min(80vh, 100dvh);
        min-height: 420px;
    }
    .hero-content {
        padding: 1rem 1rem;
        width: calc(100% - 1rem);
    }
    .hero-content h1 { font-size: 1.25rem; line-height: 1.3; }
    .hero-content p { font-size: 0.85rem; }
    .hero-badge { font-size: 0.6rem; padding: 0.3rem 0.5rem; }
    .hero-indicators { bottom: 0.75rem; }
    .section-title { font-size: 1.4rem; }
}

/* Extra small screens - prevent carousel controls from overlapping content */
@media (max-width: 400px) {
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 36px; height: 36px;
    }
    .hero-carousel .carousel-control-prev { left: 8px; }
    .hero-carousel .carousel-control-next { right: 8px; }
}
