/* ============================================================
   JENELLA V. — Portfolio Stylesheet
   Solutions Architect & Cloud Engineer
   ============================================================ */

/* ---------- CSS Variables (Edit colors here) ---------- */
:root {
  --primary: #1a3c5e;
  --primary-light: #2c6faa;
  --primary-lighter: #4a9eda;
  --accent: #00b4d8;
  --accent-glow: rgba(0, 180, 216, 0.15);
  --dark: #0a1628;
  --dark-card: #111d33;
  --dark-surface: #162240;
  --text: #e0e6f0;
  --text-muted: #8896b0;
  --text-heading: #f0f4ff;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --gradient-1: linear-gradient(135deg, #1a3c5e, #2c6faa);
  --gradient-hero: linear-gradient(160deg, #0a1628 0%, #1a3c5e 50%, #0d1b30 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- 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);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--primary-lighter); }

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

ul { list-style: none; }

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

/* ---------- SVG Icon System ---------- */
.icon { display: inline-block; width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 32px; height: 32px; }
.icon-lg { width: 48px; height: 48px; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
}

.nav-logo:hover { color: var(--white); }
.nav-logo:hover .logo-name-text { color: var(--white); }

.logo-badge { flex-shrink: 0; transition: opacity var(--transition); }
.nav-logo:hover .logo-badge { opacity: 0.8; }

.logo-name-text {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  transition: color var(--transition);
  white-space: nowrap;
}

/* Hide name text on very small screens */
@media (max-width: 480px) {
  .logo-name-text { display: none; }
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

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

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--primary-lighter);
  color: var(--dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-card);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--primary-lighter);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.15);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: url('assets/IMG_4870.jpeg') center top / cover no-repeat;
  opacity: 0.08;
  z-index: 0;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-name {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.5rem;
  color: var(--primary-lighter);
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 2rem;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent);
}

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

.hero-role-badge {
  display: inline-block;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.hero-description strong { color: var(--text); }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-proof-chip {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-suffix {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Graphic — Orbiting dots */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  position: relative;
  width: 320px;
  height: 320px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 200px; height: 200px; animation: spin 12s linear infinite; }
.orbit-2 { width: 260px; height: 260px; animation: spin 18s linear infinite reverse; }
.orbit-3 { width: 320px; height: 320px; animation: spin 24s linear infinite; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent);
}

.orbit-2 .orbit-dot { background: var(--primary-lighter); box-shadow: 0 0 12px var(--primary-lighter); }
.orbit-3 .orbit-dot { background: #6c47ff; box-shadow: 0 0 12px #6c47ff; }

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--accent), 0 0 40px rgba(0, 180, 216, 0.35);
  overflow: hidden;
}

.orbit-center-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(8px); }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-name { font-size: 2.5rem; }
  .hero-description { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }
  .hero-visual { display: none; }
}


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

