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

@font-face {
  font-family: "nibus";
  src: url(assets/font/nimbus-sans-novus-t-light.ttf);
}

@font-face {
  font-family: "renade";
  src: url(assets/font/Ranade-Variable.ttf);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s, color 0.4s;
  font-family: "renade";
}

a {
  text-decoration: none;
  color: inherit;
}

/* Color Drape Overlay */
.color-drape-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -2; /* Ensure it's below content and video */
  transform: none; /* Remove transform animation */
  transition: background-color 0.5s ease-out; /* Smooth transition for color change */
  opacity: 1; /* Fully opaque */
  mix-blend-mode: normal; /* No blending */
}

/* Decorative Elements with Parallax */
.decorative-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.flower {
  position: absolute;
  transition: all 0.1s ease-out;
  user-select: none;
}

.noise-overlay {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.9;
  mix-blend-mode: multiply;
  background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 5px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ), radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  background-size: 3px 3px, 3px 3px, 6px 6px, 6px 6px;
}

.custom-cursor {
  cursor: none;
  position: fixed;
  width: 122px;
  height: 42px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  z-index: 40000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: black;
  text-align: center;
}

.drag-cursor {
  width: 120px;
  height: 60px;
  filter: blur(0px);
  color: black;
  font-size: 12px;
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
      filter: brightness(100%);

}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: filter 0.3s ease-out; /* Smooth transition for blur */
      filter: blur(35px);

}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 0 2rem;
  text-align: right;
}

.hero-content {
  margin-bottom: 2rem;
}

