:root {
  --bg: #020617;
  --card-bg: #0f172a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #22d3ee;
  --secondary: #c084fc;
  --border: #1e293b;
  --font-main: -apple-system, "Segoe UI", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
}
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(192, 132, 252, 0.14), transparent 60%),
    radial-gradient(800px 600px at 80% 90%, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.2;
  pointer-events: none;
  z-index: -3;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* Typography */
h1 {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 2rem;
  font-weight: 700;
}
h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  margin-bottom: 0.5rem;
}
p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
}
.hero-content {
  max-width: 760px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 211, 238, 0.1);
  color: var(--primary);
  border-radius: 2rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
}
.btn.primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.35);
}
.btn.secondary {
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.btn:hover {
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 6rem 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 50px rgba(2, 6, 23, 0.55);
}
.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}
.icon.cyan {
  color: var(--primary);
}
.icon.purple {
  color: var(--secondary);
}
.icon.red {
  color: #f87171;
}
.icon.emerald {
  color: #34d399;
}

.tags {
  margin-top: auto;
}
.tags span {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.8rem;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 1rem;
  margin: 0 0.5rem 0.5rem 0;
  color: #cbd5e1;
}

/* Work Card Specifics */
.work-card {
  text-decoration: none;
  position: relative;
}
.project-media {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.15));
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.8);
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.12), transparent 55%);
  transition: opacity 0.35s ease;
}
.project-media:hover .project-thumb {
  transform: scale(1.03);
  filter: saturate(1.2) contrast(1.1);
}
.project-media:hover::after {
  opacity: 0.05;
}
.project-media:hover .media-fallback {
  opacity: 0.15;
}
.work-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.work-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.05);
}
.work-link-btn:hover {
  background: var(--primary);
  color: #000;
}
.work-link-btn.secondary-link {
  border-color: var(--border);
  color: #cbd5e1;
}
.work-link-btn.secondary-link:hover {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #000;
}
.work-link-btn.disabled-link {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.7;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.external-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.experience-card {
  width: 100%;
  border-radius: 0.9rem;
  border-left: 4px solid var(--primary);
}
.experience-card:hover {
  transform: translateY(-3px);
}
.experience-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.experience-top-row h3 {
  margin-bottom: 0;
}
.experience-meta {
  color: #cbd5e1;
  font-size: 0.9rem;
  white-space: nowrap;
}
.experience-role {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.live{
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.5s ease;

}
.live:hover {
  opacity: 0.5;
}

/* Leadership */
.split-layout {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}
.editing-layout {
  margin-top: 3rem;
}
.text-content {
  flex: 1;
  min-width: 300px;
}
.image-content {
  flex: 1;
  min-width: 300px;
}
.image-content img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}
.team-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.team-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s;
}
.team-links a:hover {
  color: var(--secondary);
}
.stats-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.stat-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  flex: 1;
}

/* Contact */
.center-text {
  text-align: center;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 4rem;
}
.social-links a {
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.social-links a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-5px);
}
.social-links a svg {
  width: 24px;
  height: 24px;
  display: block;
}
footer {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.video-modal__overlay {
  position: absolute;
  inset: 0;
}
.video-modal__inner {
  position: relative;
  width: min(95vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.8);
  overflow: hidden;
}
.video-modal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.video-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(2, 6, 23, 0.7);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.video-modal__close:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: scale(1.05);
}

/* Mobile */
@media (max-width: 768px) {
  section {
    padding: 4.5rem 0;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    box-shadow: 0 25px 40px rgba(2, 6, 23, 0.6);
  }
  .nav-links a {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
  .nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .experience-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .experience-meta {
    white-space: normal;
  }
  .split-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .cta-group {
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .project-media {
    margin-bottom: 1rem;
  }
  .social-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (hover: none) {
  .project-media {
    cursor: default;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 1.1rem;
  }
  header {
    min-height: 90vh;
  }
  .badge {
    margin-bottom: 1.5rem;
  }
  .card {
    padding: 1.5rem;
  }
  .work-links {
    gap: 0.5rem;
  }
  .team-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .experience-meta {
    font-size: 0.85rem;
  }
}
