

:root {
  --text-dark: #262A1E;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url("images/f1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}
h1, h2{
  font-family: "Gluten", cursive;
  font-weight: 500;
}
h3, h4{
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

/* =========================
   NAVIGATION (UNCHANGED STRUCTURE)
========================= */

#nav-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('images/paper6.jpg');
  background-size: cover;
  border-radius: 5px;
  padding: 30px 0;
 filter: drop-shadow(2px 2px 2px #4E455E);
}

#logo {
  margin-bottom: 40px;
  text-align: center;
}

#logo img {
  width: 220px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(2px 2px 2px #4E455E);
}
#logo img:hover{
  filter: drop-shadow(4px 4px 4px #4E455E);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

#nav-menu ul {
  list-style: none;
  width: 100%;
  text-align: center;
}

#nav-menu ul li {
  margin: 15px 0;
  position: relative;
}

#nav-menu ul li a {
  font-size:0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--earth);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

#nav-menu ul li a:hover {
  color: var(--accent);
  text-shadow: none;
  transform: scale(1.25);
}

/* Dropdown animation */
#nav-menu ul ul {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

#nav-menu ul li:hover > ul {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

#socials{
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  margin-top: auto;
}

.socials {
  max-width: 40px;
  height: auto;

}

.socials:hover {
  filter: drop-shadow(4px 4px 4px #4E455E);
  transition: all 0.3s ease;
  transform: scale(1.1);
}

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

.main {
  margin-left: 240px;
  margin-right: 40px;
}

.page {
  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 5px;
  background: var(--bg-panel);
  background-image: url('images/paper6.jpg');
  background-size: contain;
  background-repeat: repeat;
 /*filter: drop-shadow(4px 10px 10px #4E455E);*/
   filter: drop-shadow(2px 2px 2px #4E455E);
}
.page + .page {
  margin-top: 120px;
}

/* =========================
   GLOBAL IMAGE FIX
========================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(2px 2px 2px #4E455E);
}

/* =========================
   HOMEPAGE LAYOUT
========================= */

#homepage {
  /*display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;*/
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* =========================
   ARROWS
========================= */

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 10;
  filter: drop-shadow(2px 2px 2px #4E455E);
}

.back {
  left: 10px;
  background-image: url("images/arrow1.png");
}

.forward {
  right: 10px;
  background-image: url("images/arrow2.png");
}

.arrow:hover {
   filter: drop-shadow(4px 4px 4px #4E455E);
  transition: all 0.3s ease;
  transform: translateY(-50%) scale(1.1);
}

/* =========================
   PORTFOLIO GRID
========================= */

#portfolio {
  display: block;
  margin-top: 60px;
}

#portfolio.gallery-open{
  display: flex;
  flex-direction: column;
}
#portfolio.gallery-open .collection-scroll-box{
  order: 2;
}

#portfolio.gallery-open .collection-gallery{
  order: 1;
}
#portfolio img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.4s ease;
}
#portfolio img:hover {
  transform: scale(1.03);
}

/* =========================
   ABOUT
========================= */

#about {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  grid-template-areas:
    "title title"
    "photo text";
  align-items: start;
  gap: 28px 40px;
}

#about-title {
  grid-area: title;
}

#me {
  grid-area: photo;
}

#me img {
  width: 100%;
  max-width: 360px;
  border-radius: 5px;
}

#about-text {
  grid-area: text;
  font-family: Verdana;
  font-size: 1em;
  line-height: 1.7;
}

/* =========================
   CONTACT
========================= */
#contact{
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr);
  grid-template-areas:
    "title faq"
    "form faq";
  align-items: start;
  gap: 28px 42px;
}

#contact-title {
  grid-area: title;
}

#contact-form {  
  grid-area: form;
  position: relative;
  width: 100%;
  max-width: 520px;
}

input[type=text],
textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  border: 3px solid #262A1E;
  border-radius: 5px;
}

input[type=submit] {
  width: 100%;
  background-color: #89986D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #8e7aa6;
}
#FAQ{
  grid-area: faq;
  position: relative;
  margin-top: 54px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  #about {
    grid-template-columns: 1fr;
  }

  #about {
    grid-template-areas:
      "title"
      "photo"
      "text";
  }

  #contact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "form"
      "faq";
  }

  .arrow {
    width: 35px;
    height: 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-carousel {
    padding: 0 44px;
  }

  .hero-carousel .back {
    left: 6px;
  }

  .hero-carousel .forward {
    right: 6px;
  }
}
/* =========================
   HERO SECTION
========================= */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-carousel{
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 56px;
}
.hero-carousel .gallery-frame {
  overflow: hidden;
  border-radius: 16px;
}

