/* NöroOyun TÜBİTAK 1001 Projesi - CSS */

:root {
  --primary: #2563eb;      /* Vibrant Blue */
  --secondary: #7c3aed;    /* Vibrant Purple */
  --bg-main: #f8fafc;      /* Super Clean Slate White */
  --bg-card: rgba(255, 255, 255, 0.85); /* Clean Glass White */
  --text-main: #0f172a;    /* Deep Slate Blue */
  --text-muted: #475569;   /* Slate 600 */
  --border-glass: rgba(0, 0, 0, 0.08);
  --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-img {
  height: 45px;
  width: 45px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

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

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

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

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./assets/hero_bg.png') center/cover no-repeat;
  opacity: 0.1; /* Reduced opacity for light mode */
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  animation: slideUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #1e293b, #4338ca);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  background: var(--gradient-main);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

/* --- COMMON PAGE LAYOUT --- */
.page-container {
  padding: 150px 5% 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.page-title::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 2px;
}

/* --- CARDS & PANELS --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.3);
}

/* --- TEAM GRID --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(110, 0, 255, 0.2);
  border-color: var(--secondary);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-main);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  font-weight: bold;
}

.avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 3px solid rgba(0, 210, 255, 0.5);
  transition: all 0.3s ease;
}

.team-card:hover .avatar-img {
  border-color: var(--primary);
  transform: scale(1.05);
}

.cv-link {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cv-link:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  padding: 2.5rem;
  position: relative;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.modal-body {
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
}

.role {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
}

/* --- LISTS (Toplantılar, Yayınlar vb.) --- */
.data-list {
  list-style: none;
}

.data-list li {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: background 0.3s;
}

.data-list li:hover {
  background: rgba(255,255,255,0.02);
}

.data-date {
  background: rgba(110, 0, 255, 0.2);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid var(--border-glass);
  margin-top: auto;
  color: var(--text-muted);
}

/* --- ANIMATIONS (Scroll Fade) --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .page-title { font-size: 2.2rem; }
  
  nav ul {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: rgba(248, 250, 252, 0.98);
    width: 100%;
    height: calc(100vh - 80px);
    align-items: center;
    justify-content: center;
    transition: 0.3s;
  }

  nav ul.show {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}
