/* Advanced CSS for AYZEK Website */

/* Mobile-first responsive design - prevent horizontal scroll */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* CSS Variables for Theme System */
:root {
  /* Dark Theme (Default) - Turquoise & Green Tones */
  --primary-bg: linear-gradient(135deg, #0a1e1a 0%, #0f2a2a 50%, #1a4040 100%);
  --secondary-bg: rgba(20, 184, 166, 0.02);
  --card-bg: rgba(20, 184, 166, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a7f3d0;
  --accent-primary: #14b8a6;
  --accent-secondary: #10d9c4;
  --accent-tertiary: #22c55e;
  --accent-quaternary: #4ade80;
  
  /* Gradients */
  --gradient-primary: linear-gradient(45deg, #14b8a6, #10d9c4);
  --gradient-rainbow: linear-gradient(45deg, #14b8a6, #10d9c4, #22c55e, #4ade80);
  --gradient-card: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
  
  /* Shadows */
  --shadow-small: 0 4px 20px rgba(20, 184, 166, 0.3);
  --shadow-medium: 0 8px 30px rgba(20, 184, 166, 0.4);
  --shadow-large: 0 15px 30px rgba(20, 184, 166, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* Light Theme Variables */
[data-theme="light"] {
  --primary-bg: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
  --secondary-bg: rgba(20, 184, 166, 0.03);
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #064e3b;
  --text-secondary: #047857;
  --accent-primary: #14b8a6;
  --accent-secondary: #10d9c4;
  --accent-tertiary: #22c55e;
  --accent-quaternary: #4ade80;
  
  /* Light theme specific gradients */
  --gradient-primary: linear-gradient(45deg, #14b8a6, #10d9c4);
  --gradient-rainbow: linear-gradient(45deg, #14b8a6, #10d9c4, #22c55e, #4ade80);
  --gradient-card: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
  
  /* Light theme shadows */
  --shadow-small: 0 4px 20px rgba(20, 184, 166, 0.15);
  --shadow-medium: 0 8px 30px rgba(20, 184, 166, 0.2);
  --shadow-large: 0 15px 30px rgba(20, 184, 166, 0.1);
}

/* Custom Icon Styles */
.card-icon, .work-icon, .benefit-icon, .contact-icon, .social-icon, .map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-shadow: 0 2px 4px rgba(20, 184, 166, 0.3);
  transition: all var(--transition-normal);
}

.work-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.benefit-icon {
  font-size: 2rem;
  color: var(--accent-secondary);
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.social-icon {
  font-size: 1.5rem;
  color: var(--accent-secondary);
}

.map-marker {
  font-size: 3rem;
  color: var(--accent-primary);
}

/* Icon hover effects */
.card-icon:hover, .work-icon:hover, .benefit-icon:hover {
  transform: scale(1.1);
  color: var(--accent-secondary);
  text-shadow: 0 4px 8px rgba(20, 184, 166, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  background: var(--primary-bg);
  min-height: 100vh;
  transition: all var(--transition-normal);
}

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

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

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

/* Theme Toggle - Now in navbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 0.25rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-small);
}

.theme-icon {
  display: block;
  font-size: 1.2rem;
  padding: 0.3rem 0.5rem;
  transition: all var(--transition-normal);
  border-radius: 20px;
}

.theme-icon.moon {
  display: none;
}

[data-theme="light"] .theme-icon.sun {
  display: none;
}

[data-theme="light"] .theme-icon.moon {
  display: block;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(10, 30, 26, 0.95);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 253, 244, 0.95);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

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

.nav-logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-rainbow);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: gradientShift 4s ease-in-out infinite;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: -0.2rem;
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.8rem;
  z-index: 1001;
  touch-action: manipulation; /* Better touch response */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
  min-height: 44px; /* Touch target size */
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 10rem 2rem 2rem 2rem; /* Increased top padding more for navbar */
  background: var(--primary-bg);
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center; /* Changed from start to center */
  width: 100%;
  z-index: 2;
  padding-top: 0; /* Removed extra padding */
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-main {
  display: block;
  background: var(--gradient-rainbow);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: gradientShift 4s ease-in-out infinite;
  font-family: 'Orbitron', monospace;
}

.hero-sub {
  display: block;
  color: var(--text-primary);
  font-size: 0.8em;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 400;
}

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

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-small);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-small);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 2rem;
}

#brain-chip-container {
  width: 600px;
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neural-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  transform: rotate(45deg);
  margin: 0 auto;
}

/* Container Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  width: 100%;
  box-sizing: border-box;
}

/* Section Styles */
section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  scroll-margin-top: 100px; /* Account for fixed navbar */
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section */
.about {
  background: var(--secondary-bg);
  backdrop-filter: blur(10px);
}

.manifesto-box {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 4rem;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.manifesto-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-rainbow);
  opacity: 0.1;
  z-index: -1;
}

.manifesto-icon {
  margin-bottom: 2rem;
}

.brain-pulse {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

.brain-pulse::before {
  content: '🧠';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.manifesto-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

.manifesto-author {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1rem;
}

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

.about-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.about-card:hover::before {
  opacity: 0.05;
}

.about-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.card-icon-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.card-icon {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  display: block;
}

.animate-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

.icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: iconPulse 2s ease-in-out infinite;
}

.about-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Work Areas Section */
.work-areas {
  background: var(--primary-bg);
  position: relative;
}

.work-areas-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.carousel-container {
  display: flex;
  transition: transform var(--transition-slow);
  gap: 2rem;
  padding: 2rem 0;
}

.work-area-card {
  flex: 0 0 400px;
  height: 500px;
  perspective: 1000px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.work-area-card.active {
  transform: scale(1.05);
}

.card-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
}

.work-area-card:hover .card-3d-wrapper {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-icon {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
  display: block;
}

.work-area-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.work-area-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.card-stats {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.stat {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-back ul {
  list-style: none;
  margin: 1rem 0;
}

.card-back li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background: var(--accent-primary);
  transform: scale(1.2);
}

/* Featured Project Section */
.featured-project {
  background: var(--secondary-bg);
  position: relative;
  overflow: hidden;
}

.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  z-index: 1;
}

.code-stream {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  overflow: hidden;
}

.code-line {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent-primary);
  white-space: nowrap;
  animation: codeFlow 10s linear infinite;
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.project-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.featured-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
}

.featured-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.featured-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: 'Orbitron', monospace;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.featured-buttons {
  display: flex;
  gap: 1rem;
}

.video-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-small);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-medium);
}

.play-icon {
  color: white;
  font-size: 2rem;
  margin-left: 4px;
}

.video-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: white;
}

.video-overlay h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.video-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Events Section */
.events {
  background: var(--primary-bg);
}

.calendar-container {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-nav {
  background: var(--accent-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.calendar-nav:hover {
  background: var(--accent-secondary);
  transform: scale(1.1);
}

.calendar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.calendar-day {
  background: var(--card-bg);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.calendar-day:hover {
  background: rgba(79, 70, 229, 0.2);
}

.calendar-day.has-event {
  background: rgba(79, 70, 229, 0.3);
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
}

.upcoming-events h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.event-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.event-date {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  min-width: 60px;
}

.event-date .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

.event-info {
  flex: 1;
}

.event-info h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.event-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.event-time {
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.remind-btn {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

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

/* Membership Section */
.membership {
  background: var(--secondary-bg);
  position: relative;
  overflow: hidden;
}

.particle-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.light-ring {
  position: absolute;
  border: 2px solid rgba(20, 184, 166, 0.3);
  border-radius: 50%;
  animation: ringExpand 4s ease-out infinite;
}

.membership-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.membership-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.benefit-text p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.membership-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.membership-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

/* Blog Section */
.blog {
  background: var(--primary-bg);
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.blog-carousel {
  position: relative;
  overflow: hidden;
}

.blog-track {
  display: flex;
  gap: 2rem;
  transition: transform var(--transition-slow);
}

.blog-card {
  flex: 0 0 350px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.blog-image {
  height: 200px;
  background: var(--gradient-card);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-tag {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.blog-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.blog-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-nav {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.blog-nav:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1);
}

/* Contact Section */
.contact {
  background: var(--secondary-bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-details {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-value {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-map {
  margin-top: 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.map-marker {
  font-size: 3rem;
  color: var(--accent-primary);
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

/* Footer */
.footer {
  background: #0a1e1a;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
}

[data-theme="light"] .footer {
  background: #f0fdf4;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
}

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

.footer-section h3,
.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: 'Orbitron', monospace;
}

.footer-motto {
  color: var(--accent-primary);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-section p,
.footer-section ul {
  color: var(--text-secondary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--accent-primary);
  color: white !important;
  transform: translateX(5px);
}

.social-icon {
  font-size: 1.2rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

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

/* Mini Game */
.mini-game {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.mini-game.hidden {
  display: none;
}

.game-container {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  backdrop-filter: blur(20px);
}

.close-game {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.close-game:hover {
  background: rgba(255, 255, 255, 0.1);
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.puzzle-piece {
  aspect-ratio: 1;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.puzzle-piece:hover {
  transform: scale(1.05);
}

.puzzle-piece.correct {
  background: var(--gradient-rainbow);
  animation: pulse 1s ease-in-out;
}

/* Animations */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { 
    opacity: 0.8;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes iconPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
}

@keyframes codeFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100vw); }
}

@keyframes ringExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Particle Background */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.background-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .mission-content,
  .contact-content,
  .membership-content,
  .featured-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .work-area-card {
    flex: 0 0 350px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .featured-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .theme-toggle {
    padding: 0.2rem;
    border-radius: 20px;
  }

  .theme-icon {
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 30, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    padding-top: 0;
  }

  [data-theme="light"] .nav-menu {
    background: rgba(240, 253, 244, 0.98);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .hero {
    padding: 12rem 1rem 2rem 1rem; /* Significantly increased top padding for mobile */
    min-height: 90vh;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 0;
  }
  
  .hero-visual {
    order: -1; /* 3D modeli üste taşı */
  }
  
  .hero-text {
    order: 1;
    margin-top: 1rem;
  }
  
  .hero-3d {
    order: 2;
    height: 300px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero .description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .section-title {
    font-size: 2.5rem;
  }

  #brain-chip-container {
    width: 400px;
    height: 400px;
    margin-top: 1rem;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .social-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .work-area-card {
    flex: 0 0 300px;
  }
  
  .carousel-container {
    padding-left: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .featured-stats {
    justify-content: center;
  }
  
  .blog-card {
    flex: 0 0 280px;
  }

  /* Mobile specific section spacing */
  section {
    scroll-margin-top: 120px; /* More space for mobile navbar */
  }
}

@media (max-width: 480px) {
  .nav-container,
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 14rem 1rem 2rem 1rem; /* Maximum top padding for small screens */
    min-height: 85vh;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-visual {
    order: -1; /* 3D modeli üste taşı */
    margin-bottom: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .hero .description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .hero-3d {
    height: 250px;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  #brain-chip-container {
    width: 300px;
    height: 300px;
    margin-top: 1rem;
  }
  
  .work-area-card {
    flex: 0 0 250px;
    height: 400px;
  }
  
  .featured-title {
    font-size: 2rem;
  }
  
  .blog-card {
    flex: 0 0 250px;
  }
  
  .theme-toggle {
    padding: 0.15rem;
  }
  
  .theme-icon {
    font-size: 0.9rem;
    padding: 0.15rem 0.3rem;
  }

  /* Ensure navbar never overlaps content on small screens */
  section {
    scroll-margin-top: 140px;
  }
  
  /* Additional mobile fixes */
  .hero-3d, #brain-chip-container {
    width: 100% !important;
    max-width: 300px;
    height: 250px !important;
    margin: 0 auto;
  }
  
  /* Prevent horizontal scroll on mobile */
  .hero-visual, .hero-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Better button sizes for touch */
  .btn-primary, .btn-secondary {
    min-height: 48px;
    padding: 1rem 1.5rem;
  }
  
  /* Improved typography for small screens */
  .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.4;
  }
  
  .hero-description {
    font-size: 0.85rem !important;
    line-height: 1.5;
  }
}

/* Additional mobile improvements */
@media (max-width: 375px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero {
    padding: 12rem 0.75rem 2rem 0.75rem;
  }
  
  .hero h1, .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.1;
  }
  
  .section-title {
    font-size: 1.6rem !important;
  }
  
  #brain-chip-container {
    width: 280px !important;
    height: 220px !important;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 8rem 1rem 1rem 1rem;
    min-height: 80vh;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  #brain-chip-container {
    height: 200px !important;
  }
}