.hero-carousel .back {
  left: 8px;
}

.hero-carousel .forward {
  right: 8px;
}
.hero-carousel .gallery-carousel{
  display: flex;
  transition: transform 0.8s ease;
}

.hero-carousel .gallery-carousel img {
  width: 100%;
  border-radius: 5px;
  flex-shrink: 0;
  height: clamp(260px, 58vh, 620px);
  object-fit: contain;
}

.hero-text h1 {
  font-family: "Gluten", cursive;
  font-size: 3rem;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 420px;
  color: var(--earth);
}

/* Buttons */

.hero-buttons {
  display: flex;
  gap: 20px;
  filter: drop-shadow(2px 2px 2px #4E455E);
}

.btn-primary,
.btn-secondary {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  box-sizing: border-box;
  width: 190px;
  min-height: 64px;
  padding: 20px 22px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  text-transform: uppercase;
  background-image: url('images/button2.png');
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  transition: all 0.3s ease;
  color: white;
}

@media (max-width: 700px) {
  .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: min(220px, 100%);
  }
}

.btn-primary:hover, .btn-secondary:hover {
  filter: drop-shadow(4px 4px 4px #4E455E);
  transform: scale(1.1);
}
.signature {
  font-family: "Gluten", cursive;
  margin-top: 10px;
  font-size: 1.2rem;
}

/* New Stuff */
/* =========================
   PORTFOLIO COLLECTION GRID
========================= */

.collection-scroll-box{
  width: 100%;
  min-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

/* scrollbar styling */
.collection-scroll-box::-webkit-scrollbar{
  width: 6px;
}

.collection-scroll-box::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.section-title {
  font-family: "Gluten", cursive;
  font-size: 2rem;
  margin-bottom: 60px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  order: 1;
}

.collection-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 5px;
  min-height: 100px;
  min-width: 100px;
  filter: drop-shadow(2px 2px 2px #4E455E);
}

.collection-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.05);
}

/* Overlay */

.collection-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.collection-overlay h3 {
  color: white;
  font-family: "Gluten", cursive;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  max-width: 16ch;
}

.collection-card:hover .collection-overlay {
  opacity: 1;
}

@media (max-width: 700px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 200px;
  }
}

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

.collection-gallery {
  display: none;
  margin-top: 20px;
  position: relative;
  order: 2;
}

#portfolio.gallery-open .collection-gallery {
  order: 1;
}

#portfolio.gallery-open .collection-grid {
  order: 2;
}

.gallery-frame {
  overflow: hidden;
}

.gallery-carousel {
  display: flex;
  transition: transform 0.8s ease;
}

.gallery-carousel .gallery-item {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#portfolio .gallery-carousel img {
  width: 100%;
  height: clamp(260px, 60vh, 620px);
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 14px;
}

/* Artwork Title Overlay */

.artwork-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .artwork-overlay {
  opacity: 1;
}

/* Arrows */

.close-gallery {
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
  line-height: 0;
}

#portfolio .close-gallery img {
  width: auto;
  height: 34px;
  max-width: none;
  display: block;
  object-fit: contain;
  aspect-ratio: auto;
  filter: none;
  transition: filter 0.2s ease, transform 0.2s ease;
  border-radius: 0;
}

#portfolio .close-gallery:hover img {
  filter: drop-shadow(0 2px 6px #4E455E);
  transform: scale(1.1);
}

form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #cfc9b8;
  background-color: rgba(255,255,255,0.85);
  border-radius: 4px;
}

form select:focus {
  outline: none;
  border-color: #3f4a3c;
}

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

@media (max-width: 768px) {

  #nav-menu {
    position: relative;
    top: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 20px;
    border-radius: 0;
  }

  #logo img {
    width: 160px;
  }

  #nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #nav-menu ul li {
    margin: 5px 0;
  }
  .main {
    margin-left: 20px;
  }
  .page{
    margin: 20px 12px;
    padding: 25px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text p {
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

}
#placeholder{
  text-align: center;
  justify-content: center;
  align-items: center;
  height: 60vh;
}


