:root {
    --primary-color: #004a99;
    --primary-dark: #003366;
    --secondary-color: #00a19c;
    --accent-color: #e6f7f6;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafbfc;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-btn {
    padding: 10px 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* Hero Slider */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    color: var(--bg-white);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 74, 153, 0.6), rgba(0, 161, 156, 0.4));
}

.slide-content {
    position: relative;
    z-index: 2;
    margin-left: 10%;
    max-width: 700px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--bg-white);
    transform: scale(1.3);
}

/* Form Styling */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.1);
}

#formStatus.success {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 5px;
}

#formStatus.error {
    color: #c62828;
    background: #ffebee;
    padding: 10px;
    border-radius: 5px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
}

/* Category Cards */
.product-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 74, 153, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

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

.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.category-card h3,
.category-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Products Page Specifics */
.premium-sidebar {
    width: 280px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 700;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link i {
    width: 20px;
    margin-right: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.sidebar-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.sidebar-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 74, 153, 0.2);
}

.sidebar-link.active i {
    color: white;
}

/* Mobile Category Nav Wrap */
.mobile-category-nav {
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 10px;
    gap: 12px;
    align-self: stretch;
    min-width: 0;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.mobile-category-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.mobile-nav-item {
    display: inline-block;
    flex: 0 0 auto;
    text-align: center;
    padding: 10px 25px;
    background: var(--bg-white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.mobile-nav-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Category Headers */
.category-header {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f0f7ff 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.category-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 25px;
    width: 90%;
    max-width: 950px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 30px;
    top: 25px;
    font-size: 32px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
}

.modal-img-container {
    background: #fdfdfd;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
}

.modal-img-container img {
    max-height: 450px;
    object-fit: contain;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
    line-height: 1.1;
}

.category-tag {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.modal-info p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #0a1118;
    color: #ffffff;
    padding: 100px 0 30px;
}

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

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #555;
}

.footer-bottom a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
    margin-left: 5px;
}

.footer-bottom a:hover {
    color: var(--secondary-color, #00d2c4);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: 2.8rem;
    }

    .product-categories {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .product-categories {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-card {
        padding: 30px 20px;
    }
}

@media (max-width: 992px) {
    .premium-sidebar {
        display: none;
    }

    .mobile-category-nav {
        display: flex;
        margin-bottom: 30px;
    }

    .products-layout {
        flex-direction: column !important;
        align-items: stretch !important;
        /* Force children to stretch perfectly */
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.15);
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 700;
        width: 100%;
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-btn {
        display: none !important;
    }

    .hero {
        height: 70vh;
    }

    .slide-content {
        margin-left: 5%;
        padding-right: 5%;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-content {
        padding: 40px 25px 30px;
        margin: 20px;
    }

    .modal-info h2 {
        font-size: 1.8rem;
    }

    .modal-img-container img {
        max-height: 300px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .contact-form-container {
        padding: 30px 20px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .mobile-category-nav {
        margin-bottom: 30px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .category-header {
        padding: 25px;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* BACK TO TOP BUTTON */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}
