/* ─────────────────────────────
   IMPORTS & TOKENS (diogotc-inspired)
───────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  /* High-Contrast Colors */
  --c-dark-bg:   #09090b; /* Very dark grey/black for hero */
  --c-dark-sec:  #18181b;
  --c-light-bg:  #ffffff; /* Clean white for content */
  --c-light-sec: #f4f4f5;
  
  /* Text */
  --c-text-light: #ffffff;
  --c-text-dark:  #18181b;
  --c-subtle-light: #a1a1aa;
  --c-subtle-dark:  #71717a;

  /* Solid/Billboard Colors */
  --c-red:    #ef4444;
  --c-blue:   #3b82f6;
  --c-purple: #8b5cf6;
  --c-green:  #10b981;
  --c-accent: #6366f1;

  /* Fonts */
  --f-head: 'Syne', sans-serif;
  --f-body: 'Inter', sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.4s var(--ease);
}

/* ─────────────────────────────
   RESET & BASE
───────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--c-dark-bg); /* Default dark, sections will override */
  color: var(--c-text-light); /* Default light text */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.inline-flex { display: inline-flex; gap: 1rem; align-items: center; }
.mt-6 { margin-top: 2rem; }

/* ─────────────────────────────
   NAVBAR (Glassmorphism)
───────────────────────────── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 999;
  padding: 1.5rem 0;
  transition: all var(--t-med);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  padding: 1rem 0;
  background: rgba(9, 9, 11, 0.7); /* Dark backdrop */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--f-head);
  font-size: 1.5rem; font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.logo .dot { color: var(--c-accent); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-size: 0.85rem; font-weight: 600;
  color: var(--c-subtle-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 0.5rem 1.2rem !important;
  background: #fff; color: var(--c-dark-bg) !important;
  border-radius: 50px;
  transition: transform var(--t-fast), opacity var(--t-fast) !important;
}
.nav-cta:hover { transform: scale(1.05); opacity: 0.9; }

/* Hamburger */
.hamburger { display:none; flex-direction:column; gap:6px; background:none; border:none; cursor:pointer; padding:4px; z-index: 1000;}
.hamburger span { display:block; width:24px; height:2px; background:#fff; transition:var(--t-fast); }
.hamburger.open span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }

/* ─────────────────────────────
   HERO (Interactive Particles)
───────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-dark-bg);
  overflow: hidden;
}
#particles-js {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1;
}
.hero-container {
  position: relative; z-index: 2;
  padding-top: 6rem;
}
.hero-title {
  font-family: var(--f-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  color: #fff;
  animation: slideUp 0.8s var(--ease) both;
}
.hero-role {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500; color: var(--c-subtle-light);
  margin-bottom: 2rem;
  animation: slideUp 0.8s var(--ease) 0.1s both;
}
.hero-desc {
  font-size: 1.1rem; color: var(--c-subtle-light);
  max-width: 600px;
  margin-bottom: 3rem;
  animation: slideUp 0.8s var(--ease) 0.2s both;
}
.hero-actions { display: flex; gap: 1.5rem; align-items: center; animation: slideUp 0.8s var(--ease) 0.3s both;}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: 50px;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer; border: none;
}
.btn-primary {
  background: #fff; color: var(--c-dark-bg);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(255,255,255,0.2); }

.social-links a {
  color: var(--c-subtle-light);
  transition: color var(--t-fast), transform var(--t-fast);
}
.social-links a:hover { color: #fff; transform: translateY(-2px); }

/* ─────────────────────────────
   SECTION COMMON (High Contrast)
───────────────────────────── */
.section { padding: 6rem 0; }
.section-light { background: var(--c-light-bg); color: var(--c-text-dark); }
.section-light-alt { background: var(--c-light-sec); color: var(--c-text-dark); }
.section-dark { background: var(--c-dark-bg); color: var(--c-text-light); }

.section-heading {
  font-family: var(--f-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 4rem;
}

/* ─────────────────────────────
   EXPERIENCE TIMELINE (Vertical)
───────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px; margin: 0 auto;
}
/* Center Line */
.timeline::after {
  content: ''; position: absolute;
  width: 2px; background: #e4e4e7; /* Light grey line */
  top: 0; bottom: 0; left: 50%; margin-left: -1px;
}
.timeline-item {
  padding: 10px 40px; position: relative; width: 50%;
  margin-bottom: 2rem;
}
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-icon {
  position: absolute; top: 15px; width: 40px; height: 40px;
  right: -20px; /* Center for left items */
  background: #fff; border: 4px solid var(--c-light-bg); border-radius: 50%;
  z-index: 1; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.timeline-item.right .timeline-icon { left: -20px; }

.bg-accent { background: var(--c-accent); color: #fff;}
.bg-blue   { background: var(--c-blue); color: #fff;}
.bg-green  { background: var(--c-green); color: #fff;}

.timeline-content {
  background: #fff; padding: 1.5rem; border-radius: var(--r-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #f4f4f5;
  transition: transform var(--t-fast);
}
.timeline-item:hover .timeline-content { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.timeline-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.timeline-date { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--c-accent); margin-bottom: 0.8rem; text-transform: uppercase;}
.timeline-content p { font-size: 0.95rem; color: var(--c-subtle-dark); line-height: 1.5; }

/* ─────────────────────────────
   PROJECTS (Billboard Style)
───────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.billboard-card {
  position: relative;
  border-radius: var(--r-xl); padding: 3rem 2rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #fff; overflow: hidden;
  transition: transform var(--t-med);
}
.billboard-card:hover { transform: scale(1.02); }
.card-link { position: absolute; inset: 0; z-index: 10; }

.bg-red { background: var(--c-red); }
.bg-purple { background: var(--c-purple); }

.card-icon {
  margin-bottom: 2rem;
  transition: transform var(--t-med);
}
.billboard-card:hover .card-icon { transform: scale(1.1); }
.billboard-card h3 { font-family: var(--f-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.5px;}
.billboard-card p { font-size: 1rem; opacity: 0.9; max-width: 80%; margin: 0 auto;}

/* ─────────────────────────────
   SKILLS (Clean Cards)
───────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
}
.skill-card-clean {
  background: #fff; border: 1px solid #e4e4e7; border-radius: var(--r-lg);
  padding: 2rem 1.5rem; text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.skill-card-clean:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.skill-card-clean h3 { font-family: var(--f-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--c-text-dark);}
.skill-card-clean ul li { font-size: 0.9rem; color: var(--c-subtle-dark); padding: 0.5rem 0; border-bottom: 1px dashed #e4e4e7;}
.skill-card-clean ul li:last-child { border-bottom: none; padding-bottom: 0;}

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
footer {
  padding: 3rem 0;
  background: var(--c-dark-bg); color: var(--c-subtle-light);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

/* ─────────────────────────────
   SCROLL REVEAL & ANIMATIONS
───────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.billboard-card[data-delay="100"] { transition-delay: 0.1s; }
.billboard-card[data-delay="200"] { transition-delay: 0.2s; }
.skill-card-clean[data-delay="100"] { transition-delay: 0.1s; }
.skill-card-clean[data-delay="200"] { transition-delay: 0.2s; }
.skill-card-clean[data-delay="300"] { transition-delay: 0.3s; }

@keyframes slideUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hamburger { display:flex; color: #fff;}
  .nav-links {
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background: var(--c-dark-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding: 1rem 2rem; display: block; width: 100%; text-align: center;}
  
  .projects-grid { grid-template-columns:1fr; }
  
  /* Timeline responsive */
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; text-align: left; }
  .timeline-item.left { left: 0; }
  .timeline-item.right { left: 0; }
  .timeline-icon { left: 11px !important; right: auto !important;}
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns:1fr; }
  .hero-title { font-size: 3rem; }
}