/* style.css */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #181818;
  color: #f1f1f1;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: #1f1f1f;
  padding: 20px 40px;
  z-index: 100;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  color: #4a90e2;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links a:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 80px 40px;
  background: #1e1e1e;
}
.hero-text {
  flex: 1 1 400px;
  max-width: 600px;
}
.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}
.highlight {
  color: #4a90e2;
}
.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(to right, #4a90e2, #6f78ff);
  color: #fff;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  opacity: 0.8;
}
.hero-image {
  flex: 1 1 300px;
  text-align: center;
}
.hero-image img {
  max-width: 80%;
  height: auto;
  border-radius: 16px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* About Section */
.about-section {
  padding: 60px 40px;
  background: #181818;
}
.about-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-section p {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

/* Skills Section */
.skills-section {
  padding: 60px 40px;
  background: #1f1f1f;
}
.skills-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.skill-group {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  width: 220px;
  text-align: center;
}
.skill-group h3 {
  margin-bottom: 10px;
  color: #4a90e2;
}

/* Experience Timeline */
.experience-section {
  padding: 60px 40px;
  background: #181818;
}
.experience-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #ddd;
  margin-bottom: 40px;
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}
.timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: #555;
  top: 0;
  bottom: 0;
  z-index: 1;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;

  z-index: 2; /* bring timeline items and bullets in front of line */
}
.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}
.timeline-bullet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 4px solid #555;
  border-radius: 50%;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.timeline-bullet i {
  color: #ddd;
  font-size: 1.4rem;
}
.timeline-content {
  display: inline-block;
  max-width: 400px;
  background: #2a2a2a;
  padding: 20px;
  border-radius: 6px;
  position: relative;
  color: #f1f1f1;
}
.timeline-item.left .timeline-content {
  margin-right: 60px;
}
.timeline-item.right .timeline-content {
  margin-left: 60px;
}
.timeline-content .date {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 8px;
}
.timeline-content h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.timeline-content .company {
  font-style: italic;
  color: #ccc;
  margin: 0 0 12px;
}
.timeline-content ul {
  margin: 0;
  padding-left: 20px;
}
.timeline-content ul li {
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Position bullets individually */
.timeline-item.left .timeline-bullet {
  left: 100%;
  top: 45px;
  transform: translateX(-50%);
}
.timeline-item.right .timeline-bullet {
  left: -9%;
  top: 45px;
  transform: translateX(50%);
}

@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    margin-bottom: 30px;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }
  .timeline-bullet {
    left: 20px;
    top: 20px;
  }
  .timeline-content {
    margin: 0;
    padding-top: 60px;
  }
}

/* Projects Section */
.projects-section {
  padding: 60px 40px;
  background: #1f1f1f;
}
.projects-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #ddd;
  margin-bottom: 20px;
}
.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.project {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.project h3 {
  color: #4a90e2;
  margin-bottom: 10px;
}

/* Education Section Side by Side */
.education-section {
  padding: 60px 40px;
  background: #181818;
}
.education-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #ddd;
  margin-bottom: 40px;
}
.education-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.education-item {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.education-item h3 {
  margin-bottom: 10px;
  color: #4a90e2;
}
.education-item p {
  margin: 0;
  color: #ccc;
}
@media (max-width: 768px) {
  .education-container {
    flex-direction: column;
    align-items: center;
  }
  .education-item {
    width: 100%;
    max-width: 400px;
  }
}

/* Contact Section */
.contact-section {
  background: #181818;
  color: #f1f1f1;
  padding: 60px 40px;
}
.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #ddd;
  margin-bottom: 40px;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.contact-info {
  flex: 1;
  min-width: 280px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.info-item i {
  font-size: 1.5rem;
  color: #4a90e2;
}
.info-item h4 {
  margin: 0;
  color: #ccc;
  font-size: 1rem;
}
.info-item p {
  margin: 0;
  font-size: 1.1rem;
}
.contact-form {
  flex: 1;
  min-width: 300px;
  background: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(255,255,255,0.05);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #4a90e2, #6f78ff);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-info,
  .contact-form {
    min-width: 100%;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Hamburger menu */
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 40px;
    background: #1f1f1f;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
  }
  .nav-links.show {
    display: flex;
  }

  /* Hero stacks */
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text,
  .hero-image {
    width: 100%;
  }

  /* Skills stack */
  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline full width & left aligned */
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 60px !important;
    margin-bottom: 30px;
  }
  .timeline-bullet {
    left: 20px !important;
    top: 20px !important;
    transform: none !important;
  }
  .timeline-content {
    margin: 0 !important;
    padding-top: 60px !important;
  }

  /* Projects & Education stack */
  .project-cards,
  .education-container {
    flex-direction: column;
    align-items: center;
  }

  /* Contact stacks */
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-info,
  .contact-form {
    min-width: 100%;
  }
}

/* Footer */
.footer {
  background: #2b3242;
  padding: 40px 20px;
  text-align: center;
}
.footer-content h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: #4a90e2;
}
.footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.footer .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}
.footer .social-icons a:hover {
  background: #4a90e2;
}
.footer .social-icons a .social-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.footer p {
  font-size: 0.9rem;
  color: #aaa;
}

/* Footer Mobile */
@media (max-width: 600px) {
  .footer-content h3 {
    font-size: 1.2rem;
  }
  .footer .social-icons a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .footer p {
    font-size: 0.8rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   1) Hide native cursor & style our custom one
───────────────────────────────────────────────────────────── */
body {
  cursor: none;
}

/* Replace your old .custom-cursor block with this */

.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
  /* A radial gradient that fades out, plus blur to soften edges */
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0.15) 40%,
    rgba(255,255,255,0) 80%
  );
  border-radius: 50%;
  filter: blur(8px);
  transition: transform .15s ease-out, background .3s ease;
  transform: translate(-50%, -50%) scale(1);
}

