/* I-ENERGYLINK - Modern CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-purple: #6B46C1;
  --primary-purple-light: #8B5CF6;
  --primary-purple-dark: #5B21B6;
  --primary-green: #10B981;
  --primary-green-light: #34D399;
  --primary-green-dark: #059669;
  --dark-bg: #0F172A;
  --dark-card: #1E293B;
  --dark-border: #334155;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: #0A0F1E;
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--primary-purple) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-green) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.15;
  z-index: -1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple-light);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* Gradients */
.gradient-purple {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
}

.gradient-green {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
}

/* Buttons */
.btn-primary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  color: white !important;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: white !important;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.navbar .logo .logo-purple {
  color: var(--primary-purple-light);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.navbar .logo .logo-green {
  color: var(--primary-green-light);
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}

.navbar .logo-icon {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2332;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.5);
  flex-shrink: 0;
}

.navbar .logo-icon svg {
  width: 60px;
  height: 60px;
}

.navbar .logo-icon .shield {
  fill: url(#shieldGradient);
}

.navbar .logo-icon .bolt {
  fill: #FFD700;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.navbar .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.navbar .nav-links a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.navbar .nav-links a:hover {
  color: white;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-purple));
  transition: width 0.3s;
}

.navbar .nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 16px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.15), transparent, rgba(16, 185, 129, 0.15));
}

.hero .grid-bg {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-green-light), var(--primary-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(52, 211, 153, 0.4), 0 0 30px rgba(139, 92, 246, 0.4);
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #D1D5DB;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section */
.section {
  padding: 80px 16px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 48px;
}

/* Grid */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  padding: 32px;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 32px;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: #9CA3AF;
  line-height: 1.8;
}

/* Stats */
.stats {
  background: var(--dark-card);
}

.stat-card {
  text-align: center;
  padding: 32px;
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: none;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  color: #9CA3AF;
}

/* Project & Publication Cards */
.project-card, .publication-card, .team-card {
  padding: 24px;
  transition: all 0.3s;
}

.project-card:hover, .publication-card:hover, .team-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  margin: 4px;
}

.tag-purple {
  background: rgba(107, 70, 193, 0.4);
  color: white;
}

.tag-green {
  background: rgba(16, 185, 129, 0.4);
  color: white;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
  transform: scale(1.05);
  color: white;
}

/* Team Member */
.team-member {
  display: flex;
  gap: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.team-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.team-info {
  flex: 1;
}

.team-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.team-role {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-expertise {
  color: #9CA3AF;
  margin-bottom: 16px;
}

.team-summary {
  color: #D1D5DB;
  line-height: 1.8;
  margin-bottom: 16px;
}

.team-bio {
  color: #D1D5DB;
  line-height: 1.8;
  white-space: pre-line;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-border);
  display: none;
}

.team-bio.expanded {
  display: block;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
  padding: 0;
  font-size: 1rem;
}

.read-more-btn span {
  background: linear-gradient(90deg, var(--primary-green-light), var(--primary-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.read-more-btn:hover span {
  background: linear-gradient(90deg, var(--primary-green), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 48px 16px 24px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 32px;
}

.footer h3 {
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  color: #9CA3AF;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    flex-direction: column;
  }
}

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

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

/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mt-8 {
  margin-top: 32px;
}

.hidden {
  display: none;
}
