/* Base font size for rem calculations */
html {
  font-size: 16px; /* Base size for desktop */
  height: 100%;
  scroll-behavior: smooth;
}

/* Responsive rem adaptation - scales all rem units proportionally */
@media (max-width: 1200px) {
  html {
    font-size: 15px; /* Slightly smaller for tablets */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px; /* Smaller for mobile devices */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px; /* Even smaller for small mobile devices */
  }

  .logo {
    font-size: 1.6rem;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px; /* Minimum size for very small screens */
  }
}

  /* Reset and base styles */
  body {
      background: #fafafa;
      margin: 0;
      padding: 0;
      font-family: 'Montserrat', sans-serif;
  }

  .navbar {
      position: fixed;
      top: 0;
      width: 100%;
      background-color: rgba(255, 255, 255, 0.95);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      /* transition: all 0.8s ease-out; */
      transform: translateY(0);
      opacity: 1;
  }

  /* Breadcrumbs styles */
  .breadcrumbs {
      background: #ffffff;
      padding: 5px 0;
      border-bottom: 1px solid #e5e5e5;
      margin-top: 80px;
  }

  .breadcrumb-nav {
      display: flex;
      gap: 25px;
      justify-content: space-between;
      align-items: center;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 20px;
  }

  .back-to-main {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      background: #f8f8f8;
      color: #333333;
      text-decoration: none;
      border-radius: 25px;
      transition: all 0.8s ease-out;
      font-weight: 500;
      font-size: 0.9rem;
  }

  .back-to-main:hover {
      background: #333333;
      color: #ffffff;
      transform: translateX(-5px);
  }

  .back-to-main i {
      font-size: 0.9rem;
      transition: transform 0.8s ease-out;
  }

  .back-to-main:hover i {
      transform: translateX(-3px);
  }

  .breadcrumb-path {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 0.9rem;
      color: #666666;
  }

  .breadcrumb-path a {
      color: #666666;
      text-decoration: none;
      transition: color 0.8s ease-out;
  }

  .breadcrumb-path a:hover {
      color: #333333;
  }

  .breadcrumb-path i {
      font-size: 0.7rem;
      color: #999999;
  }

  .breadcrumb-path span {
      color: #333333;
      font-weight: 500;
  }

  /* Portfolio-specific styles */
  .portfolio-hero {
      background: #ffffff;
      padding: 60px 20px 40px;
      text-align: center;
      border-bottom: 1px solid #e5e5e5;
  }

  .portfolio-hero h1 {
      font-size: 3rem;
      font-weight: 300;
      color: #333333;
      margin-bottom: 15px;
      letter-spacing: -1px;
  }

  .portfolio-hero p {
      font-size: 1.1rem;
      color: #666666;
      max-width: 500px;
      margin: 0 auto;
      font-weight: 300;
  }

  .portfolio-container {
      background: #fafafa;
      padding: 60px 20px;
      min-height: 100vh;
  }

  /* Instagram-style feed */
  .photosets-feed {
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 60px;
  }

  .photoset-preview {
      background: #ffffff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      cursor: pointer;
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.8s ease-out;
      position: relative;
  }

  .photoset-preview.visible {
      opacity: 1;
      transform: translateY(0);
  }

  .photoset-preview:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  }

  .photoset-cover {
      position: relative;
      width: 100%;
      height: 500px;
      overflow: hidden;
  }

  .photoset-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s ease-out;
  }

  .photoset-preview:hover .photoset-cover img {
      transform: scale(1.05);
  }

  .photoset-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg,
              rgba(0, 0, 0, 0.3) 0%,
              rgba(0, 0, 0, 0.1) 50%,
              rgba(0, 0, 0, 0.4) 100%);
      opacity: 0;
      transition: opacity 0.8s ease-out;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .photoset-preview:hover .photoset-overlay {
      opacity: 1;
  }

  .photoset-title {
      color: #ffffff;
      font-size: 2rem;
      font-weight: 500;
      text-align: center;
      letter-spacing: 1px;
      transform: translateY(20px);
      transition: transform 0.8s ease-out;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .photoset-preview:hover .photoset-title {
      transform: translateY(0);
  }

  .photoset-info {
      padding: 25px 30px;
      border-top: 1px solid #f0f0f0;
  }

  .photoset-info h3 {
      font-size: 1.3rem;
      font-weight: 500;
      color: #333333;
      margin-bottom: 8px;
      letter-spacing: 0.5px;
  }

  .photoset-info p {
      font-size: 0.95rem;
      color: #666666;
      line-height: 1.6;
      margin-bottom: 15px;
  }

  .photoset-meta {
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 0.85rem;
      color: #999999;
  }

  .photoset-meta span {
      display: flex;
      align-items: center;
      gap: 5px;
  }

  .photoset-meta i {
      font-size: 0.9rem;
  }

  /* Responsive design */
  @media (max-width: 768px) {
      .portfolio-hero h1 {
          font-size: 2.2rem;
      }

      .portfolio-hero p {
          font-size: 1rem;
      }

      .photosets-feed {
          gap: 40px;
          max-width: 100%;
      }

      .photoset-cover {
          height: 400px;
      }

      .photoset-title {
          font-size: 1.6rem;
      }

      .photoset-info {
          padding: 20px 25px;
      }

      .photoset-info h3 {
          font-size: 1.2rem;
      }

      .photoset-meta {
          flex-direction: column;
          align-items: flex-start;
          gap: 8px;
      }
  }

  @media (max-width: 480px) {
      .portfolio-container {
          padding: 40px 15px;
      }

      .photoset-cover {
          height: 300px;
      }

      .photoset-title {
          font-size: 1.4rem;
      }

      .photoset-info {
          padding: 15px 20px;
      }

      .photoset-info h3 {
          font-size: 1.1rem;
      }

      .photoset-info p {
          font-size: 0.9rem;
      }
  }

  /* Smooth page transition */
  .page-transition {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #ffffff;
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease-out;
  }

  .page-transition.active {
      opacity: 1;
      pointer-events: auto;
  }