:root {
  --font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --bg-color: #f5f8f8;
  --text-color: #26333d;
  --header-bg: #10202e;
  --header-bg-2: #16324a;
  --header-text: #fff;
  --nav-bg: #14b8a6;
  --nav-text: #fff;
  --nav-hover-bg: #fff;
  --nav-hover-text: #0d2b3e;
  --section-title-color: #10202e;
  --card-bg: #fff;
  --card-shadow: rgba(16,32,46,0.08);
  --card-title-color: #0d9488;
  --card-text-color: #384552;
  --icon-bg: rgba(20,184,166,0.12);
  --btn-bg: #14b8a6;
  --btn-hover-bg: #0d9488;
  --btn-text: #fff;
  --accent-grad: linear-gradient(135deg, #ff6347, #ff1493);
  --form-bg: #fff;
  --form-border: #d7e0e0;
  --footer-bg: #10202e;
  --footer-text: #cfd8dc;
  --footer-heading: #fff;
  --border-soft: rgba(16,32,46,0.08);
}

[data-theme="dark"] {
  --bg-color: #0a0a0a;
  --text-color: #f0f0f0;
  --header-bg: #0d0d0d;
  --header-bg-2: #1a1a1a;
  --header-text: #ffffff;
  --nav-bg: #1a1a1a;
  --nav-text: #e8e8e8;
  --nav-hover-bg: #333333;
  --nav-hover-text: #ffffff;
  --section-title-color: #ffffff;
  --card-bg: #1a1a1a;
  --card-shadow: rgba(0,0,0,0.8);
  --card-title-color: #2dd4bf;
  --card-text-color: #d4d4d4;
  --icon-bg: rgba(45,212,191,0.15);
  --btn-bg: #14b8a6;
  --btn-hover-bg: #0d9488;
  --btn-text: #1a1a1a;
  --form-bg: #1a1a1a;
  --form-border: #333333;
  --footer-bg: #000000;
  --footer-text: #a8a8a8;
  --footer-heading: #ffffff;
  --border-soft: rgba(255,255,255,0.1);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, .section-title, .hero-title, #typing-text, .footer-logo {
  font-family: var(--font-display);
}

/* ---------- Header ---------- */
header {
  background: linear-gradient(135deg, var(--header-bg), var(--header-bg-2));
  color: var(--header-text);
  padding: 32px 20px 36px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.8s ease;
}

header p {
  margin: 10px 0 0;
  opacity: 0.85;
  font-size: 0.98em;
  animation: slideInUp 0.8s ease 0.2s both;
}

#typing-text {
  letter-spacing: 0.3px;
  animation: slideInUp 0.8s ease 0.1s both;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  animation: scaleIn 0.7s ease;
}

.circular-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.circular-logo:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  z-index: 1000;
  padding: 16px 25px;
  text-align: right;
  display: block;
  width: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

nav a {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  padding: 9px 16px;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  margin: 0 4px;
  display: inline-block;
  background: transparent;
  position: relative;
  animation: slideInUp 0.6s ease both;
}

nav a:nth-child(1) { animation-delay: 0.1s; }
nav a:nth-child(2) { animation-delay: 0.15s; }
nav a:nth-child(3) { animation-delay: 0.2s; }
nav a:nth-child(4) { animation-delay: 0.25s; }
nav a:nth-child(5) { animation-delay: 0.3s; }

nav a:hover:not(.menu-icon) {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-text);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--section-title-color);
  text-align: center;
  animation: slideInUp 0.6s ease;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--card-title-color);
  animation: slideInLeft 0.8s ease 0.3s forwards;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 20px 0;
}

.hero-content { flex: 1 1 380px; }

.hero-title {
  font-size: 2.4em;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--card-text-color);
  margin: 0 0 26px;
  max-width: 60ch;
}

.hero-actions { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  margin-bottom: 30px;
  animation: slideInUp 0.8s ease 0.3s both;
}

.hero-actions .btn {
  animation: slideInUp 0.8s ease;
}

