/* Global Styles */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --orange-accent: #FFB020;
    --dark-orange: #f59e0b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --lighter-bg: #f1f5f9;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --border-color: #e2e8f0;
    --light-gray: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--gray-text);
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-text);
    font-weight: 700;
}

p {
    color: var(--gray-text);
}

/* Force body to have no grid pattern and no animation anywhere globally */
body { background: var(--white) !important; }
body::before, body::after { content: none !important; display: none !important; animation: none !important; background: none !important; background-image: none !important; }

/* Circuit grid background — applied only to .has-grid-bg (hero + footer), not animated */
.has-grid-bg {
    position: relative;
    overflow: hidden;
}

.has-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(37, 99, 235, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, rgba(37, 99, 235, 0.07) 48%, rgba(37, 99, 235, 0.07) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(37, 99, 235, 0.07) 48%, rgba(37, 99, 235, 0.07) 52%, transparent 52%);
    background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 0 0, 25px 25px;
    pointer-events: none;
    z-index: 0;
}

.has-grid-bg > * {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Gradient underline for section headers */
section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--orange-accent) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5), 0 2px 10px rgba(255, 176, 32, 0.3);
}

/* Center aligned headers */
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.section-padding {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

/* Services Section */
.service-card {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(19, 42, 74, 0.9));
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(135deg, #ff6600 0%, #FFAA00 50%, #FFB020 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    cursor: pointer;
    font-weight: 600;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 176, 32, 0.6);
    background: linear-gradient(135deg, #FFB020 0%, #FFAA00 50%, #ff6600 100%);
    color: white;
}

/* Modal */
.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.newsletter-modal.show {
    display: flex;
}

.modal-content {
    border-radius: 15px;
}

/* Navigation */
.brand-logo {
    height: 64px;
    width: auto;
    display: block;
}

.navbar {
    background: rgba(26, 41, 66, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand img {
    height: 45px;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 176, 32, 0.3);
}

.navbar-nav .nav-link {
    color: var(--orange-accent) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(19, 42, 74, 0.95)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.sphere-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #0B0F14;
}

.sphere-background canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero {
    background: #0a1628;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 176, 32, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.7), rgba(19, 42, 74, 0.6));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    color: #d1d5db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: slideIn 1s ease-out;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin: 20px 0 30px;
    font-weight: 300;
    animation: slideIn 1.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 3D Circuit Board Animation */
.circuit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    z-index: 1;
    overflow: hidden;
}

.circuit-board {
    position: absolute;
    width: 300%;
    height: 300%;
    left: -100%;
    top: -100%;
    transform: rotateX(60deg) rotateZ(0deg);
    transform-style: preserve-3d;
}

.circuit-board svg {
    width: 100%;
    height: 100%;
}

/* Circuit paths */
.circuit-path {
    fill: none;
    stroke: #2a3f66;
    stroke-width: 2;
    opacity: 0.6;
}

.circuit-path-thick {
    fill: none;
    stroke: #3a5577;
    stroke-width: 4;
    opacity: 0.5;
}

/* Animated glowing paths */
.glow-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.glow-blue {
    stroke: #2563eb;
    filter: drop-shadow(0 0 15px #2563eb) drop-shadow(0 0 30px #2563eb) drop-shadow(0 0 45px #2563eb);
    animation: flow-blue 3s ease-in-out infinite;
}

.glow-orange {
    stroke: #FFB020;
    filter: drop-shadow(0 0 15px #FFB020) drop-shadow(0 0 30px #FFB020) drop-shadow(0 0 45px #FFB020);
    animation: flow-orange 3.5s ease-in-out infinite;
}

/* Circuit nodes */
.circuit-node {
    opacity: 0.7;
    animation: node-blink 2s ease-in-out infinite;
}

.node-blue {
    fill: #2563eb;
    filter: drop-shadow(0 0 10px #2563eb) drop-shadow(0 0 20px #2563eb);
}

.node-orange {
    fill: #FFB020;
    filter: drop-shadow(0 0 10px #FFB020) drop-shadow(0 0 20px #FFB020);
}

/* Traveling particles */
.particle {
    fill: #fff;
    opacity: 0.9;
}

/* Circuit animations */
@keyframes flow-blue {
    0% {
        opacity: 0;
        stroke-width: 2;
        stroke-dashoffset: 1000;
    }

    25% {
        opacity: 1;
        stroke-width: 3;
    }

    50% {
        opacity: 0.8;
        stroke-width: 2.5;
        stroke-dashoffset: 0;
    }

    75% {
        opacity: 0.6;
        stroke-width: 2;
    }

    100% {
        opacity: 0;
        stroke-width: 2;
        stroke-dashoffset: -1000;
    }
}

@keyframes flow-orange {
    0% {
        opacity: 0;
        stroke-width: 2;
        stroke-dashoffset: 1000;
    }

    30% {
        opacity: 1;
        stroke-width: 3.5;
    }

    60% {
        opacity: 0.7;
        stroke-width: 3;
        stroke-dashoffset: 0;
    }

    100% {
        opacity: 0;
        stroke-width: 2;
        stroke-dashoffset: -1000;
    }
}

@keyframes node-blink {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Lead Generation Section */
.lead-gen {
    background: white;
}

.subscription-form .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.subscription-form .form-control {
    padding: 15px 30px;
}

/* Services Section */
.services {
    background: var(--white);
    position: relative;
}

.service-card {
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(255, 176, 32, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4), 0 0 30px rgba(255, 176, 32, 0.3);
    border-color: rgba(255, 176, 32, 0.5);
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card h5 {
    color: var(--orange-accent);
    margin: 15px 0 12px;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.custom-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4)) drop-shadow(0 0 15px rgba(255, 176, 32, 0.2));
}

.service-card:hover .custom-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.8)) drop-shadow(0 0 25px rgba(255, 176, 32, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: scale(1.1) rotate(5deg) translateY(0);
    }

    50% {
        transform: scale(1.1) rotate(5deg) translateY(-10px);
    }
}

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-section .lead {
    color: var(--primary-blue);
}

.about-section p {
    color: var(--gray-text);
}

.about-section h2 {
    color: var(--dark-text);
}

.accreditations-box {
    background: var(--white) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.accreditations-box h4 {
    color: var(--primary-blue);
}

.accreditations-box p {
    color: var(--gray-text);
}

/* Audience Section */
.audience {
    background: var(--white);
}

.audience h2 {
    color: var(--dark-text);
}

.audience h5 {
    color: var(--primary-blue);
}

.audience p {
    color: var(--gray-text);
}

.audience .custom-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.audience .custom-icon {
    h1, h2, h3, h4, h5, h6 {
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--gray-text);
    }
}

.counter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 20px 0 10px;
}

.counter {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.counter.counting {
    animation: pulse-counter 0.5s ease-in-out;
}

@keyframes pulse-counter {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Trusted By Section */
.trusted-by {
    background: var(--light-bg);
}

.trusted-by h2 {
    color: var(--dark-text);
}

.trusted-by .lead {
    color: var(--gray-text);
}

.client-logo-box {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-box:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.client-logo {
    max-width: 100%;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s ease;
}

.client-logo-box:hover .client-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
    padding: 60px 0;
}

.testimonials h2 {
    color: var(--dark-text);
}

.testimonials .container {
    max-width: 800px;
}

.testimonials .carousel-inner {
    min-height: 350px;
}

.testimonials .carousel-item {
    min-height: 350px;
}

.testimonial-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
    filter: invert(1) brightness(0.3);
    width: 3rem;
    height: 3rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 10%;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

#testimonialCarousel .carousel-inner {
    padding: 0 80px;
}

@media (max-width: 768px) {
    #testimonialCarousel .carousel-inner {
        padding: 0 20px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
}

.carousel-indicators {
    margin-bottom: -40px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 176, 32, 0.5);
    border: 2px solid rgba(255, 176, 32, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--orange-accent);
    border-color: var(--orange-accent);
    transform: scale(1.2);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.testimonial-card {
    background: rgba(19, 42, 74, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.2);
    margin: 20px 0;
    min-height: 300px;
}

.testimonial-card p {
    color: var(--light-gray);
}

.testimonial-card h6 {
    color: var(--orange-accent);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: #007bff;
}

/* Latest Updates Section */
.latest-updates {
    background: var(--light-bg);
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    min-height: 200px;
    max-height: 250px;
    background: #1a2942;
    display: block;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.news-content h5 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-content p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--orange-accent);
}

.event-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.event-date-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 5px;
}

.event-details {
    flex: 1;
}

.event-details h5 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-details p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.event-description {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* News & Events Page Styles */
.news-article-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-article-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #1a2942;
}

.article-content {
    padding: 30px;
}

.article-content h4 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content ul {
    color: var(--gray-text);
    margin: 15px 0;
}

.event-full-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.event-full-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.event-date-badge-large {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.event-date-badge-large .event-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date-badge-large .event-day {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
}

.event-date-badge-large .event-year {
    font-size: 1rem;
    font-weight: 500;
}

.event-full-content h4 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.event-full-content p {
    color: var(--gray-text);
    margin-bottom: 10px;
}

.event-full-content ul {
    color: var(--gray-text);
}

.sidebar-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-card h5 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.past-event-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.past-event-item:last-child {
    border-bottom: none;
}

.past-event-item h6 {
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: var(--light-bg) !important;
}

.contact-section h2 {
    color: var(--dark-text);
}

.service-card {
    background: var(--primary-blue);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--primary-blue);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
    border-color: var(--secondary-blue);
    background: var(--secondary-blue);
}

.service-card h5 {
    color: var(--white);
    margin: 20px 0 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-blue);
}

.contact-info-card h5 {
    color: var(--primary-blue);
}

.contact-info-card p {
    color: var(--gray-text);
}

.contact-info-card a {
    color: var(--gray-text);
    text-decoration: none;
}

.contact-info-card a:hover {
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(19, 42, 74, 0.95));
    color: white;
    padding: 60px 0 30px;
    border-top: 2px solid rgba(255, 176, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(37, 99, 235, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, rgba(37, 99, 235, 0.07) 48%, rgba(37, 99, 235, 0.07) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(37, 99, 235, 0.07) 48%, rgba(37, 99, 235, 0.07) 52%, transparent 52%);
    background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 0 0, 25px 25px;
    pointer-events: none;
    z-index: 0;
}

.footer > .container {
    position: relative;
    z-index: 1;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item i {
    color: var(--orange-accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer h4 {
    color: var(--orange-accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer a:hover {
    color: var(--orange-accent);
}

.footer ul {
    padding-left: 0;
}

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

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--orange-accent);
    margin-top: 3px;
}

/* Back to Top Button — fixed circle */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 !important;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50% !important;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .service-card {
        margin-bottom: 30px;
    }
    
    /* Add spacing between service boxes on mobile */
    #services .row .col-md-6 {
        margin-bottom: 25px;
    }

    .counter {
        font-size: 2rem;
    }

    .circuit-board {
        transform: rotateX(70deg) rotateZ(0deg);
    }

    .brand-logo {
        height: 48px;
    }
    
    /* Mobile menu background overlay */
    .navbar-collapse {
        background: rgba(10, 22, 40, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(37, 99, 235, 0.3);
    }
    
    .navbar-collapse .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse .nav-link:last-child {
        border-bottom: none;
    }
}