/* ============================================================
   Saabiq Razeen | Portfolio Stylesheet
   Design: Liquid Glass · Dark Theme · Glassmorphism
   Author: Saabiq Razeen · SQWebDev
============================================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Core Palette */
  --bg-base:        #050508;
  --bg-mid:         #0a0a12;
  --bg-card:        rgba(255, 255, 255, 0.042);
  --bg-card-hover:  rgba(255, 255, 255, 0.07);

  /* Accent — electric indigo-violet */
  --accent-1:       #7c3aed;   /* violet */
  --accent-2:       #a855f7;   /* purple */
  --accent-3:       #38bdf8;   /* sky */
  --accent-glow:    rgba(124, 58, 237, 0.35);

  /* Gradient Shorthands */
  --grad-accent:    linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --grad-text:      linear-gradient(135deg, #e2e8f0 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  --grad-glow:      radial-gradient(ellipse 60% 40% at 50% 50%, rgba(124,58,237,0.25) 0%, transparent 70%);

  /* Glass */
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-blur:     blur(20px) saturate(180%);

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

  /* Sizes */
  --nav-h:          72px;
  --radius-card:    20px;
  --radius-pill:    999px;

  /* Transitions */
  --ease:           cubic-bezier(0.23, 1, 0.32, 1);
  --dur:            0.4s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background-color: var(--bg-base);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   CURSOR GLOW
============================================================ */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  z-index: 0;
  will-change: transform;
}

/* ============================================================
   BACKGROUND CANVAS (particles)
============================================================ */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ============================================================
   UTILITY
============================================================ */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Glass Card Base */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.12);
}

