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

:root {
    --primary-red: #C73028;
    --dark-red: #A02820;
    --light-red: #E84A40;
    --white: #FFFFFF;
    --cream: #F5F0E8;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo a:hover img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px var(--shadow-strong);
    animation: fadeInUp 0.8s ease;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* About Section */
.about {
    background-color: var(--cream);
}

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

.about-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 48, 40, 0.1), transparent);
    transition: left 0.5s ease;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--primary-red);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.about-card:hover .about-icon {
    transform: scale(1.2) rotate(5deg);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Why HIT Section */
.why-hit {
    background: linear-gradient(135deg, #ffffff 0%, #fef8f5 100%);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-medium);
    border: 1px solid rgba(199, 48, 40, 0.1);
}

.why-hit h3 {
    font-size: 2.2rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.why-hit h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--light-red) 100%);
    border-radius: 2px;
}

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

.why-card {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--light-red) 100%);
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.why-card h4 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

.why-summary {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    padding: 2rem 2.5rem;
    background: var(--white);
    border-radius: 15px;
    line-height: 1.9;
    box-shadow: 0 4px 20px rgba(199, 48, 40, 0.15);
    border: 2px solid var(--primary-red);
    position: relative;
    font-weight: 500;
}

.why-summary strong {
    color: var(--primary-red);
}

/* Products Section */
.products {
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.product-card {
    background-color: transparent;
    perspective: 1000px;
    height: 580px;
    border: none;
    box-shadow: none;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.product-card:hover .product-card-inner,
.product-card.flipped .product-card-inner {
    transform: rotateY(180deg);
}

/* Disable hover on touch devices */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover .product-card-inner {
        transform: none;
    }

    /* Ensure flipped class works on mobile */
    .product-card.flipped .product-card-inner {
        transform: rotateY(180deg) !important;
    }

    /* Add tap feedback */
    .product-card:active {
        opacity: 0.9;
    }
}

.product-card-front,
.product-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    background-color: var(--white);
}

.product-card-front {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover .product-card-front {
    border-color: var(--primary-red);
}

.product-card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-red);
    overflow: hidden;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 235px;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 85%;
    display: block;
}

.flip-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--white);
    font-style: italic;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0.9;
}

.product-image-full {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 1rem;
}

.product-card-front .product-header,
.product-card-front p {
    padding: 0 1.8rem;
}

.product-card-front .product-header {
    padding-top: 1.3rem;
}

.product-card-front p {
    padding-bottom: 1.8rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-card.featured {
    border: 3px solid var(--primary-red);
    box-shadow: 0 5px 25px rgba(199, 48, 40, 0.2);
    border-radius: 15px;
}

.product-card.featured h3 {
    color: var(--primary-red);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.product-badge {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card.featured .product-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--dark-red);
    border: 2px solid #FFD700;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
    font-weight: 700;
    padding: 0.4rem 1rem;
    animation: signature-pulse 2s ease-in-out infinite;
}

@keyframes signature-pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.3);
    }
}

.product-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Wholesale CTA */
.wholesale-cta {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.wholesale-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.wholesale-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Contact Section */
.contact {
    background-color: var(--cream);
    padding: 4rem 0 1.5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    background-color: var(--white);
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    align-items: start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--medium-gray);
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    height: 100%;
    min-height: 450px;
}

.contact-map iframe {
    display: block;
    height: 100%;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-text p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-tagline {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 20px var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .about-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        height: 550px;
    }

    .product-image-container {
        height: 220px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-map {
        min-height: 350px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-header {
        flex-direction: column;
    }

    .product-card {
        height: 520px;
    }

    .product-image-container {
        height: 200px;
    }

    .product-image-full {
        object-fit: cover;
        object-position: center;
        padding: 0.5rem;
    }

    .product-card-back {
        padding: 1rem;
    }
}