.hero-actions .btn:nth-child(1) { animation-delay: 0.4s; }
.hero-actions .btn:nth-child(2) { animation-delay: 0.5s; }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border: none;
}
.btn-primary:hover { 
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--section-title-color);
  border: 2px solid var(--nav-bg);
  padding: 10px 22px;
}
.btn-outline:hover { background: var(--nav-bg); color: #fff; }

.hero-stats { 
  display: flex; 
  gap: 30px; 
  flex-wrap: wrap; 
}

.hero-stats .stat { 
  display: flex; 
  flex-direction: column;
  animation: scaleIn 0.8s ease;
  padding: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hero-stats .stat:nth-child(1) { animation-delay: 0.2s; }
.hero-stats .stat:nth-child(2) { animation-delay: 0.4s; }
.hero-stats .stat:nth-child(3) { animation-delay: 0.6s; }

.hero-stats .stat:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(20, 184, 166, 0.1);
  border-radius: 12px;
}

.hero-stats strong {
  font-size: 1.6em;
  font-family: var(--font-display);
  color: var(--card-title-color);
  animation: slideInUp 0.6s ease;
}
.hero-stats span { 
  font-size: 0.85em; 
  color: var(--card-text-color);
  animation: slideInUp 0.6s ease 0.1s both;
}

.hero-visual {
  flex: 1 1 280px;
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(135deg, rgba(20,184,166,0.25), rgba(255,99,71,0.18));
  filter: blur(2px);
  animation: blob-float 8s ease-in-out infinite;
}

@keyframes blob-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

.hero-chip {
  position: absolute;
  background: var(--card-bg);
  color: var(--text-color);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.85em;
  font-weight: 500;
  box-shadow: 0 4px 14px var(--card-shadow);
  white-space: nowrap;
}
.chip-1 { top: 10%; left: 6%; }
.chip-2 { top: 65%; left: 0%; }
.chip-3 { top: 20%; right: 2%; }
.chip-4 { bottom: 6%; right: 12%; }

.hero, .hero-chip, .hero-blob {
  animation-duration: 0.7s;
}

.hero-content, .hero-visual {
  opacity: 0;
  animation: hero-in 0.7s ease forwards;
}
.hero-visual { animation-delay: 0.15s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade in animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide in from left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slide in from right */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slide up animation */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scale in animation */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Glow animation */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(20,184,166,0.5); }
  50% { box-shadow: 0 0 20px rgba(20,184,166,0.8); }
}

/* Rotate animation */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  .hero-content, .hero-visual { animation: none; opacity: 1; }
}

/* ---------- Cards ---------- */
.courses, .internships {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--card-shadow);
  padding: 26px 22px;
  flex: 1 1 300px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-top: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: slideInUp 0.6s ease forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 24px var(--card-shadow);
  border-color: var(--card-title-color);
}

.card h3 {
  margin: 4px 0 10px;
  font-weight: 600;
  color: var(--card-title-color);
}

.card p {
  flex: 1;
  color: var(--card-text-color);
  font-size: 0.96em;
}

.card strong {
  font-family: var(--font-display);
  font-size: 1.15em;
  color: var(--section-title-color);
  margin: 10px 0;
  display: block;
}

.card img {
  border-radius: 50%;
  background: var(--icon-bg);
  padding: 14px;
  margin-bottom: 10px;
  align-self: center;
  box-shadow: none;
}

.courses .card:hover, .internships .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px var(--card-shadow);
  border-top-color: var(--nav-bg);
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 12px 20px;
  min-width: 120px;
  border-radius: 6px;
  font-size: 0.97em;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideInUp 0.8s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover {
  background: var(--btn-hover-bg);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ---------- Contact ---------- */
#contact form {
  max-width: 380px;
  margin: 0 auto;
  padding: 26px 24px;
  background: var(--form-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--card-shadow);
}

#contact input, #contact textarea {
  width: 100%;
  padding: 11px;
  margin-bottom: 12px;
  font-size: 1em;
  font-family: var(--font-body);
  border-radius: 6px;
  border: 2px solid var(--form-border);
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease;
}

#contact input:nth-of-type(1) { animation-delay: 0.1s; }
#contact input:nth-of-type(2) { animation-delay: 0.2s; }
#contact textarea { 
  min-height: 100px; 
  resize: vertical;
  animation-delay: 0.3s;
}

#contact input:focus, #contact textarea:focus {
  outline: none;
  border-color: var(--btn-bg);
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.5);
  transform: translateY(-2px);
  background: var(--card-bg);
}

