:root {
    --bg-color: #05070a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-color: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --secondary-color: #3a4454;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 5px 0;
    background: rgba(5, 7, 10, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.logo img:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links a.active::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 5px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('hero.png');
    /* Updated to local path */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%),
        linear-gradient(to bottom, rgba(5, 7, 10, 0.5), var(--bg-color));
}

/* Hero Section Animations */
.hero-scanners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 15px var(--primary-color);
    animation: scan 6s linear infinite;
    opacity: 0.3;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.live-indicator {
    position: absolute;
    top: 120px;
    left: 40px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: #ff4b2b;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4b2b;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.floating-icons .security-icon {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.15;
    font-size: 3rem;
    animation: float 10s ease-in-out infinite;
}

.icon-1 { top: 20%; left: 5%; animation-delay: 0s; }
.icon-2 { top: 60%; right: 10%; animation-delay: 2s; }
.icon-3 { bottom: 15%; left: 15%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(15deg); }
    66% { transform: translate(-10px, 20px) rotate(-10deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 5px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* Services */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About */
.about {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.features-list i {
    color: var(--primary-color);
}

.image-wrapper {
    height: 400px;
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background-image: url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 60px;
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-items {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

.full-width {
    width: 100%;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.stars {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.quote {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.client-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Location & Map Section */
.location {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-color), rgba(0, 0, 0, 0.4));
}

.map-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    background: var(--card-bg);
    transition: var(--transition);
}

.map-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 40px var(--primary-glow);
}

.map-card iframe {
    width: 100%;
    height: 450px;
    display: block;
    filter: grayscale(1) brightness(0.8) contrast(1.2) invert(0.9) hue-rotate(180deg); /* Dark-themed map look */
    transition: all 0.5s ease;
}

.map-card:hover iframe {
    filter: grayscale(0) brightness(1) contrast(1) invert(0) hue-rotate(0deg); /* Realistic map on hover */
}

/* Footer Improvements */
footer {
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-about .logo img {
    height: 80px; /* Sizing the footer logo appropriately */
    margin-bottom: 15px;
}

.footer-about p {
    color: var(--text-muted);
    max-width: 400px;
}

.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border); /* Re-adding top border */
    padding-top: 20px;
    margin-bottom: 20px;
}

.developer-credit {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.developer-credit .spark {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

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

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Mobile optimization */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1001;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: var(--transition);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .logo img {
        height: 60px; /* Smaller logo for mobile clarity */
    }

    /* Mobile Menu Implementation */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: #fff;
        border-radius: 5px;
        transition: var(--transition);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%;
        height: 100vh;
        background: rgba(5, 7, 10, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--primary-color);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--primary-color);
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
    }
}