/* ═══════════════════════════════════════
   Ely Systems — Portfolio
   Dark, minimal, AWWWARDS-energy
   ═══════════════════════════════════════ */

:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --indigo: #4f46e5;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --bg: #07070a;
  --bg-alt: #0c0c12;
  --bg-card: #111118;
  --bg-elevated: #1a1a24;
  --border: #1e1e2e;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ═══ Container ═══ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══ Navigation ═══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s, backdrop-filter .3s;
}

.nav.scrolled {
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: none;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--purple) 15%, #a78bfa 50%, var(--purple) 85%, transparent 100%);
  opacity: 0;
  transition: opacity .4s;
}

.nav.scrolled::after {
  opacity: 1;
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% {
    opacity: .6;
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    filter: blur(1px);
    box-shadow: 0 0 8px rgba(124, 58, 237, .5), 0 0 20px rgba(124, 58, 237, .2);
  }
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(124, 58, 237, .06) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-logo img {
  border-radius: 4px;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}

.nav.scrolled .nav-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(124, 58, 237, .6));
}

.footer-brand img {
  border-radius: 4px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s;
  position: relative;
}

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

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

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

.nav-cta {
  background: var(--purple);
  color: white !important;
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  transition: background .3s, transform .3s;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--purple-dark); transform: scale(1.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ═══ Hero ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grad {
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 160%;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(124, 58, 237, .15) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(79, 70, 229, .1) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 20%, rgba(167, 139, 250, .05) 0%, transparent 30%);
  animation: hero-pulse 6s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes hero-pulse {
  0% { transform: translate(0, 0) scale(1) rotate(-2deg); }
  100% { transform: translate(-3%, -2%) scale(1.15) rotate(2deg); }
}

/* Purple scan/glitch line */
.hero-grad::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  animation: scan-line 4s ease-in-out infinite;
  filter: blur(2px);
  box-shadow: 0 0 20px rgba(124, 58, 237, .4);
}

@keyframes scan-line {
  0% { top: 10%; left: -100%; }
  50% { left: 150%; }
  51% { top: 60%; left: 150%; opacity: .3; }
  100% { top: 60%; left: -100%; opacity: .8; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

/* Diagonal slash accent */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(124, 58, 237, .03) 50%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-label {
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 30%, #c084fc 70%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 4s ease-in-out infinite alternate;
}

.hero-title span:last-child {
  background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 40%, var(--purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 5s ease-in-out infinite alternate-reverse;
}

@keyframes title-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  transition: all .3s;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--purple);
  color: white;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, .3);
}

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

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ═══ Sections ═══ */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--purple-light);
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 58, 237, .2);
  padding: .35rem 1rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, .05);
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══ Reveal Animation ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1),
              transform .8s cubic-bezier(.16, 1, .3, 1);
}

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

.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ═══ Project Cards ═══ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s, box-shadow .4s;
  transform-style: preserve-3d;
  perspective: 1000px;
}

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

.project-media {
  overflow: hidden;
  height: 100%;
  min-height: 300px;
}

.project-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .6rem 1rem;
  background: #111;
  border-bottom: 1px solid #1a1a1a;
}

.frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
}

.frame-bar span:nth-child(1) { background: #ff5f57; }
.frame-bar span:nth-child(2) { background: #febc2e; }
.frame-bar span:nth-child(3) { background: #28c840; }

.frame-bar em {
  margin-left: auto;
  font-size: .75rem;
  color: #555;
  font-style: normal;
}

.frame-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-screenshot-contain {
  object-fit: contain;
  padding: 1.5rem;
}

.project-info {
  padding: 2rem 2rem 2rem 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  font-size: .75rem;
  padding: .25rem .75rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, .1);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, .15);
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: white;
}

.project-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--purple-light);
  transition: gap .3s;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.project-link:hover { gap: .5rem; }
.project-link-soon { color: var(--text-muted); pointer-events: none; }

/* Mockup styles */
.mockup-dashboard { width: 100%; }
.md-row { height: 12px; border-radius: 4px; margin-bottom: 8px; }
.md-purple { width: 70%; background: rgba(124,58,237,.3); }
.md-indigo { width: 50%; background: rgba(79,70,229,.3); }
.md-grid { display: flex; gap: 8px; margin-top: 12px; }
.md-grid span { flex: 1; height: 40px; border-radius: 4px; background: rgba(255,255,255,.05); }

.mockup-rfo { display: flex; gap: 12px; width: 100%; height: 120px; }
.rfo-sidebar { width: 35%; background: rgba(255,255,255,.05); border-radius: 6px; }
.rfo-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rfo-header { height: 16px; width: 60%; background: rgba(124,58,237,.2); border-radius: 4px; }
.rfo-card { flex: 1; background: rgba(255,255,255,.05); border-radius: 4px; }
.rfo-sm { flex: .6; }