/* ---------- About / info blocks ---------- */
.info-block {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--card-text-color);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: 0 2px 10px var(--card-shadow);
  text-align: center;
}

/* ---------- Social ---------- */
.social-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  animation: slideInUp 0.8s ease 0.3s both;
}
.social-links a {
  display: inline-flex;
  transition: all 0.3s ease;
  animation: scaleIn 0.6s ease;
}

.social-links a:nth-child(1) { animation-delay: 0.3s; }
.social-links a:nth-child(2) { animation-delay: 0.4s; }
.social-links a:nth-child(3) { animation-delay: 0.5s; }
.social-links a:nth-child(4) { animation-delay: 0.6s; }
.social-links a:nth-child(5) { animation-delay: 0.7s; }
.social-links a:nth-child(6) { animation-delay: 0.8s; }

.social-links img {
  height: 40px;
  transition: all 0.3s ease;
  filter: brightness(0.9);
}
.social-links a:hover {
  transform: translateY(-8px) scale(1.15) rotate(5deg);
}
.social-links a:hover img { 
  filter: brightness(1.2);
}

/* ---------- Footer ---------- */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 50px;
  animation: slideInUp 0.8s ease;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}

.footer-brand { 
  flex: 1 1 260px;
  animation: slideInLeft 0.8s ease;
}
.footer-logo { 
  font-size: 1.3em; 
  font-weight: 700;
  transition: transform 0.3s ease;
}
.footer-logo:hover {
  transform: scale(1.05);
}
.footer-brand p { 
  max-width: 34ch; 
  color: var(--footer-text); 
  font-size: 0.92em; 
}

.footer-links, .footer-legal { 
  flex: 0 1 160px;
  animation: slideInRight 0.8s ease;
}
.footer-links h4, .footer-legal h4 {
  color: var(--footer-heading);
  font-size: 0.95em;
  margin: 0 0 12px;
  transition: color 0.3s ease;
}
.footer-links a, .footer-legal a {
  display: block;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.92em;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}
.footer-links a:hover, .footer-legal a:hover { 
  color: var(--btn-bg);
  padding-left: 8px;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 16px 20px;
  font-size: 0.85em;
  animation: fadeIn 0.8s ease 0.5s both;
}

/* ---------- Legal pages ---------- */
.legal-page h1 {
  font-size: 2em;
  color: var(--section-title-color);
  margin-bottom: 4px;
}
.legal-page .updated {
  color: var(--card-text-color);
  font-size: 0.9em;
  margin-bottom: 26px;
}
.legal-page h2 {
  font-size: 1.25em;
  color: var(--card-title-color);
  margin-top: 34px;
}
.legal-page p, .legal-page li {
  color: var(--text-color);
  line-height: 1.7;
}
.legal-page .disclaimer {
  background: var(--icon-bg);
  border-left: 4px solid var(--nav-bg);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92em;
  margin-bottom: 30px;
}

/* Animated Toggle Switch Styles */
.animated-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
  margin-left: 1px;
  margin-top: 5px;
}

.animated-toggle input {
  display: none;
}

.animated-toggle .toggle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffa500;
}

.animated-toggle .toggle-circle {
  position: absolute;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.animated-toggle .icon {
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: absolute;
  opacity: 1;
}

.animated-toggle .sun-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.animated-toggle .moon-icon {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

.animated-toggle input:checked + .toggle-bg {
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border-color: #4a4a4a;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.animated-toggle input:checked ~ .toggle-circle {
  left: calc(100% - 28px);
  box-shadow: 0 3px 8px rgba(255, 255, 255, 0.2);
}

.animated-toggle input:checked ~ .toggle-circle .sun-icon {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.animated-toggle input:checked ~ .toggle-circle .moon-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.Developer { color: tomato; }
.Wala { color: deeppink; }

.menu-icon { cursor: pointer; }

@media (max-width: 800px) {
  .courses, .internships { flex-direction: column; align-items: center; }
  nav { text-align: center; }
  .hero { text-align: center; justify-content: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 700px) {
  nav a:not(.menu-icon) { display: none; }
  nav.open a { display: block; }
  nav.open a.menu-icon { display: inline-block; }
}

