/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--background-light); /* Added a light background variable */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables - Refined Palette */
:root {
    --primary-blue: #0A1931; /* Darker, more professional blue */
    --secondary-blue: #0D335D; /* Slightly lighter for accents */
    --accent-teal: #00ADB5; /* Vibrant teal for highlights and CTAs */
    --light-gray: #EEEEEE;
    --dark-gray: #393E46; /* Deeper gray for text */
    --white: #ffffff;
    --text-dark: #222831; /* Very dark gray for main text */
    --text-light: #555555; /* Lighter gray for secondary text */
    --background-light: #F9F9F9; /* Off-white for general backgrounds */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Stronger, more elegant font for headings */
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 {
    font-size: 3.5rem; /* Slightly larger */
    font-weight: 600;
    line-height: 1.1;
}

h2 {
    font-size: 2.8rem; /* Slightly larger */
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 49, 0.95); /* Using primary-blue with transparency */
    backdrop-filter: blur(8px); /* Slightly less blur */
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow */
}

.navbar {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h2 {
    color: var(--white);
    font-size: 2.2rem; /* Slightly larger */
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem; /* Increased gap */
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-teal);
    transform: translateY(-2px);
}

.nav-menu a::after { /* Underline effect */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 28px; /* Slightly larger */
    height: 3px;
    background: var(--white);
    margin: 4px 0; /* Increased margin */
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--background-light) 100%); /* Softer gradient */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* Increased gap */
    align-items: center;
}

.hero-content h1 {
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    transform: translateY(20px);
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-teal);
    margin-bottom: 2.5rem;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
}

.hero-tagline {
    color: var(--secondary-blue);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    transform: translateY(20px);
    opacity: 0;
}

.cta-button {
    background: var(--accent-teal);
    color: var(--white);
    padding: 1.1rem 2.5rem; /* Larger padding */
    border: none;
    border-radius: 8px; /* More rounded */
    font-size: 1.2rem; /* Larger font */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    opacity: 0;
}

.cta-button:hover {
    background: var(--primary-blue);
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 450px; /* Slightly larger */
    display: flex;
    align-items: center;
    justify-content: center;
}

.connectivity-animation {
    position: relative;
    width: 350px; /* Larger */
    height: 350px; /* Larger */
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 15px rgba(0,173,181,0.5); /* Glowing effect */
    animation: pulse 2.5s ease-in-out infinite; /* Slower pulse */
}

.circle-1 {
    width: 70px; /* Larger */
    height: 70px;
    top: 60px;
    left: 60px;
    animation-delay: 0s;
}

.circle-2 {
    width: 90px; /* Larger */
    height: 90px;
    top: 180px;
    right: 60px;
    animation-delay: 0.7s; /* Adjusted delay */
}

.circle-3 {
    width: 80px; /* Larger */
    height: 80px;
    bottom: 60px;
    left: 120px;
    animation-delay: 1.4s; /* Adjusted delay */
}

.line {
    position: absolute;
    background: var(--secondary-blue); /* Deeper blue for lines */
    height: 3px; /* Thicker lines */
    transform-origin: center; /* Changed origin for better animation */
    animation: drawLine 3.5s ease-in-out infinite; /* Slower animation */
    opacity: 0.7;
}

.line-1 {
    top: 95px;
    left: 100px;
    width: 120px; /* Longer */
    transform: rotate(45deg);
    animation-delay: 0.3s;
}

.line-2 {
    top: 210px;
    right: 130px;
    width: 100px; /* Longer */
    transform: rotate(-45deg);
    animation-delay: 1s;
}

.line-3 {
    bottom: 90px;
    left: 180px;
    width: 80px; /* Longer */
    transform: rotate(90deg);
    animation-delay: 1.7s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes drawLine {
    0% { transform: scaleX(0) rotate(var(--rotation, 0deg)); opacity: 0; }
    30% { transform: scaleX(1) rotate(var(--rotation, 0deg)); opacity: 1; }
    70% { transform: scaleX(1) rotate(var(--rotation, 0deg)); opacity: 1; }
    100% { transform: scaleX(0) rotate(var(--rotation, 0deg)); opacity: 0; }
}

/* Services Section */
.services {
    padding: 6rem 0; /* More padding */
    background: var(--background-light);
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 4rem; /* More margin */
    font-size: 3rem; /* Larger */
    position: relative;
}

.section-title::after { /* Underline for section titles */
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent-teal);
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

.service-card {
    background: var(--white);
    border-radius: 12px; /* More rounded */
    padding: 2.5rem; /* More padding */
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Softer, larger shadow */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease; /* Easing function for smoother transition */
    border: 1px solid var(--light-gray); /* Subtle border */
}

.service-card:hover {
    transform: translateY(-12px); /* More pronounced lift */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Stronger shadow on hover */
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.service-header i {
    font-size: 2.5rem; /* Larger icon */
    color: var(--accent-teal);
    transition: transform 0.3s ease;
}

.service-card:hover .service-header i {
    transform: rotate(10deg) scale(1.1); /* Rotate icon on hover */
}

.service-header h3 {
    color: var(--primary-blue);
    margin: 0;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
    gap: 1.5rem; /* Increased gap */
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: var(--light-gray); /* Lighter background for features */
    border-radius: 8px;
    border-left: 4px solid var(--accent-teal); /* Accent border */
    transition: background 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.feature:hover i {
    color: var(--white); /* White icon on hover */
}

.feature:hover span {
    color: var(--white);
}

.feature i {
    color: var(--accent-teal);
    font-size: 1.4rem;
}

.feature span {
    color: var(--text-dark);
    font-weight: 500;
}


.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted min-width */
    gap: 2.5rem; /* Increased gap */
    margin-top: 2.5rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid var(--accent-teal);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 3.5rem; /* Larger icon */
    color: var(--secondary-blue);
    margin-bottom: 1.2rem;
}

.service-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
}

.service-btn {
    background: var(--accent-teal);
    color: var(--white);
    padding: 0.9rem 1.8rem; /* Slightly larger */
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
}

.service-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* AI Services */
.ai-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ai-item {
    padding: 1.8rem;
    background: var(--light-gray);
    border-radius: 10px;
    border-right: 4px solid var(--secondary-blue);
    transition: background 0.3s ease;
}

.ai-item:hover {
    background: var(--light-gray);
}

.ai-item h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Surveillance Solutions */
.surveillance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.surveillance-category {
    background: var(--light-gray);
    padding: 1.8rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-teal);
}

