/* ============================================
   Sunny Sangar — Thermal Precision Aesthetic
   ============================================ */

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

:root {
  --bg: #0c0a09;
  --surface: #1e1b19;
  --surface-strong: #1c1917;
  --surface-hover: #2d2926;
  --border: #36312e;
  --border-soft: #1c1917;
  --border-hover: #f59e0b;
  --text: #ffffff;
  --text-muted: #c8c2bc;
  --accent: #d97706;
  --accent-bright: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --font-body: "IBM Plex Mono", monospace;
  --font-heading: "Syne", sans-serif;
  --max-width: 1120px;
  --nav-height: 80px;
  --section-radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top center, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.nav-logo {
  font-family: var(--font-heading);
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 10, 9, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand-block {
  display: flex;
  flex-direction: column;
}

.nav-logo {
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-tagline {
  color: var(--accent-bright);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: var(--section-radius);
}

.nav-cta:hover {
  border-color: var(--accent-bright);
  background: var(--surface-hover);
  box-shadow: inset 0 2px 10px var(--accent-glow);
}

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

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

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 160px 24px 80px;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.hero-greeting,
.section-label {
  color: var(--accent-bright);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(40px, 8vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  display: inline-block; 
  padding-bottom: 16px;  
  margin-bottom: -16px
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 26px);
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--section-radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--accent-bright);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent-bright), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.3);
    transform-origin: top;
    opacity: 0.35;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--section-radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-bright);
  color: var(--bg);
}

.btn-primary:hover {
  background: #fde68a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-bright);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.btn.loading {
  opacity: 0.8;
  pointer-events: none;
  cursor: wait;
}

.section {
  padding: 80px 0;
}

.section-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-bright);
  margin-top: 16px;
}

.contact-intro {
  max-width: 560px;
  margin: -18px 0 34px;
  color: var(--text-muted);
  font-size: 16px;
}

.about-text {
  max-width: 760px;
  font-size: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.project-card,
.timeline-content,
.education-card,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  padding: 32px;
  transition: all 0.3s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card::before,
.education-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.project-card:hover::before,
.education-card:hover::before,
.contact-panel:hover::before {
  transform: scaleX(1);
}

.project-card:hover,
.timeline-content:hover,
.education-card:hover,
.contact-panel:hover {
  background: var(--surface-hover);
  border-color: #3f3936;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-group + .project-group {
  margin-top: 40px;
}

.project-group-label {
  margin-bottom: 18px;
  color: var(--accent-bright);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card {
  min-height: 100%;
}

.project-card-featured {
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent 40%),
    var(--surface);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.12),
    0 0 28px rgba(245, 158, 11, 0.16);
}

.project-card-featured:hover {
  border-color: var(--accent-bright);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(245, 158, 11, 0.22);
}

.project-kicker {
  color: var(--accent-bright);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0;
}

.project-desc {
  color: var(--text-muted);
  font-size: 14px;
  flex-grow: 1;
  margin-bottom: 24px;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.project-link:hover {
  border-bottom-color: var(--accent-bright);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--bg);
  border: 1px solid var(--accent-bright);
  transition: background 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
}

.timeline-company,
.education-school {
  color: var(--text-muted);
  font-size: 14px;
}

.timeline-date,
.education-date {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-bright);
  margin: 12px 0 16px;
  padding: 4px 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 2px;
}

.timeline-details li,
.education-details li {
  color: var(--text-muted);
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
}

.timeline-details li:last-child,
.education-details li:last-child {
  margin-bottom: 0;
}

.timeline-details li::before,
.education-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent-bright);
  border-radius: 1px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.education-degree {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.skills-compact {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  padding: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.skills-compact strong {
  color: var(--accent-bright);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-panel {
  max-width: 760px;
  display: grid;
  gap: 18px;
  background: var(--surface-strong);
}

.contact-link,
.contact-location {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-link:hover {
  color: var(--accent-bright);
  transform: translateX(4px);
}

.contact-location {
  margin: 0;
}

.footer {
  padding: 28px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
}

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

.reveal.delay-1 {
  transition-delay: 0.1s;
}

.reveal.delay-2 {
  transition-delay: 0.2s;
}

.reveal.delay-3 {
  transition-delay: 0.3s;
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--ease) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 24px 60px;
  }

  .section {
    padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-scroll {
    display: none;
  }

  .timeline {
    padding-left: 34px;
  }

  .timeline-dot {
    left: -30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .animate-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
