/* ═══════════════════════════════════════
   LIEJO S — PORTFOLIO STYLES
   Black / Red / White Theme
═══════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --red:       #e02020;
  --red-dim:   #a01010;
  --red-glow:  rgba(224, 32, 32, 0.35);
  --bg:        #000000;
  --bg-2:      #080808;
  --bg-3:      #0f0f0f;
  --white:     #ffffff;
  --gray:      #888888;
  --gray-2:    #555555;
  --border:    rgba(255,255,255,0.06);
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-ui:   'Syne', sans-serif;
  --nav-h:     80px;
  --page-gap: clamp(20px, 4vw, 48px);
  --section-vertical-gap: clamp(72px, 10vh, 120px);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --theme-transition: 0.75s cubic-bezier(0.22,0.61,0.36,1);
  --theme-ease: cubic-bezier(0.22,0.61,0.36,1);
}

.light-theme {
  --bg:        #f9f9f9;
  --bg-2:      #ffffff;
  --bg-3:      #f3f3f3;
  --white:     #111111;
  --gray:      #5d5d5d;
  --gray-2:    #8d8d8d;
  --border:    rgba(0,0,0,0.08);
  --red-glow:  rgba(224,32,32,0.18);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 1vw, 16px);
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background var(--theme-transition), color var(--theme-transition);
}
body,
.navbar,
.nav-links a,
.hire-btn,
.theme-toggle,
.mobile-menu,
.hero-bg-img img,
.hero-bg-overlay,
.hero-content,
.social-pill,
.about,
.skills,
.projects,
.education,
.contact,
.skill-card,
.project-card,
.timeline-card,
.contact-item,
.form-group input,
.form-group textarea,
.btn-primary,
.btn-secondary,
.scroll-indicator {
  transition: background var(--theme-transition), color var(--theme-transition), border-color var(--theme-transition), box-shadow var(--theme-transition), opacity var(--theme-transition), filter var(--theme-transition), transform var(--theme-transition);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ─── Custom Cursor ─── */
.cursor {
  width: 32px; height: 32px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  position: fixed; z-index: 10000;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease, opacity 0.3s;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  position: fixed; z-index: 10000;
  pointer-events: none;
  transform: translate(-50%,-50%);
}
.cursor.active { transform: translate(-50%,-50%) scale(1.8); background: rgba(224,32,32,0.08); }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-gap);
  transition: background 0.4s, border-bottom 0.4s;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand,
.nav-actions {
  display: flex; align-items: center; gap: 20px;
}
.nav-logo {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--red); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.menu-toggle:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(224,32,32,0.08);
}
.menu-icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.nav-actions {
  gap: 16px;
}

.hire-btn {
  margin-left: 0;
  padding: 10px 22px;
  border: 1.5px solid var(--red);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  transition: all var(--transition);
}
.hire-btn:hover {
  background: var(--red);
  color: var(--white);
}

.theme-toggle {
  padding: 10px 18px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(224,32,32,0.08);
}

.light-theme .theme-toggle {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  color: var(--white);
}

.staggered-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.staggered-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.staggered-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(28px);
}
.staggered-menu-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.menu-panel-inner {
  width: min(560px, 100%);
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
  padding: 44px 42px 42px;
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.staggered-menu.open .menu-panel-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.menu-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.menu-panel-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.menu-panel-header h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
  color: var(--white);
}
.menu-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.menu-close:hover {
  background: rgba(224,32,32,0.14);
  transform: scale(1.04);
}
.menu-items {
  display: grid;
  gap: 18px;
}
.menu-items li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.36s ease, transform 0.36s ease;
}
.menu-items li:nth-child(1) { transition-delay: 0.12s; }
.menu-items li:nth-child(2) { transition-delay: 0.18s; }
.menu-items li:nth-child(3) { transition-delay: 0.24s; }
.menu-items li:nth-child(4) { transition-delay: 0.30s; }
.menu-items li:nth-child(5) { transition-delay: 0.36s; }
.staggered-menu.open .menu-items li {
  opacity: 1;
  transform: translateY(0);
}
.menu-items a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.menu-items a:hover,
.menu-items a:focus-visible {
  background: rgba(224,32,32,0.16);
  color: var(--red);
  transform: translateX(6px);
}
.menu-items a::after {
  content: '';
  width: 38px;
  height: 2px;
  background: var(--red);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.menu-items a:hover::after,
.menu-items a:focus-visible::after {
  opacity: 1;
  transform: translateX(4px);
}
.light-theme .menu-panel-inner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}
.light-theme .staggered-menu-backdrop {
  background: rgba(255, 255, 255, 0.82);
}
.light-theme .menu-items a {
  color: #111;
}
.light-theme .menu-items a:hover,
.light-theme .menu-items a:focus-visible {
  color: var(--red);
}
.light-theme .menu-close {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}
.light-theme .menu-toggle {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.88);
  color: #111;
}

