/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
li {
    list-style-type: none;
}
/* Root variables */
:root {
    --primary-color: #4b5973;
    --secondary-gradient: linear-gradient(45deg, #f0d180, #d4af37, #a67c00);
    --background-color: #f9f9f9;
    --text-color: #333;
    --highlight-color: #ffffff;
    --accent-color: #4b5973;
}
/* Enhanced Title Styling */
.enhanced-title {
    font-size: 2.5rem;
    color: var(--primary-color); 
    padding: 1rem 1.5rem; 
    margin: 2rem auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    text-align: center; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    max-width: fit-content; 
}

html, body {
    overflow-x:hidden;
}
html {
    overflow-y: auto; /* Ensure the vertical scrollbar is visible */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #a67c00 #f2f2f2; /* Thumb and track colors for Firefox */
}
/* WebKit-based browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar {
    width: 12px; /* Width of the vertical scrollbar */
}

html::-webkit-scrollbar-track {
    background: #f2f2f2; /* Light track background */
    border-radius: 10px; /* Rounded track edges */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f0d180, #d4af37); /* Gradient thumb */
    border-radius: 10px; /* Rounded thumb edges */
    border: 2px solid #f2f2f2; /* Adds a light border around the thumb */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4af37, #b8860b); /* Darker gradient on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Optional: Adjust the corner of the scrollbar (WebKit) */
html::-webkit-scrollbar-corner {
    background: transparent; /* Remove any corner box */
}
/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-y:hidden;
}

/* Header */
.header {
    background-color: var(--highlight-color);
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #4b5973, #a67c00); /* Gradient background */
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-radius: 8px;
}
/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 100px;
    border-radius: 100%; /* Rounded logo */
    max-width: 100%
}

.about-image {
    max-width: 100%;
}

.company-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    list-style-type: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    
}

.nav-links li a:hover {
    background-color: white;
    color: #4b5973; /* Matches the primary color */
}




/* Dropdown Styling */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 10;
}

.dropdown-menu li {
    margin: 0.5rem 0;
    list-style-type: none;
}

.dropdown-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.dropdown-menu li a:hover {
    color: var(--primary-color);
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

#toggle-theme:hover {
    background-color: #4b5973;
    color: white;
    transform: scale(1.1);
}
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4b5973, #283e51) no-repeat center/cover;
    padding: 5rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Subtle dark overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* Above the overlay */
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #f0d180; /* Highlighted headline */
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.cta-button {
    background: linear-gradient(135deg, #ff7e5f, #feb47b); /* Vibrant gradient */
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.6);
}


/* Services Section */
.services {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    border-top: 3px solid var(--primary-color);
}

.services h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Service Cards */
.card {
    background: #ffffff;
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: 12px;
    width: 320px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Icon or Image Placeholder */
.card::before {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
}
.card-network {
    background-image: url('img/network.jpg'); /* Replace with your image path */
}

/* Security card */
.card-security {
    background-image: url('img/audits.jpg'); /* Replace with your image path */
}

/* Audits card */
.card-audits {
    background-image: url('img/audits.jpg'); /* Replace with your image path */
}
/* Card Titles */
.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
}

/* Card Descriptions */
.card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}
.card a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card a:hover {
    transform: translateY(-5px);
}



