/* ===========================
   DARK INK STUDIO — CSS
   Dark Gothic Aesthetic
   =========================== */

:root {
  --black:    #0a0a0a;
  --deep:     #111111;
  --dark:     #1a1a1a;
  --mid:      #2a2a2a;
  --surface:  #1e1e1e;
  --red:      #EBB40F;
  --red-dim:  #a07a08;
  --red-glow: rgba(235,180,15,0.25);
  --gold:     #b8963e;
  --gold-dim: #7a6228;
  --bone:     #d4c9b0;
  --muted:    #888880;
  --text:     #e8e0d0;
  --text-dim: #a09888;
  --font-display: 'Cinzel Decorative', serif;
  --font-body:    'Crimson Text', serif;
  --font-mono:    'Share Tech Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: crosshair;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ===========================
   NOISE OVERLAY
=========================== */
.noise-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.6;
}

/* ===========================
   LANGUAGE BAR
=========================== */
.lang-bar {
  position: fixed; top: 14px; right: 16px; z-index: 201;
  display: flex; align-items: center; gap: 6px;
}
.lang-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--muted);
}
/* Toggle switch */
.lang-switch { position: relative; display: inline-block; width: 36px; height: 18px; cursor: pointer; }
.lang-switch input { opacity: 0; width: 0; height: 0; }
.lang-slider {
  position: absolute; inset: 0; background: var(--mid);
  border-radius: 18px; transition: background .2s;
  border: 1px solid #444;
}
.lang-slider::before {
  content: ''; position: absolute; height: 12px; width: 12px;
  left: 2px; top: 2px; background: var(--red);
  border-radius: 50%; transition: transform .2s;
  box-shadow: 0 0 6px var(--red-glow);
}
.lang-switch input:checked + .lang-slider::before { transform: translateX(18px); }
/* Hide desktop lang bar on mobile (will show in nav) */
@media (max-width: 640px) { .lang-bar { display: none; } }

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 70px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.98), rgba(10,10,10,0));
  transition: background .3s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--mid);
}
.nav-logo {
  font-family: var(--font-display); font-size: 16px;
  letter-spacing: .2em; color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
  transition: color .2s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--red); transition: right .3s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.burger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 20px; cursor: pointer;
}
.nav-right-mobile {
  display: none; align-items: center; gap: 12px;
}
.lang-bar-mobile {
  display: flex; align-items: center; gap: 6px;
}

/* ===========================
   MOBILE MENU
=========================== */
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,10,0.98);
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 22px;
  color: var(--text); letter-spacing: .1em;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--red); }

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em;
  text-transform: uppercase; padding: 14px 32px;
  border: 1px solid var(--red); transition: all .25s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%); transition: transform .3s;
}
.btn-primary:hover { background: transparent; color: var(--red); }
.btn-primary:hover::before { transform: translateX(0); }

.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--text);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em;
  text-transform: uppercase; padding: 14px 32px;
  border: 1px solid var(--mid); transition: all .25s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center top, #120e00 0%, var(--black) 60%);
}
.hero-bg { position: absolute; inset: 0; }
.skull-deco {
  position: absolute; font-size: 300px; opacity: 0.03;
  pointer-events: none; user-select: none;
  animation: float 8s ease-in-out infinite;
}
.skull-1 { top: -80px; left: -80px; animation-delay: 0s; }
.skull-2 { bottom: -80px; right: -80px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}

.blood-drip {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 0; background: var(--red);
  animation: drip 3s ease-out 0.5s forwards;
  box-shadow: 0 0 10px var(--red);
}
@keyframes drip { to { height: 120px; } }

.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 20px; max-width: 800px;
}
.hero-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em;
  color: var(--muted); margin-bottom: 24px;
  animation: fadeUp .8s ease both;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(56px, 12vw, 120px);
  line-height: 1; letter-spacing: .05em; color: var(--text);
  text-shadow: 0 0 60px rgba(200,50,40,0.2);
  animation: fadeUp .8s ease .2s both;
}
.title-accent {
  color: var(--red);
  text-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(192,57,43,0.1);
}
.hero-tagline {
  font-family: var(--font-body); font-style: italic; font-size: 22px;
  color: var(--text-dim); margin: 24px 0 40px;
  animation: fadeUp .8s ease .4s both;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .8s ease .6s both;
}
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  color: var(--muted); animation: fadeIn 1s ease 1.5s both;
}
.scroll-line {
  width: 1px; height: 40px; background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 60px; padding: 0 40px;
  justify-content: center;
}
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(18px, 3vw, 26px);
  letter-spacing: .2em; white-space: nowrap; color: var(--text);
  text-align: center;
}
.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--mid), transparent);
}
.section-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em;
  color: var(--red); margin-bottom: 16px; display: block;
}

