/* ============================
   DESIGN SYSTEM & VARIABLES
   ============================ */
:root {
  --primary: #fc0000;
  --primary-glow: rgba(252, 0, 0, 0.3);
  --bg-dark: #0a0a0a;
  --bg-section: #0f0f0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(252, 0, 0, 0.3);
  --text-primary: #f0f0f0;
  --text-secondary: #999;
  --text-muted: #555;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --card-radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--primary);
}

/* ============================
   REVEAL ANIMATION
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  padding: 14px 6%;
}

.logo {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 3px;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 6%;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0%;
  width: 60%;
  height: 100%;
  background-image: url('hero-bg.jpg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 1) 100%);
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 1) 20%, rgba(10, 10, 10, 0.7) 45%, rgba(10, 10, 10, 0.2) 70%, rgba(10, 10, 10, 0.3) 100%),
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(252, 0, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(252, 0, 0, 0.5);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero .content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
}

h1 span {
  font-weight: 600;
}

.typing {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  font-size: 42px;
  font-weight: 600;
  min-height: 56px;
}

#typed-text {
  color: var(--primary);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
  font-size: 42px;
  color: var(--primary);
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

.subtitle {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin: 24px 0 36px;
}

.buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: transparent;
}

.btn.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn.solid {
  background: var(--primary);
  color: #fff;
}

.btn.solid:hover {
  box-shadow: 0 0 25px var(--primary-glow);
  transform: translateY(-2px);
}

/* hero-image removed — now using CSS background-image on .hero */

/* ============================
   SECTIONS (shared)
   ============================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 60px;
  text-align: center;
}

.title-number {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--primary);
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================
   ABOUT
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #330000);
  padding: 4px;
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(252, 0, 0, 0.2);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-dark);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  display: inline;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ============================
   SKILLS
   ============================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(252, 0, 0, 0.06);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(252, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.skill-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff4444);
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(252, 0, 0, 0.06);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-placeholder {
  font-size: 48px;
  color: rgba(252, 0, 0, 0.2);
  transition: var(--transition);
}

.project-card:hover .project-placeholder {
  color: rgba(252, 0, 0, 0.4);
  transform: scale(1.1);
}

.project-info {
  padding: 24px 28px 28px;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.project-tags span {
  padding: 4px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--primary);
  border: 1px solid rgba(252, 0, 0, 0.2);
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.project-links {
  display: flex;
  gap: 16px;
}

.project-link {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.project-link:hover {
  color: var(--primary);
}

/* ============================
   EXPERIENCE / TIMELINE
   ============================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(252, 0, 0, 0.1));
}

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

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

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border-hover);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 1px;
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.timeline-company {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-content p:last-child {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================
   CONTACT
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact-link-item:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  transform: translateX(4px);
}

.contact-link-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: var(--primary);
}



/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--text-primary);
}

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

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  font-size: 18px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--primary);
}

/* ============================
   MOBILE RESPONSIVE
   ============================ */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    background-position: right bottom;
  }
}

@media (max-width: 768px) {

  /* Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

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

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 120px 6% 60px;
    flex-direction: column;
    min-height: 100vh;
    background-position: center bottom;
    background-size: cover;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.5) 50%, rgba(10, 10, 10, 0.7) 100%) !important;
  }

  .hero .content {
    text-align: center;
    max-width: 100%;
  }

  h1 {
    font-size: 36px;
  }

  .typing {
    font-size: 30px;
    min-height: 44px;
  }

  .cursor {
    font-size: 30px;
  }

  .subtitle {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  /* hero bg adjustments handled above */

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
    gap: 28px;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form .btn.solid {
    align-self: stretch;
    justify-content: center;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Section */
  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }

  /* Timeline */
  .timeline {
    padding-left: 30px;
  }

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

  .timeline-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .typing {
    font-size: 24px;
    min-height: 36px;
  }

  .cursor {
    font-size: 24px;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
}