
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Cormorant+Garamond:wght@300;400;500&display=swap');

body {
  padding-top: 3.5rem;  
  background-color: rgba(223, 225, 226, 255);
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

header {
  position: relative;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  text-align: center;
  padding: 20px;
  margin: 0;
  opacity: 1;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 5vw;
  letter-spacing: 0.3em;
  transform: scaleY(1.1);
  transform-origin: center;
  z-index: 1;
 /* opacity: 0.7; */
  margin: 0;
  padding: 0;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    border-bottom: 1px solid #eee;
    position: fixed;  
    top: 0;          
    z-index: 1000;
}

nav a {
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0;
    position: relative;
}

nav a.contact-btn {
  background-color: rgba(240, 128, 128, 0.2);
  border-radius: 25px;  
  padding: 0.3rem 2rem;
  transition: all 0.3s ease;
}

nav a.contact-btn:hover {
  background-color: lightcoral;
  color: white;
}


/* Tablet  */
@media (min-width: 768px) {
    nav {
        gap: 2rem;
        position: sticky; 
    }
    
    nav a {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    body {
        padding-top: 0; 
    }
}

/* Desktop */
@media (min-width: 1024px) {
    nav {
        gap: 8rem;
        padding: 1.5rem 0;
    }
    
    nav a {
        font-size: 1.6rem;
        letter-spacing: 0.2em;
    }
}

/* Medium Desktop  */
@media (min-width: 780px) and (max-width: 1441px) {
    body {
        padding-top: 0;  
        padding-bottom: 4rem;  
    }
    
    nav {
        position: fixed;
        bottom: 0;
        top: auto;
        gap: 3rem;
        padding: 1rem 0;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        border-top: 1px solid #eee;
        border-bottom: none;
    }
    
    nav a {
        font-size: 1.1rem;
        letter-spacing: 0.12em;
        padding: 0.4rem 0.6rem;
    }
    
    nav a.contact-btn {
        padding: 0.4rem 1.2rem;
    }
    
    header {
        height: calc(100vh - 4rem);  
        margin-bottom: 0;
    }
    
    h1 {
        font-size: 4vw;
    }
    
    .signature {
        width: 65vw;
    }
}



header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/header bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: -1;
}

.painting-section {
  display: flex;
  padding: 5rem 10vw 3rem 10vw;
  border-bottom: 6px solid #eee;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: relative;
  align-items: flex-start;
  min-height: 600px;
}

.painting-details {
  flex: 1;
  padding-right: 5vw;
  margin-top: -1.5rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.painting-details h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 1rem;
  padding: 0;
}

.painting-details p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
  padding: 0.5rem 0;
}

.painting-image {
  flex: 1;
  padding-left: 5vw;
  height: 100%;
  display: flex;
  align-items: flex-start;
}

.painting-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.3s ease;  
  filter: brightness(100%);   
}

.painting-image img:hover {
  filter: brightness(105%);   
  transform: scale(1.01);    
}

.whenShy {
  max-height: 550px;
}

#home {
  color: lightcoral;
}


html {
  scroll-behavior: smooth;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    padding-top: 9vh;  
  }
  
  nav {
    padding: 1rem 0;
    font-size: 0.8rem;
    gap: 1.5rem;
    height: 9vh;
  }
  
  header {
    height: 91vh;  
  }
  
  h1 {
    font-size: 8vw;
  }
  
  .painting-section {
    flex-direction: column;
    padding:  1rem;
    min-height: auto;     
  }

  .painting-image {
    padding-left: 0;     
    margin-bottom: 12rem;  
  }

  .purchase-btn {
    position: absolute;        
    padding: none;
    transform: translateX(-17%);
  }
}

.painting-section.active {
  opacity: 1;
  
}

.purchase-btn {
  position: absolute;
  bottom: 6.5rem; 
  left: 10vw;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
  border-radius: 2px;
  font-weight: 300;
  background-color: rgba(240, 128, 128, 0.2);
  border: none;
}

.purchase-btn:hover {
  background-color: lightcoral;  
  border-color: lightcoral;
  color: white;
}


.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    cursor: default;
}

