 

/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

img, video {
  max-width: 100%;
  height: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@0;1&family=Orbitron:wght@400;600&family=Great+Vibes&display=swap');

:root {
  --bg: #0b0f1a;
  --accent: #00f6ff;
  --font-main: 'Orbitron', sans-serif;
}

/* ================= BODY ================= */
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: white;
  transition: background 1.5s ease;
}

/* ================= NAV ================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: none;
  display: flex;
  justify-content: space-between;
  align-items: left;
  backdrop-filter:none;
  background: transparent;
  z-index: 1000;
}

nav ul {
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: white;
  opacity: 0.75;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 1;
}

/* ================= HERO / LANDING ================= */
.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
  transition: background 1.5s ease;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 100px 40px;
}

/* ================= PORTRAIT ================= */
.portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.floating-portrait {
  width: 220px; /* mobile base */
  max-width: 100%;
  border-radius: 12px;
  backface-visibility: visible;
  transform-style: preserve-3d;
  animation: floatSpin 10s ease-in-out infinite;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

/* Desktop scale */
@media (min-width: 1024px) {
  .floating-portrait {
    width: 420px; /* 4× size */
  }
}

/* Float + slow flip */
@keyframes floatSpin {
  0%   { transform: translateY(0) rotateY(0deg); }
  50%  { transform: translateY(-18px) rotateY(15deg); }
  100% { transform: translateY(0) rotateY(0deg); }
}

/* ================= HERO TEXT ================= */
.hero-text h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-text .name {
  font-size: 1.4rem;
  opacity: 0.75;
  margin-bottom: 16px;
}

.hero-text .tagline {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.6;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-text blockquote {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 30px 0;
  opacity: 0.85;
}
/* Push hero below fixed nav */
.hero.landing {
  padding-top: 10px;
}
@media (max-width: 900px) {
  .hero.landing {
    padding-top: 90px;
  }
}


/* ================= MODE BUTTONS ================= */
.modes {
  display: flex;
  gap: 20px;
}

.mode {
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 0.6;
}

.mode.active {
  background: var(--accent);
  color: black;
  box-shadow: 0 0 20px var(--accent);
  opacity: 1;
}

/* MODE VARIABLES */
.mode-dev { --bg: radial-gradient(circle at top, #001f2f, #000); --accent: #00f6ff; }
.mode-film { --bg: linear-gradient(120deg, #000, #1c1c1c, #3a2a00); --accent: gold; }
.mode-design { --bg: linear-gradient(135deg, #2c001e, #140010); --accent: #ff5cc8; font-family: 'Playfair Display', serif; }

/* ================= FLOATING CTA ================= */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 22px;
  background: var(--accent);
  color: black;
  text-decoration: none;
  box-shadow: 0 0 25px var(--accent);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ================= SCROLL SECTIONS ================= */
.intro-section,
.highlight-section {
  padding: 100px 20px;
  background: #0b0f1a;
}

.highlight-section {
  background: radial-gradient(circle at top, #111827, #020617);
}

.content {
  max-width: 900px;
  margin: auto;
}

/* ================= ABOUT PAGE ================= */
.about-page {
  background: #000 url('../assets/stone-texture.jpg') center/cover no-repeat;
  color: gold;
  font-family: 'Playfair Display', serif;
}

.about-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text .heading {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  text-shadow: 0 0 4px gold, 0 0 8px gold, 0 0 12px gold, 0 0 20px #ffea7f;
  margin-bottom: 20px;
}

.hero-text .paragraph {
  font-size: 1.2rem;
  line-height: 1.8;
  text-shadow: 0 0 4px gold, 0 0 8px #ffd700;
  opacity: 0.95;
}

.about-history {
  padding: 80px 40px;
  text-align: left;
  color: white;
  background: #0b0f1a;
}

.history-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.history-text {
  flex: 1;
  min-width: 280px;
}

.history-text .subheading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: 20px;
}

.history-text .limited-text {
  font-size: 1rem;
  line-height: 1.6;
  max-height: 6.4em; /* ~4 lines */
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.history-text .limited-text.expanded {
  max-height: 1000px;
}

.expand-text {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.history-image {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
}

.pulse-image {
  width: 80%;
  border-radius: 20px;
  border: 3px solid var(--accent);
  animation: pulseBorder 2s infinite ease-in-out;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 20px var(--accent), 0 0 10px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 30px var(--accent), 0 0 15px rgba(255,255,255,0.3); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 60px 20px; }
  .modes { flex-direction: column; align-items: center; }
  .mode { width: 100%; max-width: 260px; text-align: center; }
  .floating-portrait { width: 220px; }
  nav { flex-direction: column; gap: 15px; }
  .history-container { flex-direction: column; text-align: center; gap: 30px; }
  .pulse-image { width: 80%; margin: auto; }
}

/* ================= CONTACT PAGE ================= */
.contact-page .contact-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.7) 30%, rgba(0,0,0,.9) 100%), url('../assets/portrait2.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.7);
}

.contact-hero .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-heading {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  color: gold;
  text-shadow: 0 0 6px #ffd700, 0 0 12px #ffea7f, 0 0 20px #fff3b0;
  z-index: 3;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--accent);
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.socials a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: black;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s;
}

.socials a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent);
}

/* CONTACT FORM */
.contact-form-section {
  padding: 80px 20px;
  background: #0b0f1a;
}

.contact-form-section form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: auto;
}

.contact-form-section label {
  font-weight: 600;
}

.contact-form-section input,
.contact-form-section textarea,
.contact-form-section select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: #111827;
  color: white;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus,
.contact-form-section select:focus {
  outline: none;
  border-color: gold;
  box-shadow: 0 0 10px gold;
}

.submit-btn {
  padding: 14px 24px;
  background: var(--accent);
  color: black;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent);
}

/* FORM MODE STYLING */
.contact-page.mode-dev form {
  border-left: 4px solid #00f6ff;
}
.contact-page.mode-film form {
  border-left: 4px solid gold;
}
.contact-page.mode-design form {
  border-left: 4px solid #ff5cc8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-hero .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .contact-heading { top: 15%; font-size: clamp(2.5rem, 7vw, 4rem); }
  .portrait img { width: 60%; margin: auto; }
  .contact-info { align-items: center; }
}

/* ================= SERVICES PAGE ================= */
.page-hero {
  text-align: center;
  padding: 120px 20px 60px;
  background: #0b0f1a;
}

.hero-heading {
  font-size: clamp(3rem, 6vw, 5rem);
  color: gold;
  text-shadow: 0 0 6px #ffd700, 0 0 12px #ffea7f, 0 0 20px #fff3b0;
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px;
}

.hero-subheading {
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0.75;
}

/* SERVICES GRID */
.services-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.6));
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-left 0.3s;
  border-left: 6px solid transparent;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* MODE-SPECIFIC CARD STYLING */
