/* Universal Box-Sizing for predictable layouts */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #00ffc0; /* Bright Green/Cyan */
    --secondary-color: #2e86de; /* Electric Blue */
    --dark-bg: #0d1a26; /* Very Dark Blue */
    --dark-section-bg: #1c2a38; /* Slightly lighter dark blue */
    --card-bg: #2a3d54; /* Even lighter dark blue for cards */
    --light-text: #e0e6eb; /* Off-white for general text */
    --gray-text: #9aa5b1; /* Lighter gray for secondary text */
    --button-hover: #00e0a0; /* Slightly darker primary for hover */
    --border-color: rgba(46, 134, 222, 0.3); /* Transparent blue border */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from minor layout shifts */
}

/* General Link Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--button-hover);
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 15px rgba(0, 255, 192, 0.6);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    color: var(--secondary-color);
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(0, 255, 192, 0.4);
}

.primary-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 192, 0.6);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(0, 255, 192, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 192, 0.2);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

/* Header & Navigation */
header {
    background-color: rgba(13, 26, 38, 0.9); /* Semi-transparent dark blue */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-family: 'Roboto Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 192, 0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1001;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Keep canvas contained */
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--dark-bg);
}

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

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--light-text);
    margin-bottom: 30px;
    text-shadow: none; /* Override h2 global shadow */
}

.hero-content h2::after {
    display: none; /* Hide h2 underline for hero h2 */
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Glitch Text Effect */
.glitch-text {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg); /* Background to hide overflow */
    overflow: hidden;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* For smaller glitch text (e.g., in About section) */
.glitch-text-small {
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 192, 0.4);
}

.glitch-text-small::before,
.glitch-text-small::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-section-bg); /* Match parent background */
    overflow: hidden;
}

.glitch-text-small::before {
    left: 1px;
    text-shadow: -1px 0 rgba(46, 134, 222, 0.8);
    animation: glitch-anim-1 1.5s infinite linear alternate-reverse;
}

.glitch-text-small::after {
    left: -1px;
    text-shadow: 1px 0 rgba(0, 255, 192, 0.8);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}


@keyframes glitch-anim-1 {
    0% { clip-path: inset(40% 0 35% 0); }
    20% { clip-path: inset(80% 0 10% 0); }
    40% { clip-path: inset(10% 0 70% 0); }
    60% { clip-path: inset(55% 0 20% 0); }
    80% { clip-path: inset(25% 0 50% 0); }
    100% { clip-path: inset(40% 0 35% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(20% 0 60% 0); }
    25% { clip-path: inset(65% 0 15% 0); }
    50% { clip-path: inset(5% 0 80% 0); }
    75% { clip-path: inset(30% 0 45% 0); }
    100% { clip-path: inset(20% 0 60% 0); }
}


/* Section General Styling */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    background-color: var(--dark-section-bg);
    text-align: center;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

.card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(46, 134, 222, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(46, 134, 222, 0.4);
    border-color: var(--primary-color);
}

.card-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.card-icon-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    filter: drop-shadow(0 0 8px rgba(0, 255, 192, 0.5));
}

.card:hover .initial-icon {
    opacity: 0;
    transform: rotateY(180deg);
}

.card .transformed-icon {
    opacity: 0;
    transform: rotateY(-180deg);
}

.card:hover .transformed-icon {
    opacity: 1;
    transform: rotateY(0deg);
}


.card h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card p {
    color: var(--gray-text);
    font-size: 1.05rem;
    flex-grow: 1; /* Allows paragraph to take available space */
    margin-bottom: 25px;
}