.lightbox-title {
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 580;
    margin-top: 1rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-btn:hover {
    color: lightcoral;
}

.prev {
    left: 2rem;
}

.next {
    right: 2rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-btn:hover {
    color: #f08080;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: .65;
        transform: translateY(0);
    }
}

.signature {
    height: 20vh; 
    width: 70vw;
    
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .signature {
        height: auto;   
        width: 300px;     
        max-height: 15vh; 
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
  .painting-section {
    padding: 4rem 8vw 2.5rem 8vw;
  }
  
  .painting-details {
    padding-right: 4vw;
  }
  
  .painting-image {
    padding-left: 4vw;
  }
  
  .purchase-btn {
    left: 8vw;
    bottom: 5.5rem;
  }
  
  .whenShy {
    max-height: 500px;
  }
  
  .signature {
    width: 60vw;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  body {
    padding-top: 9vh;
  }
  
  nav {
    height: 9vh;
  }
  
  header {
    height: 91vh;  
  }
  
  h1 {
    font-size: 6vw;
  }
  
  .painting-section {
    padding: 3rem 5vw 2rem 5vw;
  }
  
  .painting-details h2 {
    font-size: 1.8rem;
  }
  
  .painting-details p {
    font-size: 1rem;
  }
  
  .purchase-btn {
    font-size: 1rem;
    padding: 1rem 2.5rem;
  }
  
  .whenShy {
    max-height: 450px;
  }
  
  .signature {
    width: 50vw;
    max-width: 400px;
  }
  
  .lightbox img {
    max-width: 85%;
    max-height: 80vh;
  }
  
  .nav-btn {
    font-size: 1.8rem;
  }
  
  .close-btn {
    font-size: 35px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 9vh;
  }
  
  nav {
    gap: 0.5rem;
    padding: 0.8rem 0.5rem;
    height: 9vh;
  }
  
  nav a {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.4rem;
  }
  
  header {
    height: 91vh;  
    padding: 10px;
  }
  
  h1 {
    font-size: 7vw;
    letter-spacing: 0.2em;
  }
  
  .painting-section {
    padding: 2rem 1rem 1.5rem 1rem;
    gap: 1rem;
  }
  
  .painting-details h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .painting-details p {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.3rem 0;
  }
  
  .purchase-btn {
    font-size: 0.85rem;
    padding: 0.8rem 1.8rem;
    min-width: 100px;
  }
  
  .whenShy {
    max-height: 350px;
  }
  
  .signature {
    width: 80vw;
    max-width: 280px;
  }
  
  .lightbox img {
    max-width: 95%;
    max-height: 75vh;
  }
  
  .lightbox-title {
    font-size: 1.2rem;
  }
  
  .nav-btn {
    font-size: 1.5rem;
    padding: 0.8rem;
  }
  
  .prev {
    left: 0.5rem;
  }
  
  .next {
    right: 0.5rem;
  }
  
  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

@media (max-width: 320px) {
  body {
    padding-top: 9vh;
  }
  
  nav {
    gap: 0.3rem;
    padding: 0.6rem 0.3rem;
    height: 9vh;
  }
  
  nav a {
    font-size: 0.55rem;
    padding: 0.25rem 0.3rem;
  }
  
  header {
    height: 91vh;  
  }
  
  h1 {
    font-size: 8vw;
  }
  
  .painting-section {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  
  .painting-details h2 {
    font-size: 1.3rem;
  }
  
  .painting-details p {
    font-size: 0.8rem;
  }
  
  .purchase-btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
    min-width: 90px;
  }
  
  .whenShy {
    max-height: 300px;
  }
  
  .signature {
    width: 85vw;
    max-width: 250px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  header {
    height: 50vh;
    min-height: 300px;
  }
  
  .painting-section {
    padding: 1.5rem 1rem;
  }
  
  .whenShy {
    max-height: 40vh;
  }
  
  .signature {
    max-height: 12vh;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .painting-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .signature {
    animation: none;
    opacity: 0.65;
  }
}

@media (min-width: 1441px) and (max-width: 1919px) {
  .painting-section {
    padding: 4rem 8vw 2.5rem 8vw;
  }
  
  .painting-details {
    padding-right: 4vw;
  }
  
  .painting-image {
    padding-left: 4vw;
  }
  
  .purchase-btn {
    left: 8vw;
    bottom: 5.5rem;
  }
  
  .whenShy {
    max-height: 500px;
  }
  
  .signature {
    width: 60vw;
  }
  
  header {
    height: 700px;
  }
  
  h1 {
    font-size: 4.5vw;
  }
  
  nav {
    gap: 4rem;
    padding: 1rem 0;
  }
  
  nav a {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    padding: 0.5rem 0.8rem;
  }
  
  nav a.contact-btn {
    padding: 0.5rem 1.5rem;
  }
}

