:root {
  --primary-color: #00aaff;
  --bg-dark: #0b0f2a;
  --bg-light: #f9f9f9;
  --neon-color: #00ffc3;
  --text-color-dark: #fff;
  --text-color-light: #111;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-color-dark);
  transition: all 0.3s ease;
}

/* Netflix Intro */
#netflix-intro {
  position: fixed;
  background: black;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 2s ease 3s forwards;
}

.netflix-logo {
  width: 250px;
  opacity: 0;
  animation: logoFadeIn 2s ease forwards;
}

@keyframes logoFadeIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

.toggle-theme {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  z-index: 1000;
  font-weight: bold;
}

.hero {
  position: relative;
  height: 100vh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.main-logo {
  width: 180px;
  max-width: 70%;
  margin-bottom: 20px;
  animation: popIn 1.2s ease;
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#typewriter {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--neon-color);
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00ffc3, 0 0 20px #00ffc3;
}

.emoji {
  display: inline-block;
  animation: bounce 1s infinite;
}

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

.navbar {
  background: #141e30;
  text-align: center;
  padding: 15px 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: var(--neon-color);
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: linear-gradient(145deg, #00c6ff, #0072ff);
  color: white;
  padding: 20px;
  border-radius: 12px;
  width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Modern Projects */
.modern-projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #111;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card iframe {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  margin-bottom: 15px;
}

.project-card h3 {
  color: #00ffc3;
  font-size: 18px;
  margin: 0;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.about.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.1);
}

.footer {
  background: #111;
  color: #ccc;
  padding: 30px;
  font-size: 14px;
  text-align: center;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Contact Glow Section */
.contact-glow {
  background: linear-gradient(145deg, #0f2027, #203a43, #2c5364);
  color: white;
  padding: 60px 20px;
  border-radius: 20px;
  max-width: 750px;
  margin: 50px auto;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-glow::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #00ffc3 0%, transparent 70%);
  animation: contactPulse 6s linear infinite;
  opacity: 0.05;
  top: -50%;
  left: -50%;
  z-index: 0;
}

@keyframes contactPulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.contact-glow h2 {
  font-size: 32px;
  color: #00ffc3;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00ffc3;
}

.contact-tagline {
  font-size: 16px;
  margin-bottom: 30px;
  color: #ccc;
  z-index: 2;
  position: relative;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.glow-button {
  padding: 12px 24px;
  background: #00ffc3;
  color: #0b0f2a;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 0 15px #00ffc3, 0 0 30px #00ffc3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px #00ffc3, 0 0 50px #00ffc3;
}

/* Light Mode */
body.light-mode {
  background: #e6f0ff; /* soft light blue */
  color: #222;
}

body.light-mode .navbar {
  background: #d6e6ff;
}

body.light-mode .card {
  background: #d0e7ff;
  color: #111;
}

body.light-mode .footer {
  background: #c9dcff;
  color: #333;
}

body.light-mode .glow-button {
  background: #007bff;
  color: white;
  box-shadow: 0 0 15px #007bff, 0 0 30px #66b2ff;
}

body.light-mode .glow-button:hover {
  box-shadow: 0 0 25px #007bff, 0 0 50px #66b2ff;
}
