/* =========================================
   JMD Clothes - Premium Fashion Landing Page
   ========================================= */

/* CSS Variables */
:root {
    /* Colors */
    --clr-bg: #111111;
    --clr-bg-alt: #1a1a1a;
    --clr-bg-card: #222222;
    --clr-text: #F8F8F8;
    --clr-text-muted: #B0B0B0;
    --clr-primary: #D4AF37; /* Gold Accent */
    --clr-primary-hover: #F3CA4B;
    --clr-whatsapp: #25D366;
    --clr-whatsapp-hover: #1EBE5D;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    
    /* Spacing */
    --section-padding: 100px 0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.bg-darker {
    background-color: var(--clr-bg-alt);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.subtitle {
    display: block;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--clr-primary);
}

.section-title p {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #000;
    border: 2px solid var(--clr-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text);
    border: 2px solid var(--clr-text);
}

.btn-outline:hover {
    background-color: var(--clr-text);
    color: var(--clr-bg);
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--clr-primary);
    font-weight: 300;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--clr-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--clr-text);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-position: center 25%;
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.8) 100%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--clr-primary);
}

.hero p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* Collections */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.collection-card {
    background: var(--clr-bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-img-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
}

.collection-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 30px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* Featured Products */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    position: relative;
    group: hover;
}

.product-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
}

.product-img img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

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

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 0;
    opacity: 1;
}

.product-info {
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-info .price {
    color: var(--clr-primary);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Why Us */
.why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-content p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--clr-bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.03);
    border-color: var(--clr-primary);
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
}

.about-text p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border-left: 3px solid var(--clr-primary);
    transition: var(--transition);
}

.about-box:hover {
    transform: translateX(10px);
}

.about-box .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--clr-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-soft);
}

.stars {
    color: var(--clr-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.review-card p {
    font-style: italic;
    color: var(--clr-text-muted);
    margin-bottom: 20px;
}

.review-card h4 {
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--clr-bg-card);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--clr-primary);
}

.faq-item summary {
    padding: 20px 25px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--clr-primary);
    transition: transform 0.3s ease;
}

.faq-item[open] .toggle-icon {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 25px 20px;
    color: var(--clr-text-muted);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-methods {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.method .icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.method h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method p {
    color: var(--clr-text-muted);
}

.contact-form {
    background: var(--clr-bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group textarea {
    height: 150px;
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 60px;
    background: #000;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul li a {
    color: var(--clr-text-muted);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--clr-whatsapp);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.float-wa svg {
    width: 35px;
    height: 35px;
}

.float-wa:hover {
    background-color: var(--clr-whatsapp-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .why-wrapper, .about-container, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--clr-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        display: block;
    }
    
    .btn-nav {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer ul { align-items: center; }
    
    .float-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .float-wa svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .stats { flex-direction: column; gap: 20px; }
    .why-grid { grid-template-columns: 1fr; }
}