.learn-more-btn {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.learn-more-btn i {
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: translateX(5px);
}

/* Achievements Overview Section */
.achievements-overview-section {
    background-color: var(--dark-bg); /* Changed from dark-section-bg for slight variation */
    padding: 100px 20px;
    text-align: center;
}

.achievements-overview-section p {
    font-size: 1.15rem;
    color: var(--gray-text);
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0px auto 60px auto;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(46, 134, 222, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(46, 134, 222, 0.4);
}

.stat-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.stat-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 255, 192, 0.5);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-more-achievements {
    margin-top: 30px;
}

/* Detailed Achievements Table Section */
.detailed-achievements-section {
    background-color: var(--dark-section-bg); /* Changed from dark-bg for slight variation */
    padding: 100px 20px;
    text-align: center;
}

.detailed-achievements-section p {
    font-size: 1.15rem;
    color: var(--gray-text);
    margin-bottom: 40px;
}

.table-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1000px; /* Constrain controls width */
    margin-left: auto;
    margin-right: auto;
}

.table-controls input,
.table-controls select {
    padding: 12px 18px;
    border: 1px solid var(--dark-section-bg);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--light-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Default to full width within flex item */
    max-width: 280px; /* Limit max width for inputs/selects */
}

.table-controls input:focus,
.table-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 255, 192, 0.4);
}

.achievements-table-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto; /* Enable horizontal scrolling on small screens */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 192, 0.2);
}

#achievementsTable {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    min-width: 700px; /* Ensure table doesn't get too narrow on very small screens */
}

#achievementsTable thead {
    background-color: var(--dark-bg);
}

#achievementsTable th,
#achievementsTable td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 0.95rem;
    white-space: nowrap; /* Keep content on one line */
}

#achievementsTable th {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer; /* Indicate sortable columns */
    transition: color 0.2s ease;
}

#achievementsTable th:hover {
    color: var(--button-hover);
}

#achievementsTable tbody tr {
    transition: background-color 0.2s ease;
}

#achievementsTable tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05); /* Subtle stripe effect */
}

#achievementsTable tbody tr:hover {
    background-color: rgba(0, 255, 192, 0.08); /* Hover effect */
}

#achievementsTable td {
    color: var(--light-text);
}

#achievementsTable td.severity-critical { color: #FF6B6B; font-weight: 600; } /* Red */
#achievementsTable td.severity-high { color: #FFD93D; font-weight: 600; }    /* Yellow */
#achievementsTable td.severity-medium { color: #58CCED; font-weight: 600; }  /* Light Blue */
#achievementsTable td.severity-low { color: #9B59B6; }       /* Purple */
#achievementsTable td.status-resolved { color: var(--primary-color); font-weight: 600; }
#achievementsTable td.status-triaged { color: var(--secondary-color); }
#achievementsTable td.status-pending { color: var(--gray-text); }


/* Approach Section */
.approach-section {
    background-color: var(--dark-bg);
    text-align: center;
}

.approach-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap; /* Allow steps to wrap on smaller screens */
    gap: 30px; /* Space between steps and connectors */
}

.step {
    flex: 1 1 200px; /* Allow steps to grow/shrink, min 200px wide */
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(46, 134, 222, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px; /* Ensure a decent minimum width */
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(46, 134, 222, 0.4);
}

.step-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 192, 0.5));
}

.step h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step p {
    color: var(--gray-text);
    font-size: 1rem;
}

.step-connector {
    width: 40px; /* Horizontal line width */
    height: 4px;
    background-color: var(--secondary-color);
    margin: 40px 0; /* Vertical margin for spacing */
    flex-shrink: 0; /* Prevent connector from shrinking */
    align-self: center; /* Center connector vertically */
}


