/* ================= GLOBAL ================= */
body {
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  color: #1a1a1a;
  background: #f9f9f9;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #003b44;
  margin-bottom: 10px;
}

.section {
  padding: 100px 10% 60px;
}

.light {
  background: #ffffff;
}

/* ================= NAVBAR ================= */
.navbar {
  background: #002b36;
  color: white;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.nav-link {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-link:hover {
  text-decoration: underline;
}

/* ================= HERO ================= */
.hero {
  margin-top: 70px;
}

/* ================= PROJECTS ================= */
/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.project-thumb {
  background: #f3f3f3;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes it look like portfolio tiles */
}

.project-meta {
  padding: 14px 14px 16px;
}

.project-meta h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #003366;
}

.project-meta p {
  margin: 0;
  font-size: 14px;
  color: #333;
}


/* ================= MODAL ================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal {
  background: #fff;
  width: 720px;
  max-width: 92%;
  border-radius: 12px;
  padding: 22px;
}

.modal a {
  display: inline-block;
  margin-top: 10px;
  color: #003366;
  font-weight: bold;
  text-decoration: none;
}

.modal a:hover {
  text-decoration: underline;
}

.modal button {
  margin-top: 14px;
  padding: 8px 12px;
  background: #002b36;
  color: #fff;
  border: 0;
  cursor: pointer;
}


/* ================= CONTACT ================= */
.google-form {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.google-form iframe {
  width: 100%;
  max-width: 650px;   /* 👈 controls width */
  height: 820px;      /* 👈 controls height */
  border: 1px solid #ccc;
  border-radius: 10px;
}

.site-footer {
  background: #002b36;
  color: #fff;
  padding: 25px 0;
  margin-top: 60px;
  font-size: 14px;
}

.footer-container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-center a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
}

.footer-left,
.footer-right {
  margin: 5px 0;
}


/*============= Skills======================*/

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 25px;
}

.skill-card {
  background: white;
  border-left: 4px solid #003366;
  padding: 16px 18px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.skill-card h3 {
  margin: 0 0 6px;
  color: #003366;
  font-size: 16px;
}

.skill-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}


/* ===== HERO CENTER (FINAL) ===== */
.hero {
  min-height: calc(100vh - 70px); /* full screen minus navbar height */
  display: flex;
  align-items: center;            /* vertical center */
  justify-content: center;        /* horizontal center */
  background: #ffffff;
  padding: 0 20px;                /* small side padding */
}

.hero-center {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-name {
  font-size: 56px;
  margin: 0 0 16px;
  color: #003366;
}

/* Rotating line */
.hero-rotator {
  font-size: 22px;
  font-weight: 700;
  color: #002b36;
  margin-bottom: 18px;

  /* keeps it perfectly centered as text changes */
  display: inline-block;
  min-height: 28px;
}

.rotator-dynamic {
  color: #005c99;
}

.rotator-cursor {
  margin-left: 4px;
  color: #005c99;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-summary {
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 26px;
}

/* Icon buttons */
.hero-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #cfd7df;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: #002b36;
}

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



/*======FOR MORE PROJECTS ========================*/

.projects-cta {
  text-align: center;
  margin-top: 40px;
}

.projects-cta p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.github-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #002b36;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.github-btn:hover {
  background: #004455;
  transform: translateY(-2px);
}




/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

