

:root {
    --primary: #00d4ff;
    --dark: #0a0a23;
    --darker: #05050f;
    --gray: #1f1f4d;
    --text: #eeeeee;
    --accent-hover: #009ec3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--darker);
}

/* ===================== CONTAINERS ===================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ===================== NAVIGATION ===================== */
.navbar {
    background: rgba(10, 10, 35, 0.98);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 800;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: clamp(1.2rem, 4vw, 2.5rem);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    color: white;
}

.hamburger {
    display: none;
    font-size: clamp(1.6rem, 5vw, 2rem);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* ===================== HERO & PAGE HEADER ===================== */
.hero, .page-header {
    text-align: center;
    padding: clamp(80px, 15vw, 140px) 5%;
    background: linear-gradient(135deg, #0a0a23, #1f1f4d);
}

.hero h2, .page-header h2 {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p, .page-header p {
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* ===================== PRODUCT GRID (Auto Layout) ===================== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.2rem);
    width: 100%;
}

.card {
    background: #16162b;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.card-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: clamp(1.2rem, 4vw, 1.45rem);
}

.specs {
    color: #b0b0d0;
    font-size: 1rem;
    margin: 10px 0 15px;
}

.price {
    font-size: clamp(1.6rem, 5vw, 1.9rem);
    font-weight: 700;
    color: var(--primary);
}

.add-to-cart, .buy-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.add-to-cart:hover, .buy-btn:hover {
    background: white;
}

/* ===================== OTHER SECTIONS ===================== */
.about-container,
.benefits-grid,
.values-grid,
.testimonial-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.about-container {
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
}

/* Team Members */
.team-member {
    text-align: center;
}

.member-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
}

/* Catalogue Controls */
.catalogue-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.search-bar input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    background: #16162b;
    border: 2px solid #2a2a4f;
    border-radius: 50px;
    color: white;
    font-size: 1.05rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters select {
    padding: 14px 20px;
    background: #16162b;
    color: white;
    border: 2px solid #2a2a4f;
    border-radius: 50px;
    min-width: 180px;
}

/* Footer */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    padding: 60px 5% 40px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 5%;
    background: #05050f;
    font-size: 0.95rem;
    color: #777;
}

/* ===================== RESPONSIVE AUTO LAYOUT ===================== */

/* Mobile Devices */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 60px;
        gap: 2.5rem;
        transition: left 0.4s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .products {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Large Screens */
@media (min-width: 1025px) {
    .container {
        padding: 0 6%;
    }
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 20px;
    background: var(--primary);
    color: #000;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 10px;
}