.mobile-menu {
  display: none;
}

.light-theme .navbar.scrolled {
  background: rgba(255,255,255,0.92);
}

.light-theme .mobile-menu {
  background: rgba(255,255,255,0.96);
}

.light-theme .social-pill {
  background: rgba(255,255,255,0.75);
  color: var(--gray);
  border-color: rgba(0,0,0,0.08);
}

.light-theme .hero-bg-img img {
  opacity: 0.7;
  filter: saturate(1.05) brightness(1.05);
}

.light-theme .hero-bg-overlay {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(224,32,32,0.08) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.3) 100%),
    linear-gradient(to right, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.25) 60%, rgba(255,255,255,0.1) 100%);
}

.light-theme .skill-card,
.light-theme .project-card,
.light-theme .timeline-card,
.light-theme .contact-item,
.light-theme .form-group input,
.light-theme .form-group textarea {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}

.light-theme .project-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.light-theme .project-img-placeholder {
  background: rgba(0,0,0,0.03);
}

.light-theme .project-info h3,
.light-theme .project-info p,
.light-theme .project-links .proj-link.ghost {
  color: var(--white);
}

.light-theme .footer {
  background: var(--bg);
}

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  z-index: 499;
  padding: 24px;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a {
  font-family: var(--font-ui);
  font-size: 18px; font-weight: 600;
  color: var(--white);
  display: block; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 16px) var(--page-gap) clamp(32px, 5vh, 60px);
}

/* BG Image */
.hero-bg-img {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
  filter: saturate(0.7);
  transition: opacity var(--theme-transition), filter var(--theme-transition);
  /* Hide the top strip of the image that contains unwanted artefacts */
  -webkit-clip-path: inset(80px 0 0 0);
  clip-path: inset(80px 0 0 0);
}
.hero-bg-overlay {
  transition: opacity var(--theme-transition);

  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(224,32,32,0.12) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.8) 100%),
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
}

/* Small cleanup overlay to hide stray artefacts in the hero background image (top-left) */
/* Removed .bg-cleanup overlay; using clip-path on the image instead. */

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(224,32,32,0.25) 0%, transparent 70%);
  top: -100px; right: 5%;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(224,32,32,0.15) 0%, transparent 70%);
  bottom: 10%; left: 20%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,60,60,0.2) 0%, transparent 70%);
  top: 30%; left: 45%;
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Particle Canvas */
#particleCanvas {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* Scanlines */
.scanlines {
  position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

/* Social Side */
.social-side {
  position: absolute; right: 24px; top: 50%; z-index: 10;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
}
.social-pill {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 700;
  color: var(--gray);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  letter-spacing: 0;
}
.social-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(224,32,32,0.08);
}

/* Hero Content */
.hero-content {
  position: relative; z-index: 10;
  padding: 0 clamp(20px, 3vw, 48px);
  max-width: min(700px, 100%);
}

.avail-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(224,32,32,0.4);
  border-radius: 100px;
  background: rgba(224,32,32,0.08);
  backdrop-filter: blur(10px);
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(56px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: 1px;
  margin-bottom: clamp(18px, 2.5vh, 28px);
}
.hero-title .line-1,
.hero-title .line-3,
.hero-title .line-4 {
  display: block;
  color: var(--white);
}
.hero-title .line-2 {
  display: block;
  color: var(--red);
  text-shadow: 0 0 60px rgba(224,32,32,0.5);
}

