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

:root {
  --bg:        #0d1b2a;
  --bg2:       #112233;
  --bg3:       #152840;
  --teal:      #00b4d8;
  --teal-dim:  #0096b4;
  --white:     #f0f4f8;
  --muted:     #8899aa;
  --card-bg:   #132035;
  --border:    #1e3a55;
  --font:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 3px; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

/* ===== HERO ===== */
#hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 110px 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-tagline1 {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.hero-tagline2 {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--teal);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--bg);
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--teal-dim);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

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

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: #ccd6e0;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-text strong {
  color: var(--teal);
}

.about-focus h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.focus-list {
  list-style: none;
}

.focus-list li {
  padding: 0.6rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: #ccd6e0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.focus-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

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

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

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}

.timeline-card:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-company {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 500;
}

.card-date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-top: 0.2rem;
}

.card-stack {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg3);
  border-radius: 4px;
  border-left: 2px solid var(--teal);
}

.card-bullets {
  list-style: none;
}

.card-bullets li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: #ccd6e0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(30,58,85,0.5);
}

.card-bullets li:last-child { border-bottom: none; }

.card-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.8rem;
}

.card-bullets strong { color: var(--white); }

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

.skill-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.skill-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

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

.skill-tags span {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: #ccd6e0;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* ===== EDUCATION & CERTS ===== */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.edu-block h3,
.cert-block h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.edu-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child { border-bottom: none; }

.edu-icon { font-size: 1.5rem; margin-top: 0.2rem; }

.edu-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.edu-school {
  color: var(--teal);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.edu-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.edu-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.cert-list { display: flex; flex-direction: column; gap: 0.8rem; }

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ccd6e0;
}

.cert-item.featured {
  border-color: var(--teal);
  color: var(--white);
  font-weight: 500;
}

.cert-icon { font-size: 1rem; }

.cert-exams {
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cert-exams-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.cert-exam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cert-exam-tag {
  font-size: 0.78rem;
  color: #8899aa;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  transition: color 0.2s, border-color 0.2s;
}

a.cert-exam-tag:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.cert-credly-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--teal);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cert-credly-link:hover { opacity: 1; }

/* ===== CONTACT ===== */
#contact {
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  margin-top: -1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #ccd6e0;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}

.contact-card:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-3px);
}

.contact-icon { font-size: 1.2rem; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

/* ===== PROJECTS ===== */
.projects-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-name {
  font-size: 1rem;
  font-weight: 600;
}

.project-status {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.project-link {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.project-desc {
  color: #ccd6e0;
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-stack span {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--teal);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.projects-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.projects-divider::before,
.projects-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== CERT LINK ===== */
.cert-name {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.cert-name:hover { color: var(--teal); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .about-grid,
  .edu-cert-grid { grid-template-columns: 1fr; gap: 2rem; }

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

  .card-header { flex-direction: column; }

  .nav-links { display: none; }

  #hero { padding: 100px 1.5rem 4rem; }

  .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}
