/* ═══════════════════════════════════════════
   SANGEETHKUMAR S — Portfolio Stylesheet
   ═══════════════════════════════════════════ */

/* ─── Root & Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #080c14;
  color: #cbd5e1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Section Label ─── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #38bdf8;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: #38bdf8;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
  position: relative;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #38bdf8;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #38bdf8; }
.nav-link.active::after { width: 100%; }

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  border-bottom: 1px solid #1e2d42;
}
.mobile-nav-link:hover { color: #38bdf8; }

/* Hamburger */
.ham-line {
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: #94a3b8;
  border-radius: 2px;
  transition: all 0.3s;
}
#hamburger.open .ham-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open .ham-line:nth-child(2) { opacity: 0; }
#hamburger.open .ham-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 1.5rem; }

/* ─── Hero ─── */
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(129, 140, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Hero Avatar */
.hero-avatar-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-avatar {
  width: 220px;
  height: 220px;
  border-radius: 40px;
  background: linear-gradient(135deg, #0d1422, #1e2d42);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.1), 0 0 120px rgba(56, 189, 248, 0.05);
  animation: float 6s ease-in-out infinite;
}
.avatar-inner {
  width: 180px;
  height: 180px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1e2d42, #0d1422);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Orbits */
.orbit {
  position: absolute;
  border: 1px dashed rgba(56, 189, 248, 0.2);
  border-radius: 50%;
  animation: orbit-spin 12s linear infinite;
}
.orbit-1 {
  width: 260px;
  height: 260px;
}
.orbit-2 {
  width: 310px;
  height: 310px;
  animation-duration: 18s;
  animation-direction: reverse;
  border-color: rgba(129, 140, 248, 0.15);
}
.orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.orbit-dot.accent { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.orbit-dot.accent2 { background: #818cf8; box-shadow: 0 0 10px #818cf8; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Tech badges */
.tech-badge {
  position: absolute;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  background: rgba(13, 20, 34, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #94a3b8;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  z-index: 3;
}
.badge-react { top: 10px; right: -20px; animation: badge-float1 4s ease-in-out infinite; }
.badge-node { bottom: 30px; right: -30px; animation: badge-float2 5s ease-in-out infinite; }
.badge-mongo { bottom: 10px; left: -10px; animation: badge-float3 4.5s ease-in-out infinite; }
@keyframes badge-float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes badge-float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@keyframes badge-float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

/* Typed cursor */
.cursor-blink {
  display: inline-block;
  color: #38bdf8;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Scroll mouse */
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(100, 116, 139, 0.4);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: rgba(100, 116, 139, 0.5);
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.25);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(14, 165, 233, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

/* ─── Tags ─── */
.tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: #94a3b8;
}

/* ─── Code Card ─── */
.code-card {
  background: #090e1a;
  border: 1px solid #1e2d42;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.code-card-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #0d1422;
  border-bottom: 1px solid #1e2d42;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.code-card-body {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  overflow-x: auto;
}
.c-keyword { color: #c084fc; }
.c-var { color: #38bdf8; }
.c-prop { color: #818cf8; }
.c-string { color: #86efac; }
.c-cmt { color: #64748b; }

/* ─── Skill Groups ─── */
.skill-group {
  background: #0d1422;
  border: 1px solid #1e2d42;
  border-radius: 20px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-group:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-4px);
}
.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e2d42;
}
.skill-group-icon {
  font-size: 1.5rem;
}
.skill-list { display: flex; flex-direction: column; gap: 1rem; }
.skill-item {}
.skill-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.skill-bar {
  height: 5px;
  background: #1e2d42;
  border-radius: 999px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #818cf8);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.tool-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid #1e2d42;
  font-size: 0.8rem;
  color: #94a3b8;
  transition: all 0.25s;
}
.tool-chip:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.07);
  color: #fff;
  transform: scale(1.03);
}
.tool-icon { font-size: 1rem; }

/* ─── Project Cards ─── */
.project-card {
  background: #0d1422;
  border: 1px solid #1e2d42;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.project-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project-img {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-img-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-links { display: flex; gap: 0.75rem; }
.project-link-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}
.project-link-btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}
.project-link-btn.outline:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
}
.project-logo {
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  line-height: 1.1;
}
.project-logo.netflix {
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  color: #e50914;
  text-shadow: 0 0 60px rgba(229, 9, 20, 0.6);
}
.project-logo.prime {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  color: white;
}
.project-logo.portfolio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  color: #38bdf8;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}
.project-logo.ecom { font-size: 4rem; }
.project-body { padding: 1.5rem; }
.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, #1e2d42, #38bdf8, #1e2d42);
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1e2d42;
  border: 2px solid #2d3f58;
  transition: all 0.3s;
}
.timeline-dot.active {
  background: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.timeline-dot.glow {
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }
  50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.8); }
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #38bdf8;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.timeline-content {
  background: #0d1422;
  border: 1px solid #1e2d42;
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.timeline-content:hover {
  border-color: rgba(56, 189, 248, 0.2);
}
.timeline-content.highlight {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), #0d1422);
}

/* ─── Service Cards ─── */
.service-card {
  background: #0d1422;
  border: 1px solid #1e2d42;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: all 0.4s ease;
  cursor: default;
}
.service-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), #0d1422);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-icon { font-size: 2.5rem; display: block; }

/* ─── Contact ─── */
.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #0d1422;
  border: 1px solid #1e2d42;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.contact-info-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateX(4px);
}
.contact-info-icon { font-size: 1.5rem; }
.contact-form-card {
  background: #0d1422;
  border: 1px solid #1e2d42;
  border-radius: 20px;
  padding: 2rem;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #080c14;
  border: 1px solid #1e2d42;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}
.form-input::placeholder { color: #2d3f58; }

/* ─── Social Icons ─── */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #1e2d42;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s;
}
.social-icon:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

/* ─── Section Dividers ─── */
.section-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #1e2d42 30%, #1e2d42 70%, transparent 100%);
}

/* ─── Reveal Animations ─── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Delay support */
[style*="--d:"] { transition-delay: var(--d, 0ms); }

/* ─── Badge fade in ─── */
.fade-in-badge {
  animation: fadeInDown 0.8s ease 0.3s both;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Counter ─── */
.counter { font-variant-numeric: tabular-nums; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #080c14; }
::-webkit-scrollbar-thumb { background: #1e2d42; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #2d3f58; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-avatar-wrap { width: 220px; height: 220px; }
  .hero-avatar { width: 160px; height: 160px; }
  .avatar-inner { width: 130px; height: 130px; }
  .orbit-1 { width: 190px; height: 190px; }
  .orbit-2 { width: 230px; height: 230px; }
  .tech-badge { font-size: 0.62rem; padding: 0.3rem 0.6rem; }
  .badge-react { top: 0; right: -10px; }
  .badge-node { bottom: 10px; right: -15px; }
  .badge-mongo { bottom: 0; left: 0; }
}

@media (max-width: 480px) {
  .hero-avatar-wrap { display: none; }
}
