/* Universal Box Sizing */
* {
    box-sizing: border-box;
}

/* General Body Styles */
body {
    font-family: 'Montserrat', sans-serif; /* Modern, professional font */
    margin: 0;
    padding: 0;
    background-color: #121212; /* Deeper dark background */
    color: #e0e0e0; /* Light text */
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
.navbar {
    background-color: #1a1a1a; /* Slightly lighter dark for navbar */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 255, 0, 0.3); /* Stronger cyber green shadow */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #00ff00; /* Cyber green */
    font-family: 'Roboto Mono', monospace; /* Techy font for logo */
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #00cc00;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    white-space: nowrap; /* Prevent wrapping */
}

.nav-links li {
    margin-left: 40px; /* Increased spacing */
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 17px; /* Slightly adjusted font size */
    font-weight: 500; /* Adjusted font weight */
    font-family: 'Roboto Mono', monospace; /* CLI font for nav links */
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    letter-spacing: 0.5px; /* Added letter spacing */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #00ff00;
    left: 0;
    bottom: -8px;
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: #00ff00; /* Cyber green on hover */
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

/* Hamburger Menu */
.menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other content */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #00ff00; /* Cyber green */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

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

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://via.placeholder.com/1920x1080/000000/00ff00?text=Cybersecurity+Background') no-repeat center center/cover;
    text-align: center;
    padding: 150px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Make hero section taller */
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 25px;
    color: #00ff00; /* Cyber green */
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    line-height: 1.2;
}

.hero-content p {
    font-size: 24px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #c0c0c0;
}

.btn-primary {
    background-color: #00ff00; /* Cyber green */
    color: #121212;
    padding: 18px 40px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #00cc00;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.4);
}

/* Section Styling */
section {
    padding: 100px 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: #1a1a1a;
}

section h2 {
    font-size: 48px;
    color: #00ff00; /* Cyber green */
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

section h2::after {
    content: '';
    width: 100px;
    height: 5px;
    background-color: #00ff00;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    border-radius: 3px;
}

.section-subtitle {
    font-size: 20px;
    color: #c0c0c0;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* About Section */
.about-section p {
    max-width: 900px;
    margin: 20px auto;
    font-size: 18px;
    color: #c0c0c0;
}

.about-section ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
}

.about-section ul li {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.about-section ul li::before {
    content: '\f058'; /* Check circle icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #00ff00;
    position: absolute;
    left: 0;
    top: 0;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.15);
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.4);
}

.feature-item i {
    font-size: 55px;
    color: #00ff00;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: #c0c0c0;
}

/* Certifications Section */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.certification-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.3);
}

.certification-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

.certification-item:hover img {
    filter: grayscale(0%) brightness(100%);
}

.certification-item h3 {
    font-size: 22px;
    color: #00ff00;
    margin-bottom: 10px;
}

.certification-item p {
    font-size: 16px;
    color: #c0c0c0;
}

/* Laws Section */
.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.law-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.law-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.3);
}

.law-item h3 {
    font-size: 22px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.law-item p {
    font-size: 16px;
    color: #c0c0c0;
    margin-bottom: 20px;
}

.btn-secondary {
    background-color: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #00ff00;
    color: #121212;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.4);
}

.service-item i {
    font-size: 50px;
    color: #00ff00;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.service-item p {
    color: #c0c0c0;
    font-size: 16px;
}

.audit-details {
    margin-top: 80px;
    text-align: left;
    background-color: #1a1a1a;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.15);
}

.audit-details h3 {
    font-size: 32px;
    color: #00ff00;
    margin-bottom: 30px;
    text-align: center;
}

.audit-details h4 {
    font-size: 24px;
    color: #e0e0e0;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.audit-details h4::before {
    content: '\f061'; /* Arrow right icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #00ff00;
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.audit-details p {
    font-size: 18px;
    color: #c0c0c0;
    margin-bottom: 20px;
}

.audit-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.audit-details ul li {
    font-size: 17px;
    color: #e0e0e0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.audit-details ul li::before {
    content: '\f00c'; /* Checkmark icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #00ff00;
    position: absolute;
    left: 0;
    top: 0;
}

.audit-details ul li strong {
    color: #00ff00;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.15);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.4);
}

.project-item h3 {
    font-size: 24px;
    color: #00ff00;
    margin-bottom: 10px;
}

.project-item .client {
    font-size: 16px;
    color: #c0c0c0;
    margin-bottom: 15px;
    font-style: italic;
}

.project-item p {
    font-size: 16px;
    color: #e0e0e0;
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-form-container {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.15);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #00ff00; /* Cyber green */
    font-weight: 600;
    font-size: 17px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: calc(100% - 24px); /* Adjust for padding and border */
    padding: 12px;
    border: 1px solid #00ff00; /* Cyber green border */
    background-color: #0a0a0a; /* Even darker input background */
    color: #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00cc00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.6);
}

.btn-submit {
    background-color: #00ff00; /* Cyber green */
    color: #121212;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    background-color: #00cc00;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 255, 0, 0.4);
}

.form-message {
    margin-top: 20px;
    font-weight: 600;
    color: #00ff00;
    font-size: 17px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: left;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.15);
}

