/* 
==========================================================================
   FAIQ IMRAN — PORTFOLIO | Premium Creative Theme
   A bold, immersive, layered design with depth and texture
========================================================================== 
*/

/* ── Google Fonts loaded in HTML ── */

/* ── Design Tokens ── */
:root {
  /* Color System — Warm & Bold */
  --bg-deep:        #0d0d0d;
  --bg-surface:     #161616;
  --bg-elevated:    #1e1e1e;
  --bg-card:        #222222;
  --accent:         #ff6b35;
  --accent-hover:   #ff8c5a;
  --accent-glow:    rgba(255, 107, 53, 0.25);
  --gold:           #e8b931;
  --gold-muted:     #c9a227;
  --text-primary:   #f0ece2;
  --text-secondary: #9e9e9e;
  --text-dim:       #666666;
  --border:         rgba(255, 255, 255, 0.06);
  --glass-bg:       rgba(30, 30, 30, 0.6);
  --glass-border:   rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Fluid Scale */
  --fs-hero:    clamp(3.2rem, 2rem + 6vw, 7rem);
  --fs-h1:      clamp(2rem, 1.4rem + 3vw, 3.5rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  --fs-h3:      clamp(1.15rem, 1rem + 0.75vw, 1.5rem);
  --fs-body:    clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  --fs-small:   clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --fs-label:   0.72rem;

  /* Spacing */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --gap-2xl: 6rem;
  --gap-3xl: 8rem;
  --section-y: clamp(5rem, 4rem + 5vw, 9rem);

  /* Misc */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 30px rgba(0,0,0,0.35);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture on body */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 4px;
}


/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--gap-md);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 52px;
  height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader-text {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 2rem);
}


/* ── Section Shared ── */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: var(--gap-xs);
}

.section-title {
  font-size: var(--fs-h1);
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Alternating dark/darker sections */
.section--alt {
  background: var(--bg-surface);
}


/* ── Divider Shapes ── */
.section-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.section-divider .shape-fill {
  fill: var(--bg-surface);
}

.section-divider--reverse .shape-fill {
  fill: var(--bg-deep);
}


/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  padding: 0.7rem 0;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.nav-logo .dot {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.nav-link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after  { bottom: -8px; }

.hamburger.active { background: transparent; }
.hamburger.active::before { transform: rotate(45deg) translate(6px, 5px); }
.hamburger.active::after  { transform: rotate(-45deg) translate(6px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 380px);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-elevated);
    flex-direction: column;
    justify-content: center;
    gap: var(--gap-lg);
    transition: right var(--transition-slow);
    box-shadow: -20px 0 40px rgba(0,0,0,0.5);
  }
  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1.1rem; }
}


/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Ambient light blob */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-blob 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(232, 185, 49, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-blob 10s ease-in-out infinite alternate-reverse;
}

@keyframes float-blob {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.hero-text { max-width: 650px; }

.hero-greeting {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: var(--gap-sm);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.3s;
}

.hero-name {
  font-size: var(--fs-hero);
  line-height: 1.05;
  margin-bottom: var(--gap-md);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-name .accent { color: var(--accent); }

.hero-role {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.typing-text { color: var(--accent); font-weight: 600; }
.typing-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: var(--fs-body);
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: var(--gap-lg);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-actions {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.1s;
}

/* Hero photo */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero-photo {
  width: clamp(260px, 22vw, 380px);
  height: clamp(260px, 22vw, 380px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(255, 107, 53, 0.12);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative ring around photo */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  width: calc(clamp(260px, 22vw, 380px) + 30px);
  height: calc(clamp(260px, 22vw, 380px) + 30px);
  border: 1px dashed var(--accent-glow);
  border-radius: 50%;
  animation: rotate-ring 25s linear infinite;
}

@keyframes rotate-ring { to { transform: rotate(360deg); } }

/* Stats strip */
.hero-stats {
  position: absolute;
  bottom: var(--gap-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.4s;
}

.stat {
  text-align: center;
  font-family: var(--font-display);
}

.stat-number {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: var(--fs-label);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { order: -1; margin-bottom: var(--gap-md); }
  .hero-bio { margin-inline: auto; }
}

@media (max-width: 480px) {
  .hero-stats { gap: var(--gap-md); }
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: var(--fs-label); }


/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

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


/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.about-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-box:hover img {
  transform: scale(1.04);
}

/* Gold corner accent */
.about-image-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, var(--gold-muted) 50%);
  opacity: 0.3;
}

.about-text p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
}

.about-text strong {
  color: var(--text-primary);
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
  margin: var(--gap-lg) 0;
  padding: var(--gap-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.about-info-item {
  padding: var(--gap-xs) 0;
}

.about-info-item .label {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.about-info-item .value {
  font-size: var(--fs-small);
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-image-box { max-width: 350px; margin: 0 auto; }
  .about-info-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   SKILLS
   ══════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap-md);
}

.skill-card {
  background: var(--bg-card);
  padding: var(--gap-lg) var(--gap-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 53, 0.15);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card svg,
.skill-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  color: var(--gold);
  margin: 0 auto var(--gap-sm);
}

.skill-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--gap-xs);
}

.skill-desc {
  font-size: var(--fs-small);
  color: var(--text-dim);
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gap-lg);
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-body {
  padding: var(--gap-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--gap-xs);
}

.project-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--gap-md);
}