/* ===========================
   STYLES SECTION
=========================== */
.styles-section {
  padding: 100px 40px;
  background: var(--deep);
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
}
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--mid);
  border: 1px solid var(--mid);
  max-width: 1200px; margin: 0 auto;
}
.style-card {
  background: var(--dark); padding: 40px 32px;
  transition: background .3s;
  opacity: 0; animation: fadeUp .6s ease forwards;
}
.style-card:hover { background: var(--surface); }
.style-icon {
  font-size: 32px; margin-bottom: 20px;
  display: block; filter: grayscale(0.3); width: 52px; height: 52px;
}
.style-icon svg { width: 52px; height: 52px; }
.style-card h3 {
  font-family: var(--font-display); font-size: 15px;
  letter-spacing: .1em; color: var(--gold);
  margin-bottom: 14px;
}
.style-card p { font-size: 16px; color: var(--text-dim); line-height: 1.6; }

/* ===========================
   ABOUT SECTION
=========================== */
.about-section {
  padding: 100px 40px;
  max-width: 1200px; margin: 0 auto;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.2; color: var(--text); margin-bottom: 24px;
}
.about-text p {
  font-size: 17px; color: var(--text-dim); line-height: 1.8;
  margin-bottom: 20px;
}
.about-stats {
  display: flex; gap: 40px; margin-top: 40px;
  padding-top: 40px; border-top: 1px solid var(--mid);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display); font-size: 36px; color: var(--red);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--muted); margin-top: 6px;
}
.about-visual { display: flex; justify-content: center; }
.about-frame {
  width: 340px; height: 400px;
  border: 1px solid var(--mid); position: relative;
  background: var(--deep);
}
.about-frame::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid var(--red-dim); opacity: 0.5;
}
.about-frame-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.big-skull { font-size: 120px; opacity: 0.2; }
.frame-caption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--muted);
}

/* ===========================
   PROCESS SECTION
=========================== */
.process-section {
  padding: 100px 40px;
  background: var(--deep);
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
}
.process-steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 1100px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.process-step {
  flex: 1; min-width: 180px; max-width: 240px;
  padding: 32px 24px; text-align: center;
}
.step-num {
  font-family: var(--font-display); font-size: 40px; color: var(--red-dim);
  opacity: 0.6; margin-bottom: 16px; display: block;
}
.process-step h4 {
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: .1em; color: var(--gold); margin-bottom: 12px;
}
.process-step p { font-size: 15px; color: var(--text-dim); line-height: 1.6; }
.process-arrow {
  align-self: center; font-size: 24px; color: var(--mid);
  padding: 0 8px; flex-shrink: 0;
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section {
  padding: 100px 40px;
  max-width: 1200px; margin: 0 auto;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2; margin-bottom: 40px; color: var(--text);
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.contact-item strong {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--red); margin-bottom: 4px;
}
.contact-item p { font-size: 16px; color: var(--text-dim); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--muted);
}
.form-group input, .form-group textarea {
  background: var(--deep); border: 1px solid var(--mid);
  color: var(--text); font-family: var(--font-body); font-size: 16px;
  padding: 12px 16px; outline: none; resize: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--red);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--mid); }
.form-success {
  display: none; font-family: var(--font-mono); font-size: 12px;
  color: var(--gold); letter-spacing: .05em;
}
.form-success.visible { display: block; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--mid);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: .3em; color: var(--red);
}
.footer-copy {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--muted);
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--red); }

/* ===========================
   PAGE HEADER (Portfolio)
=========================== */
.page-header {
  min-height: 50vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, #120e00 0%, var(--black) 70%);
  text-align: center; padding: 120px 40px 80px;
}
.page-title {
  font-family: var(--font-display); font-size: clamp(40px, 8vw, 90px);
  letter-spacing: .2em; color: var(--text); position: relative; z-index: 2;
  animation: fadeUp .8s ease .2s both;
}
.page-subtitle {
  font-family: var(--font-body); font-style: italic; font-size: 20px;
  color: var(--text-dim); margin-top: 16px; position: relative; z-index: 2;
  animation: fadeUp .8s ease .4s both;
}

/* ===========================
   FILTER BAR
=========================== */
.filter-bar {
  display: flex; gap: 2px; justify-content: center; flex-wrap: wrap;
  padding: 32px 40px;
  background: var(--deep); border-bottom: 1px solid var(--mid);
}
.filter-btn {
  background: var(--dark); border: 1px solid var(--mid);
  color: var(--muted); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 20px; cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--red); color: var(--text); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ===========================
   GALLERY