.contact-info h3 {
    color: #00ff00;
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #c0c0c0;
}

.contact-info i {
    color: #00ff00;
    margin-right: 15px;
    font-size: 20px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: #00ff00;
    font-size: 30px;
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #00cc00;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 50px 0 20px 0;
    font-size: 15px;
    border-top: 3px solid #00ff00;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-brand,
.footer-address,
.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-brand h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 28px;
    color: #00ff00;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 16px;
    color: #c0c0c0;
}

.footer-address p {
    font-size: 16px;
    color: #c0c0c0;
    margin-bottom: 8px;
}

.footer-links h4 {
    font-size: 20px;
    color: #00ff00;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #00ff00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    margin: 0;
    color: #888;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.animated.animate-slide-up {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }
.delay-900 { transition-delay: 0.9s; }
.delay-1000 { transition-delay: 1.0s; }
.delay-1100 { transition-delay: 1.1s; }

/* Responsive Design */
@media (max-width: 992px) {
    .navbar .container {
        flex-direction: row; /* Keep logo and toggle on one row */
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none; /* Hide by default on small screens */
        flex-direction: column;
        width: 100%;
        background-color: #1a1a1a; /* Background for mobile menu */
        position: absolute;
        top: 80px; /* Adjusted to be below navbar, considering padding */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 255, 0, 0.3);
        border-top: 1px solid #00ff00;
        white-space: normal; /* Allow wrapping in mobile menu */
        max-height: calc(100vh - 80px); /* Limit height to viewport */
        overflow-y: auto; /* Enable scrolling for long menus */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 10px 0; /* Adjust spacing for vertical links */
        text-align: center;
    }

    .nav-links a {
        font-size: 20px;
        padding: 10px 0;
        display: block;
    }

    .nav-links a::after {
        bottom: -5px;
    }

    .menu-toggle {
        display: flex; /* Show hamburger menu */
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content p {
        font-size: 20px;
    }

    section h2 {
        font-size: 40px;
    }

    .about-features, .certification-grid, .laws-grid, .service-grid, .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form-container, .contact-info {
        max-width: 100%;
        min-width: unset;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand, .footer-address, .footer-links {
        min-width: unset;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links ul li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    section h2 {
        font-size: 34px;
    }

    .btn-primary {
        padding: 15px 30px;
        font-size: 18px;
    }

    .about-section ul li, .audit-details p, .audit-details ul li {
        font-size: 16px;
    }

    .service-item h3, .project-item h3, .law-item h3 {
        font-size: 20px;
    }

    .contact-form input, .contact-form textarea, .btn-submit {
        font-size: 15px;
    }

    .contact-info h3 {
        font-size: 24px;
    }

    .contact-info p {
        font-size: 16px;
    }

    .social-links a {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 28px;
    }

    .hero-content h1 {
        font-size: 28px; /* Further reduce font size for very small screens */
    }

    .hero-content p {
        font-size: 14px; /* Further reduce font size for very small screens */
    }

    section h2 {
        font-size: 28px;
    }

    .about-features, .certification-grid, .laws-grid, .service-grid, .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust minmax for very small screens */
    }

    .audit-details {
        padding: 30px;
    }

    .audit-details h3 {
        font-size: 26px;
    }

    .audit-details h4 {
        font-size: 20px;
    }

    .contact-form-container, .contact-info {
        padding: 30px;
    }

    .hero-section {
        padding: 100px 15px; /* Adjust hero padding for smaller screens */
    }

    .container {
        padding: 10px; /* Reduce container padding on very small screens */
    }
}