.project-tag {
  font-size: var(--fs-label);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  color: var(--text-dim);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.project-links {
  display: flex;
  gap: var(--gap-xs);
}

@media (max-width: 400px) {
  .projects-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   TIMELINE (Experience & Education)
   ══════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--gold), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: var(--gap-lg);
  padding-left: var(--gap-lg);
}

.tl-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-deep);
  z-index: 1;
}

.section--alt .tl-dot {
  border-color: var(--bg-surface);
}

.tl-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  transition: all var(--transition);
}

.tl-content:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}

.tl-date {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.tl-title {
  font-size: var(--fs-h3);
  margin-bottom: 2px;
}

.tl-org {
  font-size: var(--fs-small);
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: var(--gap-sm);
}

.tl-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════
   GALLERY / PERSONAL PHOTOS
   ══════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--gap-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h4 {
  font-size: var(--fs-body);
  margin-bottom: 2px;
}

.gallery-caption p {
  font-size: var(--fs-label);
  color: var(--text-dim);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }


/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
.testimonials-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  padding: var(--gap-xs);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--gap-xl);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--gap-lg);
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  line-height: 0;
  position: relative;
  top: 18px;
  margin-right: 4px;
  font-family: Georgia, serif;
}

.testimonial-author h4 {
  font-size: var(--fs-body);
  margin-bottom: 2px;
  color: var(--text-primary);
}

.testimonial-author p {
  font-size: var(--fs-small);
  color: var(--text-dim);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--gap-md);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}


/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gap-xl);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateX(5px);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.08);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item h4 {
  font-size: var(--fs-small);
  margin-bottom: 2px;
}

.contact-item a,
.contact-item p {
  font-size: var(--fs-small);
  color: var(--text-dim);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.form-group {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--text-dim);
  pointer-events: none;
  transition: all var(--transition);
  font-size: var(--fs-body);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 12px;
  font-size: var(--fs-label);
  color: var(--accent);
  background: var(--bg-deep);
  padding: 0 6px;
}

.section--alt .form-input:focus ~ .form-label,
.section--alt .form-input:not(:placeholder-shown) ~ .form-label,
.section--alt .form-textarea:focus ~ .form-label,
.section--alt .form-textarea:not(:placeholder-shown) ~ .form-label {
  background: var(--bg-surface);
}

.form-input.error,
.form-textarea.error {
  border-color: #e53e3e;
}

.contact-form .btn-primary {
  width: 100%;
  padding: 1rem;
}

.btn.success {
  background: #2f855a;
  border-color: #2f855a;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  padding: var(--gap-xl) 0 var(--gap-lg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.footer-copy {
  font-size: var(--fs-small);
  color: var(--text-dim);
}

.footer-socials {
  display: flex;
  gap: var(--gap-md);
}

.footer-socials a {
  color: var(--text-dim);
  display: inline-flex;
  transition: all var(--transition);
}

.footer-socials a svg {
  width: 20px;
  height: 20px;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ══════════════════════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: var(--gap-lg);
  right: var(--gap-lg);
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--bg-deep); transform: translateY(-3px); }


/* ══════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════ */
@media print {
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .navbar, .preloader, .back-to-top, .hero::before, .hero::after { display: none !important; }
  .section { padding: 2rem 0; page-break-inside: avoid; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .skill-card, .project-card, .tl-content, .testimonial-card, .contact-item {
    background: #fff; border: 1px solid #ddd; color: #000;
  }
  h1, h2, h3, h4, h5, h6 { color: #000; }
}

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.3s ease; }
.lightbox.open img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; transition: color 0.3s ease; }
.lightbox-close:hover { color: var(--color-primary); }

@keyframes floating { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.floating { animation: floating 4s ease-in-out infinite; }

/* ===================== PREMIUM FOOTER ===================== */
.footer-cta { text-align: center; padding: 4rem 2rem; background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 215, 0, 0.05)); border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 3rem; border-radius: 12px; }
.footer-cta h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--color-text-primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; color: var(--color-text-secondary); line-height: 1.6; max-width: 300px; }
.footer-links h3, .footer-contact h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--color-text-primary); font-family: 'Space Grotesk', sans-serif; }
.footer-links ul, .footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-links a, .footer-contact a, .footer-contact span { color: var(--color-text-secondary); text-decoration: none; transition: color 0.3s ease; display: flex; align-items: center; font-size: 0.95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--color-accent-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; text-decoration: none; transition: all 0.3s ease; animation: pulse-green 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
.whatsapp-float svg { width: 35px; height: 35px; fill: white; margin-top: 2px; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 768px) { .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; } .whatsapp-float svg { width: 28px; height: 28px; } }
