:root {
  --bg: #050816;
  --card: #0b1020;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.18);
  --text-main: #f9fafb;
  --text-sub: #9ca3af;
  --radius: 18px;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.55);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Global */
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1220 0, #020617 50%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  scroll-behavior: smooth; /* smooth scrolling for anchor links */
}

/* HERO */

.hero {
  max-width: 1100px;
  margin: 40px auto;
  padding: 32px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.96),
    rgba(17, 24, 39, 0.98)
  );
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero-subtitle {
  margin-bottom: 24px;
  color: var(--text-sub);
}

/* Buttons */

.hero-buttons {
  display: flex;
  gap: 12px;
}

/* Globe Container */

.hero-globe {
  flex: 0 0 350px;
  width: 350px;
  height: 350px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #4f8cff 0, #020617 60%);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 50px rgba(79, 140, 255, 0.55),
    0 25px 55px rgba(0, 0, 0, 0.9);
}

/* The canvas fills the container */
#globeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* MAIN SECTIONS */

.section {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

/* Divider before Contact */
#contact {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

/* Global link glow */

a {
  color: #6cb8ff;
  text-shadow: 0 0 8px rgba(108, 184, 255, 0.6);
  text-decoration: none;
  transition: 0.25s ease;
}

a:hover {
  color: #9dd4ff;
  text-shadow: 0 0 12px rgba(157, 212, 255, 0.85);
}

/* CONTACT LINKS WITH ICONS */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.contact-links a {
  color: #6cb8ff;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 8px rgba(108, 184, 255, 0.6);
  transition:
    color 0.2s ease,
    transform 0.15s ease,
    text-shadow 0.2s ease;
}

.contact-links a i {
  font-size: 20px;
}

.contact-links a:hover {
  color: #9dd4ff;
  transform: translateX(6px);
  text-shadow: 0 0 14px rgba(157, 212, 255, 0.95);
}

/* HORIZONTAL PROJECT DECK */

.projects-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* hides scrollbar in Firefox */
}

.projects-row::-webkit-scrollbar {
  display: none; /* hides scrollbar in Chrome/Safari */
}

.project-card {
  min-width: 260px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(79, 140, 255, 0.25);
  border-radius: 18px;
  padding: 20px;
  scroll-snap-align: start;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

/* Zoom-in effect */
.project-card:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 20px rgba(79, 140, 255, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.7);
  border-color: rgba(79, 140, 255, 0.55);
}

.project-card h3 {
  margin: 0 0 10px;
  color: var(--accent);
}

.project-card p {
  color: var(--text-sub);
  line-height: 1.4;
}



/* FOOTER */

.footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  color: var(--text-sub);
  font-size: 14px;
  opacity: 0.75;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.4px;
  transition: opacity 0.3s ease;
}

.footer p {
  margin: 0;
}

.footer:hover {
  opacity: 1;
}

/* MOBILE OPTIMIZATIONS */

@media (max-width: 600px) {
  .section {
    padding: 18px;
  }

  .contact-links {
    gap: 8px;
  }

  .contact-links a {
    font-size: 16px;
  }

  .contact-links a i {
    font-size: 18px;
  }

  .hero {
    padding: 24px;
  }

  .hero h1 {
    font-size: 32px;
  }
}




/* ----------------------------------------- */
/*           PROJECT CARD DECK               */
/* ----------------------------------------- */

.projects-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
  position: relative;
  scroll-behavior: smooth;
}

/* Track line behind cards */
.projects-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(79, 140, 255, 0.15);
  transform: translateY(-50%);
  z-index: 0;
}

.project-card {
  min-width: 240px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(79, 140, 255, 0.2);
  border-radius: 18px;
  box-shadow: 0 0 22px rgba(79, 140, 255, 0.08);
  backdrop-filter: blur(4px);
  
  /* Animations */
  opacity: 0;
  transform: translateY(20px);
  transition:
    transform 0.3s ease,
    opacity 0.6s ease,
    box-shadow 0.3s ease,
    scale 0.3s ease;
  
  position: relative;
  z-index: 1;
}

/* Fade-in when visible */
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover zoom + glow */
.project-card:hover {
  scale: 1.05;
  box-shadow:
    0 0 25px rgba(79, 140, 255, 0.35),
    0 0 12px rgba(79, 140, 255, 0.2);
}