/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  background: rgb(220, 235, 210);
  color: rgb(15, 15, 15);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

/* Hide scrollbar (works in Chrome, Edge, Safari) */
body::-webkit-scrollbar {
  display: none;
}

/* ---- Background container ---- */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;

  background-image: url("../images/website/marble_texture_edited.png");
  background-repeat: repeat;
  background-size: 25%;
  background-position: 0 0;

  background-color: rgba(245, 245, 240, 0.15);
  background-blend-mode: screen;

  filter: brightness(0.95) contrast(1);
  pointer-events: none;
  will-change: transform;
}

.background::before,
.background::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: url("../images/website/marble_texture_edited.png") repeat;
  transform: rotate(calc(var(--rotate, 0deg))) scale(calc(var(--scale, 1)));
  opacity: 0.5;
  pointer-events: none;
}

.background::before {
  --rotate: 5deg;
  --scale: 0.95;
}

.background::after {
  --rotate: -7deg;
  --scale: 1.05;
}

/* Overlay buttons */
.overlay-nav {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3;
}

.overlay-btn {
  position: absolute;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  pointer-events: all;
  font-family: "Montserrat", sans-serif;
}

.overlay-btn:hover {
  opacity: 1;
}

/* Top right: Contact */
.overlay-btn.contact {
  top: 30px;
  right: 40px;
}

/* Bottom left: See All Projects */
.overlay-btn.see-projects {
  bottom: 30px;
  left: 40px;
}

/* Main Content */
.content {
  position: relative;
  z-index: 2;
  display: block;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-top: 1rem;
  font-family: "Montserrat", sans-serif;
}

/* About Section */
.about {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  text-align: center;
  margin-bottom: 50vh;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-family: "Playfair Display", serif;
}

.about p {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
}

/* Section link styles (for About Me header) */
.section-link {
  color: rgb(15, 15, 15);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-family: "Playfair Display", serif;
}

.section-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.section-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: rgb(15, 15, 15);
  transition: width 0.3s ease;
}

.section-link:hover::after {
  width: 100%;
}

/* Enhanced Featured Work Section - Clean Version */
.featured-work {
  min-height: 425vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 5rem;
  text-align: center;
  margin-bottom: 50vh;
}

.featured-work h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-family: "Playfair Display", serif;
  position: relative;
}

.featured-work h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: rgb(15, 15, 15);
  opacity: 0.6;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 50vh 25vh 50vh 25vh 50vh 50vh 25vh 50vh 50vh;
  gap: 0px 5%;
  grid-auto-flow: row;
  width: 100%;
  max-width: 100vw;
  height: 375vh;
}

.work1 { grid-area: 1 / 2 / 3 / 5; }
.art1 { grid-area: 1 / 2 / 2 / 5; }
.text1 { grid-area: 2 / 2 / 3 / 5; }

.work2 { grid-area: 4 / 1 / 6 / 6; }
.text2 { grid-area: 4 / 4 / 6 / 6; }
.art2 { grid-area: 4 / 1 / 6 / 4; }

.work3 { grid-area: 7 / 1 / 9 / 6; }
.text3 { grid-area: 7 / 1 / 9 / 3; }
.art3 { grid-area: 7 / 3 / 9 / 6; }

/* Clean grid item styles - NO BACKGROUNDS */
.container > div {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
}

/* Title elements - subtle styling */
.work1, .work2, .work3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  color: rgb(15, 15, 15);
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  opacity: 0.9;
}

/* Art containers - clean */
.art1, .art2, .art3 {
  padding: 0;
}

/* Text containers - clean with subtle inner spacing */
.text1, .text2, .text3 {
  padding: 2rem;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: transparent !important;
}

/* Hover effects - subtle transforms only */
.container > div:hover {
  transform: translateY(-3px);
}

