/* ===== Reset & Base Setup ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  transition: background-color 0.3s, color 0.3s;
}

body.light-theme {
  background-color: #f0f2f5;
  color: #333;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.light-theme .navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 600;
  color: #00e6e6;
}

.navlist {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navlist li a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.light-theme .navlist li a {
  color: #333;
}

.navlist li a:hover {
  color: #00e6e6;
}

/* ===== Hamburger (Mobile Menu) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: #e0e0e0;
  transition: all 0.3s;
}

.light-theme .hamburger span {
  background: #333;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== Theme Toggle (header button in navbar) ===== */
.theme-toggle button {
  background: #00e6e6;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #121212;
}

/* ===== Sections & Layout ===== */
.section {
  padding: 2rem 1rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Headings ===== */
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00e6e6;
}

.light-theme h1 {
  color: #007bff;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00e6e6;
  border-bottom: 2px solid #00e6e6;
}

.light-theme h2 {
  color: #007bff;
  border-color: #007bff;
}

/* ===== Hero Text ===== */
.tagline {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.tagline span {
  color: #00e6e6;
  font-weight: 600;
}

.light-theme .tagline span {
  color: #007bff;
}

.intro {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

/* ===== Buttons ===== */
.buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 10px;
  display: flex;
  width: fit-content;
}

.btn.primary {
  background: #00e6e6;
  color: #121212;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #00e6e6;
  color: #00e6e6;
}

.light-theme .btn.primary {
  background: #007bff;
  color: #fff;
}

.light-theme .btn.secondary {
  border-color: #007bff;
  color: #007bff;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 230, 230, 0.5);
}

/* ===== About Section ===== */
.about-hero .about-content {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.profile-card {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #00e6e6;
  transition: all 0.3s;
}

.light-theme .profile-card {
  background: #fff;
  border-color: #007bff;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 10px rgba(0, 230, 230, 0.5);
}

.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid #00e6e6;
}

.about-details { flex: 1; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.about-item {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s;
}

.light-theme .about-item { background: #fff; }

.about-item:hover { transform: translateY(-3px); }

.about-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ===== Skills Section ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.skill-box {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 230, 230, 0.1);
}

.skill-box img {
  width: 250px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 230, 230, 0.4);
}

.light-theme .skill-box {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-box {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #00e6e6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 230, 230, 0.4);
}

.light-theme .project-box {
  background: #fff;
  border-color: #007bff;
}

.project-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ===== Contact (Cards, no form) ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

@media (max-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #1e1e1e;
  border: 2px solid #00e6e6;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 230, 230, 0.12);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 230, 230, 0.35);
}

.light-theme .contact-card {
  background: #fff;
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.12);
}

.light-theme .contact-card:hover {
  box-shadow: 0 8px 18px rgba(0, 123, 255, 0.35);
}

.contact-icon {
  font-size: 1.6rem;
  line-height: 1;
  width: 2rem;
  text-align: center;
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #00e6e6;
}

.light-theme .contact-info h3 { color: #007bff; }

.contact-info p,
.contact-info a {
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

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

.contact-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== Social Links ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: #00e6e6;
  font-size: 1.3rem;
  transition: all 0.3s;
}

.light-theme .social-links a { color: #007bff; }

.social-links a:hover {
  transform: scale(1.2);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: #1e1e1e;
  color: #e0e0e0;
}

.light-theme footer {
  background: #fff;
  color: #333;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navlist {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
  }
  .navlist.active { display: flex; }
  .hamburger { display: flex; align-self: flex-end; }
  .theme-toggle { align-self: flex-end; margin-top: 0.5rem; }

  .about-hero .about-content { flex-direction: column; }

  .profile-img { width: 150px; height: 150px; }

  h1 { font-size: 2rem; }
  .tagline { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.5rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 320px) {
  .skills-grid { grid-template-columns: 1fr; gap: 1rem; }
  .skill-box img { width: 100%; height: auto; }
  .skill-box { padding: 0.8rem; }
}
