/* Modern CSS with Variables and Responsive Design */
:root {
    --primary: #ff6b6b;
    --secondary: #ffa3a3;
    --dark: #333;
    --light: #f8f9fa;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

/* The primary body styling is now handled by the more detailed rule below,
   which includes the background image and animations. */

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px; /* Offset for fixed nav */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
}

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

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: var(--white);
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary);
}

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

.social-links a {
    color: var(--dark);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* The more detailed .contact-form styles appearing later will be kept. */
/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* This media query block contains general responsive rules. */
    /* Nav-related responsive rules are handled in a separate media query block later. */

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

    .about-content, .contact-content {
        flex-direction: column;
    }

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

/* Merged body properties */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light) url('https://raw.githubusercontent.com/Sithum0910/cake-1.0/refs/heads/main/file_00000000be186230aae3f3dcea4be5b9.png') no-repeat center 0 / auto 800px;
    background-attachment: scroll; /* Explicitly scroll */
    transition: background-position 0.2s ease-out;
    animation: scrollFade 1.5s ease-in-out;
}

/* Scroll animation */
@keyframes scrollFade {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: auto;
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.contact-form button.btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 8px;
}

/* Consolidating .nav-links and .hamburger styles.
   The initial definitions earlier in the file are more complete.
   The following media query block handles nav responsiveness. */

/* Hamburger button visuals */
.hamburger {
  display: none; /* shown on small screens below */
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  margin: 4px 0;
  transition: transform 250ms ease, opacity 250ms ease;
  border-radius: 2px;
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Default nav layout (desktop) */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Mobile: hide desktop nav, show slide-in panel */
@media (max-width: 900px) {
  .hamburger {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 340px;
    background: var(--nav-bg, #fff);
    flex-direction: column;
    padding: 4.5rem 1.5rem;
    gap: 1rem;
    transition: right 300ms ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  /* Ensure nav links are easy to tap */
  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.05rem;
  }
}

/* Prevent background scroll when menu open */
.no-scroll {
  overflow: hidden;
      }