=========================== */
.gallery-section { padding: 60px 40px 100px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px; max-width: 1200px; margin: 0 auto;
  grid-auto-rows: 300px;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--dark);
  transition: transform .3s;
}
.gallery-item:hover { z-index: 2; transform: scale(1.02); }

.gallery-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
/* Placeholder backgrounds until real photos are added */
.gothic-1     { background: linear-gradient(135deg, #1a0505 0%, #2d0f0f 100%); }
.gothic-2     { background: linear-gradient(135deg, #110812 0%, #21122a 100%); }
.gothic-3     { background: linear-gradient(135deg, #0a0a15 0%, #161628 100%); }
.gothic-4     { background: linear-gradient(135deg, #150505 0%, #1e0a0a 100%); }
.blackgrey-1  { background: linear-gradient(135deg, #111 0%, #222 100%); }
.blackgrey-2  { background: linear-gradient(135deg, #0f0f0f 0%, #1c1c1c 100%); }
.blackgrey-3  { background: linear-gradient(135deg, #0d0d12 0%, #18181f 100%); }
.neo-1        { background: linear-gradient(135deg, #120a03 0%, #1e1005 100%); }
.neo-2        { background: linear-gradient(135deg, #120508 0%, #200a10 100%); }
.neo-3        { background: linear-gradient(135deg, #0a0a12 0%, #15152a 100%); }
.fineline-1   { background: linear-gradient(135deg, #0d1010 0%, #161e1e 100%); }
.fineline-2   { background: linear-gradient(135deg, #100d10 0%, #1a1520 100%); }

.thumb-placeholder {
  font-size: 64px; opacity: 0.15; filter: grayscale(1);
  transition: opacity .3s;
}
.gallery-item:hover .thumb-placeholder { opacity: 0.3; }

.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(8px); opacity: 0;
  transition: all .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-cat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em;
  color: var(--red);
}
.gallery-title {
  font-family: var(--font-display); font-size: 14px; color: var(--text);
}
.gallery-item.hidden { display: none; }

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: var(--text);
  font-size: 24px; cursor: pointer; opacity: 0.6; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-content {
  display: flex; gap: 40px; align-items: center;
  cursor: default; padding: 40px; max-width: 900px;
}
.lightbox-image {
  width: 400px; height: 500px; background: var(--dark);
  border: 1px solid var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: 0.3; flex-shrink: 0;
}
.lightbox-info {
  display: flex; flex-direction: column; gap: 16px;
}
.lightbox-cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--red);
}
.lightbox-title {
  font-family: var(--font-display); font-size: 24px; color: var(--text);
}

/* ===========================
   PORTFOLIO CTA
=========================== */
.portfolio-cta {
  text-align: center; padding: 100px 40px;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, #12100 0%, var(--black) 70%);
  border-top: 1px solid var(--mid);
}
.portfolio-cta h2 {
  font-family: var(--font-display); font-size: clamp(24px, 4vw, 44px);
  color: var(--text); margin-bottom: 16px; position: relative; z-index: 2;
}
.portfolio-cta p {
  font-style: italic; font-size: 20px; color: var(--text-dim);
  margin-bottom: 36px; position: relative; z-index: 2;
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .process-arrow { display: none; }
  .process-steps { flex-direction: column; align-items: center; }
  .gallery-item--wide { grid-column: span 1; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-right-mobile { display: flex; }
  .hero-title { font-size: clamp(44px, 15vw, 80px); }
  .hero-cta { flex-direction: column; align-items: center; }
  .styles-section, .about-section, .contact-section,
  .process-section, .gallery-section { padding: 60px 20px; }
  .section-header { padding: 0 20px; }
  .filter-bar { padding: 20px; gap: 4px; }
  .filter-btn { font-size: 10px; padding: 8px 12px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .lightbox-content { flex-direction: column; padding: 80px 20px 20px; }
  .lightbox-image { width: 100%; height: 250px; }
  .about-stats { gap: 24px; }
  .stat-num { font-size: 28px; }
}

/* ===========================
   PERSIAN DECO (Hero)
=========================== */
.persian-deco {
  position: absolute; pointer-events: none; user-select: none;
  color: var(--red); opacity: 0.04;
  animation: float 10s ease-in-out infinite;
}
.persian-1 { top: -40px; left: -60px; width: 320px; height: 320px; animation-delay: 0s; }
.persian-2 { bottom: -40px; right: -40px; width: 280px; height: 280px; animation-delay: 5s; opacity: 0.03; }

/* Faravahar in about frame */
.faravahar-svg { width: 160px; height: 180px; display: block; }

/* Contact icon SVG sizing */
.contact-icon svg { display: block; }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