/* About Section */
.about-section {
    background-color: var(--dark-section-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-content {
    max-width: 800px;
    padding: 20px;
}

.about-content h2 {
    margin-bottom: 20px; /* Adjusted margin */
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 25px;
}

/* Client Testimonials/References Section */
.references-section {
    background-color: var(--dark-bg);
    padding: 100px 20px;
    text-align: center;
}

.testimonial-carousel {
    max-width: 900px;
    margin: 0px auto 50px auto;
    position: relative;
    overflow: hidden;
    min-height: 180px; /* Ensure space for testimonials, adjust if content is taller */
    display: flex; /* Use flex to align slides for transition */
    align-items: center;
    justify-content: center;
}

.testimonial-slide {
    display: none; /* Hidden by default, JS toggles 'active' */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-slide .quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    padding: 0 40px;
}

.testimonial-slide .quote::before,
.testimonial-slide .quote::after {
    font-family: 'Font Awesome 5 Free'; /* Using Font Awesome for quotes */
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.3;
}

.testimonial-slide .quote::before {
    content: "\f10d"; /* fa-quote-left */
    top: 0;
    left: 0;
}

.testimonial-slide .quote::after {
    content: "\f10e"; /* fa-quote-right */
    bottom: 0;
    right: 0;
}

.testimonial-slide .author {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.carousel-nav {
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: var(--gray-text);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.references-section h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 80px;
    margin-bottom: 40px;
    font-family: 'Roboto Mono', monospace;
}

.client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logos img {
    height: 60px; /* Adjust as needed, but max-width: 100% will handle scaling down */
    filter: grayscale(100%) brightness(150%) opacity(0.6); /* Desaturate and lighten for sleek look */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%) brightness(100%) opacity(1) drop-shadow(0 0 10px rgba(0, 255, 192, 0.5)); /* Colorize and glow on hover */
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-section-bg);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--light-text);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-text);
    opacity: 0.7;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 192, 0.4);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--gray-text);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a,
.social-links a {
    color: var(--gray-text);
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links {
    margin-top: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

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

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

/* Responsive Design */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--dark-section-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.6);
        padding-top: 60px; /* Space for fixed header */
    }

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

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

    .burger {
        display: flex;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Smaller min-width for mobile */
        gap: 30px;
    }
    .stat-item i {
        font-size: 3rem;
    }
    .stat-value {
        font-size: 2.8rem;
    }

    .table-controls {
        flex-direction: column;
        align-items: center;
    }
    .table-controls input,
    .table-controls select {
        max-width: 90%; /* Take more width on smaller screens */
    }

    .approach-steps {
        flex-direction: column; /* Stack steps vertically */
        align-items: center;
        gap: 20px;
    }

    .step-connector {
        width: 4px; /* Vertical line */
        height: 40px; /* Length of vertical line */
        margin: 20px 0; /* Adjust vertical margin */
    }

    .about-content h2 {
        font-size: 2.2rem;
    }

    .glitch-text-small {
        font-size: 1.5rem;
    }

    .testimonial-slide .quote {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    .testimonial-slide .quote::before,
    .testimonial-slide .quote::after {
        font-size: 2rem;
    }
    .references-section h3 {
        font-size: 1.8rem;
    }
    .client-logos img {
        height: 50px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    section {
        padding: 80px 15px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content h2 {
        font-size: 1.3rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        max-width: 300px; /* Constrain button width */
        margin-left: auto;
        margin-right: auto;
    }

    .logo {
        font-size: 1.5rem;
    }
    .logo img {
        height: 35px;
    }

    .achievements-table-container {
        border-radius: 8px;
    }

    #achievementsTable th,
    #achievementsTable td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    .testimonial-carousel {
        min-height: 150px; /* Can be adjusted based on content */
    }
    .testimonial-slide .quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.1rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .nav-links {
        width: 100%; /* Full width overlay for very small screens */
    }
    .stats-grid {
        grid-template-columns: 1fr; /* Stack on very small screens */
        gap: 25px;
    }
    .stat-item i {
        font-size: 3rem;
    }
    .stat-value {
        font-size: 2.5rem;
    }
    .stat-label {
        font-size: 1rem;
    }
    .client-logos {
        gap: 20px; /* Reduce gap further */
    }
    .client-logos img {
        height: 40px; /* Even smaller logos */
    }
    .table-controls input,
    .table-controls select {
        font-size: 0.9rem;
    }
    #achievementsTable {
        min-width: 500px; /* Allow it to get a bit narrower before scroll appears */
    }
}