.hero-sub {
  font-size: clamp(15px, 1vw, 16px);
  color: var(--gray);
  margin-bottom: clamp(24px, 4vh, 36px);
  line-height: 1.7;
}

.hero-btns {
  display: flex; gap: clamp(12px, 2vw, 20px); flex-wrap: wrap;
}

/* Scroll */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; z-index: 10;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 3px;
  color: var(--gray);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.scroll-dot {
  width: 1px; height: 16px;
  background: var(--red);
  position: absolute; top: -16px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -16px; }
  100% { top: 100%; }
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(224,32,32,0.5); }
.btn-primary.full-w { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(255,255,255,0.03);
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(224,32,32,0.05);
}

/* ═══════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════ */
.section {
  padding: var(--section-vertical-gap) 0;
  position: relative;
}
.container {
  max-width: 1200px;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 var(--page-gap);
}
.section-label {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: clamp(12px, 2vh, 18px);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: clamp(40px, 6vh, 64px);
  color: var(--white);
}
.section-title span { color: var(--red); }

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: 80px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.about-photo {
  width: 420px; height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  filter: grayscale(15%);
  position: relative; z-index: 2;
  border: 1px solid rgba(255,255,255,0.06);
}
.photo-accent {
  position: absolute;
  top: 20px; left: 20px;
  right: 20px; bottom: 20px;
  border: 1px solid rgba(224,32,32,0.15);
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
}
.exp-badge {
  position: absolute;
  bottom: -20px; right: -10px;
  background: var(--red);
  padding: 16px 20px;
  z-index: 5;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  text-align: center;
}
.exp-num,
.exp-text {
  display: none;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
}
.about-text strong { color: var(--white); }

.about-stats {
  display: flex; gap: 40px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 48px; line-height: 1;
  color: var(--red);
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray);
}

/* ═══════════════════════════════════════
   SKILLS
═══════════════════════════════════════ */
.skills { background: var(--bg); position: relative; }
.skills::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(224,32,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Logo Loop Carousel */
.logo-loop-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: clamp(32px, 5vh, 60px) 0;
  padding: clamp(20px, 3vh, 40px) 0;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(224,32,32,0.1);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.logo-loop-track {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  animation: logoScroll 60s linear infinite;
  padding: 0 clamp(16px, 3vw, 32px);
  width: fit-content;
}

.logo-loop-wrapper:hover .logo-loop-track {
  animation-play-state: paused;
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: clamp(100px, 15vw, 140px);
  transition: all var(--transition);
  padding: clamp(12px, 2vh, 16px);
  border-radius: 16px;
  cursor: default;
}

.logo-item:hover {
  transform: translateY(-8px);
  background: rgba(224,32,32,0.08);
  border: 1px solid rgba(224,32,32,0.2);
}

.logo-icon {
  width: clamp(48px, 8vw, 64px);
  height: clamp(48px, 8vw, 64px);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
  transition: all 0.35s cubic-bezier(0.22,0.61,0.36,1);
}

.logo-item:hover .logo-icon {
  transform: scale(1.12) rotateZ(-5deg);
  filter: drop-shadow(0 12px 28px rgba(224,32,32,0.35));
}

.logo-name {
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.logo-item:hover .logo-name {
  color: var(--red);
}

/* Fade Overlays */
.logo-loop-fade-left,
.logo-loop-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(60px, 12vw, 120px);
  pointer-events: none;
  z-index: 10;
}

.logo-loop-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.logo-loop-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

/* Hide Old Skills Grid & Tools Row */
.skills-grid,
.tools-row {
  display: none;
}

/* Light Theme Logo Loop */
.light-theme .logo-loop-wrapper {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}

.light-theme .logo-item:hover {
  background: rgba(224,32,32,0.06);
  border-color: rgba(224,32,32,0.15);
}

.light-theme .logo-loop-fade-left {
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.light-theme .logo-loop-fade-right {
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
.projects { background: var(--bg-2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(224,32,32,0.4);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.project-card:hover::after { opacity: 1; }

.project-card.featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr;
}
.project-card.featured .project-img { height: auto; min-height: 280px; }

.project-img { overflow: hidden; }
.project-img-placeholder {
  width: 100%; height: 260px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-radius: 24px;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.3);
}
.project-img-placeholder img.project-img-src {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.98;
  transition: transform 0.45s ease, opacity 0.45s ease;
  transform: scale(1.01);
}
.project-card:hover .project-img-placeholder img.project-img-src {
  transform: scale(1.06);
}
.project-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 16%),
    radial-gradient(circle at 80% 18%, rgba(255,64,64,0.14), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 35%, rgba(0,0,0,0.18));
  mix-blend-mode: screen;
}
.project-img-placeholder::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  top: 14px; right: -50px;
  opacity: 0.55;
}
.project-img-placeholder span {
  font-family: var(--font-head);
  font-size: 56px;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 1;
}
.project-image-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  text-align: left;
  padding: 16px 20px;
  background: rgba(0,0,0,0.62);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.project-image-title {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.project-image-subtitle {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 8px rgba(0,0,0,0.35);
}
.p1 { background: transparent; }
.p2 { background: transparent; }
.p3 { background: transparent; }
.p4 { background: transparent; }

.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.project-tags span {
  padding: 4px 10px;
  background: rgba(224,32,32,0.08);
  border: 1px solid rgba(224,32,32,0.2);
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  color: var(--red); letter-spacing: 1px;
  text-transform: uppercase;
}
.project-info h3 {
  font-family: var(--font-ui);
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
}
.project-info p {
  color: var(--gray);
  font-size: 14px; line-height: 1.7;
  margin-bottom: 24px;
}
.project-links {
  display: flex; gap: 12px;
  margin-top: auto;
}
.proj-link {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  padding: 10px 20px;
  background: var(--red);
  transition: all var(--transition);
}
.proj-link:hover { box-shadow: 0 0 20px rgba(224,32,32,0.4); }
.proj-link.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
}
.proj-link.ghost:hover { border-color: var(--red); color: var(--red); background: rgba(224,32,32,0.05); }

