:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --accent: #4dd0e1;
  --glass-bg: rgba(255, 255, 255, 0.3);
  --card-border: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
  --bg-color: #0f0f0f;
  --text-color: #f1f1f1;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.4s ease;
  scroll-behavior: smooth;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

#themeToggle {
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-text span {
  color: var(--accent);
}
.hero-text .btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.hero-text .btn:hover {
  background: #26c6da;
}

/* Hero Image */
.hero-image {
  flex: 1;
  max-width: 400px;
  padding: 1rem;
  border-radius: 15px;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
}

/* Sections */
.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--accent);
}

/* Cards/Grids */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}

/* Contact */
#contact ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
#contact li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

#contact i {
  margin-right: 0.6rem;
  color: var(--accent);
  width: 20px;
}


/* Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin: auto;
  }
}
/* 🌙 Dark Theme: Starfield Canvas */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: #000;
  display: none;
  pointer-events: none;
}

/* 🍃 Falling Leaves Animation for Light Theme */
#cherry-blossoms {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  display: none;
  pointer-events: none;
}

.leaf {
  position: absolute;
  top: -50px;
  width: 40px;
  height: 40px;
  background: url('leaves.png') no-repeat center;
  background-size: contain;
  animation: leafFall linear infinite;
  opacity: 0.85;
}

@keyframes leafFall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
  }
}


@keyframes fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
  }
}

