/* Variables for colors */
:root {
    --primary-color: #e30a13; /* Red */
    --secondary-color: #000; /* Black */
    --text-color: #333;
    --text-faded: #999;
    --background-color: #fff;
    --card-bg: #f9f9f9;
    --card-border: #ddd;
}

/* Dark mode variables */
body.dark-mode {
    --secondary-color: #fff;
    --text-color: #f0f0f0;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --card-border: #333;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Golos Text', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth; 
}

h1, h2, h3, h4 {
    font-family: 'Sora', sans-serif;
    color: var(--secondary-color);
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn i {
    font-size: 36px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo {
    height: 40px;
}

nav .logo img {
    height: 100%;
    width: auto;
}

nav .logo .logo-dark {
    display: none;
}

body.dark-mode nav .logo .logo-light {
    display: none;
}
body.dark-mode nav .logo .logo-dark {
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul a {
    text-decoration: none;
    color: var(--text-color);
    border-bottom: none;
    transition: all 0.3s ease;
}

nav ul a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 6px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#dark-mode-toggle, #language-selector {
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: color 0.3s;
}

#dark-mode-toggle:hover, #language-selector:hover {
    color: var(--primary-color);
}

#language-selector {
    font-size: 1rem;
    padding: 5px;
}

.hamburger {
    display: none; /* Hidden by default on desktop */
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.hamburger i {
    font-size: 30px;
}

/* Sections */
section {
    padding: 150px 5%;
}

section h2 {
    text-transform: uppercase;
}

/* Home Section */
#home {
    /* Use the section itself for the background */
    min-height: calc(100vh - 72px);
    background-image: url('img/fiber_2.png'); /* Placeholder image for industrial fiber background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* Position content */
    display: flex;
    align-items: center; /* Vertically center the hero-content */
    justify-content: flex-start; /* Aligns content block */
    padding: 0; /* Remove padding for true full-screen effect */
    position: relative; /* Context for absolute positioning of content */
    color: white; 
}
#home h1, #home h3 {
    color: white;
}
#home h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Helps readability */
}
#home .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}
.hero-bg {
    display: none;
}

/* NEW: Hero Content Positioning */
.hero-content {
    /* This element defines the container for the text/CTA and the feature cards */
    display: flex;
    flex-direction: row; /* Aligns text block and feature cards horizontally */
    align-items: normal;
    justify-content: space-between;
    width: 90%; /* Explicit width */
    margin: 0 auto;
    z-index: 10;
}

.hero-text-and-cta {
    max-width: 40vw;
    padding-bottom: 0; 
    flex-shrink: 0; /* Prevents text from shrinking too much */
}

/* Feature Cards Grid (Now Aligned Horizontally with Text) */
.features-grid {
    display: flex; /* Use flex for the three cards */
    justify-content: flex-end; /* Push cards to the right side of the hero-content */
    gap: 20px;
    margin-top: 0; 
    flex-wrap: nowrap; /* Keep cards in a single row */
}

/* New Card Style for the Overlay Effect */
.feature-item { 
    /* Overriding default feature-item styles for the overlay cards */
    text-align: left; /* Text alignment from the image */
    padding: 0; /* Remove padding from .feature-item */
    border: none;
    backdrop-filter: none;
    flex-basis: 33.33%; /* Even distribution */
    min-width: 180px;
}

.feature-card-overlay {
    /* Specific styles for the translucent card look */
    background-color: var(--overlay-bg); /* Use transparent background */
    backdrop-filter: blur(12px); /* Creates the frosted glass effect */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center; 
    transition: transform 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    max-width: 280px;
}

.feature-card-overlay:hover {
    transform: translateY(-5px);
}

.feature-card-overlay h3 {
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 5px;
}

.feature-card-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.3;
}

.feature-card-overlay .icon-chain {
    background-image: url(img/link.svg);
}

/* Icon style adjustments for the red background/white icon look */
.feature-card-overlay .icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--primary-color); /* Red background */
    border: none;
    border-radius: 5px; /* Square/Rectangular shape from the image */
    margin: 0 auto;
}

.feature-card-overlay .icon-wrapper i {
    font-size: 60px;
    line-height: 80px;
    color: white; 
}


/* Features Section */
#features {
    text-align: center;
}

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

#features .features-container {
    display: flex; /* Make it a flex container */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items on the main axis (horizontally) */
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--background-color);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    flex: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Main Features (Tabs) Section --- */

#main-features {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--card-bg);
}

#main-features h2 {
    margin-bottom: 40px;
}

/* Tab Navigation Styling */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 5px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: color 0.3s, background-color 0.3s;
    flex: 1;
    max-width: 200px;
    font-family: 'Golos Text';
}

.tab-button.active,
.tab-button.active:hover {
    color: var(--background-color);
    border-radius: 5px;
    background-color: var(--primary-color);
}

.tab-button:hover {
    color: var(--primary-color);
}

