/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #E53E3E;
    color: white;
    min-height: 100vh;
}

/* ===== MAIN HERO CONTAINER ===== */
.hero-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

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

/* ===== HEADER & LOGO ===== */
.header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    animation: slideInLeft 1s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
    letter-spacing: -0.02em;
}

/* ===== CONTENT GRID LAYOUT ===== */
.content-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "products main-content order";
    align-items: center;
    gap: 2rem;
    padding: 6rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ===== PRODUCT SECTION (Bottom Left) ===== */
.product-section {
    grid-area: products;
    align-self: end;
    animation: slideInBottom 1s ease-out 0.6s both;
}

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

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.product-image {
    width: clamp(120px, 15vw, 200px);
    height: clamp(120px, 15vw, 200px);
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.roll-1 {
    margin-left: 0;
}

.roll-2 {
    margin-left: 2rem;
}

/* ===== MAIN CONTENT (Center) ===== */
.main-content {
    grid-area: main-content;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

.main-heading {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-container {
    margin-bottom: 2.5rem;
    animation: fadeIn 1.5s ease-out 1s both;
}

.countdown-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

#countdown-days {
    font-weight: 700;
    color: #FED7D7;
    font-size: 1.1em;
}

/* ===== CONTACT INFORMATION ===== */
.contact-info {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #FED7D7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

/* ===== ORDER SECTION (Right) ===== */
.order-section {
    grid-area: order;
    justify-self: end;
    animation: slideInRight 1s ease-out 0.8s both;
}

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

.order-content {
    text-align: center;
}

.order-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: white;
}

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

.delivery-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.delivery-link:hover {
    transform: scale(1.1);
}

.delivery-logo {
    width: clamp(100px, 12vw, 140px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 0.5rem;
    transition: box-shadow 0.3s ease;
}

.delivery-logo:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1200px) {
    .content-grid {
        padding: 8rem 4rem 4rem;
        gap: 3rem;
    }
}

/* Tablet (iPad) */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 1.5rem;
        padding: 5rem 2rem 2rem;
    }
    
    .header {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .roll-2 {
        margin-left: 1rem;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: 
            "main-content"
            "order"
            "products";
        gap: 3rem;
        padding: 5rem 1.5rem 2rem;
        text-align: center;
    }
    
    .product-section {
        align-self: center;
        justify-self: center;
    }
    
    .product-images {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .roll-1, .roll-2 {
        margin-left: 0;
    }
    
    .order-section {
        justify-self: center;
    }
    
    .delivery-apps {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-container {
        padding: 0;
    }
    
    .content-grid {
        padding: 4rem 1rem 1rem;
        gap: 2.5rem;
    }
    
    .header {
        top: 1rem;
        left: 1rem;
    }
    
    .main-heading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .product-image {
        width: 100px;
        height: 100px;
    }
    
    .delivery-logo {
        width: 80px;
    }
    
    .delivery-apps {
        gap: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .main-heading {
        font-size: 1.3rem;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
    }
    
    .delivery-logo {
        width: 70px;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */

/* Focus states for accessibility */
.delivery-link:focus,
.contact-info a:focus {
    outline: 2px solid #FED7D7;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-container {
        background: #B91C1C;
    }
    
    .contact-info a {
        color: #FEE2E2;
    }
}