.work1:hover, .work2:hover, .work3:hover {
  opacity: 1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Project preview enhancements */
.project-preview {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.project-preview:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.project-preview:hover img {
  transform: scale(1.03);
}

/* Text content styling */
.text1 h3, .text2 h3, .text3 h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: rgb(15, 15, 15);
  opacity: 0.95;
}

.text1 p, .text2 p, .text3 p {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgb(15, 15, 15);
  opacity: 0.8;
}

/* Clean tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(15, 15, 15, 0.08);
  border-radius: 20px;
  color: rgb(15, 15, 15);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 1px solid rgba(15, 15, 15, 0.1);
}

.tag:hover {
  background: rgba(15, 15, 15, 0.12);
  transform: translateY(-1px);
}

/* Remove all glow and overlay effects */
.container > div::before {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-work {
    padding: 0 2rem;
  }
  
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 2rem;
  }
  
  .work1, .work2, .work3,
  .art1, .art2, .art3,
  .text1, .text2, .text3 {
    grid-area: auto;
    min-height: 200px;
  }
  
  .text1, .text2, .text3 {
    text-align: center;
    align-items: center;
  }
  
  .project-preview {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Make each section a snap target */
.hero, .about, .featured-work {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Footer with strong snap */
.footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: aliceblue;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  opacity: 1 !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.footer h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: "Playfair Display", serif;
}

.footer p {
  margin: 0.5rem 0;
  opacity: 0.8;
  font-family: "Montserrat", sans-serif;
}

/* Footer link styles */
.footer-link {
  color: aliceblue;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: aliceblue;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Footer version of section link */
.footer .section-link {
  color: aliceblue;
}

.footer .section-link::after {
  background-color: aliceblue;
}

/* Fade animations */
.hero-title, .hero-subtitle, .about, .featured-work {
  transition: opacity 1s ease-out;
  will-change: opacity;
}

/* ===== PAGES WITH NORMAL SCROLLING ===== */

/* Projects & About Pages - SCROLLABLE */
body.projects-page,
body.about-page {
  overflow-y: auto !important;
  height: auto !important;
  scroll-snap-type: none !important;
}

body.projects-page .content,
body.about-page .content {
  transform: none !important;
  position: static !important;
  height: auto !important;
}

body.projects-page .background,
body.about-page .background {
  height: 100% !important;
  min-height: 100vh !important;
}

/* ===== CONTACT PAGE - FIXED HEIGHT, NO SCROLL ===== */

/* Contact Page - NO SCROLL */
body.contact-page {
  overflow-y: hidden !important;
  height: 100vh !important;
  scroll-snap-type: none !important;
}

body.contact-page .content {
  transform: none !important;
  position: static !important;
  height: 100vh !important;
}

body.contact-page .background {
  height: 100vh !important;
  transform: none !important;
}

.contact-section {
  height: 100vh !important;
  min-height: 100vh !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: aliceblue;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.contact-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.contact-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: aliceblue;
}

.contact-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 3rem;
}

.contact-form {
  text-align: left;
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: aliceblue;
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: aliceblue;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 248, 255, 0.6);
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: aliceblue;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.submit-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.contact-info {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}

.contact-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: aliceblue;
}

.contact-info p {
  font-family: "Montserrat", sans-serif;
  margin: 0.5rem 0;
  opacity: 0.8;
}

/* Projects Page Styles */
.projects-section {
  min-height: 100vh;
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.85);
  color: aliceblue;
  position: relative;
  z-index: 2;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.projects-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: aliceblue;
}

.projects-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  text-align: center;
  opacity: 0.8;
  margin-bottom: 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding-bottom: 4rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-image {
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.image-placeholder {
  font-family: "Montserrat", sans-serif;
  opacity: 0.6;
  font-size: 1rem;
}

.project-info {
  padding: 1.5rem;
}

.project-name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: aliceblue;
}

.project-description {
  font-family: "Montserrat", sans-serif;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

/* ===== ABOUT PAGE SPECIFIC FIXES ===== */

/* About Page - Force scrolling and proper layout */
body.about-page {
  overflow-y: auto !important;
  height: auto !important;
  scroll-snap-type: none !important;
}

body.about-page .content {
  transform: none !important;
  position: static !important;
  height: auto !important;
}

body.about-page .background {
  height: 100% !important;
  min-height: 100vh !important;
  transform: none !important;
}

/* About page section styling */
.about-page-section {
  min-height: 100vh;
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.85);
  color: aliceblue;
  position: relative;
  z-index: 2;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* About Page Image Styling */
.about-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Remove the old placeholder background */
.about-image {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
}

.about-intro {
  text-align: left;
}

.about-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: aliceblue;
}

.about-tagline {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  opacity: 0.8;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: aliceblue;
}

.about-section p {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.about-closing {
  font-style: italic;
  font-size: 1.2rem;
  opacity: 1;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  padding-left: 1.5rem;
}

/* Responsive for about page */
@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .about-image {
    margin: 0 auto;
    width: 250px;
    height: 250px;
  }
  
  .about-intro {
    text-align: center;
  }
  
  .about-page-section {
    padding: 2rem 1rem;
  }
  
  .about-title {
    font-size: 2.5rem;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-section,
  .about-page-section,
  .contact-section {
    padding: 2rem 1rem;
  }
  
  .projects-title,
  .contact-title,
  .about-title {
    font-size: 2.5rem;
  }
  
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .about-image {
    margin: 0 auto;
    width: 250px;
    height: 250px;
  }
  
  .about-intro {
    text-align: center;
  }
  
  .featured-work {
    padding: 0 2rem;
  }
  
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 2rem;
  }
  
  .work1, .work2, .work3,
  .art1, .art2, .art3,
  .text1, .text2, .text3 {
    grid-area: auto;
    min-height: 200px;
  }
}

.project-preview img,
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}