/* styles.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0a23;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: #0a0a23;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: #00ffcc;
  display: flex;
  align-items: center;
  margin-right:10px;
}

.logo-img {
  height: 1.5rem; /* same as font-size of old text */
  width: auto;
  object-fit: contain;
  display: block;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #00ffcc;
}

.hero {
  text-align: center;
  padding: 100px 20px 120px; /* increased bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* creates vertical spacing between h1, p, and button */
}


.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-inline: auto;
}

.cta-button {
  background: #00ffcc;
  color: #000;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #00ccaa;
}

.alien-mascot {
  font-size: 4rem;
  margin-top: 40px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.projects {
  padding: 80px 20px;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.project-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.project-card {
  background: #111132;
  padding: 30px 20px;
  border-radius: 20px;
  width: 260px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.project-card .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}


.project-card h3 {
  color: #00ffcc;
  font-size: 1.3rem;
}

.project-card p {
  color: #cccccc;
  margin: 8px 0;
}

.project-card a {
  color: #00ffcc;
  text-decoration: none;
  font-weight: bold;
}

.project-card a:hover {
  text-decoration: underline;
}

.about {
  padding: 80px 40px;
  background: #0d0d30;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  color: #dddddd;
}

footer {
  background: #080820;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: #aaa;
}

footer .socials {
  margin-top: 10px;
}

footer .socials a {
  color: #00ffcc;
  text-decoration: none;
  margin: 0 8px;
}

footer .socials a:hover {
  text-decoration: underline;
}




/* Starfield */
.starfield {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  top: 0;
  left: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  opacity: 0.8;
  border-radius: 50%;
  animation: twinkle infinite ease-in-out alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.5); }
}

/* Optional light theme toggle */
.light-theme {
  background: #fefefe;
  color: #222;
}

.light-theme .project-card {
  background: #ffffff;
  color: #222;
}

.light-theme header,
.light-theme footer {
  background: #ddd;
}

.light-theme .cta-button {
  background: #333;
  color: #fff;
}

.dark-toggle {
  background: none;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 20px;
}

