/* Reset & general */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9fafb;
  color: #111827;
}

/* Container for sidebar + main content */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #6b7280;
  padding: 0.5rem 0;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111827;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Sections */
.section {
  display: none;
}

.section.active {
  display: block;
}

.section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Cards (for experience, education, projects) */
.card,
.project-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.card-header,
.project-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card .date {
  font-size: 0.85rem;
  color: #6b7280;
  display: block;
  margin-bottom: 0.25rem;
}

.card .description,
.project-card p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

.project-card a {
  color: #3b82f6;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

/* Header (top bar above main content) */
.header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .logo {
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  color: #111827;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #111827;
}

/* Loader */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.loader-icon {
  width: 50px;
  height: 50px;
  stroke: #6b7280;
  fill: none;
  stroke-width: 2;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background-color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.footer a {
  color: #3b82f6;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin-top: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Comparison table styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.comparison-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.comparison-table td {
  color: #6b7280;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.comparison-table tr:hover {
  background-color: #f3f4f6;
}

/* Top Bar Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.top-nav {
  display: flex;
  gap: 1.5rem;
}

.top-nav a {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.top-nav a:hover {
  color: #111827;
}

.toggle-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

/* Dark Mode Variables & Class */
body.dark-mode {
  background-color: #111827;
  color: #f9fafb;
}

.dark-mode .sidebar, 
.dark-mode .header,
.dark-mode .card,
.dark-mode .project-card {
  background-color: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

.dark-mode .nav-links a,
.dark-mode .top-nav a,
.dark-mode .card .description {
  color: #9ca3af;
}

.dark-mode .nav-links a:hover,
.dark-mode .top-nav a:hover,
.dark-mode .logo {
  color: #ffffff;
}

.dark-mode .toggle-btn {
  background: #374151;
  color: #ffffff;
  border-color: #4b5563;
}

/* Dark Mode Colors */
body.dark-mode {
  background-color: #111827; /* Dark background */
  color: #f9fafb;            /* Light text */
}

/* Adjust components for Dark Mode */
.dark-mode .sidebar, 
.dark-mode .header,
.dark-mode .card,
.dark-mode .project-card {
  background-color: #1f2937;
  border-color: #374151;
}

.dark-mode .nav-links a,
.dark-mode .top-nav a,
.dark-mode .description {
  color: #9ca3af;
}

.dark-mode .nav-links a:hover,
.dark-mode .top-nav a:hover {
  color: #ffffff;
}

/* Update the toggle button appearance in dark mode */
.dark-mode .toggle-btn {
  background: #374151;
  color: #ffffff;
  border-color: #4b5563;
}

/* CTA Button Styling */
.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #111827; /* Dark gray/black */
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

/* Hover Effect */
.cta-button:hover {
  background-color: #374151; /* Slightly lighter gray on hover */
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

/* Dark Mode Adjustment for Buttons */
.dark-mode .cta-button {
  background-color: #3b82f6; /* Blue in dark mode for better visibility */
  color: #ffffff;
}

.dark-mode .cta-button:hover {
  background-color: #2563eb;
}
/* Artistic Typography */
.hero-title {
  font-size: 3.5rem; /* Big, bold impact */
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  color: #111827;
}

.hero-quote {
  font-size: 1.5rem; /* Smaller than title, bigger than body */
  font-weight: 500;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 2rem;
  border-left: 3px solid #3b82f6; /* Artistic accent line */
  padding-left: 1rem;
}

.hero-description, .about-text p {
  font-size: 1.1rem;
  line-height: 1.8; /* Increased line height for readability */
  max-width: 800px;
  color: #374151;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Dark Mode Adjustments */
.dark-mode .hero-title {
  color: #ffffff;
}

.dark-mode .hero-quote {
  color: #9ca3af;
  border-left-color: #60a5fa;
}

.dark-mode .hero-description, 
.dark-mode .about-text p {
  color: #d1d5db;
}

/* Make bold text pop in dark mode */
.dark-mode strong {
  color: #60a5fa;
}

/* Centered container for the vertical Short video */
    .short-video-container {
      display: flex;
      justify-content: center;
      padding: 20px 0;
    }

    .short-video-wrapper {
      position: relative;
      width: 315px; 
      height: 560px; 
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .short-video-wrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    /* Resizing Figure 1 to be more proportional */
    .project-img {
      display: block;
      margin: 20px auto;
      max-width: 1000px; /* Reduced size for Figure 1 */
      width: 100%;
      height: auto;
      border-radius: 8px;
    }

    .img-caption {
      text-align: center;
      font-style: italic;
      font-size: 0.9em;
      color: #666;
    }