/* CSS Reset and Base Styles */
:root {
    --primary: #333333;
    --secondary: #555555;
    --accent: #e67e22;
    --accent-dark: #d35400;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    padding-top: 0;
}

/* Header Styles */
header {
    background-color: rgba(60, 60, 60, 0.90);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo h1 span {
    font-weight: 300;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
url('img/hero/vortex.webp') no-repeat center center/cover;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    transition: background 0.5s ease-in-out;
    margin-top: -120px;
}

.hero-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Carousel specific styles */
.product-carousel {
    margin-top: 50px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    max-width: 800px;
    margin-bottom: 80px;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-slide p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: var(--white);
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

/* Products Section */
.products {
    padding: 5rem 2rem;
    background-color: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.product-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.product-link:hover {
    color: var(--accent-dark);
}

.product-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Innovation Section */
.innovation {
    padding: 5rem 2rem;
    background-color: var(--white);
}

.innovation-content {
    max-width: 1200px;
    margin: 0 auto;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.innovation-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s;
}

.innovation-item:hover {
    transform: translateY(-5px);
}

.innovation-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.innovation-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.innovation-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: var(--light-gray);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 3rem;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.contact-details p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--dark);
}

.contact-details i {
    margin-right: 1rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--primary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.copyright {
    font-size: 0.8rem;
    color: #aaa;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--accent);
}

.nav-menu {
    transition: all 0.8s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    .nav-menu {
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    /* Header styling */
    header {
        padding: 0.5rem 0;
        z-index: 1000;
        transition: min-height 0.4s ease;
    }
    
    .header-container {
        padding: 0 1rem;
        min-height: 70px; /* Changed to min-height */
        display: flex;
        flex-wrap: wrap; /* Allow content to wrap */
        justify-content: space-between;
        align-items: center;
    }
    
    /* Mobile menu button */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        margin-left: auto;
        padding: 0.5rem;
        z-index: 1002;
        order: 2; /* Ensure it stays on right */
    }
    
    /* Logo container */
    .logo {
        order: 1; /* Ensure logo stays on left */
    }
    
    /* Menu container - now part of flex flow */
    .nav-menu {
        width: 100%;
        background: inherit;
        backdrop-filter: inherit;
        -webkit-backdrop-filter: inherit;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 1001;
        order: 3; /* Force to bottom of flex container */
        margin-top: 0; /* Remove default margin */
    }
    
    /* Expand header height to contain menu */
    header.menu-expanded {
        min-height: calc(70px + var(--menu-height, 400px));
    }
    
    header.menu-expanded .nav-menu {
        max-height: 400px;
        padding: 1rem 0;
    }
    
    /* Menu items - centered and visible */
    .nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 0;
        text-align: center;
    }
    
    .nav-menu ul li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 0.5rem 0;
        width: 100%;
        font-size: 1.2rem; /* Larger text for visibility */
        color: white !important; /* Ensure contrast */
    }
    
    /* Ensure menu appears above content */
    header.menu-expanded {
        position: sticky;
        z-index: 1000;
    }
    
    .mobile-menu-toggle.active {
        transform: rotate(90deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .carousel-slide h2 {
        font-size: 2.5rem;
    }
    
    .carousel-slide p {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 6rem 0;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .carousel-slide h2 {
        font-size: 2rem;
    }
    
    .carousel-slide p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}