/* ===== GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}


/* ===== HEADER / NAVIGATION ===== */

header {
  padding: 1.2rem 6%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1c3c5a;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #1d72b8;
}


/* ===== SHARED CONTAINER ===== */

.section-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}


/* ===== HERO SECTION ===== */

.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 5rem 6%;
  background: linear-gradient(135deg, #eaf2f8, #ffffff);
}

.hero-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  max-width: 750px;
}

.hero-intro {
  color: #1d72b8;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  color: #1c3c5a;
  margin-bottom: 0.5rem;
}

.hero-text h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #1d72b8;
  margin-bottom: 1rem;
}

.hero-text > p:not(.hero-intro) {
  max-width: 650px;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ===== BUTTONS ===== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background-color: #1d72b8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  background-color: #155d90;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #1d72b8;
  border: 2px solid #1d72b8;
}

.btn-outline:hover {
  background-color: #1d72b8;
  color: #ffffff;
}


/* ===== SECTION LABELS ===== */

.section-label {
  color: #1d72b8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}


/* ===== ABOUT PREVIEW ===== */

.about-preview {
  padding: 5rem 0;
  background-color: #ffffff;
  text-align: center;
}

.about-preview h2 {
  color: #1c3c5a;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.about-preview > .section-container > p:not(.section-label) {
  max-width: 750px;
  margin: 0 auto 1rem;
  color: #555;
}

.text-link {
  color: #1d72b8;
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}


/* ===== SKILLS ===== */

.skills {
  padding: 5rem 0;
  background-color: #f5f7fa;
  text-align: center;
}

.skills h2 {
  color: #1c3c5a;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background-color: #ffffff;
  padding: 2rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-card i {
  font-size: 2.5rem;
  color: #1d72b8;
  margin-bottom: 1rem;
}

.skill-card h3 {
  color: #1c3c5a;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: #666;
  font-size: 0.9rem;
}


/* ===== PROJECTS ===== */

.home-projects,
.projects {
  padding: 5rem 0;
  background-color: #ffffff;
  text-align: center;
}

.home-projects h2,
.projects h2 {
  color: #1c3c5a;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.section-description {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: #555;
}

.project-preview-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.project-preview-card,
.project-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-preview-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-preview-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eaf2f8;
}

.project-card-placeholder i {
  font-size: 4rem;
  color: #1d72b8;
}

.project-card-content {
  padding: 1.5rem;
}

.project-preview-card h3,
.project-card h3 {
  color: #1d72b8;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.project-preview-card p,
.project-card p {
  color: #555;
  margin-bottom: 1.2rem;
}


/* ===== CALL TO ACTION ===== */

.cta {
  padding: 5rem 0;
  background-color: #1c3c5a;
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: #e5e7eb;
}

.cta .btn {
  background-color: #ffffff;
  color: #1c3c5a;
}

.cta .btn:hover {
  background-color: #eaf2f8;
}


/* ===== ABOUT PAGE ===== */

.about {
  padding: 5rem 6%;
  background-color: #ffffff;
  text-align: center;
}

.about h2 {
  color: #1c3c5a;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about p {
  max-width: 800px;
  margin: 0.8rem auto;
  color: #555;
}


/* ===== CONTACT ===== */

.contact {
  padding: 5rem 6%;
  background-color: #f5f7fa;
  text-align: center;
}

.contact h2 {
  color: #1c3c5a;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact p {
  max-width: 700px;
  margin: 0.8rem auto;
  color: #555;
}

.contact a {
  color: #1d72b8;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact form {
  max-width: 550px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact textarea {
  resize: vertical;
}

.contact button {
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background-color: #1d72b8;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.contact button:hover {
  background-color: #155d90;
}


/* ===== SOCIAL LINKS ===== */

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-block;
  margin: 0 0.5rem;
  color: #1d72b8;
  font-size: 1.6rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  color: #155d90;
  transform: translateY(-3px);
}


/* ===== FOOTER ===== */

footer {
  padding: 1.5rem;
  background-color: #111827;
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
}


/* ===== SCROLL TO TOP ===== */

#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background-color: #1d72b8;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#scrollTopBtn:hover {
  background-color: #155d90;
}


/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 900px) {

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-preview-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 650px) {

  .navbar {
    flex-direction: column;
    gap: 0.8rem;
  }

  header {
    padding: 1rem 5%;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: 4rem 5%;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .skills-grid,
  .project-preview-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-preview,
  .skills,
  .home-projects,
  .projects,
  .about,
  .contact,
  .cta {
    padding: 4rem 5%;
  }

}
/* ===== Project Card Buttons ===== */
.project-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card-content .btn {
  margin-top: 0.8rem;
  text-align: center;
}

.project-card-content .btn + .btn {
  margin-top: 0.6rem;
}