/* ==================== GLOBAL STYLES ==================== */
:root {
    --primary: #ff6b00;
    --primary-dark: #e55d00;
    --primary-light: #ff8c33;
    --accent: #ffab40;
    --navy: #0b1930;
    --navy-light: #122244;
    --dark: #0b1930;
    --light: #f7f9fc;
    --text: #2d3748;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
#mainNavbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

#mainNavbar.scrolled {
    background: var(--navy) !important;
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

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

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

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== HERO SLIDER ==================== */
.hero-slide {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(11, 25, 48, 0.92) 0%, rgba(11, 25, 48, 0.75) 50%, rgba(255, 107, 0, 0.15) 100%);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 0, 0.25);
    border-radius: 50%;
    opacity: 0.8;
    margin: 0 20px;
    backdrop-filter: blur(4px);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary);
    opacity: 1;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ==================== SECTION PADDING ==================== */
.section-padding {
    padding: 80px 0;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: var(--navy);
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.08);
}

.page-header-overlay {
    padding: 40px 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== SERVICE CARDS ==================== */
.service-card {
    border-radius: 12px;
    transition: all 0.4s ease;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(11, 25, 48, 0.12) !important;
    border-bottom-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: var(--primary);
    transform: rotateY(180deg);
}

.service-card:hover .service-icon i {
    color: #fff;
}

/* Service detail icons on services page */
.service-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ==================== WHY CHOOSE US CARDS ==================== */
.why-card {
    border-radius: 12px;
    transition: all 0.4s ease;
    background: #fff;
    border: 1px solid var(--border);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(11, 25, 48, 0.1) !important;
    border-color: var(--primary);
}

.why-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.why-icon i {
    font-size: 1.6rem;
    color: var(--primary);
}

.why-card:hover .why-icon {
    background: var(--primary);
}

.why-card:hover .why-icon i {
    color: #fff;
}

/* ==================== COUNTER SECTION ==================== */
.counter-section {
    background: url('../images/home/banner2.jpg') center/cover no-repeat fixed;
    position: relative;
}

.counter-overlay {
    background: rgba(11, 25, 48, 0.93);
    padding: 80px 0;
}

.counter-item h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.counter-item i {
    display: block;
    color: var(--accent) !important;
}

.counter-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== TESTIMONIAL CARDS ==================== */
.testimonial-card {
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 25, 48, 0.08) !important;
}

.testimonial-avatar i {
    font-size: 2.8rem;
    color: var(--navy);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: var(--navy);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.06);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.05);
}

/* ==================== MISSION CARDS ==================== */
.mission-card {
    border-radius: 12px;
    transition: all 0.4s ease;
    border-left: 4px solid var(--primary) !important;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 25, 48, 0.08) !important;
}

.mission-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ==================== APPROACH ICON ==================== */
.approach-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.approach-icon i {
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
}

/* ==================== CONTACT PAGE ==================== */
.contact-info-card {
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(11, 25, 48, 0.1) !important;
    border-color: var(--primary);
}

.contact-card-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.contact-card-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.form-control,
.form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.15);
}

/* ==================== FOOTER ==================== */
.footer-section {
    background: var(--navy);
    padding: 60px 0 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--navy);
    color: var(--primary);
    transform: translateY(-5px);
}

/* ==================== BOOTSTRAP OVERRIDES ==================== */
.text-warning {
    color: var(--primary) !important;
}

