/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sage Green Header Banner - UPDATED */
.sage-banner {
  position: relative;
  background-color: #DECA97;
  padding-top: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  min-height: 125px; /* Maintains height on mobile */
  overflow: hidden;
}

/* Keep consistent height on mobile */
@media (max-width: 768px) {
  .sage-banner {
    height: 125px;
    min-height: 125px;
  }
}

.sage-content {
  z-index: 2;
  text-align: center;
  color: black; /* or whatever text color contrasts well */
}

.sage-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

.sage-content h1 {
  font-family: 'Poppins', sans-serif;
  margin-top: 0;           /* Remove default margin */
  padding-top: 20px;       /* Adjust to move text up/down */
  /* or use negative margin if you want it higher */
  /* margin-top: -20px; */
  margin-top: -100px;
  /* Optional: Adjust font size and color */
  font-size: 1rem;
  color: #fefaf2; /* example dark brown */
}


/* Logo centered */
.logo {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
}

/* Make logo section relative so hamburger positions relative to it */
.logo-section {
  position: relative; /* Added so hamburger positions relative to this section */
  background-color: #fefaf2;
  text-align: center;
  margin-top: -5px;
  margin-bottom: -25px;
  z-index: 1000; /* Ensure it's above the background image */
}

.logo-img {
  height: 100px; /* adjust as needed */
  width: auto;
  display: inline-block;
}


/* Hamburger menu - POSITIONED AT TOP LEFT OF MEET EMILY SECTION */
.hamburger {
  display: none;
  position: absolute;
  left: 20px;
  top: 20px; /* 20px from top of its container */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}


/* Extra small phones adjustments */
@media (max-width: 480px) {
  .hamburger {
    left: 15px;
    top: 15px;
  }
  
  /* Make logo smaller on phones */
  .logo-img {
    height: 70px; /* Reduced from 100px */
  }
}

.hamburger span {
  display: block;
  height: 4px;
  background: #7B4F2E;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger open state (turns into an "X") */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav Menu BELOW the banner */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  max-height: 1000px; /* large enough by default */
  opacity: 1;
  overflow: visible;
  font-family: 'Poppins', sans-serif;
  order: 0; /* Default order for desktop */
}

.nav-links a {
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #DECA97;
  padding: 10px 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #B7905F;
}

/* Make sure hamburger only shows on mobile */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

/* Position hamburger in Meet Emily section on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  /* Make Meet Emily section relative so hamburger positions within it */
  .meet-emily-section {
    position: relative;
  }
  
  /* Mobile styles - hide nav links initially */
  .nav-links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    order: 1; /* Push nav menu after beach image on mobile */
  }

  /* Show nav links when open */
  .nav-links.open {
    max-height: 300px;
    opacity: 1;
  }

  .nav-links a {
    border-top: 1px solid #aabbaa;
    background-color: #cce0d0;
    padding: 15px;
    width: 100%;
    text-align: center;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Mobile styles - hide nav links initially */
  .nav-links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    order: 1; /* Push nav menu after beach image on mobile */
  }

  /* Show nav links when open */
  .nav-links.open {
    max-height: 300px; /* enough to show all links */
    opacity: 1;
  }

  .nav-links a {
    border-top: 1px solid #aabbaa;
    background-color: #cce0d0;
    padding: 15px;
    width: 100%;
    text-align: center;
  }
}

/* Meet Emily Section */
.meet-emily-section {
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  max-height: none;
  margin: 0 auto;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
}

/* Emily Background Section - More Responsive */
.emily-background {
  position: relative;
  background-image: url('assets/beach-and-trees.jpg');
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  min-height: 300px; /* Changed from fixed height */
  height: clamp(250px, 40vh, 400px); /* Responsive height */
  width: 100%;
  display: flex;
  align-items: center; /* Changed to center for better mobile appearance */
  justify-content: center;
  padding: 2rem 1rem; /* Better padding */
  opacity: 1;
}

@media (max-width: 768px) {
  .emily-background {
    align-items: center; /* vertically center */
    justify-content: center; /* center horizontally */
    text-align: center;
  }
}


