:root {
    --primary: #8B4513;
    --secondary: #D2691E;
    --accent: #FFB347;
    --text-dark: #3E2723;
    --bg-light: #FFF8E7;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--text-dark); overflow-x: hidden; background: var(--bg-light); }
header { background: linear-gradient(135deg, #6B4423 0%, #8B4513 50%, #A0522D 100%); color: var(--white); padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.logo { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2.5rem; }
.nav-links a { color: var(--white); text-decoration: none; transition: all 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 10px rgba(250,204,21,0.5); }
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { width: 30px; height: 4px; background: var(--white); margin: 3px 0; transition: 0.3s; border-radius: 2px; }
#hero { background: linear-gradient(rgba(139,69,19,0.15), rgba(160,82,45,0.1)), url('images/hero-donuts.jpg'); background-size: cover; background-position: center; background-attachment: fixed; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); margin-top: 70px; position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(139,69,19,0.05) 0%, rgba(107,68,35,0.2) 100%); z-index: 0; }
#hero > * { position: relative; z-index: 1; }
#hero h1 { font-family: 'Playfair Display', serif; font-size: 4rem; margin-bottom: 1.5rem; animation: fadeInUp 1.2s ease; text-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 2px 10px rgba(0,0,0,0.5); }
#hero p { font-size: 1.4rem; margin-bottom: 2.5rem; max-width: 700px; animation: fadeInUp 1.2s ease 0.3s both; text-shadow: 0 2px 15px rgba(0,0,0,0.6), 0 1px 5px rgba(0,0,0,0.4); }
.btn { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: var(--white); padding: 1.2rem 3rem; text-decoration: none; border-radius: 50px; font-weight: 600; transition: all 0.4s; animation: fadeInUp 1.2s ease 0.6s both; box-shadow: 0 8px 25px rgba(210,105,30,0.4); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(210,105,30,0.6); }
section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
h2 { font-family: 'Playfair Display', serif; font-size: 3rem; text-align: center; margin-bottom: 4rem; color: var(--primary); position: relative; }
h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(135deg, var(--accent), var(--secondary)); border-radius: 2px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.product-card { background: rgba(255,255,255,0.95); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); text-align: center; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.5); position: relative; }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(135deg, var(--accent), var(--secondary)); transform: scaleX(0); transition: transform 0.4s; }
.product-card:hover { transform: translateY(-15px) rotate(1deg); box-shadow: 0 30px 80px rgba(0,0,0,0.2); }
.product-card:hover::before { transform: scaleX(1); }
.product-img { height: 280px; background-size: cover; background-position: center; position: relative; transition: transform 0.4s; }
.product-card:hover .product-img { transform: scale(1.1); }
.product-img i { position: absolute; bottom: 1rem; right: 1rem; background: rgba(255,255,255,0.9); padding: 0.8rem; border-radius: 50%; font-size: 1.5rem; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.product-info { padding: 2.5rem; }
.product-info h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary); }
.product-info p { color: #64748b; margin-bottom: 1.8rem; font-style: italic; }
.price { font-size: 2.2rem; font-weight: 700; color: var(--secondary); text-shadow: 0 2px 4px rgba(210,105,30,0.3); margin-bottom: 1.5rem; }
.order-btn { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: var(--white); border: none; padding: 1rem 2rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1rem; box-shadow: 0 4px 15px rgba(210,105,30,0.3); width: 100%; }
.order-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(210,105,30,0.5); }
.order-btn i { margin-right: 0.5rem; }

#about { 
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%); 
    border-radius: 50px; 
    margin: 2rem auto; 
    max-width: 1200px; 
    width: 100%; 
    padding: 6rem 2rem; 
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.05); 
    text-align: center;
}

#contact { 
    background: linear-gradient(135deg, #6B4423 0%, #8B4513 50%, #A0522D 100%); 
    color: var(--white); 
    border-radius: 50px; 
    margin: 2rem auto; 
    max-width: 1200px; 
    width: 100%; 
    overflow: hidden; 
    box-shadow: 0 20px 60px rgba(139,69,19,0.4); 
    text-align: center;
    padding: 6rem 2rem;
}
#contact h2 { color: var(--white); text-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 2px 10px rgba(0,0,0,0.5); }

.contact-info { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    margin: 3rem auto 0; 
    max-width: 800px; 
    width: 100%; 
    justify-content: center;
    text-align: center;
}

.contact-item { text-align: center; padding: 2rem; background: rgba(255,255,255,0.15); border-radius: 20px; backdrop-filter: blur(10px); transition: transform 0.3s; }
.contact-item:hover { transform: translateY(-5px); }
.contact-item i { font-size: 3rem; margin-bottom: 1rem; }
.contact-item i.fab.fa-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.2rem;
    text-shadow: none;
}
.contact-item:hover i.fab.fa-instagram {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(255, 109, 194, 0.5));
}
.contact-item i.fas.fa-phone { 
    color: var(--accent); 
    text-shadow: 0 4px 8px rgba(250,204,21,0.5); 
}
footer { background: linear-gradient(135deg, #3E2723, #5D4037); color: var(--white); text-align: center; padding: 3rem 2rem; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(135deg, var(--accent), transparent); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* Order Modal Styles */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; animation: fadeIn 0.3s; }
.modal-content { background: var(--white); border-radius: 30px; padding: 3rem; max-width: 500px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; animation: slideUp 0.3s; }
.close { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; font-weight: bold; color: #aaa; cursor: pointer; transition: color 0.3s; }
.close:hover { color: var(--primary); }
.modal-content h2 { font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 2rem; text-align: center; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-dark); font-weight: 600; }
.form-group label .required { color: #ef4444; }
.form-group input { width: 100%; padding: 1rem; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1rem; transition: border-color 0.3s; box-sizing: border-box; }
.form-group input:focus { outline: none; border-color: var(--secondary); }
.form-group input[readonly] { background-color: #f8fafc; cursor: not-allowed; }
.submit-btn { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: var(--white); border: none; padding: 1.2rem 3rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1.1rem; width: 100%; box-shadow: 0 8px 25px rgba(210,105,30,0.4); margin-top: 1rem; }
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(210,105,30,0.6); }
.submit-btn i { margin-right: 0.5rem; }

/* Success Popup Styles */
.success-popup { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.success-popup.show { opacity: 1; }
.success-content { background: var(--white); border-radius: 30px; padding: 3rem; max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; transform: scale(0.8); transition: transform 0.3s; }
.success-popup.show .success-content { transform: scale(1); }
.success-icon { font-size: 5rem; color: #10b981; margin-bottom: 1.5rem; animation: checkmark 0.6s ease-in-out; }
.success-content h3 { font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 1rem; font-size: 2rem; }
.success-content p { color: #64748b; margin-bottom: 2rem; font-size: 1.1rem; }
.success-btn { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: var(--white); border: none; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 1rem; box-shadow: 0 4px 15px rgba(210,105,30,0.3); }
.success-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(210,105,30,0.5); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes checkmark { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@media (max-width: 768px) { 
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(107,68,35,0.98); flex-direction: column; padding: 2rem; box-shadow: var(--shadow); }
    .nav-links.active { display: flex; } 
    .hamburger { display: flex; } 
    #hero { background-attachment: scroll; } 
    #hero h1 { font-size: 3rem; } 
    section { padding: 4rem 1rem; } 
    h2 { font-size: 2.2rem; } 
    .modal-content { padding: 2rem 1.5rem; width: 95%; }
    .success-content { padding: 2rem 1.5rem; width: 95%; }
    .success-icon { font-size: 4rem; }
    .success-content h3 { font-size: 1.5rem; }
}
