/* Base - Same as main site */
body {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
}

:root {
  --bg: #f9f9f9;
  --text: #111;
  --nav-bg: #ffffffdd;
  --accent: #00bcd4;
  --neon: #00fff0;
  --border: #e1e8ed;
  --hover-bg: #f5f8fa;
  --card-bg: #ffffff;
  --gradient: linear-gradient(135deg, var(--accent), var(--neon));
}

body.dark {
  --bg: #0d1117;
  --text: #f5f5f5;
  --nav-bg: #1a1f24dd;
  --accent: #00eaff;
  --neon: #00ffff;
  --border: #2d3741;
  --hover-bg: #1e2328;
  --card-bg: #1a1f24;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  padding: 8px 20px;
  z-index: 900;
  transition: top 0.3s;
  box-shadow: 0 2px 10px #0003;
  backdrop-filter: blur(10px);
}

.navbar.hide {
  top: -80px;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 10px;
}

.site-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* Fixed Buttons */
.fixed-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}

.fixed-buttons button {
  background: var(--nav-bg);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--neon);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  backdrop-filter: blur(10px);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixed-buttons button:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  right: 20px;
  width: 220px;
  background-color: var(--nav-bg);
  box-shadow: 0 4px 20px #0005;
  border-radius: 8px;
  z-index: 1000;
  animation: slideDown 0.3s ease forwards;
  backdrop-filter: blur(10px);
}

.dropdown-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
  background: var(--accent);
  color: #fff;
}

@keyframes slideDown {
  0% {opacity: 0; transform: translateY(-20px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* Projects Container */
.projects-container {
  max-width: 1400px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 60px;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Section */
.projects-section {
  margin-bottom: 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* Project Cards */
.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.project-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-content {
  padding: 25px;
}

.project-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.project-description {
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: var(--hover-bg);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.project-features {
  margin-bottom: 25px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text);
  opacity: 0.9;
}

.feature i {
  color: var(--accent);
  width: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: 25px;
}

.project-link:hover {
  background: var(--accent);
  color: white;
  transform: translateX(5px);
}

/* Research Section */
.research-section {
  margin-bottom: 80px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.research-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.research-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.research-icon i {
  font-size: 1.8rem;
  color: white;
}

.research-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.research-description {
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.research-details {
  margin-bottom: 20px;
}

.detail {
  margin-bottom: 8px;
  color: var(--text);
  opacity: 0.9;
}

.detail strong {
  color: var(--accent);
}

.research-visual {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}

.research-visual img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

.research-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.research-link:hover {
  color: var(--neon);
  transform: translateX(5px);
}

/* CTA Section */
.cta-section {
  background: var(--gradient);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  margin-top: 60px;
}

.cta-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: white;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-container {
    margin: 70px auto 20px;
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .research-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .project-card,
  .research-card {
    padding: 20px;
  }
  
  .cta-section {
    padding: 40px 25px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .project-media {
    height: 200px;
  }
}