/* ═══════════════════════════════════════════════════════════
   QUILEX PORTFOLIO — style.css
   Dark, premium, monochromatic aesthetic
═══════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --surface:    #161616;
  --border:     rgba(255,255,255,0.08);
  --muted:      rgba(255,255,255,0.30);
  --text:       rgba(255,255,255,0.88);
  --white:      #ffffff;

  --font-main:  'Outfit', sans-serif;
  --font-alt:   'Space Grotesk', sans-serif;

  --nav-h:      56px;
  --side-w:     42px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SECTION BASE ───────────────────────────────────────── */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* subtle inner border */
  box-shadow: inset 0 0 0 1px var(--border);
}

/* ── GRAIN TEXTURE ──────────────────────────────────────── */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' 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: 256px 256px;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast; /* Safari */
  image-rendering: crisp-edges;              /* Firefox */
  image-rendering: pixelated;               /* Chrome / Edge */
}

.nav-links { display: flex; gap: 28px; }

.nav-link {
  font-family: var(--font-alt);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-link:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   SOCIAL SIDEBAR
══════════════════════════════════════════════════════════ */
.social-sidebar {
  position: absolute;
  bottom: 36px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.social-sidebar.left { left: 20px; }

.social-icon {
  font-family: var(--font-alt);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  writing-mode: horizontal-tb;
  transition: color 0.25s, transform 0.25s;
}
.social-icon:hover { color: var(--white); transform: scale(1.15); }

/* ══════════════════════════════════════════════════════════
   SCROLL INDICATOR
══════════════════════════════════════════════════════════ */
.scroll-indicator {
  position: absolute;
  right: 18px;
  bottom: 36px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-text {
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.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: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ══════════════════════════════════════════════════════════
   SECTION 1 — HERO
══════════════════════════════════════════════════════════ */
.hero-section { justify-content: flex-start; }

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 80px 60px 80px;
  z-index: 5;
  position: relative;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 300;
}

.hero-name {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
  animation: fadeUp 1s ease both;
}

.hero-subtitle {
  margin-top: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-weight: 300;
  animation: fadeUp 1s 0.2s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   SECTION 2 — PORTFOLIO
══════════════════════════════════════════════════════════ */
.portfolio-section { justify-content: flex-start; }

/* VIDEO STRIP */
.video-strip {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0 80px;
  margin-top: 24px;
  height: clamp(420px, 80vh, 860px);
}

.video-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}




.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, #141414, #1e1e1e);
  transition: background 0.4s;
}
.video-card:hover .video-placeholder {
  background: linear-gradient(145deg, #1a1a1a, #262626);
}

.play-btn {
  width: 52px;
  height: 52px;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}
.video-card:hover .play-btn { color: var(--white); transform: scale(1.15); }

.upload-hint {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--font-alt);
  transition: color 0.3s;
}
.video-card:hover .upload-hint { color: rgba(255,255,255,0.6); }

/* PORTFOLIO INFO */
.portfolio-info {
  position: relative;
  z-index: 5;
  padding: 32px 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.portfolio-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.portfolio-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 300;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-outline {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 26px;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  font-family: var(--font-alt);
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: -1;
}
.btn-outline:hover { color: var(--black); border-color: var(--white); }
.btn-outline:hover::before { transform: translateX(0); }

.btn-filled {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--black);
  border: none;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-family: var(--font-alt);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  align-self: flex-start;
}
.btn-filled:hover {
  background: var(--muted);
  color: var(--white);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   SECTION 3 — CONTACT
══════════════════════════════════════════════════════════ */
.contact-section { justify-content: flex-start; }

.contact-grid {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 60px;
  text-align: left;
}

.contact-photo-col {
  position: relative;
  overflow: hidden;
}

/* Radial glow blob behind the photo */
.contact-photo-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 60%,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(180, 180, 255, 0.02) 45%,
    transparent 75%
  );
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

/* Blurred background layer for depth */
.contact-photo-col::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: inherit;
  backdrop-filter: blur(0px);
  z-index: 0;
  pointer-events: none;
}

.contact-photo-col img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Glow that follows the photo's silhouette edges */
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.08))
    drop-shadow(0 0 24px rgba(200, 210, 255, 0.05))
    drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}
