/* CSS Variables */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --accent-red: #ff0000;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-300: #cccccc;
    --gray-700: #333333;
    --gray-800: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.announcement-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.announcement-content span {
    padding: 0 50px;
    font-size: 12px;
    letter-spacing: 2px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.header {
    background: var(--primary-white);
    border-bottom: 2px solid var(--primary-black);
    position: relative;
    top: auto;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo h1 {
    font-size: 24px;
    letter-spacing: 3px;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 20px;
}

.icon-btn {
    position: relative;
    font-size: 20px;
    padding: 5px;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: var(--primary-white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--gray-800);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    inset: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/hero-2.png"); /* your image */
    background-size: cover;       /* 🔥 fills entire div */
    background-position: center;  /* keeps image centered */
    background-repeat: no-repeat;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary-white);
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 40px;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid var(--primary-black);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-white);
    color: var(--primary-black);
}

.btn-block {
    width: 100%;
}

/* Section Title */
.section-title {
    font-size: 36px;
    margin: 80px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 48px;
    margin: 60px 0 40px;
    text-align: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    position: relative;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    background: var(--primary-white);
    animation: fadeInUp 0.6s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    border-color: var(--primary-black);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-white);
    border: 1px solid var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.action-btn:hover,
.action-btn.active {
    background: var(--primary-black);
    color: var(--primary-white);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-price.sale {
    color: var(--accent-red);
}

.product-price .original-price {
    text-decoration: line-through;
    color: var(--gray-300);
    margin-left: 10px;
    font-size: 14px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-black);
    color: var(--primary-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--gray-700);
}

/* Banner Section */
.banner-section {
    margin: 80px 0;
    position: relative;
    height: 500px;
}

.banner-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0066cc, #00ccff);
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-white);
}

.banner-title {
    font-size: 96px;
    line-height: 1;
    color: #ffff00;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.banner-subtitle {
    font-size: 24px;
    margin-top: 20px;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.community-card {
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid var(--primary-black);
}

.community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.community-card:hover img {
    transform: scale(1.1);
}

/* Filters */
.filters {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--gray-100);
    border: 2px solid var(--primary-black);
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.filter-group select {
    padding: 12px;
    border: 2px solid var(--primary-black);
    background: var(--primary-white);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    cursor: pointer;
}

/* About Page */
.about-hero {
    position: relative;
    height: 60vh;
    background: var(--gray-800);
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1558769132-cb1aea1f8cf8?w=1200') center/cover;
    opacity: 0.3;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--primary-white);
}

.about-hero-content h2 {
    font-size: 96px;
}

.about-vision {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 80px;
}

.about-vision h3 {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 40px;
}

.about-vision em {
    font-style: italic;
    font-family: 'Oswald', sans-serif;
}

.about-vision p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-700);
}

.community-brands {
    margin-bottom: 80px;
}

.community-brands h4 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.brand-logo {
    aspect-ratio: 1;
    border: 2px solid var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    transition: var(--transition);
}

.brand-logo:hover {
    background: var(--primary-black);
    color: var(--primary-white);
}

.timeline-section,
.founder-section,
.planet-section {
    margin-bottom: 80px;
}

.timeline-section h4,
.founder-section h4,
.planet-section h4 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.timeline-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.timeline-images img {
    width: 100%;
    border: 2px solid var(--primary-black);
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.founder-content img {
    width: 100%;
    border: 2px solid var(--primary-black);
}

.founder-text p {
    line-height: 1.8;
}

.planet-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.planet-images img {
    width: 100%;
    border: 2px solid var(--primary-black);
}

/* Contact Page */
.contact-map {
    margin: 40px 0;
    border: 2px solid var(--primary-black);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-form-section h3,
.contact-info-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contactForm input,
#contactForm textarea {
    padding: 15px;
    border: 2px solid var(--primary-black);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    background: var(--primary-white);
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    background: var(--gray-100);
}

.contact-info-section p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-200);
}

.newsletter {
    background: var(--gray-100);
    padding: 60px;
    text-align: center;
    border: 2px solid var(--primary-black);
}

.newsletter h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

#newsletterForm {
    display: flex;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

#newsletterForm input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--primary-black);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
}

#newsletterForm button {
    padding: 15px 30px;
    background: var(--primary-black);
    color: var(--primary-white);
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid var(--primary-black);
}

#newsletterForm button:hover {
    background: var(--primary-white);
    color: var(--primary-black);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--primary-white);
    border-left: 2px solid var(--primary-black);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid var(--primary-black);
}

.sidebar-header h3 {
    font-size: 24px;
}

.close-btn {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-black);
}

.close-btn:hover {
    color: var(--accent-red);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.empty-message {
    text-align: center;
    color: var(--gray-300);
    padding: 60px 0;
}

.cart-item,
.favorite-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image,
.favorite-item-image {
    width: 100px;
    height: 100px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.cart-item-image img,
.favorite-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info,
.favorite-item-info {
    flex: 1;
}

.cart-item-name,
.favorite-item-name {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 14px;
}

.cart-item-price {
    font-weight: 700;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-black);
    background: var(--primary-white);
    font-size: 16px;
    font-weight: 700;
}

.quantity-btn:hover {
    background: var(--primary-black);
    color: var(--primary-white);
}

.remove-btn {
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}

.remove-btn:hover {
    text-decoration: underline;
}

.sidebar-footer {
    padding: 30px;
    border-top: 2px solid var(--primary-black);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 80px 0 40px;
    margin-top: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
    color: var(--gray-300);
}

.footer-col a:hover {
    color: var(--primary-white);
}

.footer-social {
    text-align: center;
    margin-bottom: 40px;
}

.footer-social h4 {
    font-size: 14px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-white);
    color: var(--primary-black);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
    font-size: 10px;
    color: var(--gray-300);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
     .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }

    /* Show menu toggle */
    .menu-toggle {
        display: block;
    }

    /* Hide header actions from header */
    .header-actions {
        display: none;
    }

    /* Dropdown menu */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-white);
        border-top: 2px solid var(--primary-black);
        display: none;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav.active {
        display: flex;
    }

    /* Nav links */
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-link::after {
        display: none;
    }

    /* Cart + favorites inside menu */
    .nav .header-actions {
        display: flex;
        justify-content: flex-start;
        gap: 20px;
        padding-top: 15px;
        border-top: 1px solid var(--gray-200);
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .founder-content {
        grid-template-columns: 1fr;
    }
    
    .planet-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    .banner-title {
        font-size: 48px;
    }

     #newsletterForm {
        flex-direction: column;
    }

    #newsletterForm input,
    #newsletterForm button {
        width: 100%;
    }
}