.bg-warning {
    background: var(--primary) !important;
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== BUTTON STYLES ==================== */
.btn-warning {
    background: var(--primary);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.btn-warning:active,
.btn-warning:focus {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline-light {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* Dark variant button for white sections */
.btn-dark-navy {
    background: var(--navy);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-dark-navy:hover {
    background: var(--navy-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 25, 48, 0.2);
}

/* ==================== SVG ELECTRIC ANIMATIONS ==================== */

/* --- Brand bolt in navbar --- */
.brand-bolt {
    vertical-align: middle;
    margin-right: 4px;
    animation: boltPulse 2s ease-in-out infinite;
}

@keyframes boltPulse {
    0%, 100% { filter: url(#brandGlow) drop-shadow(0 0 4px #ff6b00); transform: scale(1); }
    50% { filter: url(#brandGlow) drop-shadow(0 0 12px #ffab40); transform: scale(1.12); }
}

/* --- Hero floating lightning bolts --- */
.hero-svg-decorations {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.svg-lightning {
    position: absolute;
    opacity: 0;
}

.svg-lightning-1 {
    width: 50px;
    top: 10%;
    right: 12%;
    animation: lightningFlash 4s ease-in-out 1s infinite;
}

.svg-lightning-2 {
    width: 35px;
    bottom: 20%;
    right: 25%;
    animation: lightningFlash 5s ease-in-out 2.5s infinite;
}

@keyframes lightningFlash {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    5% { opacity: 0.9; transform: translateY(-5px) scale(1.05); }
    10% { opacity: 0; }
    12% { opacity: 0.7; transform: translateY(-2px) scale(1.02); }
    18% { opacity: 0; }
    20% { opacity: 0.5; }
    25% { opacity: 0; transform: translateY(0) scale(1); }
}

/* --- Hero electric spark particles --- */
.svg-spark {
    position: absolute;
    width: 20px;
    height: 20px;
}

.svg-spark-1 {
    top: 15%; left: 8%;
    animation: sparkFloat 6s ease-in-out infinite, sparkPulse 2s ease-in-out infinite;
}
.svg-spark-2 {
    top: 60%; right: 8%;
    animation: sparkFloat 7s ease-in-out 1s infinite, sparkPulse 2.5s ease-in-out 0.5s infinite;
}
.svg-spark-3 {
    top: 30%; right: 18%;
    animation: sparkFloat 5s ease-in-out 2s infinite, sparkPulse 3s ease-in-out 1s infinite;
}
.svg-spark-4 {
    bottom: 25%; left: 15%;
    animation: sparkFloat 8s ease-in-out 0.5s infinite, sparkPulse 2s ease-in-out infinite;
}
.svg-spark-5 {
    top: 45%; left: 5%;
    animation: sparkFloat 6.5s ease-in-out 3s infinite, sparkPulse 1.8s ease-in-out infinite;
}

@keyframes sparkFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-8px); }
    75% { transform: translateY(-25px) translateX(5px); }
}

@keyframes sparkPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* --- Hero circuit trace lines --- */
.svg-circuit {
    position: absolute;
}

.svg-circuit-1 {
    width: 300px;
    bottom: 30%;
    left: 3%;
    transform: rotate(-5deg);
    animation: circuitDash 3s linear infinite;
}

.svg-circuit-2 {
    width: 250px;
    top: 25%;
    right: 5%;
    transform: rotate(8deg);
    animation: circuitDash 4s linear infinite reverse;
}

@keyframes circuitDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 40; }
}

/* --- Electric pulse wave divider --- */
.electric-divider {
    position: relative;
    height: 60px;
    background: #fff;
    overflow: hidden;
}

.bg-light + .electric-divider,
.electric-divider + .bg-light {
    background: var(--light);
}

.electric-divider svg {
    width: 100%;
    height: 60px;
    display: block;
}

.pulse-line-1 {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: pulseDraw 3s ease-in-out infinite;
}

.pulse-line-2 {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: pulseDraw 3s ease-in-out 1.5s infinite;
}

@keyframes pulseDraw {
    0% { stroke-dashoffset: 1200; opacity: 0; }
    40% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.pulse-dot {
    opacity: 0;
}

.pulse-dot-1 {
    animation: dotGlow 3s ease-in-out 0.6s infinite;
}
.pulse-dot-2 {
    animation: dotGlow 3s ease-in-out 1.2s infinite;
}
.pulse-dot-3 {
    animation: dotGlow 3s ease-in-out 1.8s infinite;
}

@keyframes dotGlow {
    0%, 100% { opacity: 0; r: 3; }
    50% { opacity: 1; r: 6; }
}

/* --- Counter section circuit board background --- */
.counter-section {
    position: relative;
}

.circuit-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.counter-overlay {
    position: relative;
    z-index: 1;
}

.circuit-trace {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

.ct-1 { animation: traceDraw 6s linear infinite; }
.ct-2 { animation: traceDraw 8s linear 1s infinite; }
.ct-3 { animation: traceDraw 7s linear 2s infinite; }
.ct-4 { animation: traceDraw 5s linear 0.5s infinite; }
.ct-5 { animation: traceDraw 6s linear 1.5s infinite; }
.ct-6 { animation: traceDraw 7s linear 0.8s infinite; }

@keyframes traceDraw {
    0% { stroke-dashoffset: 800; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -800; }
}

.circuit-node {
    opacity: 0;
}

.cn-1, .cn-3, .cn-7, .cn-9 { animation: nodeGlow 3s ease-in-out infinite; }
.cn-2, .cn-4, .cn-6, .cn-8 { animation: nodeGlow 3s ease-in-out 1.5s infinite; }
.cn-5 { animation: nodeGlow 2s ease-in-out 0.5s infinite; }

@keyframes nodeGlow {
    0%, 100% { opacity: 0; transform-origin: center; }
    50% { opacity: 1; }
}

.current-dot {
    opacity: 0.8;
    filter: drop-shadow(0 0 6px #ff6b00);
}

/* --- CTA section decorative bolts --- */
.cta-bolt {
    position: absolute;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.cta-bolt-left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    animation: ctaBoltFlicker 4s ease-in-out infinite;
}

.cta-bolt-right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    animation: ctaBoltFlicker 4s ease-in-out 2s infinite;
}

@keyframes ctaBoltFlicker {
    0%, 100% { opacity: 0.3; }
    25% { opacity: 0.8; }
    30% { opacity: 0.2; }
    35% { opacity: 0.7; }
    40% { opacity: 0.1; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

.cta-ring {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.cta-ring-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 15%;
    animation: ringRotate 12s linear infinite, ringPulse 4s ease-in-out infinite;
}

.cta-ring-2 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    right: 12%;
    animation: ringRotate 10s linear infinite reverse, ringPulse 3.5s ease-in-out 1s infinite;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* --- Service card hover effect --- */
.service-card {
    position: relative;
    z-index: 0;
    border-top: 3px solid transparent;
    background: #fff;
}

.service-card:hover {
    border-top-color: var(--primary);
}

/* --- Why card electric arc on hover --- */
.why-card {
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.05), transparent);
    transition: none;
}

.why-card:hover::after {
    animation: electricSweep 0.8s ease forwards;
}

@keyframes electricSweep {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-slide {
        min-height: 500px;
    }

    #mainNavbar {
        background: var(--navy) !important;
        padding: 10px 0;
    }

    .navbar-collapse {
        padding: 15px 0;
    }

    .section-padding {
        padding: 60px 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .hero-svg-decorations { display: none; }
    .cta-bolt, .cta-ring { display: none; }
    .circuit-bg { display: none; }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-slide {
        min-height: 450px;
    }

    .counter-item h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}
