html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px; /* Offset for internal scroll-to-ID links */
}

:root {
    --bg-color: #05070a;
    --card-bg: rgba(10, 17, 31, 0.7);
    --primary-accent: #00d2ff;
    --secondary-accent: #3a7bd5;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.015em;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* More performant fixed background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(58, 123, 213, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 210, 255, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    text-align: left;
}



p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: left;
    letter-spacing: -0.01em;
}


/* Layout Blocks */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 80px 0;
}


/* Glassmorphism Components */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

/* Navbar */
nav {
    position: fixed; /* Fixed position for rock-solid scroll stability */
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0; /* Slightly reduced initial padding */
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: padding, background;
}

nav.scrolled {
    padding: 0.6rem 0;
    background: rgba(5, 7, 10, 0.95);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--primary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: stretch;
    gap: 4rem;
}

.hero-content.row-reverse {
    flex-direction: row-reverse;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4rem;
    align-items: flex-start !important;
    text-align: left !important;
}




.hero .hero-text {
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a0aec0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center; /* Changed from stretch to keep image centered */
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* Changed from cover to show full image */
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03); /* Subtle background for areas not covered by the image */
}

/* Ensure the main hero image remains filling the space for visual impact */
.hero .hero-image img {
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

/* Grid Sections */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Changed to 2/2 ratio */
    gap: 2rem;
    margin-top: 3rem;
}

.capabilities-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Optional 1 row of 4 */
    gap: 2rem;
    margin-top: 3rem;
}

.capabilities-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
    align-self: flex-start !important;
}



.benefit-item .icon-wrapper {
    margin-top: 5px; /* Aligns blocky icon with heading text */
}

.benefit-item h3 {
    text-align: left !important;
    margin-bottom: 0.5rem;
}


.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    margin-bottom: 0 !important;
    text-align: left;
    line-height: 1;
}



.card-header .icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.icon-wrapper:hover {
    background: rgba(0, 210, 255, 0.2);
    transform: rotate(5deg) scale(1.1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    color: var(--primary-accent);
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--primary-accent);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- New Styles added for Layout & Images --- */

/* Navbar additions */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-accent);
}


/* Image classes */
.feature-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.universal-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 20px;
    margin: 2rem auto 3rem;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
}

/* Grids */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}


/* Footer layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 3rem;
    text-align: left !important;
}

.footer-grid div h4 {
    text-align: left !important;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
    align-self: flex-start !important;
}

.footer-links, .footer-contact, .footer-about {
    padding-left: 0 !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}



.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left !important;
}

.footer-links li {
    text-align: left !important;
    display: block;
}


.footer-contact p, 
.footer-contact a,
.footer-contact span,
.footer-about p {
    text-align: left !important;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    justify-content: flex-start;
}

.footer-contact i {
    width: 20px;
    margin-top: 5px;
    display: inline-flex;
    justify-content: center;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.footer-links a:hover {
    color: var(--primary-accent) !important;
    padding-left: 5px;
}






/* Contact Section Styles - Inspired by SmartScopy */
.section-contact {
    padding: 0;
    min-height: 620px;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 17, 31, 0.94) 0%, rgba(0, 210, 255, 0.2) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    padding: 100px 0 60px;
    position: relative;
    z-index: 1;
}

.contact-left h2 {
    color: #fff;
    text-align: left;
    margin-bottom: 2rem;
}

.contact-left p {
    color: var(--text-secondary);
    margin-top: 0.6rem;
    text-align: left;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Form */
.contact-form-wrapper {
    z-index: 1;
}

.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.5);
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group select option {
    background-color: #000000;
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* Map Section */
.map-section {
    position: relative;
    z-index: 1;
    padding: 0 0 100px;
}

.map-link {
    display: block;
    text-decoration: none;
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: var(--primary-accent);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.map-placeholder:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-accent);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

/* Scroll reveal animations */
.anim-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-left.visible {
    opacity: 1;
    transform: none;
}

.anim-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-right.visible {
    opacity: 1;
    transform: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* --- Consolidated Responsive Styles --- */

@media (max-width: 1024px) {

    /* Navbar Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 7, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-cta {
        display: none;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 140px 0 60px;
    }

    section .hero-content {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    section .hero-content.row-reverse {
        flex-direction: column !important;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        height: auto;
        min-height: 250px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    /* Grids */
    .capabilities-grid,
    .capabilities-grid-3,
    .capabilities-grid-4,
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding-top: 60px;
        gap: 2rem;
    }

    .contact-left {
        text-align: center;
    }

    .contact-left h2,
    .contact-left p {
        text-align: center !important;
    }

    .contact-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .content-container {
        padding: 0 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Feedback Helpers */
.text-light { color: #fff !important; }
.text-danger { color: #dc3545 !important; }
.bg-light { background-color: #f8f9fa !important; }