.section-alt {
  background: var(--dark-card);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-fullbg {
  position: relative;
  overflow: hidden;
  background-image: url('assets/IMG_4870.jpeg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.about-fullbg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 15, 35, 0.92) 0%,
    rgba(8, 15, 35, 0.78) 55%,
    rgba(8, 15, 35, 0.50) 100%
  );
  z-index: 0;
}

.about-fullbg .container {
  position: relative;
  z-index: 1;
}

.about-fullbg .section-title,
.about-fullbg .section-subtitle {
  color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  gap: 0;
}

.about-content p {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
}

.about-content p strong { color: #fff; }

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.detail-icon { line-height: 1; color: var(--accent); }

.about-detail strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.about-detail p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-details { grid-template-columns: 1fr; }
  .about-bg-overlay {
    background: rgba(8, 15, 35, 0.85);
  }
}


/* ============================================================
   SKILLS
   ============================================================ */
.skill-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.skill-tab {
  padding: 10px 24px;
  background: var(--dark-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.skill-tab:hover { color: var(--white); border-color: var(--accent); }

.skill-tab.active {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.skill-panel { display: none; }
.skill-panel.active { display: block; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--dark-surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.skill-icon {
  margin-bottom: 12px;
  color: var(--accent);
}

.skill-card h3 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 180, 216, 0.2);
}

.tag-aws { background: rgba(255, 153, 0, 0.1); color: #ff9900; border-color: rgba(255, 153, 0, 0.2); }
.tag-azure { background: rgba(0, 120, 212, 0.1); color: #4aa3e0; border-color: rgba(0, 120, 212, 0.2); }
.tag-gcp { background: rgba(66, 133, 244, 0.1); color: #6ca4f7; border-color: rgba(66, 133, 244, 0.2); }

.skill-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: auto;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 4px;
  width: 0;
  transition: width 1.2s ease-out;
}


/* ============================================================
   PROJECTS
   ============================================================ */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.filter-btn:hover { color: var(--white); border-color: var(--accent); }

.filter-btn.active {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.project-card.hidden { display: none; }

.project-image { position: relative; overflow: hidden; }

.project-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-img {
  border-radius: 8px 8px 0 0;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-link {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.project-content { padding: 24px; }

.project-content .project-tags { margin-bottom: 12px; }

.project-content h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-content > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-results {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.result {
  text-align: center;
}

.result strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.result span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-tools {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.project-tools strong { color: var(--text); }

.project-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-role strong { color: var(--primary-lighter); }

.project-bullets {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.project-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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


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

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

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

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--dark-card);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.timeline-content {
  background: var(--dark-surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-header h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-company {
  font-size: 0.92rem;
  color: var(--primary-lighter);
  margin-bottom: 12px;
}

.timeline-content ul {
  padding-left: 18px;
  list-style: disc;
}

.timeline-content li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.timeline-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 14px 0 4px;
}

.timeline-stack {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.timeline-stack strong { color: var(--primary-lighter); }


/* ============================================================
   SUBSECTION LABEL (used in Education & Certifications)
   ============================================================ */
.subsection-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}


/* ============================================================
   EDUCATION CARDS
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.edu-card {
  background: var(--dark-surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.12);
}

.edu-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.edu-info h3 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.88rem;
  color: var(--primary-lighter);
  margin-bottom: 6px;
}

.edu-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.edu-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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


/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--dark-card);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.cert-badge {
  margin-bottom: 16px;
}

.cert-icon { line-height: 1; color: var(--accent); }

.cert-card h3 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--primary-lighter);
  margin-bottom: 4px;
}

.cert-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cert-status {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-status.earned { background: rgba(0, 180, 216, 0.15); color: var(--accent); }
.cert-status.progress { background: rgba(255, 153, 0, 0.15); color: #ff9900; }
.cert-status.planned { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }


/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background-image:
    linear-gradient(to right, var(--dark) 55%, rgba(10,22,40,0.55) 100%),
    url('assets/jenella-profile.jpeg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--dark-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.contact-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.contact-card h3 {
  font-size: 0.85rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.contact-card p,
.contact-card a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea { resize: vertical; }

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


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.footer-content > p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}


/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-lighter);
  transform: translateY(-2px);
}


/* ============================================================
   ANIMATIONS (Scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* ============================================================
   PAGE HERO BANNERS (Interior pages)
   ============================================================ */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

/* Unique pattern per page */
.page-hero--projects::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.page-hero-title::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--primary-lighter), #6c47ff);
  border-radius: 2px;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 8px;
}


/* ============================================================
   VISUAL ENHANCEMENTS — Decorated sections
   ============================================================ */

/* Card cyan glow on hover */
.skill-card:hover,
.cert-card:hover,
.contact-card:hover {
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.12);
}

/* Section floating circle decorations */
.section-decorated { position: relative; overflow: hidden; }

.section-decorated::before,
.section-decorated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 216, 0.08);
  pointer-events: none;
}

.section-decorated::before {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -100px;
}

.section-decorated::after {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -60px;
}

/* Section icon watermarks */
.section-decorated[data-icon]::before {
  content: attr(data-icon);
  width: auto;
  height: auto;
  border: none;
  font-size: 12rem;
  opacity: 0.03;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}


/* ============================================================
   RESPONSIVE — New elements
   ============================================================ */
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 48px; }
  .page-hero-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .page-hero { padding: 110px 0 40px; }
  .page-hero-title { font-size: 1.7rem; }
}


/* ============================================================
   PAGE-LOAD FADE-IN (CSS-only, works without JS)
   ============================================================ */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}
body {
  animation: pageLoad 0.6s ease forwards;
}


/* ============================================================
   ANIMATED GRADIENT TEXT — Hero Name
   ============================================================ */
.hero-name {
  background: linear-gradient(90deg, var(--accent), var(--primary-lighter), #6c47ff, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================================
   CARD TILT 3D
   ============================================================ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}


/* ============================================================
   STAGGERED REVEAL DELAYS
   ============================================================ */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }


/* ============================================================
   DARK / LIGHT MODE TOGGLE
   ============================================================ */
body.light-mode {
  --dark: #f0f4f8;
  --dark-card: #ffffff;
  --dark-surface: #e8edf4;
  --text: #1a2a3a;
  --text-muted: #556677;
  --text-heading: #0d1b2a;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --gradient-hero: linear-gradient(160deg, #e8edf4 0%, #c9d6e3 50%, #f0f4f8 100%);
}

body.light-mode .navbar.scrolled {
  background: rgba(240, 244, 248, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-link { color: #556677; }
body.light-mode .nav-link:hover,
body.light-mode .nav-link.active { color: #0d1b2a; }

body.light-mode .nav-cta {
  background: var(--accent);
  color: #fff;
}

body.light-mode .hero-bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

body.light-mode .orbit {
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .page-hero {
  background: linear-gradient(160deg, #dce4ee 0%, #b8c9dc 50%, #e8edf4 100%);
}

body.light-mode .footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .footer-socials a {
  background: #dce4ee;
  border-color: rgba(0, 0, 0, 0.08);
  color: #556677;
}

body.light-mode .footer-socials a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a2a3a;
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
  color: #8896a8;
}

body.light-mode .back-to-top {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

body.light-mode .nav-toggle span {
  background: #1a2a3a;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-right: 12px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}


/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1001;
  width: 0;
  transition: width 0.1s linear;
}


/* ============================================================
   BLOG PAGE HERO
   ============================================================ */
.page-hero--blog::before {
  background-image:
    radial-gradient(rgba(0,180,216,0.06) 2px, transparent 2px),
    radial-gradient(rgba(108,71,255,0.04) 2px, transparent 2px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 30px 30px;
}


/* Filter card animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.blog-card.hidden { display: none; }

.blog-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
}

.blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-content .project-tags { margin-bottom: 12px; }

.blog-content h3 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover { color: var(--primary-lighter); }


/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.post-header {
  max-width: 760px;
  margin: 0 auto 40px;
}

.post-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
}

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 32px 0 12px;
}

.post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 24px 0 10px;
}

.post-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.post-body li {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.post-body strong { color: var(--text); }

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--dark-surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.post-body pre {
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 32px;
  color: var(--accent);
}

.post-back:hover { color: var(--primary-lighter); }


/* ============================================================
   BLOG RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-header h1 { font-size: 1.7rem; }
}

@media (max-width: 768px) {
  .theme-toggle { margin-right: 8px; }
}


/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary-lighter), #6c47ff);
  width: 0;
  border-radius: 3px;
  animation: loaderFill 1.2s ease-out forwards;
}

@keyframes loaderFill {
  0% { width: 0; }
  60% { width: 75%; }
  100% { width: 100%; }
}


/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-lighter), #6c47ff);
  z-index: 1002;
  width: 0;
  transition: width 0.1s linear;
}


/* ============================================================
   HERO FLOATING ORBS
   ============================================================ */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat 9s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(108, 71, 255, 0.10) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
  animation: orbFloat 11s ease-in-out infinite reverse;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(74, 158, 218, 0.08) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation: orbFloat 13s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}


/* ============================================================
   HERO ENTRANCE ANIMATIONS
   ============================================================ */
.hero-animate-1,
.hero-animate-2,
.hero-animate-3,
.hero-animate-4,
.hero-animate-5,
.hero-animate-6 {
  opacity: 0;
  transform: translateY(28px);
  animation: heroEntrance 0.7s ease forwards;
}

.hero-animate-1 { animation-delay: 0.15s; }
.hero-animate-2 { animation-delay: 0.35s; }
.hero-animate-3 { animation-delay: 0.55s; }
.hero-animate-4 { animation-delay: 0.75s; }
.hero-animate-5 { animation-delay: 0.95s; }
.hero-animate-6 { animation-delay: 1.15s; }

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

/* hero-name runs both entrance + gradient color animations */
h1.hero-name.hero-animate-2 {
  animation: heroEntrance 0.7s ease 0.35s both, gradientShift 6s ease infinite;
}


/* ============================================================
   BUTTON RIPPLE
   ============================================================ */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: rippleEffect 0.55s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}


/* ============================================================
   TIMELINE DOT PULSE
   ============================================================ */
.timeline-dot {
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}


/* ============================================================
   CERT CARD SHIMMER (earned cards only)
   ============================================================ */
.cert-card.earned {
  position: relative;
  overflow: hidden;
}

.cert-card.earned::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.055) 50%, transparent 60%);
  animation: certShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes certShimmer {
  0%      { left: -60%; }
  50%, 100% { left: 130%; }
}


/* ============================================================
   SECTION TITLE UNDERLINE REVEAL
   ============================================================ */
.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--primary-lighter), #6c47ff);
  border-radius: 2px;
  transition: width 0.8s ease 0.3s;
}

.section-title.aos-animate::after {
  width: 72px;
}