/* Tab Content Layout */
.tab-pane {
    display: none; /* Hide all content panes by default */
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.tab-pane.active {
    display: block; /* Show only the active pane */
}

.tab-content-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.tab-image {
    flex: 1;
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-text {
    flex: 1;
    max-width: 55%;
}

.tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.tab-text ul {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0;
}

.tab-text li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px dashed var(--card-border);
    font-size: 1.1rem;
}

.tab-text li:last-child {
    border-bottom: none;
}

/* Custom Bullet Points */
.tab-text li::before {
    content: '\2713'; /* Checkmark symbol */
    font-family: 'Material Icons'; /* Use a custom icon/symbol if available */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Technical Specs Section */
#specs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.specs-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.specs-list {
    flex: 1;
    list-style: none;
    text-align: left;
    min-width: 300px;
}

.specs-list li {
    background-color: var(--card-bg);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
}

.specs-list li span:first-child {
    font-weight: bold;
    color: var(--secondary-color);
}

.specs-image {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: auto;
}

/* Comparison Section */
#comparison {
    text-align: center;
    background-color: var(--card-bg);
}

.comparison-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.comparison-column {
    flex: 1;
    min-width: 300px;
    background-color: var(--background-color);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.comparison-column h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    height: 40px;
}

.comparison-column ul {
    list-style: none;
    text-align: left;
}

.comparison-column li {
    padding: 15px 0;
    border-bottom: 1px solid var(--card-border);
}

.comparison-column .logo {
    height: 40px;
    margin-bottom: 20px;
}

.comparison-column .logo img {
    height: 100%;
    width: auto;
    margin: 0 auto;
}

.comparison-column .logo .logo-dark {
    display: none;
}

body.dark-mode .comparison-column .logo .logo-light {
    display: none;
}
body.dark-mode .comparison-column .logo .logo-dark {
    display: block;
}

.comparison-column.company-product {
    border: 1px solid var(--primary-color);
}

.comparison-column.competition li {
    color: var(--text-faded);
}

#comparison li i {
    vertical-align: bottom;
    margin-right: 10px;
    color: var(--primary-color);
}

.comparison-column li:last-child {
    border-bottom: none;
}

/* Team Section */
#team {
    text-align: center;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    max-width: 250px;
    min-width: 200px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    margin-bottom: 5px;
}

/* Footer (Contact) Section */
#contact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 5%;
    gap: 40px;
}

body.dark-mode #contact {
    background-color: var(--card-bg);
}

#contact h3, #contact h4 {
    color: white;
    margin-bottom: 20px;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Golos Text', sans-serif;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border: 2px solid var(--primary-color);
}

#contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #c90910;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0px;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    /* Ensure the list is still handled by the 1024px rule, or adjust if needed */
    nav ul.open li a {
        font-size: 1.2rem;
    }
    #home {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        flex-direction: column; /* Stack text and cards vertically */
        align-items: center; /* Center everything */
        text-align: center;
        position: static; /* Let content flow naturally in a column */
        padding: 50px 5%;
        width: 100%;
    }
    .hero-text-and-cta {
        max-width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    .hero-bg {
        width: 100%;
        height: 300px;
        min-height: unset;
    }
    .specs-container {
        flex-direction: column;
        text-align: center;
    }
    .specs-list {
        min-width: auto;
    }
    .specs-list li {
        text-align: center;
    }
    .comparison-container {
        flex-direction: column;
    }
    #contact {
        flex-direction: column;
        text-align: center;
    }
    .contact-form-container, .contact-info {
        min-width: 100%;
    }
    .features-grid {
        flex-direction: column; /* Stack cards vertically */
        gap: 15px;
    }
    .tabs-nav {
        gap: 5px;
    }
    .tab-button {
        padding: 10px;
        font-size: 1rem;
    }
    .tab-content-layout {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
    }
    .tab-image, .tab-text {
        max-width: 100%;
    }
    .tab-image {
        margin-bottom: 20px;
    }
    .tab-text ul {
        padding-left: 20px; /* Add some padding back for stacked list */
        text-align: left;
    }
}

@media (min-width:769px) and (max-width:1200px) {  
    /* SECTIONS */
    section {
        padding: 40px 3%; /* Slightly less padding on smaller screens */
    }
    .hero-content {
        flex-direction: column; /* Stack text and cards vertically */
        align-items: center; /* Center everything */
        text-align: center;
        position: static; /* Let content flow naturally in a column */
        padding: 50px 5%;
        width: 100%;
    }
    .hero-text-and-cta {
        max-width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    .features-grid {
        flex-direction: row; /* Stack cards horizontally */
        gap: 15px;
    }
    .feature-card-overlay {
        text-align: center;
    }
    .feature-card-overlay .icon-wrapper {
        margin: 0 auto 10px; /* Re-center the icon wrapper */
    }
}

@media (max-width: 1024px) {
    /* NAVIGATION */
    nav {
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }

    nav .logo {
        height: 30px;
    }
    
    /* Show the menu when the 'open' class is added by JS */
    nav ul.open {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--card-bg);
    }

    /* Move controls next to logo for better layout */
    .nav-controls {
        order: 2; /* Keep controls visible on the right */
    }

    #home {
        min-height: calc(100vh - 62px);
    }
}
