/* ============================================
   Tojo Thomas — Personal Portfolio
   Premium Dark-Mode Design System
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Palette */
  --bg-primary:    #0b0f19;
  --bg-secondary:  #111827;
  --bg-card:       rgba(17, 24, 39, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --accent-start:  #06b6d4;   /* cyan-500 */
  --accent-mid:    #3b82f6;   /* blue-500 */
  --accent-end:    #8b5cf6;   /* violet-500 */
  --border-color:  rgba(148,163,184,0.1);
  --gradient:      linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end));

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-gap: 6rem;
  --container-max: 960px;

  /* Effects */
  --card-blur: 12px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-start); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-end); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Background Glow ---------- */
body::before {
  content: '';
  position: fixed;
  top: -40%; left: -20%;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -30%; right: -20%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Utility ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1rem 0;
  background: rgba(11,15,25,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: padding var(--transition);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: var(--transition); }

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}
.hero-content { display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; }
.hero-text .greeting {
  font-size: 1rem;
  color: var(--accent-start);
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.15s forwards;
}
.hero-text h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.3s forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.45s forwards;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,182,212,0.3);
  color: #fff;
}
.hero-image {
  flex-shrink: 0;
  width: 260px; height: 260px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(6,182,212,0.25);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  display: block;
  background: var(--bg-primary);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ---------- About Section ---------- */
.about { padding: var(--section-gap) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.stat-card {
  text-align: center;
  padding: 1.5rem;
}
.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 720px;
}

/* ---------- Experience Section ---------- */
.experience { padding: var(--section-gap) 0; }
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--accent-start), var(--accent-end));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.65rem; top: 0.35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-start);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.2);
}
.timeline-item .role { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-item .company {
  font-size: 0.95rem;
  color: var(--accent-start);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.timeline-item .period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.timeline-item .description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.timeline-item .description li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.35rem;
}
.timeline-item .description li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-start);
  font-weight: 700;
}

/* ---------- Skills Section ---------- */
.skills { padding: var(--section-gap) 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.skill-group h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: rgba(30,41,59,0.4);
  transition: all var(--transition);
}
.skill-tag:hover {
  border-color: var(--accent-start);
  color: var(--accent-start);
  background: rgba(6,182,212,0.08);
  transform: translateY(-2px);
}

/* ---------- Projects Section ---------- */
.projects { padding: var(--section-gap) 0; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.project-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project-card:hover { color: inherit; }
.project-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.project-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}
.project-tagline {
  font-size: 0.9rem;
  color: var(--accent-start);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 600px;
}
.project-card .project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 768px) {
  .project-card { flex-direction: column; align-items: center; text-align: center; }
  .project-desc { margin-left: auto; margin-right: auto; }
  .project-card .project-tags { justify-content: center; }
}

/* ---------- Testimonials Section ---------- */
.testimonials { padding: var(--section-gap) 0; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.testimonial-card { padding: 2rem; }
.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
}
.testimonial-text::before {
  content: '\201C';
  position: absolute;
  top: -1.2rem;
  left: -0.5rem;
  font-size: 4rem;
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
}
.testimonial-text p { position: relative; z-index: 1; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-info { display: flex; flex-direction: column; }
.author-info strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Education Section ---------- */
.education { padding: var(--section-gap) 0; }
.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.edu-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 0.75rem;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.edu-details h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; }
.edu-details .school { color: var(--accent-start); font-size: 0.95rem; font-weight: 500; }
.edu-details .edu-period { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.15rem; }
.edu-details .edu-note { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.35rem; }

/* ---------- Contact / Footer ---------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.footer-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.social-links { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition);
}
.social-links a:hover {
  border-color: var(--accent-start);
  color: var(--accent-start);
  background: rgba(6,182,212,0.08);
  transform: translateY(-3px);
}
.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-content { flex-direction: column-reverse; text-align: center; }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-image { width: 180px; height: 180px; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(11,15,25,0.95); padding: 1rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border-color); }
  .nav-toggle { display: block; }
  .section-title { font-size: 1.6rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .stat-card .stat-number { font-size: 2rem; }
}
