/* ================== BASE STYLES ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #22d3ee;
  border-radius: 2px;
}

/* Sections */
section {
  padding: 6rem 5%;
}

/* Simple fade animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-section,
.education-section,
.about-section,
.skills-section,
.projects-section,
.contact-section {
  animation: fadeInUp 1s ease-out forwards;
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #374151;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 1rem 5%;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #22d3ee;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #22d3ee;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero / Home */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-content h1 {
  font-size: 4rem;
  line-height: 1.2;
}

.home-content .subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home-content .description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #22d3ee;
  color: #000;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* About */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #22d3ee;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.3);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill-card {
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #374151;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}

.skill-card i {
  font-size: 3rem;
  color: #22d3ee;
  margin-bottom: 1rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  border: 1px solid #374151;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  margin: 1.5rem;
  font-size: 1.5rem;
  color: #22d3ee;
}

.project-card p {
  margin: 0 1.5rem 1.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin: 1.5rem;
}

.project-links a {
  padding: 8px 16px;
  background: #374151;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.project-links a:hover {
  background: #22d3ee;
  color: #000;
}

/* Contact */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-section a {
  color: #22d3ee;
  text-decoration: none;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

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

/* Footer */
footer {
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid #374151;
}

/* ================== RESPONSIVE DESIGN ================== */

/* Tablets - landscape and portrait (768px to 1024px) */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 3%;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .about-content {
    gap: 2rem;
  }

  .project-card img {
    height: 180px;
  }
}

/* Tablets and large phones (max-width: 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide desktop nav on smaller devices */
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 4rem 7%;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    width: 200px;
    height: 200px;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones (max-width: 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  section {
    padding: 3rem 6%;
  }

  .skill-card i {
    font-size: 2.2rem;
  }

  .about-image {
    width: 160px;
    height: 160px;
  }

  .projects-grid {
    gap: 1.5rem;
  }

  .project-card h3 {
    font-size: 1.3rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* Large Screens / Desktops (above 1440px) */
@media (min-width: 1440px) {
  .home-content h1 {
    font-size: 5rem;
  }

  .home-content .subtitle {
    font-size: 2rem;
  }

  section {
    padding: 8rem 10%;
  }
}
