/* DESIGN SYSTEM - Code Chicken Ultra Premium V2 */
:root {
    --primary: #065f46;      /* Forest Green */
    --primary-dark: #064e3b;
    --accent: #f59e0b;       /* Golden Harvest */
    --accent-dark: #d97706;
    --bg: #fffcf4;          /* Soft Eggshell */
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    --card-shadow: 0 40px 100px -20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a { text-decoration: none; color: inherit; transition: cubic-bezier(0.19, 1, 0.22, 1) 0.5s; }
button { cursor: pointer; border: none; background: none; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
header {
    background: rgba(255, 252, 244, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary);
    letter-spacing: -2px;
}

.logo img {
    height: 65px;
    width: 65px;
    border-radius: 60px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(6, 95, 70, 0.1);
}

.nav-links { display: flex; gap: 50px; }
.nav-links li { list-style: none; }
.nav-links a { font-weight: 600; font-size: 1.1rem; color: var(--text); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 0; height: 3px; background: var(--accent); transition: 0.4s; border-radius: 10px; }
.nav-links a:hover::after, .nav-links li a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.menu-toggle { display: none; cursor: pointer; font-size: 2.2rem; color: var(--primary); }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px) skewY(2deg);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) skewY(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(1.15) rotate(1deg);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Hero & Carousel */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel { height: 100%; width: 100%; position: relative; }
.carousel-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 2s ease-out;
    transform: scale(1.1);
}
.carousel-item.active { 
    opacity: 1; 
    transform: scale(1);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 5%;
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 900px;
}

.carousel-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -4px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* Sections */
section { padding: 120px 0; }
.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 70px;
    letter-spacing: -2px;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 10px;
}

/* Cards & Grid Premium */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 60px 120px -30px rgba(6, 95, 70, 0.15);
}

.card-img {
    height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.card-body { padding: 40px; }

.card-category {
    font-size: 0.9rem;
    color: var(--accent-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--text);
    letter-spacing: -1px;
}

.card-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
}

/* Premium Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 18px 45px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(6, 95, 70, 0.3);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.4);
}

.order-btn { width: 100%; justify-content: center; }

.icon-box {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--bg) 0%, #fef3c7 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 2.5rem;
    margin-bottom: 35px;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
    transition: 0.5s;
}

.card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

/* Footer Premium */
footer {
    background: var(--primary-dark);
    color: #aec7bc;
    padding: 120px 0 60px;
    margin-top: 100px;
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 80px;
    margin-bottom: 80px;
}

.footer-section h3 { 
    color: var(--accent); 
    margin-bottom: 35px; 
    font-size: 1.8rem; 
    font-weight: 800; 
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 15px; }
.footer-section a:hover { color: white; padding-left: 10px; }

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 40px; 
    text-align: center; 
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Modal Premium */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(6, 95, 70, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 60px;
    border-radius: 50px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 100px 150px -50px rgba(0,0,0,0.3);
    animation: modalAppear 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(100px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    right: 40px;
    top: 40px;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
}

.close-modal:hover { transform: rotate(90deg); color: var(--danger); }

.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 12px; font-size: 1.1rem; }
.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 20px; 
    border-radius: 20px; 
    border: 2px solid #f1f5f9; 
    background: #f8fafc;
    transition: 0.3s;
    font-size: 1.1rem;
}

.form-group input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 10px 30px rgba(6, 95, 70, 0.1);
    outline: none;
}

@media (max-width: 1024px) {
    .section-title { font-size: 2.8rem; }
    .footer-grid { gap: 40px; }
}

@media (max-width: 768px) {
    /* Responsive Header & Menu */
    nav { height: 80px; }
    .logo { font-size: 1.6rem; }
    .logo img { height: 50px; width: 50px; }
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: 0 40px 100px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.8rem; }

    /* Fix overlapping sections */
    section { padding: 60px 0; }
    .section-title { font-size: 2.22rem; margin-bottom: 40px; line-height: 1.2; word-break: break-word; }
    
    .hero { height: auto; min-height: 500px; padding: 100px 0 60px; }
    .carousel-content h1 { font-size: 2.8rem; letter-spacing: -2px; line-height: 1.1; margin-bottom: 15px; }
    .carousel-content p { font-size: 1.1rem; margin-bottom: 25px; }
    
    .grid { grid-template-columns: 1fr; gap: 30px; }
    .card { border-radius: 25px; }
    .card-body { padding: 30px 25px; }
    .card-title { font-size: 1.5rem; }
    
    .grid-2 { grid-template-columns: 1fr; }
    
    footer { padding: 80px 0 40px; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); text-align: center; }
    .footer-section h3 { margin-bottom: 20px; font-size: 1.5rem; }
    .footer-grid { gap: 40px; margin-bottom: 60px; grid-template-columns: 1fr; }
    
    .modal-content { padding: 40px 25px; border-radius: 30px; }
}

.delivery-card input:checked + .delivery-box {
    border-color: var(--primary) !important;
    background: #fffbeb;
    color: var(--text);
    font-weight: 800;
}

.delivery-box i { font-size: 1.5rem; margin-bottom: 5px; color: var(--primary-dark); }
