/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #000428, #004e92);
  color: #00ffcc;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.5s, color 0.5s;
  text-align: center;
}

/* Modern Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #222;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #00ffcc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus {
  color: #ffcc00;
}
.nav-links a.active::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 60%;
  height: 2px;
  background: #ffcc00;
  border-radius: 2px;
  margin-top: 4px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background: #00ffcc;
  height: 3px;
  width: 28px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    right: 2rem;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 200;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Header */
.header {
  padding: 40px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  margin-bottom: 30px;
  text-shadow: 0 0 10px #00ffcc;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('techPix.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero-content {
  z-index: 1;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.hero .btn {
  background: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.hero .btn:hover {
  background: #00ffcc;
  color: #fff;
  transform: scale(1.05);
}

/* Sections */
.section {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 15px;
  margin: 20px 0;
}

/* Quote Section */
.quote {
  font-style: italic;
  font-size: 1.2rem;
  color: #00ffcc;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid #ffcc00;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

/* Buttons */
.btn {
  background: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #00ffcc;
  color: #fff;
  transform: scale(1.05);
}

/* Project List Responsive & Cards */
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.project-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 350px;
  flex: 1 1 300px;
  text-align: left;
}
.project-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,255,204,0.15);
}
.project-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
body.dark-mode .project-item {
  background: #222;
  color: #e0e0e0;
}

/* Footer */
.footer {
  margin-top: 20px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  color: #00ffcc;
  font-size: 0.9rem;
  text-shadow: 0 0 5px #00ffcc;
}
.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.social-icons a {
  color: #00ffcc;
  transition: color 0.2s;
}
.social-icons a:hover {
  color: #ffcc00;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #181818;
  color: #e0e0e0;
}
body.dark-mode .btn {
  background: #00ffcc;
  color: #000;
}
body.dark-mode .btn:hover {
  background: #ffcc00;
  color: #fff;
}
.navbar.dark-mode {
  background: #111;
  color: #00bcd4;
}
.footer.dark-mode {
  background: #222;
  color: #00bcd4;
}

/* Accessibility: Focus for inputs */
input:focus, textarea:focus {
  outline: 2px solid #00bcd4;
}

/* Weather Data Section */
#weather-data {
  margin: 1rem 0;
  font-size: 1.1em;
}

/* Mobile Optimization */
@media (max-width: 700px) {
  .container {
    padding: 0 1rem;
  }
  .project-list {
    flex-direction: column;
    gap: 1rem;
  }
  .project-item {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 2rem;
  }
}