/* --- Global Styles & Resets --- */
/*:root {
    --primary-color: #98db75; /* A strong, professional blue/black 
    --secondary-color: #007bff; /* A bright, modern blue for accents 
    --background-color: #f8f9fa; /* A very light grey for the page 
    --text-color: #98db75;;
    --text-light: #f1f1f1;
    --card-background: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lato", sans-serif;
    line-height: 1.6;
    background-color: #13141c;
    color: #ffffff;
    overflow-x: hidden; /* Prevents horizontal scrollbars from animation */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    color: #98db75;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #98db75;
}
h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #98db75;
}
h3 {
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 800px;
    margin: 0 auto;
    color: #98db75;
}

/* --- Header & Footer --- */
.main-header,
.main-footer {
    padding: 1rem 2rem;
    background: #13141c;
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #13141c;
    
}
.main-header nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}
.main-header nav a:hover {
    color: #666;
}
.main-footer {
    text-align: center;
    color: #666;
}

/* --- Page Sections --- */
.hero {
    background: #3b3b42;
    padding: 4rem 2rem;
    text-align: center;
    background-image: url(media/BlixtHero.png);
    background-size: cover;
    background-repeat: no-repeat;
    
}

.content-section {
    padding: 5rem 0;
    opacity: 0; /* Initially hidden for animation */
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.content-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.text-content {
    flex: 1;
}

.visual-placeholder {
    flex: 1;
    height: 300px;
    background: #3b3b42;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #aaa;
    font-size: 1.2rem;
}

/* --- The Animation Logic --- */
.slide-in-left {
    transform: translateX(-150px);
}
.slide-in-right {
    transform: translateX(150px);
}

/* This class is ADDED by JavaScript when the element is in view */
.content-section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- CTA Section & Button --- */
.cta-section {
    background-color: #3b3b42;
    color: var(--text-light);
    text-align: center;
}
.cta-section h2 {
    color: var(--text-light);
}
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 1rem;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #0069d9;
    transform: translateY(-3px);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
    }

    /* Reverse the order on mobile for the left-sliding sections to keep visual-text flow */
    .slide-in-left .content-layout {
        flex-direction: column-reverse;
    }

    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .main-header nav {
        display: none;
    } /* Simple hiding for example; your menu will handle this */
}
/* --- Hamburger Menu Styles --- */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101; /* Above the header */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Mobile Menu Styles (Responsive) --- */
@media(max-width: 768px) {
    /* Hide the main nav links by default and prepare the container */
    #main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 20, 15, 0.98); /* Dark, semi-transparent background */
        backdrop-filter: blur(8px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    /* When the menu is active, slide it into view */
    #main-nav.is-active {
        transform: translateX(0);
    }
    
    /* THE FIX IS HERE: Make the menu list vertical */
    #main-nav .navbar {
        display: flex;
        flex-direction: column; /* This is your key change! */
        align-items: flex-start; /* Align text to the left */
        width: 80%; /* Don't take up the full screen width */
    }

    #main-nav .navbar li {
        width: 100%; /* Make each item take the full width */
        border-bottom: 1px solid #444; /* Separator lines */
    }
    
    #main-nav .navbar li:last-child {
        border-bottom: none;
    }

    #main-nav .navbar li a {
        color: var(--text-light);
        font-size: 1.5rem;
        padding: 1rem 0; /* Adjust padding for vertical layout */
    }

    /* --- MOBILE DROPDOWN FIX --- */
    #main-nav .dropdown .dropdown-content {
        display: block; /* Always show the submenu when mobile menu is open */
        position: static; /* Remove absolute positioning */
        background-color: transparent;
        box-shadow: none;
        opacity: 1; /* Make it visible */
        transform: none; /* Reset transform */
        padding-left: 20px; /* Indent the submenu items */
    }
    
    #main-nav .dropdown .dropdown-content a {
        font-size: 1.2rem; /* Make submenu items slightly smaller */
        padding: 0.8rem 0;
        color: #ccc; /* Lighter color for submenu items */
    }

    /* Ensure the dropdown arrow is visible */
    #main-nav .arrow {
        display: inline-block;
    }
    
    /* --- Hamburger Button Display --- */
    .hamburger-menu {
        display: block; /* Show the hamburger on mobile */
    }
    
    /* Animate hamburger to an 'X' when active */
    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* --- Comparison Page Styles --- */

.comparison-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius is respected by the table headers */
}

.comparison-table th, 
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table thead th {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Subtle zebra striping for readability */
}

.comparison-table .category-header th {
    background-color: #e9ecef;
    color: var(--primary-color);
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table .highlight {
    font-weight: 700;
    color: #007bff; /* A bright, attention-grabbing blue */
}

.strategic-quote {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 4px solid var(--secondary-color);
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    line-height: 1.7;
}

/* --- Navigation Dropdown Styles --- */

/* Remove default list styling */
.navbar, .dropdown-content {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Style the main navbar items to be horizontal */
.navbar {
    display: flex;
    align-items: center;
}

.navbar li {
    position: relative; /* This is crucial for positioning the dropdown */
}

.navbar li a {
    display: block; /* Makes the whole area clickable */
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease;
}

.navbar li:hover > a {
    background-color: #3b3b42; /* Slight highlight on hover */
}

.arrow {
    font-size: 0.7em;
    margin-left: 5px;
}

/* --- The Dropdown Logic --- */

/* Hide the dropdown content by default */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position it right below the parent item */
    left: 0;
    background-color: #13141c;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 0 0 5px 5px;
    opacity: 0; /* For smooth transition */
    transform: translateY(-10px); /* Start slightly above for effect */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show the dropdown on hover of the parent item */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Style the links inside the dropdown */
.dropdown-content li a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content li a:hover {
    background-color: #3b3b42;
}
/* --- Image Carousel Styles --- */

.carousel-container {
    flex: 1; /* Match the layout of our other sections */
    position: relative;
    min-height: 300px; /* Or the height of your images */
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden; /* This is critical to hide the other slides */
    box-shadow: var(--shadow);
}

.carousel-slides {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* The magic for the fade effect */
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Controls the speed of the fade */
}

.carousel-slide[data-active] {
    opacity: 1; /* Makes the active slide visible */
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
}
/* --- For a "SLIDE-IN" effect instead of a fade --- */

.carousel-slides-in {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    opacity: 0;
    /* Move the slide off to the right side of the container */
    transform: translateX(100%); 
    /* The transition now animates both opacity and transform */
    transition: opacity 0.5s ease-out, transform 0.7s ease-in-out; 
}

.carousel-slide-in[data-active] {
    opacity: 1;
    /* The active slide moves to its final position (0) */
    transform: translateX(0); 
}
.carousel-slide-in img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
}
/* --- Form Styles (Contact Form) --- */

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
	 background-color: black;
	 position: relative;
}

.contact-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea,
.contact-form-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
	 padding-right: 30px; /* Space for custom arrow */
}

.contact-form-container .checkbox-group {
    margin-bottom: 15px;
}

.contact-form-container .checkbox-group div {
    margin-bottom: 5px;
}
.contact-form-container input[type="submit"]{
		display: inline-block;
    padding: 10px 15px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
	 cursor: pointer;
    transition: background-color: 0.3s ease;
}
.contact-error {
    color: red;
    font-size: 0.9em;
    margin-top: -10px; /* Position error message closer to the field */
    margin-bottom: 10px;
}
#other-interest-text{
	margin-top: -10px;
}
}

.disclaimer { /* Style for the disclaimer text */
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}