/* --- GLOBAL THEME (Pure Black / Editorial) --- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; 
}

body {
  background-color: #040404; 
  color: #e0e0e0;
  font-family: 'Inter', -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- THIN NAVBAR WITH ICONS --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: rgba(4, 4, 4, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  font-family: 'Dancing Script', cursive; /* The new handwritten font */
  font-size: 2.2rem; /* Made slightly larger for the cursive style */
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.nav-links a i {
  font-size: 1rem;
}

.nav-links a:hover {
  color: #cda464;
}

.btn-download {
  color: #cda464 !important;
  border: 1px solid rgba(205, 164, 100, 0.3);
  padding: 6px 14px;
  border-radius: 4px;
}

.btn-download:hover {
  background: rgba(205, 164, 100, 0.1);
  border-color: #cda464;
}

/* --- DRAMATIC HERO (FLEX LAYOUT) --- */
.hero-dramatic {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-number {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 40vw;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text-content {
  flex: 1;
}

.hero-overline {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: #666;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 20px 0;
  letter-spacing: -0.04em;
}

.hero-bio {
  font-size: 1.1rem;
  color: #a0a0a0;
  line-height: 1.8;
  max-width: 500px;
  margin: 0;
}

.hero-image-content {
  flex-shrink: 0;
}

.hero-circular-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cda464;
  box-shadow: 0 0 40px rgba(205, 164, 100, 0.15); 
  background-color: #1a1a1a;
}

.separator-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(205, 164, 100, 0.4) 50%, rgba(0,0,0,0) 100%);
  width: 100%;
}

/* --- DRAMATIC INTRO --- */
.intro-dramatic {
  padding: 80px 0 20px 0;
  max-width: 900px;
}

.intro-overline {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.gold-line {
  height: 1px;
  width: 40px;
  background-color: #cda464;
}

.intro-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #ffffff;
  margin: 0 0 24px 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.highlight-italic {
  font-style: italic;
  color: #cda464;
  font-weight: 400;
}

.intro-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #a0a0a0;
  max-width: 800px;
}

/* --- SIMPLE PROJECTS GRID --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 40px 0 80px 0;
}

.simple-card {
  background-color: #0c0c0c;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.simple-card:hover {
  transform: translateY(-5px);
  border-color: #333;
}

.card-top {
  padding: 30px;
  flex: 1;
  cursor: pointer; 
}

.card-rect-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 24px 0;
  display: block;
  background-color: #1a1a1a;
  border: 1px solid #222;
}

.card-title-serif {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.card-pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #222;
  border-radius: 20px;
  font-family: monospace;
  font-size: 0.65rem;
  color: #666;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
  margin: 0;
}

.card-bottom {
  border-top: 1px solid #1a1a1a;
  background-color: #080808;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 1;
  transition: opacity 0.2s ease;
}

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

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-label {
  font-family: monospace;
  font-size: 0.65rem;
  color: #666;
  letter-spacing: 1.5px;
}

.stat-divider {
  width: 1px;
  height: 24px;
  background-color: #1a1a1a;
}

/* --- DETAILED PROJECT SECTION --- */
.project-details {
  padding: 80px 0 100px;
  max-width: 1000px;
  margin: 0 auto;
}

.detail-block {
  margin-bottom: 100px;
  padding-top: 60px; 
}

.detail-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.detail-number {
  font-family: monospace;
  color: #cda464;
  font-size: 1.2rem;
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}

.detail-content p {
  font-size: 1.1rem;
  color: #a0a0a0;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* New Detail Specs (Highlights & Tech Stack) */
.detail-specs {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
}

.spec-column {
  flex: 1;
}

.spec-title {
  font-family: monospace;
  color: #cda464;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  margin-top: 0;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  font-size: 0.95rem;
  color: #a0a0a0;
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.spec-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #cda464;
  font-family: monospace;
}

.spec-text {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.8;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  .hero-bio {
    margin: 0 auto;
  }
  .hero-circular-img {
    width: 180px;
    height: 180px;
  }
  .hero-title { font-size: 5rem; }
  .detail-specs {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .intro-title { font-size: 2.5rem; }
  .detail-title { font-size: 2rem; }
  .navbar {
    flex-direction: column;
    padding: 15px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
}

/* --- PROJECT MEDIA: VIDEOS & SCREENSHOTS --- */
/* --- PROJECT MEDIA: VIDEOS & SCREENSHOTS --- */
.detail-featured-media {
  width: 100%;
  aspect-ratio: 16 / 9; /* Forces a perfect widescreen ratio so it never shrinks */
  margin : 40px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #0c0c0c;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.detail-featured-media video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video fills the box edge-to-edge */
  display: block;
  outline: none;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.gallery-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  object-fit: cover;
  background-color: #0c0c0c;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-img:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 164, 100, 0.3); /* Subtle golden hover border */
}

/* Make gallery stack on mobile */
@media (max-width: 768px) {
  .detail-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}