/* Modern Portfolio Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f0f0f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Scroll Animations ─────────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* ─── Header ────────────────────────────────────────────────── */
header {
  background: #1a1a1a;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

nav h1 {
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: #FF9900;
}

/* ─── Hero Section ──────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 7rem 0 5rem;
  text-align: center;
}

#hero .hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: #FF9900;
  margin-bottom: 0.5rem;
}

#hero .hero-title {
  font-size: 1.4rem;
  color: #ccc;
  margin-bottom: 1rem;
  font-weight: 400;
}

#hero .hero-tagline {
  font-size: 1rem;
  color: #999;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, color 0.3s;
}

.btn-primary {
  background: #FF9900;
  color: #1a1a1a;
}

.btn-primary:hover {
  background: #EC7211;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid #FF9900;
}

.btn-secondary:hover {
  background: #FF9900;
  color: #1a1a1a;
  transform: translateY(-2px);
}

#visitor-stats {
  margin-top: 3rem;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 2rem;
  color: #FF9900;
}

/* ─── Sections (shared) ─────────────────────────────────────── */
section {
  padding: 4rem 0;
  background: white;
  margin: 2rem 0;
}

section:nth-child(even) {
  background: #fafafa;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.section-divider {
  width: 48px;
  height: 4px;
  background: #FF9900;
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* ─── About Section ─────────────────────────────────────────── */
#about .about-summary {
  font-size: 1.05rem;
  color: #555;
  max-width: 800px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  background: #f2f2f2;
  border-radius: 10px;
  padding: 1.5rem;
  border-top: 4px solid #FF9900;
  text-align: center;
}

.highlight-card .highlight-value {
  font-size: 2rem;
  font-weight: 700;
  color: #FF9900;
  display: block;
}

.highlight-card .highlight-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ─── Experience Timeline ───────────────────────────────────── */
#experience {
  background: white;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #e0e0e0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF9900;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #FF9900;
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.timeline-company {
  font-size: 0.95rem;
  color: #FF9900;
  font-weight: 600;
}

.timeline-date {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

.timeline-item ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: #555;
  font-size: 0.95rem;
}

.timeline-item ul li {
  margin-bottom: 0.4rem;
}

/* ─── Skills Section ────────────────────────────────────────── */
#skills {
  background: #fafafa;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #FF9900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.skill-category h4 {
  color: #FF9900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: #f2f2f2;
  color: #444;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ─── Projects (home page teaser / projects page) ───────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #f2f2f2;
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.project-card h3 {
  color: #FF9900;
  margin-bottom: 0.5rem;
}

.project-card .project-type {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: #555;
  font-size: 0.95rem;
  flex: 1;
}

.project-card .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tech-tag {
  background: #e8e8e8;
  color: #555;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.project-card .project-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #FF9900;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.project-card .project-link:hover {
  color: #EC7211;
}

/* ─── Blog ──────────────────────────────────────────────────── */
.blog-post {
  background: #f2f2f2;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  border-left: 4px solid #FF9900;
}

.blog-post h3 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.read-more {
  color: #FF9900;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
}

.read-more:hover {
  color: #EC7211;
}

/* ─── Contact Section ───────────────────────────────────────── */
#contact .contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

#contact .contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.3s, color 0.3s;
}

#contact .contact-links a:hover {
  border-color: #FF9900;
  color: #FF9900;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* ─── Page Header (for inner pages) ────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 4rem 0 3rem;
}

.page-header h2 {
  font-size: 2.5rem;
  color: #FF9900;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #aaa;
  font-size: 1rem;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  #hero .hero-name {
    font-size: 2.2rem;
  }

  #hero .hero-title {
    font-size: 1.1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .stats {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline {
    padding-left: 1.25rem;
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }
}