.surveillance-category h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.35rem;
}

.surveillance-category i {
    color: var(--secondary-blue);
    font-size: 1.6rem;
}

.surveillance-category ul {
    list-style: none;
    padding-left: 0;
}

.surveillance-category li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--dark-gray); /* Dashed line */
    color: var(--text-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.surveillance-category li::before { /* Custom bullet point */
    content: '\2022'; /* Unicode for bullet */
    color: var(--accent-teal);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}


.surveillance-category li:last-child {
    border-bottom: none;
}

/* Additional Services */
.additional-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.additional-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-blue);
    transition: transform 0.3s ease;
}

.additional-item:hover {
    transform: translateX(8px);
    background: var(--light-gray);
}

.additional-item i {
    color: var(--accent-teal);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.additional-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Why Choose Section */
.why-choose {
    padding: 6rem 0;
    background: var(--primary-blue); /* Dark background for this section */
    color: var(--white);
}

.why-choose .section-title {
    color: var(--white);
}

.why-choose .section-title::after {
    background: var(--accent-teal);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width */
    gap: 2.5rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--secondary-blue); /* Lighter blue card */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.why-item:hover {
    transform: translateY(-15px);
    background: var(--accent-teal); /* Teal on hover */
    box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

.why-item i {
    font-size: 3.8rem; /* Larger icon */
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.why-item:hover i {
    color: var(--white); /* White icon on hover */
}

.why-item h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.why-item p {
    color: var(--light-gray);
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--dark-gray); /* Darker background */
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}
.contact .section-title::after {
    background: var(--accent-teal);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem; /* Increased gap */
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--accent-teal);
}

.contact-item i {
    color: var(--accent-teal);
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px; /* Larger */
    height: 55px; /* Larger */
    background: var(--accent-teal);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.8rem; /* Larger icon */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-link:hover {
    background: var(--white);
    color: var(--primary-blue); /* Primary blue on hover */
    transform: translateY(-5px) scale(1.1); /* More pronounced effect */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--primary-blue); /* Match header */
    color: var(--light-gray);
    padding: 2.5rem 0; /* More padding */
    text-align: center;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .connectivity-animation {
        width: 300px;
        height: 300px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.8rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px; /* Adjust for header height */
        flex-direction: column;
        background-color: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 27px rgba(0,0,0,0.15);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.2rem 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -7px);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1.6rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-services {
        grid-template-columns: 1fr;
    }
    
    .surveillance-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-services {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .why-item {
        padding: 2rem;
    }
    
    .additional-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .connectivity-animation {
        width: 250px;
        height: 250px;
    }

    .circle-1 { width: 50px; height: 50px; top: 40px; left: 40px; }
    .circle-2 { width: 70px; height: 70px; top: 140px; right: 40px; }
    .circle-3 { width: 60px; height: 60px; bottom: 40px; left: 80px; }
    
    .line-1 { top: 65px; left: 80px; width: 80px; }
    .line-2 { top: 160px; right: 100px; width: 60px; }
    .line-3 { bottom: 60px; left: 140px; width: 50px; }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Animations */
.cta-button, .service-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before, .service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.cta-button:hover::before, .service-btn:hover::before {
    left: 100%;
}

/* Global Reveal Animation for sections and cards */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section specific load animations */
.hero-content h1.animate-on-load {
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.2s;
}
.hero-subtitle.animate-on-load {
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.4s;
}
.hero-tagline.animate-on-load {
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.6s;
}
.hero-description.animate-on-load {
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.8s;
}
.cta-button.animate-on-load {
    animation: fadeInScale 1s ease-out forwards;
    animation-delay: 1s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-teal);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden; /* Use visibility for smoother show/hide */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    outline: none;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}