/* Accent text */
.accent { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Reveal animation helpers */
[data-reveal], [data-reveal-delay] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
[data-reveal-delay] { transition-delay: 0.18s; }
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: #e2e8f0;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover {
  border-color: var(--accent-2);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  width: min(1200px, 92%);
  margin-inline: auto;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-sq {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text { color: #e2e8f0; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  padding: 9px 22px;
  background: var(--grad-accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  transition: box-shadow 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(124,58,237,0.5); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}
.mobile-menu.open {
  display: block;
  max-height: 400px;
  padding: 16px 0 24px;
}
.mobile-menu ul { width: min(1200px, 92%); margin-inline: auto; }
.mob-link {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, padding-left 0.2s;
}
.mob-link:hover { color: #e2e8f0; padding-left: 8px; }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  z-index: 1;
}

/* Ambient glow blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: blobFloat1 12s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: blobFloat2 15s ease-in-out infinite alternate;
}
@keyframes blobFloat1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px,40px) scale(1.1); }
}
@keyframes blobFloat2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px,-60px) scale(1.08); }
}

.hero-container {
  width: min(1200px, 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 64px;
  padding-block: 80px;
}

/* ── Hero Content ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-pill);
  background: rgba(124,58,237,0.08);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
  50%      { opacity: 0.6; box-shadow: 0 0 16px #22c55e; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  margin-bottom: 16px;
}
.name-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 8px;
}
.hero-title strong { color: #e2e8f0; }

.hero-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 28px;
}

.hero-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  font-size: 1rem;
}
.highlight-label {
  color: #64748b;
  font-weight: 400;
  flex-shrink: 0;
}
.highlight-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typed-cursor {
  color: var(--accent-2);
  animation: blink 0.85s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Stats Row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: var(--glass-blur);
  width: fit-content;
}
.stat-item { text-align: center; padding: 0 24px; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.75rem; color: #64748b; font-weight: 400; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

/* ── Hero Photo ── */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: rotateSlow linear infinite;
}
.photo-ring-1 {
  width: 380px; height: 380px;
  border-color: rgba(124,58,237,0.2);
  border-top-color: var(--accent-1);
  animation-duration: 12s;
}
.photo-ring-2 {
  width: 430px; height: 430px;
  border-color: rgba(56,189,248,0.12);
  border-bottom-color: var(--accent-3);
  animation-duration: 20s;
  animation-direction: reverse;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }

.photo-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.photo-card {
  position: relative;
  width: 300px; height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(124,58,237,0.35);
  box-shadow: 0 0 60px rgba(124,58,237,0.25), inset 0 0 60px rgba(0,0,0,0.4);
  background: var(--bg-mid);
  z-index: 1;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Placeholder when photo is missing */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  gap: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(56,189,248,0.08));
}
.ph-initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ph-label {
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  padding: 0 16px;
  line-height: 1.5;
}
.ph-label code {
  display: block;
  font-size: 0.65rem;
  color: var(--accent-2);
  margin-top: 4px;
  word-break: break-all;
}

/* Corner Badge on Photo */
.photo-badge {
  position: absolute;
  bottom: 20px; right: 10px;
  background: var(--grad-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(124,58,237,0.5);
  letter-spacing: 0.08em;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #475569;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-1));
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTION SHARED STYLES
============================================================ */
.section {
  position: relative;
  padding-block: 100px;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  padding: 6px 16px;
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: var(--radius-pill);
  background: rgba(168,85,247,0.06);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-section { background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.04), transparent); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.about-card {
  padding: 40px;
}
.about-card-inner h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 20px;
}
.about-card-inner p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-card-inner p:last-child { margin-bottom: 0; }
.about-card-inner strong { color: #e2e8f0; }

/* Info Cards Stack */
.about-info-col { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.info-text { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 0.72rem; color: #64748b; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.info-value { font-size: 0.9rem; color: #e2e8f0; font-weight: 500; }

/* ============================================================
   SKILLS SECTION
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skill-chip {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
}
.skill-chip:hover { transform: translateY(-4px); }
.skill-icon { font-size: 1.5rem; }
.skill-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: #e2e8f0; }
.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  transition: width 1.2s var(--ease);
}
.skill-chip.skill-animate .skill-fill { width: var(--w); }

/* ============================================================
   SERVICES SECTION
============================================================ */
.services-section { background: linear-gradient(to bottom, transparent, rgba(56,189,248,0.03), transparent); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-6px); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background 0.3s;
}
.service-card:hover .service-icon-wrap {
  background: rgba(124,58,237,0.2);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.75;
}
.service-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 12px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   PROJECTS SECTION
============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.project-card:hover { transform: translateY(-6px); }
.project-card:hover .proj-link { opacity: 1; transform: none; }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.project-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.proj-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: #94a3b8;
  font-size: 1rem;
  opacity: 0.5;
  transform: rotate(0deg);
  transition: all 0.3s var(--ease);
}
.proj-link:hover { background: var(--accent-1); color: #fff; opacity: 1; }

.project-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
}
.project-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 18px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tags span {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

/* Featured Project */
.featured-project {
  border-color: rgba(124,58,237,0.25);
  background: rgba(124,58,237,0.04);
}
.featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 5px 14px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section { background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.04), transparent); }

.contact-intro {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 56px;
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  gap: 10px;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-card:not(.location-card) {
  cursor: pointer;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.3);
}

.contact-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  margin-bottom: 4px;
  transition: background 0.3s, border-color 0.3s;
}
.contact-card:hover .contact-icon-wrap {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
}

.contact-label { font-size: 0.72rem; font-weight: 600; color: #64748b; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-value { font-size: 0.88rem; font-weight: 500; color: #e2e8f0; }
.contact-arrow {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 1rem;
  color: #475569;
  transition: color 0.3s, transform 0.3s;
}
.contact-card:hover .contact-arrow { color: var(--accent-2); transform: translate(2px,-2px); }

.location-card { cursor: default; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding-block: 40px;
  position: relative;
  z-index: 1;
  background: rgba(5,5,8,0.6);
}
.footer-container {
  width: min(1200px, 92%);
  margin-inline: auto;
  text-align: center;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.footer-tagline { font-size: 0.82rem; color: #475569; }
.footer-divider { height: 1px; background: var(--glass-border); margin-bottom: 24px; }
.footer-copy {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 8px;
}
.footer-copy strong { color: #94a3b8; }
/* SEO text — visible for crawlers, subtle for readers */
.footer-seo {
  font-size: 0.72rem;
  color: #334155;
  line-height: 1.6;
}

/* ============================================================
   BACK TO TOP
============================================================ */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s var(--ease);
  z-index: 500;
}
.back-top:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-wrap { order: -1; width: 260px; margin-inline: auto; }
  .photo-card { width: 240px; height: 240px; }
  .photo-ring-1 { width: 300px; height: 300px; }
  .photo-ring-2 { width: 340px; height: 340px; }
  .hero-content { text-align: center; }
  .hero-badge { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin-inline: auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-info-col { flex-direction: row; flex-wrap: wrap; }
  .info-card { flex: 1 1 calc(50% - 7px); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-container { padding-block: 60px 40px; }
  .hero-name { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-stats { flex-wrap: wrap; gap: 16px 0; padding: 16px; width: 100%; }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 33%; padding: 0 12px; }

  .section { padding-block: 70px; }
  .section-header { margin-bottom: 44px; }

  .about-info-col { flex-direction: column; }
  .info-card { flex: 1 1 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: repeat(2, 1fr); }

  .hero-highlight { flex-wrap: wrap; gap: 6px; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