.mockup-chat { display: flex; gap: 12px; width: 100%; height: 120px; }
.chat-sidebar { width: 30%; background: rgba(255,255,255,.04); border-radius: 6px; }
.chat-area { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { height: 16px; border-radius: 8px; }
.chat-in { width: 70%; background: rgba(255,255,255,.08); }
.chat-out { width: 50%; margin-left: auto; background: rgba(124,58,237,.3); }
.chat-input { width: 90%; }

.mockup-ghl { width: 100%; }
.ghl-chart { display: flex; align-items: flex-end; gap: 8px; height: 60px; margin-bottom: 12px; }
.ghl-chart span { flex: 1; border-radius: 3px 3px 0 0; }
.ghl-chart span:nth-child(1) { height: 40%; background: rgba(16,185,129,.3); }
.ghl-chart span:nth-child(2) { height: 70%; background: rgba(16,185,129,.4); }
.ghl-chart span:nth-child(3) { height: 55%; background: rgba(16,185,129,.3); }
.ghl-chart span:nth-child(4) { height: 85%; background: rgba(16,185,129,.5); }
.ghl-stats { display: flex; gap: 8px; }
.ghl-stats span { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); }

.mockup-studio { width: 100%; }
.studio-gallery { display: flex; gap: 8px; }
.studio-gallery span { flex: 1; height: 60px; border-radius: 4px; background: rgba(255,255,255,.05); }
.studio-gallery span:nth-child(2) { background: rgba(255,255,255,.08); }

/* ═══ Client Grid ═══ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.client-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .3s;
  text-decoration: none;
  color: inherit;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, .3);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.client-icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}

.client-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: white;
}

.client-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.client-card .project-link {
  font-size: .8rem;
}

/* ═══ Infrastructure ═══ */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.infra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s, border-color .3s;
}

.infra-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, .3);
}

.infra-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--purple-light);
}

.infra-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: white;
}

.infra-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══ Skills ═══ */
.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.skill-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s, border-color .3s;
}

.skill-area:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, .3);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.skill-icon svg {
  width: 24px;
  height: 24px;
}

.skill-area h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: white;
}

.skill-area > p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.skill-area ul {
  list-style: none;
}

.skill-area ul li {
  font-size: .8rem;
  color: var(--text-muted);
  padding: .35rem 0;
  position: relative;
  padding-left: 1.25rem;
}

.skill-area ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
}

/* ═══ About ═══ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .about-grid { gap: 2rem; max-width: 100%; }
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.about-photo-frame:hover .about-photo {
  transform: scale(1.05);
}

.about-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  flex: 1;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.stat-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-content {
  width: auto;
}

@media (max-width: 900px) {
  .about-content { width: 100%; }
}

.about-content p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-tools-wrap {
  overflow: hidden;
  margin-top: 1.5rem;
}

.about-tools {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.about-tools span {
  flex-shrink: 0;
  font-size: .75rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, .08);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, .12);
  transition: background .3s, border-color .3s;
}

.about-tools span:hover {
  background: rgba(124, 58, 237, .2);
  border-color: rgba(124, 58, 237, .3);
}

/* ═══ Contact ═══ */
#about {
  overflow: hidden;
}

#contact {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#contact .container {
  position: relative;
  z-index: 2;
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content .section-desc {
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.contact-link {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .3s;
}

.contact-link:hover {
  color: var(--purple-light);
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-grad {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, .06) 0%, transparent 60%);
  animation: contact-pulse 6s ease-in-out infinite alternate;
}

@keyframes contact-pulse {
  0% { transform: translateX(-50%) scale(1); opacity: .6; }
  100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

/* ═══ Footer ═══ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .875rem;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-copy {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ═══ 3D Tilt ═══ */
.tilt-active {
  transition: transform .15s ease-out;
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-info {
    padding: 0 1.5rem 1.5rem;
  }

  .project-media {
    min-height: 200px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7,7,10,.95);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.25rem;
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .infra-grid { grid-template-columns: 1fr; }
  .skills-showcase { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .about-stats { flex-direction: column; }
  .contact-links { flex-wrap: wrap; gap: 1rem; }
}

/* ═══ Custom Cursor ═══ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform .05s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 58, 237, .4);
  pointer-events: none;
  z-index: 9998;
  transition: width .3s, height .3s, border-color .3s, background .3s;
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
}

.cursor-hover {
  width: 48px;
  height: 48px;
  border-color: rgba(124, 58, 237, .6);
  background: rgba(124, 58, 237, .08);
}

/* ═══ Scroll Progress ═══ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), #a78bfa);
  z-index: 9997;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(124, 58, 237, .4);
}

/* ═══ Reveal Variants ═══ */
.reveal-slide.visible {
  transform: translateX(0) !important;
}

.reveal-slide {
  transform: translateX(-30px) !important;
}

.reveal-scale.visible {
  transform: scale(1) !important;
}

.reveal-scale {
  transform: scale(.95) !important;
}

.reveal-blur.visible {
  filter: blur(0) !important;
  transform: translateY(0) !important;
}

.reveal-blur {
  filter: blur(4px) !important;
  transform: translateY(20px) !important;
}

/* ═══ Card Glow ═══ */
.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  border-radius: inherit;
  z-index: 1;
}

.project-card {
  position: relative;
}

.project-info {
  position: relative;
  z-index: 2;
}

.project-media {
  position: relative;
  z-index: 2;
}

/* ═══ Marquee Ticker ═══ */
.marquee {
  display: flex;
  gap: .5rem;
  overflow: hidden;
  animation: marquee-scroll 20s linear infinite;
  width: max-content;
}

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

/* ═══ Selection ═══ */
::selection {
  background: rgba(124, 58, 237, .3);
  color: white;
}

/* ═══ Hide cursor on touch devices ═══ */
@media (hover: none) {
  .cursor, .cursor-ring, .scroll-progress { display: none; }
}