.dev-mode { border-left-color: #00f6ff; }
.film-mode { border-left-color: gold; }
.design-mode { border-left-color: #ff5cc8; }

/* HOVER EFFECT */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.8);
}

/* FLOATING CTA ALREADY EXISTS */

/* ================= PORTFOLIO PAGE ================= */
.portfolio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
}

.portfolio-portrait {
  width: 35%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}

.flip-portrait {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-btn.dev-mode { background-color: #00f6ff; }
.category-btn.film-mode { background-color: gold; color: black; }
.category-btn.design-mode { background-color: #ff5cc8; }

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin: 60px 20px;
}

.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.6));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.9);
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

.project-card .slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 16px;
}

.project-card .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.project-card .slide.active {
  opacity: 1;
}

.project-card .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 999px;
  transition: all 0.3s;
}

.project-card .arrow:hover {
  background: var(--accent);
  color: black;
  box-shadow: 0 0 15px var(--accent);
}

.project-card .arrow.prev { left: 10px; }
.project-card .arrow.next { right: 10px; }

.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 22px;
  background: var(--accent);
  color: black;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 25px var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  .portfolio-hero { padding: 40px 20px 60px; }
  .portfolio-portrait { width: 60%; margin-bottom: 20px; }
  .category-buttons { flex-direction: column; align-items: center; }
  .category-btn { width: 80%; text-align: center; }
  .projects { grid-template-columns: 1fr; gap: 40px; margin: 40px 10px; }
}
/* ================= MOBILE NAV ================= */

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Desktop stays unchanged */
@media (max-width: 900px) {
  nav {
    padding: 16px 20px;
  }

  .nav-toggle {
    display: block;
  }

  nav ul.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;

    /* hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav ul.nav-links.open {
    max-height: 300px;
  }

  nav ul.nav-links a {
    font-size: 1.1rem;
  }
}
/* ================= NAV RIBBON BUG FIX (SAFE PATCH) ================= */

/* Mobile nav must fully hide children when closed */
@media (max-width: 900px) {
  nav ul.nav-links {
    overflow: hidden;
  }

  nav ul.nav-links:not(.open) li {
    opacity: 0;
    pointer-events: none;
  }

  nav ul.nav-links.open li {
    opacity: 1;
    pointer-events: auto;
  }
}
nav {
  background: transparent;
  backdrop-filter: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
}
/* ================= LOGO ================= */

.nav-logo {
  display: flex;
  align-items: left;
  z-index: 1100;
}

.nav-logo img {
  height: 50px;           /* controlled size */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Desktop */
@media (min-width: 901px) {
  .nav-logo img {
    height: 70px;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .nav-logo img {
    height: 50px;
  }
}
nav {
  align-items: left;
}