/* keep the grow-on-hover behavior */
.custom-cursor.grow {
  transform: translate(-50%, -50%) scale(1.8);
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.2) 30%,
    rgba(255,255,255,0) 70%
  );
}

/* ─────────────────────────────────────────────────────────────
   2) Grow cursor on hover over interactive elements
───────────────────────────────────────────────────────────── */
a:hover,
button:hover,
.btn-primary:hover,
.project:hover,
.timeline-bullet:hover {
  --cursor-scale: 2.5;
}

.custom-cursor.grow {
  transform: translate(-50%, -50%) scale(var(--cursor-scale,1));
  background: #fff;
}

/* ─────────────────────────────────────────────────────────────
   3) Subtle hover lifts & shadows
───────────────────────────────────────────────────────────── */
.btn-primary {
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.project {
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Tabs for Projects */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 20px;
  background: #2a2a2a;
  color: #ddd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
  background: #4a90e2;
  color: #fff;
}

/* Tab Content */
.tab-content {
  display: none;
  max-width: 800px;
  margin: auto;
}
.tab-content.active {
  display: block;
}
.resource-list {
  list-style: none;
  padding: 0;
}
.resource-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2a2a;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 6px;
}
.resource-list span {
  color: #f1f1f1;
}
.download-btn {
  font-size: 0.9rem;
  padding: 6px 12px;
  background: #4a90e2;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.download-btn:hover {
  background: #6f78ff;
}
.viz-buttons {
  text-align: center;
  margin-bottom: 20px;
}
.viz-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  background-color: #cb5c00;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}
.viz-buttons button:hover {
  background-color: #000000;
}
.viz-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.project-card {
  background: #ffffff;
  padding: 20px;
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #111;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  margin-bottom: 15px;
}

.project-card img:hover {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.project-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}
.hidden {
  display: none;
}

/* Style for embedded viz thumbnail inside resource-list */
.resource-list li.viz-embed {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 6px;
}
.resource-list li.viz-embed .thumb {
  flex: 0 0 120px;
  margin-right: 16px;
}
.resource-list li.viz-embed .thumb img {
  width: 100%;
  border-radius: 4px;
}
.resource-list li.viz-embed .desc a {
  color: #4a90e2;
  font-weight: bold;
  text-decoration: none;
}
.resource-list li.viz-embed .desc a:hover {
  text-decoration: underline;
}
/* Utility */
.hidden {
  display: none !important;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 8px 16px;
  background: #2a2a2a;
  color: #ccc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.tab-btn.active {
  background: #4a90e2;
  color: #fff;
}

/* Tab Content */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Visualization Buttons */
.viz-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.viz-btn {
  padding: 6px 12px;
  background: #2a2a2a;
  color: #ccc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.viz-btn.active {
  background: #4a90e2;
  color: #fff;
}

/* Grid of Project Cards */
.viz-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.viz-grid.hidden {
  display: none;
}

/* Project Card (reuse existing) */
.project-card {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.project-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 12px;
}
.project-card h3 {
  color: #4a90e2;
  margin-bottom: 8px;
}
.project-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .project-card { width: 100%; max-width: 400px; }
  .tabs, .viz-buttons { flex-wrap: wrap; }
}
/* Projects Section: force project cards side-by-side */
.viz-grid {
  display: flex;            /* lay out children in a row */
  flex-wrap: wrap;          /* wrap to new line on small screens */
  gap: 20px;                /* space between cards */
  justify-content: center;  /* center cards in container */
}

.project-card {
  flex: 0 1 280px;          /* each card is 280px wide, but can shrink on narrow viewports */
  box-sizing: border-box;
}

/* ───────────────────────────────────────────────────
   Education & Certifications Cards
──────────────────────────────────────────────────── */

/* Container: flex row, wrapping and centered */
.education-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

/* Each card: identical box for degrees & certs */
.education-item {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Badge or degree image at top of card */
.education-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 16px;
  display: block;
  object-fit: contain;
}

/* Title inside card */
.education-item h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: #4a90e2;
}

/* Supporting text */
.education-item p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
}
/* 1) Space between the two education‐container rows */
.education-section > .education-container:first-of-type {
  margin-bottom: 40px;
}

/* 2) Reduce size of the cards in the second row (certificates) */
.education-section > .education-container:nth-of-type(2) .education-item {
  width: 240px;      /* shrink from 300px down to 240px */
  max-width: 240px;
}

/* Resume button container spacing */
.resume-button-container {
  margin-top: 30px;
}

/* Reuse your btn-resume styles */
.btn-resume {
  padding: 12px 24px;
  background: linear-gradient(to right, #4a90e2, #6f78ff);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-resume:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────
   Hamburger & Mobile Menu
───────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #f1f1f1;
  border-radius: 2px;
}

/* Mobile styles */
@media (max-width: 768px) {

  /* Show hamburger, hide links by default */
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 40px;
    background: #1f1f1f;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
  }
  /* When .show is toggled, display links */
  .nav-links.show {
    display: flex;
  }

  /* Hero stacks vertically */
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text,
  .hero-image {
    width: 100%;
  }

  /* Skills, Projects, Education go single‑column */
  .skills-container,
  .project-cards,
  .education-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline full‑width, left‑aligned */
  .timeline::after { left: 20px; }
  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    text-align: left !important;
    padding-left: 60px !important;
    margin-bottom: 30px;
  }
  .timeline-bullet {
    left: 20px !important;
    top: 20px !important;
    transform: none !important;
  }
  .timeline-content {
    margin: 0 !important;
    padding-top: 60px !important;
  }
}