:root {
  /* Color Palette */
  --bg: #ffffff;
  --text: #222;
  --text-muted: #666;
  --accent: #000;

  /* Typography */
  --font-sans: 'Courier Prime', Courier, monospace;
  --font-serif: 'Courier Prime', Courier, monospace;
  --font-mono: 'Courier Prime', Courier, monospace;

  /* Sizing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --max-width: 1200px;
}


/* ============================================================
   🖌️ Global Styles
*/

body, h1, h2, h3, h4, h5, h6, p, a, li, span, input, textarea, button {
  font-family: var(--font-mono);
}

/* ============================================================
   🌍 Base Style
   
     font-size: 1rem;
  letter-spacing: 0.02em;
  background-image: url('/assets/1.png'); /* or link to a hosted texture 
  background-repeat: repeat;
  background-size: cover;
============================================================ */
body {
  font-size: 1rem;
  letter-spacing: 0.02em;
  
}

a {
  color: var(--accent);
  text-decoration: none;
}


.section-heading,
.section-subheading {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}


/* ============================================================
   🔝 Header
============================================================ */
.site-header {
  background-color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width); /* already here — good */
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--spacing-md); /* updated: use horizontal padding only */
}

.logo {
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.logo-about {
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  font-size: 1.8rem;
}
.nav a[href="index.html"] {
  display: none;
}

@media (max-width: 768px) {
  .nav a[href="index.html"] {
    display: block;
  }
}

@media (min-width: 480px) {
  .header-container {
   padding-top: clamp(2rem, 5vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }
 }


@media (max-width: 480px) {
  .header-container {
    padding-top: clamp(1.1rem, 5vw, 1.5rem);
    padding-bottom: clamp(1.1rem, 5vw, 1.5rem);
  }

  .logo {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .hamburger {
    font-size: 1.5rem;
    margin-left: auto; /* ✅ This pushes it to the right */
  }
}

/* ============================================================
   🧭 Navigation
============================================================ */
.nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav a {
  font-weight: 500;
  margin-left: var(--spacing-md);
  color: var(--text);
}

/* Hamburger Toggle */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.cta-link {
  display: inline-block;
  font-size: 1.4rem;
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--accent);
  background-color: #f3f3f3;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: var(--spacing-md);
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-link:hover {
  background-color: var(--accent);
  color: var(--bg);
  cursor: pointer;
}


/* ============================================================
   📱 Mobile Nav
============================================================ */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg);
    width: 100vw;
    padding: var(--spacing-md);
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: right; /* ✅ Add this */
    align-items: flex-end; /* ✅ Add this */
  }

  .menu-toggle:checked + .hamburger + .nav {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    font-size: 1.2rem;
  }
}


/* ============================================================
   🎯 Hero Section
============================================================ */
.hero {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  background-color: #f9f9f9;
}

.tagline {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.work-intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  margin-top: var(--spacing-md);
  text-align: center;
}

/* ============================================================
   🎨 Portfolio Section
============================================================ */
.portfolio-grid {
  display: grid;
  position: relative; /* 👈 important */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-md);
}


.portfolio-item {
  background-color: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
  cursor: pointer; /* ✅ Add this */
}


.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-item img {
  width: 100%;
  height: auto;
}

.item-content {
  padding: var(--spacing-sm) var(--spacing-md);
}

.item-content h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  color: var(--text);
}

.portfolio-card {
  position: relative;
  width: 100%;
}


.expanded-drop {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%; /* ✅ matches the width of the card */
  background-color: var(--bg);
  padding: var(--spacing-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  z-index: 10;
  transform-origin: top;
  transform: scaleY(1);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 0 0 8px 8px;
}


.expanded-drop.hidden {
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
}

.expanded-drop {
  transition: 
    transform 0.3s ease,
    opacity 0.3s ease,
    padding 0.3s ease;
}
@media (max-width: 480px) {
  .expanded-drop {
    left: calc(-1 * var(--spacing-md));
    width: calc(100% + 2 * var(--spacing-md));
    border-radius: 0;
  }
}


@media (max-width: 360px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   👤 AR
============================================================ */
a-scene {
  width: 100%;
  height: 70vh; /* Adjust as needed */
  margin-top: 2rem;
  display: block;
  position: relative;
}

a-scene .a-enter-vr-button {
  display: none !important;
}



/* ============================================================
   👤 About Section
============================================================ */
.about-section {
  font-family: var(--font-mono);
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.75;
  font-size: 1rem;
}


.section-heading {
  font-size: 2rem;
  font-family: var(--font-serif);
  color: var(--text);
  margin-bottom: var(--spacing-md);
}

.section-subheading {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-top: 3rem;
  font-family: var(--font-serif);
  font-weight: bold;
}

.about-section p {
  font-family: var(--font-sans);
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-section strong {
  color: var(--accent);
  font-weight: bold;
}

.about-section em {
  color: var(--text-muted);
  font-style: italic;
}



/* ============================================================
   📬 Contact Section
============================================================ */
/* ============================================================
   ✉️ Contact Page Styling
============================================================ */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  font-family: var(--font-mono);
}

.contact-section h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.contact-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  transition: border 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.extra-contact-info {
  display: none; /* Honeypot — hidden to users, visible to bots */
}

.cta-button {
  align-self: center;
  background-color: var(--accent);
  color: var(--bg);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background-color: var(--text-muted);
}

.subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  line-height: 1.5;
  margin-top: 0.25rem;
  font-style: italic;
}

.description {
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font-sans);
  margin-top: 0.5rem;
  line-height: 1.6;
}



/* ============================================================
   🧾 Sample Page
============================================================ */
.project-hero {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  max-width: 700px;
  margin: 0 auto;
}

.project-hero h1 {
  font-size: 2rem;
  font-family: var(--font-serif);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-style: italic;
}

.project-body {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-md);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.script-preview {
  margin-top: var(--spacing-md);
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.script-preview iframe {
  width: 100%;
  border: none;
}

.script-preview {
  width: 100%;
  max-width: 900px;
  margin: 3rem auto;
}

.script-preview iframe {
  width: 100%;
  height: 1000px !important; /* ← force it taller */
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
  .script-preview iframe {
    height: 800px !important; /* or 60vh, depending on comfort */
  }
}
/* ============================================================
   📖 Featured Novel
============================================================ */

.featured-novel {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 80%;
  margin: 0 auto;
}

.novel-card {
  display: flex;
  flex-direction: column; /* Default: image on top */
  background-color: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s ease;
}

.novel-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.novel-info {
  padding: var(--spacing-md);
}

.novel-info h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.novel-meta {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.novel-description {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
}

/* 🔁 Side-by-side layout for tablets and larger */
@media (min-width: 700px) {
  .novel-card {
    flex-direction: row;
    align-items: stretch; /* 💡 Make both sides equal height */
  }

  .novel-card img {
    width: 40%;
    height: 100%; /* ✅ Stretch to match text height */
    object-fit: cover;
  }

  .novel-info {
    width: 70% !important;
  }
}




/* ============================================================
   🧾 Footer
============================================================ */
.site-footer {
  text-align: center;
  padding: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

