/* ============================================
   RESET + BASE
============================================ */

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

html, body {
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0f0f0f;
  color: #e5e5e5;
  line-height: 1.6;
}

/* Links */
a {
  color: #e5e5e5;
  text-decoration: none;
  transition: 0.2s;
}
a:hover { color: #1db954; }

/* ============================================
   HERO SECTION (SAFE FOR iPHONE)
============================================ */

.hero-header {
  background-image: url("hero-new.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* fixed breaks on iPhone */
  
  height: 100dvh; /* iPhone-safe */
  min-height: 100svh;

  position: relative;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.40),
    rgba(0,0,0,0.70),
    rgba(0,0,0,0.90)
  );
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

/* HERO CONTENT */
.hero {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  max-width: 580px;
  margin: 0 auto 25px;
}

/* HERO BUTTONS */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-btn {
  background: #1db954;
  color: #000;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

/* ============================================
   SIMPLE HEADER (SUBPAGES)
============================================ */

.simple-header {
  padding: 20px 25px;
  background: #0f0f0f;
  border-bottom: 1px solid #222;
}

.simple-nav {
  margin-top: 10px;
}
.simple-nav a {
  margin-right: 15px;
  opacity: 0.8;
}
.simple-nav a:hover { opacity: 1; }

/* ============================================
   SECTION BASE
============================================ */

section {
  padding: 40px 25px;
}
section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

/* ============================================
   ABOUT PAGE
============================================ */

.about-summary {
  max-width: 850px;
  margin-bottom: 20px;
  color: #d0d0d0;
}

/* About Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.about-card {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 6px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.skills-grid span {
  background: #1f1f1f;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
}

/* Experience List */
.about-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}
.about-list li {
  margin-bottom: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 30px;
  border-left: 2px solid rgba(255,255,255,0.20);
  padding-left: 25px;
}
.timeline-item {
  margin-bottom: 25px;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -10px;
  width: 12px;
  height: 12px;
  background: #1db954;
  border-radius: 50%;
}
.timeline-content h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* ============================================
   PROJECT PAGE
============================================ */

.project-row {
  margin-bottom: 40px;
}

.project-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.project-track::-webkit-scrollbar {
  height: 4px;
}
.project-track::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.project-card {
  background: #1a1a1a;
  min-width: 240px;
  padding: 14px;
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}
.project-card h4 {
  margin-bottom: 6px;
}
.status {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #1db954;
  padding: 4px 8px;
  font-size: 0.7rem;
  color: #000;
  border-radius: 4px;
}

/* ============================================
   RESUME PAGE
============================================ */

.resume-intro {
  max-width: 800px;
  margin-bottom: 20px;
  color: #d0d0d0;
}

.resume-download {
  display: inline-block;
  padding: 12px 22px;
  background: #1db954;
  color: #000;
  border-radius: 6px;
  margin: 20px 0;
  font-weight: 700;
}

.resume-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
}
.resume-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

/* ============================================
   CONTACT PAGE
============================================ */

.contact-timeline {
  margin-top: 25px;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 25px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  position: relative;
}
.contact-dot {
  position: absolute;
  left: -10px;
  width: 12px;
  height: 12px;
  background: #1db954;
  border-radius: 50%;
}
.contact-info img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

/* ============================================
   MOBILE BREAKPOINTS
============================================ */

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .simple-header {
    padding: 18px;
  }

  .hero-overlay {
    padding: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  section { padding: 30px 18px; }

  nav h1 {
    font-size: 1.3rem;
  }

  .timeline,
  .contact-timeline {
    padding-left: 20px;
  }
}
/* ============================================
   PROJECT TIMELINE LAYOUT (NEW CLEAN UI)
============================================ */

.projects-timeline {
  position: relative;
  margin-top: 20px;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 28px;
}

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

.project-dot {
  position: absolute;
  left: -10px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: #1db954;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(29,185,84,0.5);
}

.project-content {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 6px;
}

.project-content h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.project-content p {
  margin-bottom: 10px;
  color: #d0d0d0;
}

.techline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.techline span {
  background: #2a2a2a;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.project-link {
  color: #1db954;
  font-weight: 600;
}

.project-link:hover {
  opacity: 0.8;
}

/* Mobile spacing */
@media (max-width: 480px) {
  .project-content {
    padding: 14px;
  }
}