.stella-text {
  font-size: clamp(3rem, 20vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  line-height: 0.9;
  color: rgb(168, 243, 145);
  font-weight: lighter;
  mix-blend-mode: difference;
  z-index: 9999;
  opacity: 0;
  letter-spacing: 1vw;
  transform: translateY(100%);
  animation: slideInUp 2s ease-out 0.2s forwards;
}

.hero-description {
  max-width: 28rem;
  color: #7a8471;
  opacity: 0.6;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(2rem);
  animation: fadeInUp 1.5s ease-out 0.8s forwards;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.hero-description p {
  margin-bottom: 0.5rem;
  margin-top: 10px;
  margin-left: 0.9rem;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

/* Work Intro Section */
.work-intro-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.work-intro-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.path-svg {
  width: 100%;
  height: 100%;
}

#animated-path {
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s ease-out;
}

.path-dot {
  transition: opacity 0.3s ease;
}

 
/* Draggable Text Container */
.work-intro-text {
  position: absolute;
  top: 2rem;
  right: 1rem;
  color: #1b1b1b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  z-index: 100;
  font-size: 0.87rem;
}

.work-intro-text.draggable {
  user-select: none;
  cursor: none;
  transition: transform 0.5s ease-out;
}

.work-intro-text.draggable:active {
  cursor: grabbing;
  background-color: transparent;
}

.work-intro-text.dragging {
  cursor: grabbing;
}

.scroll-hint {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Work Section */
.work-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 4rem 2rem; /* Default padding */
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.work-container {
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: end;
  margin: 0 auto;
}

 h2 {
  font-size: clamp(3rem, 6vw, 3rem);
  font-weight: lighter;
  display: flex;
  align-content: end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;

  color: #7a8471;
  margin-bottom: -19rem;
  text-align: left;
}

.work-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Project List Sidebar */
.project-list {
  position: sticky;
  background-color: #ffffff;
  font-family: "renade";
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-item {
  background-color: #ffffff00;
  font-size: 0.87rem;
  cursor: none;
  line-height: 1.2px;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  border-left: 1px solid transparent;
  padding-left: 1rem;
}

.project-item:hover,
.project-item.active {
  color: #7a8471;
  border-left-color: #7a8471;
}

/* Project Grid */
.project-grid {
  display: grid;
  background-color: #ffffff;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  transition: filter 0.3s ease;
}

.project-grid.blurred .project-card:not(.hovered) {
  filter: blur(8px);
  opacity: 0.3;
}

.project-card {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
}

.project-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 3 / 2;
}

.project-img {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  background-size: contain;
  background-position: center;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-card.hovered {
  transform: scale(1.02);
  z-index: 2;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.1);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project-content {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.project-card:hover .project-content {
  opacity: 1;
  transform: translateY(0);
}

.project-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  color: #3b3b3b;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
}

/* Add some variety to project card sizes */
.project-card:nth-child(3n) {
  aspect-ratio: 1 / 1;
}

.project-card:nth-child(4n) {
  aspect-ratio: 5 / 4;
}

/* Profile Section */
.profile-section {
  position: relative;
  margin: auto;
  z-index: 10;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  padding: 3rem;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.profile-content {
  display: flex;
  flex-direction: column;
}

.profile-content h2 {
  display: flex;
  font-size: clamp(2.5rem, 6vw, 3rem);
  animation: fadeInUp 1.5s ease-out 0.8s forwards;
  font-weight: light;
  color: #7a8471;
  margin-bottom: 2rem;
}

.profile-text {
  color: #363636;
  font-size: 0.87;
  line-height: 1.4;
  width: 25%;
  text-align: justify;
}



.profile-text p {
  margin-bottom: 1rem;
}

.profile-image {
  width: 70%;
  height: 60%;
  display: flex;
  align-items: end;
}

.profile-image img {
  width: 80%;
  height: 70%;
}

/* Contact Section */
.contact-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  filter: blur(0.5px);
}

.contact-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.contact-content h2,
.social-links h2,
.work-content h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;

  font-weight: lighter;
  color: #7a8471;
  margin-bottom: 3rem;
  margin-right: 25px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10rem;
}

.contact-info h3,
.social-links h3 {
  color: rgb(168, 243, 145);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info p,
.social-links p {
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.contact-links,
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-links a,
.social-links a {
  color: #7a8471;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-links a:hover,
.social-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-links a {
  color: #4a4a4a;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #7a8471;
}

/* Navigation */
.main-nav {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 2000;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.5s ease;
}

.main-nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  font-family: "renade";
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10000;
  border: 0.2px solid #7a8471;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;

}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #7a8471;
}

.nav-year {
  color: #7a8471;
  font-weight: bold;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #7a8471;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: #7a8471;
  opacity: 0.5;
}

.scroll-text {
  font-size: 0.75rem;
  transform: rotate(90deg);
  white-space: nowrap;
}

/* Animations */
@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
h2 {
  font-size: 3rem;
}

/* Responsive Design */

/* iPad/Tablet specific adjustments (up to 1024px) */
@media (max-width: 1024px) {
  /* Profile Section Tablet Adjustments */
  .profile-section {
    flex-direction: column;
    align-items: center; /* Align items to the start */
    text-align: center; /* Center text */
  }

  .profile-text, .work-intro-content {
   /* Adjust padding for mobile */
    width: 90%; /* Make text wider on mobile */
    max-width: 600px; /* Limit max width */
  }

  .profile-image {
    width: 100%; /* Allow image container to take full width */
    justify-content: center; /* Center image within its container */
    margin-top: 2rem; /* Add some space */
  }
  .work-intro-text.draggable {
    text-align: justify;
  }

  .profile-image img {
    width: 60%; /* Smaller on iPad */
    height: auto; /* Maintain aspect ratio */
    max-width: 400px; /* Example max size to prevent it from becoming too big */
  }
  p {
    text-align: justify;
  }
}

/* Mobile specific adjustments (up to 780px) */
@media (max-width: 780px) {
  /* Project Section Full Width */
  .work-section {
    padding-left: 0;
    padding-right: 0;
  }
.profile-section {
    flex-direction: column;
    align-items: center; /* Center items in column */
    text-align: center; /* Center text */
  }
  .work-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-list {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .project-card.featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .nav-links {
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Profile Image on Mobile (<= 780px) */
  .profile-image img {
    width: 100%; /* As wide as the screen on mobile */
    max-width: none; /* Remove max-width constraint */
  }
}

/* Smaller Mobile specific adjustments (up to 480px) */
@media (max-width: 480px) {
  body{
    overflow-x: hidden;
    max-width: 100vw;
  };

  .hero-section {
    margin-top: 12rem;
  }
.scroll-indicator {
    font-size: 0.8rem;
    margin-top: -18rem;
  }
  
  #content {
    margin-right: 30px;
    font-size: 0.8rem;
  }
  .work-intro-section {
    padding-right:10px;
    height: 100vh;
  }
  .work-intro-text {
    font-size: 0.75rem;
    padding: 0.2rem;
    text-align: center;
     height: 100vh;
  }
 p {
  text-align: justify;
}
.work-intro-text.draggable {
  text-align: justify;
      margin-bottom: 0px;

}

.profile-content, .work-intro-content{
    flex-direction: column; 
    margin: auto;
    align-items: center; 
    text-align: justify;
  }


  .work-intro-content h2 {
    margin-bottom: 3rem;
  }

  /* Ensure color wheel and content are visible on small mobile */
  #color-wheel,
  #content {
    opacity: 1; /* Always visible */
    pointer-events: auto; /* Always interactive */
  }

  .stella-text {
    letter-spacing: 5vw; /* Slightly reduce letter spacing for very small screens */
  }
  .scroll-text {
    top: -20px;
      

  }

  .scroll-hint {
        text-align: justify;

  }

  .hero-content {
    width: 90vw;
    text-align: justify;
  }

  .contact-content {
    width: 480px;
    display: flex;
   margin: auto;
    flex-wrap: wrap;
    margin-bottom: 120px;
  
  }

  .profile-content {
    padding: 2rem;
    flex-direction: column;
    align-items: center;
  }

    
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #7a8471;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6a7461;
}