/* About Section */
.about {
    background: linear-gradient(135deg, #eaf1f8, #ffffff);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
    overflow-x:hidden;
}
.about-content {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    gap: 1.5rem; /* Add spacing between button and image */
}
.about-image {
    width: 100%;
    max-width: 450px; /* Slightly larger max-width for better visibility */
    border-radius: 15px; /* Smooth rounded corners */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
    object-fit: cover; /* Ensures image maintains aspect ratio */
    border: 2px solid rgba(75, 89, 115, 0.2); /* Thin border for a polished look */
}
.about-image:hover {
    transform: scale(1.05); /* Slight zoom-in effect on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); /* Enhanced shadow for hover */
}
.cta-button {
    margin-top: 1rem;
}

.about h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.about h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
}
.about p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.about li {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Decorative Accent (Optional) */
.about::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: rgba(75, 89, 115, 0.1); /* Transparent decorative circle */
    border-radius: 50%;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(75, 89, 115, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Contact Section */
.required {
    color: red;
    font-weight: bold;
    margin-left: 0.2rem;
}

.contact {
    background: linear-gradient(135deg, #ffffff, #eaf1f8);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    color: var(--text-color);
}
.contact-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Ensures all child elements have equal height */
    gap: 2rem; /* Space between the columns */
    flex-wrap: wrap; /* Allows stacking on smaller screens */
}

.contact-form, .contact-phone {
    flex: 1; /* Ensures equal width for both sections */
    min-width: 300px; /* Ensures responsiveness */
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.contact-phone {
    align-items: center; /* Centers content horizontally */
}

.contact-phone h2, .contact-form h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    text-align: center;
}

.contact-phone p {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem 0;
    min-height: auto; /* Ensures it doesn't affect the height of siblings */
}

.contact h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact form {
    width:100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.contact-form,
.contact-phone {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.contact-form:hover,
.contact-phone:hover {
    transform: scale(1.05); /* Slightly enlarge the box */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Add a more prominent shadow */
    z-index: 1; /* Ensures the hovered box appears above others */
}

/* Optional: Add a subtle color change for more engagement */
.contact-form:hover,
.contact-phone:hover {
    background: linear-gradient(135deg, #f0f9ff, #eaf1f8);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

form input, form textarea, form button {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: #f9f9f9;
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(75, 89, 115, 0.3);
}

form button {
    background: linear-gradient(135deg, #4b5973, #a67c00);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

form button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(75, 89, 115, 0.3);
}

/* Decorative Circles */
.contact::before, .contact::after {
    content: '';
    position: absolute;
    background: rgba(75, 89, 115, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.contact::before {
    top: -10%;
    left: -5%;
    width: 250px;
    height: 250px;
}

.contact::after {
    bottom: -15%;
    right: -10%;
    width: 300px;
    height: 300px;
}
form select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: #f9f9f9;
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none; /* For consistent dropdown arrow styling across browsers */
}

form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(75, 89, 115, 0.3);
}

form select option {
    color: var(--text-color);
    background: #ffffff;
}

/* Optional: Styling for placeholder (disabled and selected option) */
form select option:disabled {
    color: rgba(75, 89, 115, 0.6);
}


/* Footer */
footer {
    background: linear-gradient(135deg, #4b5973, #283e51);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    border-top: 3px solid var(--primary-color);
}

footer p {
    font-size: 1.1rem;
    margin: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

footer::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Fade-in Effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fully visible state */
.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Skip Link Styling for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-color);
    padding: 8px;
    transition: top 0.3s;
    z-index: 1000;
}
.skip-link:focus {
    top: 0;
}

/* Dark Mode Toggle */
body.dark-mode {
    --background-color: #1e1e2f; /* A deep blue-gray for the background */
    --text-color: #e4e4eb; /* Soft white for readability */
    --highlight-color: #2b2b40; /* Darker shade for highlight sections */
    --primary-color: #6272a4; /* Muted blue-purple for primary elements */
    --accent-color: #ff79c6; /* Vibrant pink for accents */
}
/* Navbar in Dark Mode */
body.dark-mode .navbar {
    background-color: var(--highlight-color);
    border-bottom: 1px solid var(--primary-color);
}

/* Hero Section in Dark Mode */
body.dark-mode .hero {
    background: linear-gradient(135deg, #44475a, #282a36);
    color: var(--text-color);
}

/* Cards in Dark Mode */
body.dark-mode .card {
    background-color: #3c3f51; /* Subtle dark tone */
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

/* Buttons in Dark Mode */
body.dark-mode button,
body.dark-mode .cta-button {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}
body.dark-mode button:hover,
body.dark-mode .cta-button:hover {
    background: linear-gradient(135deg, #ff92d0, var(--accent-color));
}

/* Links in Dark Mode */
body.dark-mode a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer in Dark Mode */
body.dark-mode footer {
    background-color: var(--highlight-color);
    color: var(--text-color);
}
/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    font-size: 1.5rem;
    display: none;
    background-color: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}
#back-to-top:hover {
    transform: scale(1.1);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .logo-img {
        height: 80px; /* Smaller logo */
    }
    .company-name {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    /* Enhanced Title */
    .enhanced-title {
        font-size: 2rem;
        padding: 0.8rem;
        max-width: 90%; /* Allow room for smaller screens */
    }

    /* Services Section */
    .services-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .card {
        width: 100%;
        padding: 2rem;
    }

    /* About Section */
    .about {
        padding: 3rem 1rem;
    }
    .about h2, .about h3 {
        font-size: 2rem;
    }
    .about p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* Footer */
    footer {
        padding: 1.5rem;
    }
    footer p {
        font-size: 1rem;
    }
}
