@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary-color: #3a6cf4;
  --primary-hover: #0a49f6;
  --secondary-color: #4e9eff;
  --text-color: #333;
  --light-bg: #f0f0f0;
  --dark-bg: #000016;
  --white: #fff;
  --shadow: 0 5px 25px rgba(1, 1, 1, 0.15);
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  color: var(--text-color);
}

/* ===== Header & Navigation ===== */
header {
  background-color: var(--light-bg);
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  text-decoration: none;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.navigation {
  display: flex;
  gap: 1rem;
}

.navigation a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  transition: var(--transition);
}

.navigation a:hover {
  color: var(--primary-hover);
}

/* ===== Hero Section ===== */
.main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url(image/3.jpg) no-repeat center/cover fixed;
  padding: 6rem 2rem 2rem;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.main h2 {
  color: var(--white);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 500;
}

.main h2 span {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--secondary-color);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
}

.main h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0.5rem 0 1.5rem;
}

/* ===== Buttons & Icons ===== */
.main-btn {
  color: var(--white);
  background-color: var(--primary-color);
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  display: inline-block;
  padding: 0.75em 1.75em;
  letter-spacing: 1px;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.main-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  color: var(--white);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  transition: var(--transition);
}

.social-icons a:hover {
  transform: translateY(-3px);
}

/* ===== Sections & Titles ===== */
.section {
  padding: 4rem 1rem;
}

.title {
  text-align: center;
  color: var(--primary-color);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 2rem;
}

/* ===== Cards Layout ===== */
.cards .content,
.projects .content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

.cards .card {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: scale(1.05);
}

.icon {
  color: var(--primary-color);
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 1rem;
}

.info {
  text-align: center;
}

.info h3 {
  color: var(--primary-color);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  margin: 0.5rem 0;
}

/* ===== Projects Section ===== */
.project-card {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: scale(1.03);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  opacity: 0.9;
}

.project-info {
  padding: 1rem;
}

.project-category {
  font-size: 0.8rem;
  color: var(--text-color);
}

.project-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.more-details {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.more-details:hover {
  color: var(--primary-hover);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 600;
}

.footer-title span {
  color: var(--primary-color);
}

.footer .social-icons {
  justify-content: flex-start;
}

.footer .social-icons a {
  font-size: clamp(1rem, 3vw, 1.3rem);
  padding: 0;
}

/* ===== Responsive Breakpoints ===== */
@media (min-width: 768px) {
  header {
    padding: 1rem 3rem;
  }

  .navigation {
    gap: 2rem;
  }

  .section {
    padding: 5rem 2rem;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
  }
}

@media (min-width: 1024px) {
  .main {
    padding: 6rem 3rem 3rem;
  }

  .cards .card {
    flex: 1 1 calc(33.333% - 2rem);
  }

  .project-card {
    flex: 1 1 calc(50% - 2rem);
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .navigation {
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .navigation a {
    padding: 0.5rem;
  }

  .main {
    background-attachment: scroll;
  }
}