/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  line-height: 1.6;
  min-height: 100vh;
  padding: 2rem 0;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 600;
  font-size: 1.1rem;
  gap: 10px;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

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

/* Section Boxes */
.section,
.hero {
  max-width: 1000px;
  margin: 6rem auto;
  padding: 3rem 2rem;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover,
.hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.section h2,
.hero h1 {
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* General Section Styling */
.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #38bdf8;
}

.section p {
  font-size: 1.05rem;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.8;
}

/* Cards (Projects, etc.) */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.card h3 {
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

/* Publications */
.pub-carousel-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.pub-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: hidden; /* hide scrollbar */
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.pub-card {
  min-width: 220px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.pub-card h4 {
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 1.5rem auto 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  resize: vertical;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  background-color: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #0ea5e9;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 3rem 0;
  margin-top: 6rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Buttons */
.carousel-btn {
  background: rgba(56,189,248,0.8);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #0ea5e9;
}
