/*CSS Reset*/

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

img,
video {
  max-width: 100%;
  height: auto; /* Changed from display: block to prevent issues with inline social icons */
}

body {
  background-color: skyblue;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* =========================
HERO SECTION
========================= */

/* Keep everything contained and scalable */
#hero-container {
  position: relative;
  width: 100%;
  max-height: 500px; /* Adjust based on how tall you want your header */
  overflow: hidden;
}

/* Ensure the flower image scales responsively */
.hero-bg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Center the text perfectly over the image */
#hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; /* Prevents text from hitting the very edge of mobile screens */
  text-align: center;
}

/* Fluid typography that automatically resizes */
#hero-text h1 {
  color: #ffffff; /* White text to pop against the image */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Makes text readable over flowers */
  margin: 0;
  
  /* clamp(MIN, FLUID, MAX) */
  font-size: clamp(1.8rem, 5vw, 4rem); 
  line-height: 1.2;
}

/* =========================
NAVIGATION
========================= */

nav {
  background-color: skyblue;
}

nav ul {
  list-style: none;
  text-align: center;
}

nav li {
  display: inline-block;
}

nav li a {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  transition: 0.3s;
}

nav li a:hover {
  background-color: #f2dede;
  transform: scale(1.05);
}

/* =========================
MAIN CONTENT
========================= */

main {
  background-color: aliceblue;
  padding: 2rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  font-family: "Dancing Script", cursive;
  margin-bottom: 1rem;
}

h3,
h4 {
  font-size: 2rem;
  text-align: center;
  font-family: "Dancing Script", cursive;
  margin: 2rem 0 1rem;
}

main p {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* =========================
ARTWORK SECTION
========================= */

#Coffeepot,
#charcoal,
#stillife,
#fabric,
#plant {
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

/* =========================
GALLERY
========================= */

.gallery-section {
  margin: 3rem 0;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.gallery-item {
  flex: 1 1 300px;
  max-width: 400px;
}

.gallery-item img {
  width: 100%;
  border-radius: 4px;
}

.pic-text {
  text-align: center;
  padding-top: 10px;
  color: black;
  font-size: 1rem;
}

/* =========================
FRAMES
========================= */

.frame {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* =========================
VIDEO
========================= */

video {
  width: 100%;
  height: auto;
  padding: 2%;
}

.image {
  padding: 5%;
}

/* =========================
CONTACT
========================= */

#contact {
  text-align: center;
}

#contact a {
  color: #e27979;
  text-decoration: none;
}

#form {
  background-color: white;
  color: black;
  padding: 2rem;
  margin-top: 2rem;
}

#form h4 {
  text-align: center;
}

/* Forms */

form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
}

/* =========================
FOOTER
========================= */

footer {
  padding: 1rem;
}

footer p {
  text-align: center;
  color: white;
  font-size: 0.9rem;
}

footer p a {
  color: white;
  text-decoration: none;
}

.social {
  text-align: center;
  margin-top: 1rem;
}

.social img {
  display: inline-block;
  width: 40px;
  margin: 0 5px;
}

/* =========================
TABLET
========================= */

@media screen and (min-width: 768px) {
  #Coffeepot,
  #charcoal,
  #stillife,
  #fabric,
  #plant {
    width: 48%;
    display: inline-block;
    vertical-align: top;
  }

  h3,
  h4 {
    font-size: 2.2rem;
  }

  main p {
    font-size: 1.3rem;
  }
}

/* =========================
DESKTOP
========================= */

@media screen and (min-width: 1024px) {
  #Coffeepot,
  #charcoal,
  #stillife,
  #fabric,
  #plant {
    width: 30%;
    display: inline-block;
    vertical-align: top;
    margin-right: 2%;
  }

  nav li a {
    font-size: 1.5rem;
  }

  h3,
  h4 {
    font-size: 2.5rem;
  }

  main p {
    font-size: 1.5rem;
  }
}

/* =========================
MOBILE NAVIGATION
========================= */

@media screen and (max-width: 480px) {
  nav li {
    display: block;
  }

  nav li a {
    padding: 0.75rem;
    font-size: 1.1rem;
  }

  h3,
  h4 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 1rem;
  }

  .pic-text {
    font-size: 0.9rem;
  }
}








