/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    background-color: #faf6f2;
    color: #5a4a42;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #8c6a56;
}

/* Header Section */
header {
    background: #fdf9e7;
    color: #330033;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(140, 106, 86, 0.2);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fdf9e7;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

header p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    font-weight: 300;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: #809c9a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(140, 106, 86, 0.2);
}

nav a {
    color: #fffcf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fffcf8;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a i {
    margin-right: 8px;
}

/* Hero Section */
.hero {
    background: #E5DAD5;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fffcf8;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.btn-primary {
    background: #a78b76;
    color: #fffcf8;
    box-shadow: 0 4px 15px rgba(167, 139, 118, 0.3);
}

.btn-primary:hover {
    background: #8c6a56;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(167, 139, 118, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fffcf8;
    border: 2px solid #fffcf8;
}

.btn-secondary:hover {
    background: rgba(255, 252, 248, 0.1);
    transform: translateY(-3px);
}

/* Floating Dessert Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* About Section */
.about {
    padding: 5rem 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: url('src/Little-Sweet-Tooth-Logo.jpeg') no-repeat;
    background-size: contain;
    z-index: -1;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #a78b76;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #5a4a42;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(140, 106, 86, 0.1);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.03);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Special Features */
.features {
    background: #fffcf8;
    padding: 5rem 1rem;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(140, 106, 86, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(140, 106, 86, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #a78b76;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #5a4a42;
}

/* Desserts Section */
.desserts {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, #faf6f2 0%, #f0e6dd 100%);
    position: relative;
}

.desserts::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path fill="%23fffcf8" d="M0,0 L100,0 L100,5 C75,10 25,10 0,5 Z"/></svg>');
    background-size: 100% 100%;
}

.desserts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.dessert-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid #a78b76;
    color: #a78b76;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-btn:hover, .category-btn.active {
    background: #a78b76;
    color: white;
}

.desserts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dessert-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(140, 106, 86, 0.1);
    transition: all 0.5s ease;
    position: relative;
}

.dessert-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(140, 106, 86, 0.2);
}

.dessert-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.dessert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dessert-item:hover .dessert-image img {
    transform: scale(1.1);
}

.dessert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #a78b76;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dessert-info {
    padding: 1.5rem;
}

.dessert-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.dessert-info p {
    color: #5a4a42;
    margin-bottom: 1rem;
    min-height: 60px;
}

.dessert-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8c6a56;
    margin-bottom: 1rem;
    display: block;
}

.dessert-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    background: #a78b76;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-to-cart:hover {
    background: #8c6a56;
    transform: translateY(-2px);
}

.favorite-btn {
    background: transparent;
    border: none;
    color: #d4b59a;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn.active {
    color: #e67e7e;
}

/* Testimonials */
.testimonials {
    padding: 5rem 1rem;
    background: #d4b59a;
    color: #fffcf8;
    text-align: center;
}

.testimonials h2 {
    color: #fffcf8;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: #a78b76;
    padding: 2rem;
    border-radius: 10px;
    margin: 0 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 3rem;
    color: rgba(255, 252, 248, 0.2);
    position: absolute;
}

.testimonial-content::before {
    top: -20px;
    left: -10px;
}

.testimonial-content::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Newsletter */
.newsletter {
    padding: 5rem 1rem;
    background: #fffcf8;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(140, 106, 86, 0.1);
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: #5a4a42;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #d4b59a;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #8c6a56;
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    background: #a78b76;
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #8c6a56;
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, #f0e6dd 0%, #faf6f2 100%);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(140, 106, 86, 0.1);
    text-align: left;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #8c6a56;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    font-size: 1.3rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: #5a4a42;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #a78b76;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8c6a56;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(140, 106, 86, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5a4a42;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #d4b59a;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #8c6a56;
    outline: none;
}

.submit-btn {
    background: #a78b76;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #8c6a56;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #8c6a56;
    color: #fffcf8;
    padding: 3rem 1rem 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: left;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #f0e6dd;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #fffcf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #f0e6dd;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 252, 248, 0.1);
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #a78b76;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #8c6a56;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    header p {
        font-size: 1.1rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.8rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .dessert-categories {
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: 50px;
        width: 100%;
    }
}