.contact-right { padding-left: 48px; }

/* LEFT */
.contact-heading {
  font-weight: 800;
  font-size: clamp(2.35rem, 3.5vw, 3.56rem);
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: left;
  margin-bottom: 24px;
}

/* ── PROFILE PHOTO PLACEHOLDER ─────────────────────────── */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px dashed rgba(255,255,255,0.18);
  margin-bottom: 24px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.photo-placeholder:hover {
  border-color: rgba(255,255,255,0.45);
  background: #1e1e1e;
}

.photo-icon {
  width: 48px;
  height: 48px;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}
.photo-placeholder:hover .photo-icon { color: rgba(255,255,255,0.7); transform: scale(1.1); }

.photo-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--font-alt);
  text-align: center;
  transition: color 0.3s;
}
.photo-placeholder:hover .photo-label { color: rgba(255,255,255,0.6); }

.contact-body {
  font-size: 1.34rem;
  color: var(--muted);
  line-height: 1.8;
  text-align: left;
  max-width: 380px;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  text-align: left;
}

.detail-label {
  font-size: 1.16rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--font-alt);
  font-weight: 600;
}

.detail-value {
  font-size: 1.34rem;
  color: var(--text);
  text-align: left;
}

/* ── CONTACT SOCIAL BUTTONS ──────────────────────────────── */
.contact-social-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  font-family: var(--font-alt);
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.contact-social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 0;
}
.contact-social-btn:hover { color: var(--black); border-color: var(--white); }
.contact-social-btn:hover::before { transform: translateX(0); }
.contact-social-btn span, .contact-social-btn svg { position: relative; z-index: 1; }

/* RIGHT — FORM */
.contact-form-heading {
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: left;
  margin-bottom: 24px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; }

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.8rem;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s, color 0.3s;
  caret-color: var(--white);
}
.form-input::placeholder { color: rgba(255,255,255,0.2); font-size: 0.75rem; }
.form-input:focus { border-bottom-color: var(--white); }

.form-textarea {
  resize: vertical;
  min-height: 80px;
  padding-top: 10px;
}

/* ══════════════════════════════════════════════════════════
   SECTION 3 — TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonials-section {
  justify-content: flex-start;
  background: var(--dark);
}

.testimonials-header {
  position: relative;
  z-index: 5;
  padding: 12px 80px 32px;
  text-align: center;
}

.testimonials-title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}

.testimonials-sub {
  margin-top: 10px;
  font-size: 0.93rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 300;
}

/* ── 2×2 GRID ───────────────────────────────────────────── */
.testimonials-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  gap: 24px;
  padding: 0 80px 60px;
  flex: 1;
  align-content: center;
  justify-content: center;
}

/* ── LIQUID GLASS CARD ──────────────────────────────────── */
.glass-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* glass background */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  /* border */
  border: 1px solid rgba(255, 255, 255, 0.13);
  /* outer glow */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
}

/* Top highlight streak — the "liquid glass" shine */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55) 30%,
    rgba(255, 255, 255, 0.55) 70%,
    transparent
  );
  border-radius: 50%;
  z-index: 2;
}

/* Inner light bloom */
.glass-card::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.glass-inner {
  position: relative;
  z-index: 3;
  padding: 32px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.glass-quote {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.6;
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
  margin-bottom: 4px;
}

.glass-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  flex: 1;
}

.glass-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-name {
  font-family: var(--font-alt);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}

.glass-verify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-alt);
  transition: color 0.25s;
}
.glass-verify:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-content    { padding: 0 40px 60px; }
  .video-strip     { padding: 0 20px; height: 180px; }
  .portfolio-info  { padding: 24px 40px 40px; }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 16px 32px 60px;
    gap: 40px;
  }
  .contact-left  { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
  .contact-right { padding-left: 0; }
}

@media (max-width: 600px) {
  .video-strip { height: 140px; gap: 4px; padding: 0 16px; flex-direction: column; height: auto; }
  .video-card  { min-height: 110px; }
  .hero-content { padding: 0 24px 50px; }
  .portfolio-info { padding: 20px 24px 36px; }
  .contact-grid { padding: 16px 24px 50px; }
  .navbar { padding: 14px 20px; }
}
