/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9fafc;
  scroll-behavior: smooth;
  transition: background 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #eee;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-color, #111);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color, #333);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #0077ff;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color, #111);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
}

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  margin-top: 80px;
}

.hero-content {
  max-width: 700px;
  animation: fadeInUp 1s ease;
}

.profile-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero h1 span {
  color: #ffe600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: #0077ff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #0077ff;
  color: #fff;
}

/* Sections */
section {
  padding: 80px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Projects */
#projects {
  background: #f4f7fb;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: var(--text-color, #111);
}

.card-content p {
  color: var(--subtext-color, #555);
  margin-bottom: 15px;
}

/* Contact */
#contact {
  background: #fff;
}

.contact-list {
  list-style: none;
  margin-top: 20px;
}

.contact-list li {
  margin: 10px 0;
  font-size: 1.1rem;
}

.contact-list a {
  color: #0077ff;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 🌙 Dark Mode */
body.dark-mode {
  background: #111;
  color: #eee;
}

body.dark-mode .navbar {
  background: rgba(18, 18, 18, 0.9);
  border-bottom: 1px solid #333;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #111, #333);
}

body.dark-mode .project-card {
  background: rgba(40, 40, 40, 0.8);
}

body.dark-mode .card-content h3 {
  color: #fff;
}

body.dark-mode .btn-primary {
  background: #0077ff;
  color: #fff;
}

body.dark-mode .btn-primary:hover {
  background: #005bcc;
}

/* Responsive */

/* Tablets */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Phones */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    text-align: center;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  body.dark-mode .nav-links {
    background: rgba(18, 18, 18, 0.95);
  }

  .hero {
    height: auto;
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0056d2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056d2, #003d99);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Dark mode button adjustment */
body.dark-mode .btn-primary {
  background: linear-gradient(135deg, #00b3ff, #007bff);
  color: #fff;
}

body.dark-mode .btn-primary:hover {
  background: linear-gradient(135deg, #0091e6, #0066cc);
}
