/* CSS Variables for consistent theming */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --background-color: #0a0a0a;
  --text-color: #e0e0e0;
  --card-background: #1a1a1a;
  --border-color: #333;
  --accent-color: #00d4ff;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

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

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn.primary:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.btn.secondary:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

section h3 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

/* About Section */
.bio {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.bio img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.bio p {
  flex: 1;
  min-width: 300px;
}

/* Timeline */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
}

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

.timeline li {
  position: relative;
  padding: 1rem 0;
  padding-left: 2rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 2px solid var(--background-color);
}

.timeline-date {
  font-weight: bold;
  color: var(--primary-color);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-card a {
  color: var(--accent-color);
  text-decoration: none;
}

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

/* Research Section */
#research-home ul {
  list-style: none;
  margin-bottom: 1rem;
}

#research-home li {
  padding: 0.5rem 0;
}

#research-home a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

#research-home a:hover {
  text-decoration: underline;
}

/* Get Involved Section */
#get-involved-home {
  text-align: center;
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 3rem;
}

/* Footer */
footer {
  background-color: var(--card-background);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Utility Classes */
.more-projects-link,
.more-research-link {
  text-align: center;
  margin-top: 2rem;
}

.more-projects-link a,
.more-research-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.more-projects-link a:hover,
.more-research-link a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .bio {
    flex-direction: column;
    text-align: center;
  }

  .bio img {
    width: 150px;
    height: 150px;
  }

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

  section {
    padding: 2rem 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.8s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Additional Styles for New Pages */

/* Project Featured Section */
.project-featured {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
  margin-bottom: 3rem;
}

.project-details ul {
  list-style: none;
  padding-left: 1rem;
  margin: 1rem 0;
}

.project-details li::before {
  content: "▸ ";
  color: var(--accent-color);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Research Styles */
.research-featured {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.research-meta {
  color: var(--secondary-color);
  margin: 1rem 0;
}

.research-abstract {
  margin: 2rem 0;
}

.research-abstract h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.research-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.research-card ul {
  list-style: none;
  padding-left: 1rem;
  margin: 1rem 0;
}

.research-card li::before {
  content: "• ";
  color: var(--accent-color);
}

.papers-list, .presentations-list {
  margin-bottom: 3rem;
}

.paper-item, .presentation-item {
  background-color: var(--card-background);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.paper-meta {
  color: var(--secondary-color);
  font-style: italic;
  margin: 0.5rem 0;
}

/* Get Involved Styles */
.involvement-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.involvement-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact-section {
  text-align: center;
  margin: 3rem 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-item {
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: 8px;
}

.office-info {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 600px;
}

.faq-section {
  margin-top: 3rem;
}

.faq-item {
  background-color: var(--card-background);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.faq-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Timeline Section for Projects Page */
.timeline-section {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.timeline-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.cta-section {
  text-align: center;
  background-color: var(--card-background);
  padding: 3rem;
  border-radius: 8px;
  margin: 3rem 0;
}

/* Academic Section */
.academic-section {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.academic-section ul {
  margin-left: 1rem;
}

.academic-section ul ul {
  margin-top: 0.5rem;
}
/* Thesis Pages Styles */
.thesis-content {
    max-width: 900px;
    margin: 0 auto;
}

.thesis-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.author {
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.5rem;
}

.thesis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.thesis-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.thesis-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.thesis-subtitle {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1rem;
}

.thesis-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.thesis-card .btn {
    margin-top: 1.5rem;
}

.concepts-grid, .foundations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.concept, .foundation {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.concept h4, .foundation h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.implementation-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.metric h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric p:first-of-type {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    margin: 0.5rem 0;
}

.results-table, .validation-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
}

.results-table th, .validation-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    text-align: left;
    color: var(--primary-color);
}

.results-table td, .validation-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.application {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.application h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.postulates-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.postulate {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.postulate h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.definitions-grid, .algorithms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.definition, .algorithm {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.definition h4, .algorithm h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.definition pre, .algorithm pre {
    background: var(--card-background);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
}

.subtitle {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive adjustments for thesis pages */
@media (max-width: 768px) {
    .thesis-content {
        padding: 0 1rem;
    }
    
    .thesis-navigation {
        justify-content: center;
    }
    
    .thesis-grid, .concepts-grid, .foundations-grid,
    .metrics-grid, .applications-grid, .definitions-grid,
    .algorithms-grid {
        grid-template-columns: 1fr;
    }
}