/* =======================================
   ROOT VARIABLES
======================================= */
:root {
  --primary: #444;
  --primary2: #fff;
  --secondary: #4682b4;
  --accent-green: #2e8b57;
  --navbar-bg: #4682b4;
  --light-bg: #ffffff;
  --dark-text: #222;
  --muted-text: #555;
  --page-bg: #f7f9fc;
}

/* =======================================
   GLOBAL RESET
======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--dark-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* =======================================
   NAVIGATION BAR
======================================= */
.navbar {
  background: var(--navbar-bg);
  height: 100px;
  padding: 0 0;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--dark-text);
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--dark-text);
  transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* =======================================
   UNIVERSAL PAGE SPACING (FIX)
======================================= */
.page-section {
  padding: 100px 1rem 3rem;
  /* FIX: accounts for navbar height */
  min-height: calc(100vh - 70px);
}

/* =======================================
   HERO SECTION
======================================= */
.hero {
  padding-top: 100px;
  /* FIX */
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: auto;
}

.lg-heading {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sm-heading {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted-text);
  margin-bottom: 2rem;
}

.text-secondary {
  color: var(--secondary);
}

.icons a {
  margin: 0 0.5rem;
  color: var(--dark-text);
  transition: 0.3s ease;
}

.icons a:hover {
  color: var(--secondary);
}

/* =======================================
   PROJECTS PAGE
======================================= */
.projects-section {
  padding: 100px 1rem 3rem;
  /* FIX */
  min-height: calc(100vh - 70px);
}

.projects-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.projects-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Tabs */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  background: #ddd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.tab-btn:hover {
  background: var(--secondary);
  color: #fff;
}

.tab-btn.active {
  background: var(--secondary);
  color: #fff;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: grid;
}

/* Project grids */
.project-subheading {
  grid-column: 1 / -1;
  text-align: left;
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: var(--dark-text);
}

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

/* Project cards */
.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--muted-text);
  margin-bottom: 1.2rem;
}

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

.btn-project {
  padding: 0.5rem 1rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-project:hover {
  background: #35648a;
}

.btn-project.secondary {
  background: var(--accent-green);
}

.btn-project.secondary:hover {
  background: #226b43;
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================
   ABOUT PAGE
======================================= */
.about-section {
  padding: 100px 1rem 3rem;
  /* FIX */
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
}

.about-container {
  max-width: 800px;
  text-align: center;
}

.profile-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ddd;
  margin-bottom: 1.5rem;
}

/* =======================================
   CONTACT PAGE
======================================= */
.contact-section {
  padding: 100px 1rem 3rem;
  /* FIX */
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
}

.contact-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group {
  flex: 1;
  text-align: left;
}

input,
select,
textarea,
option {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: 0.3s ease;
  font-size: medium;
}


input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 5px rgba(70, 130, 180, 0.3);
}

.btn-submit {
  padding: 0.8rem 1.5rem;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-submit:hover {
  background: #35648a;
}

/* =======================================
   FOOTER
======================================= */
.footer {
  margin-top: auto;
  background: var(--light-bg);
  text-align: center;
  padding: 1rem;
  color: var(--dark-text);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

  /* ========================
     NAVIGATION
  ======================== */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--navbar-bg);
    padding: 1rem 0;
    text-align: center;
  }

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

  .nav-toggle {
    display: block;
  }

  /* ========================
     CONTACT FORM
  ======================== */
  .form-row {
    flex-direction: column;
  }

  .contact-section {
    padding: 100px 1rem 7rem;
    /* FIXED: more bottom space */
  }

  .contact-container {
    padding-bottom: 2rem;
  }

  textarea {
    min-height: 140px;
    resize: vertical;
    padding: 0.8rem;
    line-height: 1.4;
  }

  select,
  option {
    font-size: medium;
  }

  /* ========================
     PROJECTS PAGE
  ======================== */
  .projects-grid {
    gap: 1.5rem;
  }

  .projects-container h1 {
    font-size: 2rem;
  }

  /* ========================
     TYPOGRAPHY
  ======================== */
  .lg-heading {
    font-size: 2.3rem;
  }

  /* ========================
     FOOTER
  ======================== */
  .footer {
    display: none;
  }

}