/* Base Reset & Aesthetics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0a0000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Make all images responsive globally */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Branding Colors */
.brand-family { color: #ffffff; }
.brand-mart { color: #3399ff; }

/* Dynamic Ambient Red Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #440000, #000); 
    transition: background 0.15s ease-out;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 4px;
    z-index: 1001;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 3rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    padding: 0.5rem; /* Larger touch target */
}

.nav-links a:hover { color: #3399ff; }

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive typography */
    line-height: 1.1;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.6s;
    color: #aaa; 
}

/* Content Sections */
section {
    padding: 8rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 4rem;
    line-height: 1.2;
    border-left: 4px solid #3399ff;
    padding-left: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Premium Glass Cards */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(51, 153, 255, 0.05);
    border: 1px solid rgba(51, 153, 255, 0.3);
}

.card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.card p { color: #aaa; line-height: 1.7; font-size: 0.95rem; }

/* Category Cards Specific Styles */
.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.category-card h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* About Us - Image Gallery */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.store-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease;
}

.store-img:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Contact Us */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 1.5rem;
    color: #3399ff;
    margin-right: 1.5rem;
    transition: transform 0.4s ease;
}

.contact-text {
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.4;
    word-break: break-word; /* Prevents overflow of long emails */
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(51, 153, 255, 0.08);
    border: 1px solid rgba(51, 153, 255, 0.4);
}

/* Footer & Links */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(5, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3399ff;
}

.separator {
    margin: 0 0.8rem;
    color: #444;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000; /* Above nav */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(15, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    position: relative;
    display: none;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active {
    display: block;
}

.modal-overlay.active .modal.active {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #3399ff;
    border-left: 4px solid #3399ff;
    padding-left: 1rem;
    letter-spacing: 0.05em;
}

.modal-content p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.modal-content ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-content ul li {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
    letter-spacing: 0.5px;
}

.modal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3399ff;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Custom Scrollbar for Modals */
.modal::-webkit-scrollbar {
    width: 8px;
}
.modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}
.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 153, 255, 0.5);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Mobile Responsiveness (Media Queries)
   ========================================= */

/* Tablets & Small Desktops */
@media screen and (max-width: 992px) {
    section { padding: 6rem 3rem; }
    nav { padding: 1.5rem 3rem; }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
    nav { 
        padding: 1.2rem 2rem; 
    }
    
    .hamburger { 
        display: block; 
    }

    /* Mobile Sidebar Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #0a0000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        border-left: 1px solid rgba(51, 153, 255, 0.2);
        box-shadow: -5px 0 15px rgba(0,0,0,0.8);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.1rem;
        letter-spacing: 3px;
        width: 100%;
        text-align: center;
    }

    section { 
        padding: 5rem 1.5rem; 
    }
    
    .section-title { 
        margin-bottom: 2.5rem; 
    }
    
    .card {
        padding: 2rem 1.5rem;
    }

    /* Contact alignment adjust for smaller screens */
    .contact-item { 
        padding: 1.2rem 1.5rem; 
    }
    
    .contact-icon {
        margin-right: 1rem;
    }

    /* Mobile Modal Adjustments */
    .modal {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .modal h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .modal-content p, .modal-content ul li {
        font-size: 0.95rem;
    }
}

/* Extra Small Devices (Phones) */
@media screen and (max-width: 480px) {
    .grid { 
        /* 1 item per row */
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    .store-img { 
        height: 220px; 
    }

    /* Stack Contact Items Vertically Centered */
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.8rem;
        font-size: 1.8rem;
    }

    .contact-text {
        font-size: 0.95rem;
    }
}