/* ========== VARIABLES ========== */
:root {
    --primary-dark: #0A192F;
    --primary: #0F2B3D;
    --secondary: #2C7A7B;
    --accent: #E53E3E;
    --accent-light: #FC8181;
    --light-bg: #F7FAFC;
    --white: #FFFFFF;
    --gray-light: #EDF2F7;
    --gray: #A0AEC0;
    --dark-text: #1A202C;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 25px 30px -12px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin: 3rem 0 2.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.section-title p {
    color: #4A5568;
    max-width: 650px;
    margin: 0 auto;
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(44, 122, 123, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
}

.logo i {
    color: var(--secondary);
    font-size: 1.8rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: white;
    border-radius: 4px;
    transition: 0.25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a:hover,
nav ul li a.active {
    color: white;
}

.menu-overlay {
    display: none;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(120deg, #0A192F 0%, #0F2B3D 100%);
    color: white;
    padding: 10rem 0 6rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #1E5C5C;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ========== CATEGORIES ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cat-link {
    text-decoration: none;
    display: block;
}

.category-card {
    background: var(--white);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
}

.cat-link:hover .category-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.category-icon {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
}

.cat-link:hover .category-icon {
    color: var(--accent);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--primary-dark);
}

.category-card p {
    color: #4A5568;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.card-indicator {
    font-weight: 600;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    opacity: 0;
    transition: 0.2s;
}

.cat-link:hover .card-indicator {
    opacity: 1;
    color: var(--accent);
}

/* ========== PRODUCTS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 220px;
    background: #E2E8F0;
    position: relative;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
}

.product-info {
    padding: 1.8rem;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.product-category {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-description {
    color: #4A5568;
    margin-bottom: 1.2rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-price span {
    font-size: 1rem;
    text-decoration: line-through;
    color: #A0AEC0;
    font-weight: normal;
}

.product-features {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.product-features li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.product-features i {
    color: var(--secondary);
    width: 18px;
}

/* ========== SUPPORT SECTION ========== */
.support-section {
    background: var(--gray-light);
    padding: 4rem 0;
    border-radius: 48px 48px 0 0;
    margin: 2rem 0;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.support-card {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    transition: 0.2s;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.support-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-dark);
    color: #CBD5E0;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

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

.footer-col ul li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col a {
    color: #CBD5E0;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icons a {
    background: rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.social-icons a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    border: none;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.8rem;
    font-size: 0.85rem;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 32px;
    max-width: 520px;
    width: 100%;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #A0AEC0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid #CBD5E0;
    font-size: 1rem;
}

/* Chat Modal */
#chatMessages {
    height: 300px;
    overflow-y: auto;
    background: #F1F5F9;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 0.9rem;
}

.message.support {
    background: #E6FFFA;
    align-self: flex-start;
    border-radius: 20px 20px 20px 4px;
}

.message.user {
    background: var(--secondary);
    color: white;
    align-self: flex-end;
    border-radius: 20px 20px 4px 20px;
}

.chat-input-group {
    display: flex;
    gap: 10px;
}

.chat-input-group input {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid #CBD5E0;
}

/* ========== ALERTS ========== */
.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.alert-success {
    background: #E8F8F5;
    color: #27AE60;
}

.alert-danger {
    background: #FED7D7;
    color: #C53030;
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary-dark);
        padding: 100px 32px 40px;
        transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.25s;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .product-price {
        flex-direction: column;
        gap: 5px;
    }
}