/* Page Title - UPDATED for stacking */
.page-title {
  font-family: "redondo-ave", sans-serif;
  color: white;
  font-size: 5rem; /* Fixed size - stays same on desktop */
  font-weight: bold;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  margin: 0;
  padding: 0 1rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Tablet adjustments */
@media (max-width: 992px) {
  .page-title {
    font-size: clamp(1.8rem, 7vw, 4rem);
  }
  
  .emily-background {
    height: clamp(200px, 35vh, 350px);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .page-title {
    flex-direction: column;
    gap: 0.3rem;
    font-size: 3.5rem; /* Larger for mobile - adjust this value as needed */
    line-height: 1.2;
  }

  /* Hide bullet separators on mobile */
  .title-separator {
    display: none;
  }
  
  .emily-background {
    height: clamp(180px, 30vh, 300px);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 0.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .page-title {
    font-size: 3rem; /* Good readable size for smaller phones */
    gap: 0.2rem;
  }
  
  .emily-background {
    height: clamp(150px, 25vh, 250px);
    padding: 1rem 0.5rem;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emily-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px; /* height of the fade effect */
}


.meet-emily-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

/* Force children to center as a fallback */
.meet-emily-section .container > * {
  margin-left: auto;
  margin-right: auto;
}

.meet-emily-section .text-container p {
  font-family: 'Poppins', sans-serif;
}

/* When the screen condenses, stack + center everything */
@media (max-width: 768px) {
  .meet-emily-section {
    min-height: 70vh;                 /* gives room to center within viewport */
    display: flex;                     /* allows vertical centering */
    align-items: center;               /* vertical center */
    justify-content: center;           /* horizontal center (container itself) */
  }

  .meet-emily-section .container {
    width: 100%;
    flex-direction: column;            /* stack image above text */
    align-items: center;               /* center the items horizontally */
    justify-content: center;           /* center vertically inside the section */
    text-align: center;                /* center text */
    gap: 1.25rem;                      /* comfortable spacing between items */
  }

  .image-container,
  .text-container {
    width: 100%;                       /* take full line so center works cleanly */
    display: flex;
    flex-direction: column;
    align-items: center;               /* center their contents */
    justify-content: center;
  }

  .image-container img {
    max-width: 280px;                  /* good mobile size */
    margin: 0 auto;                    /* hard center */
  }

  /* Remove the desktop overlay offset on mobile */
  .text-container {
    margin-top: 0 !important;
    padding: 1rem;
  }

  /* Additional fix for the Meet Emily section text */
.text-container h2 {
  font-size: clamp(1.8rem, 5vw, 3.5rem); /* Make this responsive too */
  margin-bottom: 1rem;
  margin-top: 15%;
  color: #B7905F;
}

@media (max-width: 768px) {
  .text-container h2 {
    margin-top: 1rem; /* Override the 15% on mobile */
  }
}

/* Fix for inline gif to scale with text */
.inline-gif {
  width: clamp(60px, 8vw, 100px); /* Responsive gif size */
  height: auto;
  vertical-align: middle;
  margin-left: 10px;
}

  .text-container p {
    text-align: center;
    font-size: 1rem;
  }
}

/* Optional: kick in stacking a bit earlier on tablets */
@media (max-width: 992px) and (min-width: 769px) {
  .meet-emily-section .container {
    justify-content: center;
    gap: 2rem;
  }
}


.inline-gif {
  width: 100px;      /* was 40px, now a bit bigger */
  height: auto;
  vertical-align: middle;
  margin-left: 10px;
}


.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}


.image-container img {
  width: 100%;
  max-width: 300px; /* Adjust for your desired size */
  height: auto;
  aspect-ratio: 3 / 4; /* Makes it vertically oval */
  border-radius: 50% / 50%; /* Oval shape */
  object-fit: cover;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border: 8px solid #B7905F; /* Optional frame color */
}


.text-container {
  margin-top: -150px; /* This moves the text up */
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 700px;
}

.text-container h2 { 
  font-size: 3.5rem;
  margin-bottom: 1rem;
  margin-top: 15%;
  color: #B7905F;
}

.text-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #DECA97;
}

@media (max-width: 768px) {
  .meet-emily-section .container {
    flex-direction: column;
    text-align: center;
  }

  .image-container img {
    max-width: 250px;
    margin: 0 auto;
  }

  .text-container {
    flex: none;
    margin-top: 0;
    padding: 1rem;
  }

  .text-container h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-top: 1rem;
  }

  .text-container p {
    font-size: 1rem;
  }
}


.portfolio {
   padding: 20px 20px 60px 20px; /* top right bottom left */
  background-color: #DECA97; /* Light neutral background */
  text-align: center;
}

.portfolio h2 {
  font-size: 2.5rem;
  color: #DECA97 ; /* Dark brown */
  margin-bottom: 40px;
}

.portfolio-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.portfolio-track {
  display: flex;
  width: max-content;
  animation: scrollPortfolio 30s linear infinite;
}

.portfolio-track img {
  height: 300px;
  margin-right: 20px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-track img:hover {
  transform: scale(1.05);
}

@keyframes scrollPortfolio {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.portfolio-grid {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.portfolio-grid h2 {
  font-size: 2.5rem;
  color: #C1D0B5 ;
  margin-bottom: 40px;
}

.portfolio-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid .grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-grid .grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Updated Portfolio Gallery - Uniform Size, No Cropping, No White Space */
.portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.portfolio-gallery img {
  /* Set both max-width AND max-height to create uniform sizing */
  max-width: 300px;
  max-height: 300px; /* Prevents overly tall images */
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: contain; /* Shows full image without cropping, but fits within the constraints */
}

.portfolio-gallery img:hover {
  transform: scale(1.05);
}

/* Alternative: If you want even more uniform sizing */
.portfolio-gallery-uniform {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.portfolio-gallery-uniform img {
  width: 280px;  /* Fixed width */
  height: 280px; /* Fixed height - creates square containers */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: contain; /* Shows entire image within the square, no cropping */
  background-color: #f8f8f8; /* Light background for letterboxing if needed */
}

.portfolio-gallery-uniform img:hover {
  transform: scale(1.05);
}

/* Alternative Masonry Layout - Perfect for Different Sized Images */
.portfolio-gallery-masonry {
  column-count: 3; /* Number of columns */
  column-gap: 20px;
  padding: 40px 20px;
}

.portfolio-gallery-masonry img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  break-inside: avoid; /* Prevents images from breaking across columns */
  display: block;
}

.portfolio-gallery-masonry img:hover {
  transform: scale(1.05);
}

/* Responsive masonry */
@media (max-width: 768px) {
  .portfolio-gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .portfolio-gallery-masonry {
    column-count: 1;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .portfolio-gallery img {
    max-width: 280px; /* Smaller max width on mobile */
  }
  
  .portfolio-gallery-uniform {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .portfolio-gallery-uniform img {
    height: 200px; /* Smaller height on mobile */
  }
}

.my-work-heading {
  text-align: center;
  font-size: 4rem; /* Adjust size as needed */
  color: #B6CFC4; /* Replace with your sage green hex if different */
  margin-top: 2rem;
  margin-bottom: 0rem; /* Decreased from 2rem to reduce space */
  font-family: "redondo-ave", sans-serif; /* optional for consistency */
}

/* Overlay styling */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.overlay.hidden {
  display: none;
}

/* Close button styling */
.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* Buttons styling */
.branding-projects {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.brandingBtn {
  padding: 0.75rem 1.5rem;
  background-color: #DECA97;
  color: #9B7B5B;
  border: none;
  font-size: 1rem;
  font-weight: bold; 
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.brandingBtn:hover {
  background-color: #B7905F;
}

/* Login and Admin Dashboard Styles */
.login-container, .admin-dashboard {
  max-width: 500px;
  margin: 100px auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  font-family: "poppins", sans-serif;
}

.login-container h2, .admin-dashboard h2 {
  margin-bottom: 1.5rem;
  color: #7B4F2E;
}

.login-container input, .upload-form input {
  width: 100%;
  padding: 0.75rem;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: "poppins", sans-serif;
}

.login-container button, .upload-form button {
  background-color: #C1D0B5;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.login-container button:hover, .upload-form button:hover {
  background-color: #a2b396;
}

.login-error {
  display: none;
  color: red;
  margin-top: 10px;
}

.upload-form {
  margin-top: 2rem;
}

.home-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #444;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.home-button:hover {
  background-color: #666;
}



.contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.contact h2 {
  font-size: 2rem; /* Increase heading size */
}

.contact p {
  font-size: 1.5rem; /* Make paragraph text larger */
  font-family: 'Poppins', sans-serif;
  color: #B7905F;
}


.contact ul {
  list-style: none;
  padding: 0;
}

.contact li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.contact a {
  color: #577265;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact-form-section {
  max-width: 900px;
  font-family: 'Poppins', sans-serif;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-form-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
}

.form-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Responsive tweaks for the contact form*/
@media (max-width: 768px) {
  .contact,
  .contact-form-section {
    padding: 1rem;
  }

  .contact-form-section h2 {
    font-size: 1.5rem;
  }

  .contact-form-section p {
    font-size: 1rem;
  }
}

.social-icons a {
  color: #444;
  font-size: 3rem; /* Previously 2rem — now larger */
  transition: color 0.3s ease;
}

.instagram-widget {
  margin-top: 40px;
  max-width: 100%;
}

.instagram-embed {
  width: 100%;
  height: 800px;
  border: 0;
  overflow: hidden;
}

.about-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.about-main-img {
  width: 400px;
  max-width: 90%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h2 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #B7905F;
  margin-left: 20px;

}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  color: #DECA97;

}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.about-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.branding-project {
  text-align: center;
  margin: 20px 0;
}

#brandingBtn {
  background-color: #d37b42;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#brandingBtn:hover {
  background-color: #b9652f;
}

.branding-image {
  max-width: 90%;
  height: auto;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hidden {
  display: none;
}

/* General Styles */
body {
  font-family: 'redondo-ave', sans-serif;
  color: #7B4F2E; /* Dark brown */
  background-color: #fefaf2;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-image: url('beach1.jpg');
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
}

/* Work Section */
#work {
  margin-top: 4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: #eee;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* About & Contact */
#about, #contact {
  margin-top: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  color: #aaa;
  font-size: 0.9rem;
}