/* ═══════════════════════════════════════
   EDUCATION
═══════════════════════════════════════ */
.education { background: var(--bg); }

.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}
.timeline-dot {
  position: absolute; left: -44px; top: 4px;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(224,32,32,0.6);
}
.timeline-year {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  padding-top: 4px;
}
.timeline-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color var(--transition);
}
.timeline-card:hover { border-color: rgba(224,32,32,0.3); }
.tl-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(224,32,32,0.1);
  border: 1px solid rgba(224,32,32,0.25);
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.timeline-card h3 {
  font-family: var(--font-ui);
  font-size: 18px; font-weight: 700;
  margin-bottom: 6px;
}
.tl-sub {
  font-size: 13px; color: var(--gray);
  margin-bottom: 12px;
  font-style: italic;
}
.timeline-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact { background: var(--bg-2); }
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(224,32,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info > p {
  color: var(--gray); font-size: 15px; line-height: 1.8;
  margin-bottom: 40px;
}

.contact-items {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 40px;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
.ci-icon { font-size: 18px; }
.ci-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}
.contact-item a, .contact-item span {
  font-size: 15px; color: var(--white);
}
.status-open { color: #4ade80; }

.contact-socials { display: flex; gap: 12px; }
.soc-btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray);
  transition: all var(--transition);
}
.soc-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(224,32,32,0.05);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(224,32,32,0.5);
  background: rgba(224,32,32,0.03);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-2); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-ui);
  font-size: 18px; font-weight: 800;
}
.footer-logo span { color: var(--red); }
.footer-copy {
  font-size: 13px; color: var(--gray);
}
.back-top {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red);
  transition: opacity var(--transition);
}
.back-top:hover { opacity: 0.7; }

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-photo-wrap { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 24px; }
  .nav-links, .hire-btn { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .hero-content { padding: 0 24px; }
  .social-side { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .timeline { padding-left: 28px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .timeline-dot { left: -32px; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .logo-loop-track { animation: logoScroll 50s linear infinite; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 56px; }
  .section-title { font-size: 42px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
