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

    :root {
      --bg-color: #0a0a0a;
      --text-color: #ffffff;
      --accent-color: #ed1c2e;
      --gray: #666;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg-color);
      color: var(--text-color);
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* Navigation */
    nav {
      position: fixed;
      top: 0;
      width: 100%;
      padding: 2rem 4rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
      background: rgba(10, 10, 10, 0.8);
      backdrop-filter: blur(10px);
    }

    .logo {
      font-size: 1.2rem;
      font-weight: 600;
      letter-spacing: -0.5px;
    }

    .nav-links {
      display: flex;
      gap: 3rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--text-color);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .nav-links a:hover {
      color: var(--accent-color);
    }

    /* Hero Section */
    .hero {
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 4rem;
      margin-top: -80px;
    }

    .hero h1 {
      font-size: clamp(3rem, 8vw, 7rem);
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 1rem;
      letter-spacing: -2px;
    }

    .hero p {
      font-size: clamp(1rem, 2vw, 1.5rem);
      color: var(--gray);
      max-width: 600px;
      margin-bottom: 3rem;
    }

    .cta-button {
      display: inline-block;
      padding: 1rem 2.5rem;
      background: var(--accent-color);
      color: white;
      text-decoration: none;
      border-radius: 50px;
      font-weight: 500;
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .cta-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(237, 28, 46, 0.3);
    }

    /* Projects Grid */
    .projects-section {
      padding: 8rem 4rem;
      min-height: 100vh;
    }

    .section-title {
      font-size: clamp(2rem, 5vw, 4rem);
      margin-bottom: 4rem;
      font-weight: 700;
      letter-spacing: -1px;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
      gap: 3rem;
      margin-bottom: 6rem;
    }

    .project-card {
      cursor: pointer;
      transition: transform 0.4s;
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .project-card:hover {
      transform: translateY(-10px);
    }

    .project-image {
      width: 100%;
      height: 400px;
      background: #1a1a1a;
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      margin-bottom: 1.5rem;
    }

    .project-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s;
    }

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

    .project-number {
      position: absolute;
      top: 1.5rem;
      left: 1.5rem;
      background: rgba(0, 0, 0, 0.8);
      padding: 0.5rem 1rem;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .project-info h3 {
      font-size: 1.8rem;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }

    .project-info p {
      color: var(--gray);
      font-size: 1rem;
      line-height: 1.6;
    }

    .project-tags {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
      flex-wrap: wrap;
    }

    .tag {
      padding: 0.3rem 1rem;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 50px;
      font-size: 0.85rem;
      color: var(--gray);
    }

    /* Project Detail Page */
    .project-detail {
      display: none;
      padding-top: 120px;
      min-height: 100vh;
    }

    .project-detail.active {
      display: block;
    }

    .back-button {
      padding: 0 4rem;
      margin-bottom: 3rem;
    }

    .back-button a {
      color: var(--text-color);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
      transition: gap 0.3s;
    }

    .back-button a:hover {
      gap: 1rem;
    }

    .project-hero {
      width: 100%;
      height: 70vh;
      background: #1a1a1a;
      margin-bottom: 4rem;
      overflow: hidden;
    }

    .project-hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .project-content {
      padding: 0 4rem;
      max-width: 1400px;
      margin: 0 auto;
    }

    .project-header {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      margin-bottom: 6rem;
    }

    .project-header h1 {
      font-size: clamp(2.5rem, 5vw, 4rem);
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -1px;
    }

    .project-meta {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .meta-item h4 {
      font-size: 0.85rem;
      color: var(--gray);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
    }

    .meta-item p {
      font-size: 1.1rem;
    }

    .project-description {
      max-width: 800px;
      margin-bottom: 6rem;
    }

    .project-description p {
      font-size: 1.2rem;
      line-height: 1.8;
      color: var(--gray);
      margin-bottom: 1.5rem;
    }

    .project-gallery {
      display: grid;
      gap: 3rem;
      margin-bottom: 6rem;
    }

    .gallery-item {
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      background: #1a1a1a;
    }

    .gallery-item img {
      width: 100%;
      height: auto;
      display: block;
    }

    .gallery-item.full {
      height: 600px;
    }

    .gallery-item.full img {
      height: 100%;
      object-fit: cover;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }

    /* UPDATED: Portrait aspect ratio for middle grid images */
    .gallery-grid .gallery-item {
      height: 900px;
      aspect-ratio: 2 / 3;
    }

    .gallery-grid .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Footer */
    footer {
      padding: 6rem 4rem 3rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      margin-bottom: 3rem;
    }

    .footer-content h3 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .contact-info a {
      display: block;
      color: var(--gray);
      text-decoration: none;
      margin-bottom: 0.5rem;
      transition: color 0.3s;
    }

    .contact-info a:hover {
      color: var(--text-color);
    }

    .footer-bottom {
      color: var(--gray);
      font-size: 0.9rem;
      text-align: center;
    }

    @media (max-width: 768px) {
      nav {
        padding: 1.5rem 2rem;
      }

      .hero {
        padding: 0 2rem;
      }

      .projects-section {
        padding: 4rem 2rem;
      }

      .projects-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
      }

      .project-content {
        padding: 0 2rem;
      }

      .project-header {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .gallery-grid {
        grid-template-columns: 1fr;
      }
      
      .gallery-grid .gallery-item {
        height: 600px;
      }

      .footer-content {
        grid-template-columns: 1fr;
      }
    }

    /* Logo styling */
.logo-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.logo-link:hover {
  opacity: 0.7;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-style: italic;
  cursor: pointer;
}

/* Image captions */
.gallery-item {
  position: relative;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 2.5rem 1.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  pointer-events: none;
}