/* ---------------- RESET ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #ffffff;
  scrollbar-gutter: stable;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

/* Logo */
.logo {
  width: 120px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 14%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  margin-left:8px;
}

/* Text */
.header-text {
  max-width: 680px;
  justify-self: center;
  text-align: center;
  margin-right:13px;
}

.header-text h1 {
  font-size: 2.5rem;
  margin: 0 0 6px;
  background: linear-gradient(90deg, #22c1c3, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-text p {
  font-size: 1.1rem;
  margin: 0;
  color: #0f172a;
}

/* Back button */
.back-home-btn {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2563eb;
  padding: 10px 16px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 10px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.back-home-btn:hover {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    background: linear-gradient(90deg, #22c1c3, #2563eb);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
}

/* ---------- MOBILE OVERRIDES ---------- */
@media (max-width: 768px) {
  .site-header {
    position: relative; /* NOT sticky on mobile */
    padding: 14px 16px; /* smaller header */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .logo {
    width: 90px; /* smaller logo */
    margin: 0 auto;
  }

  .header-text h1 {
    font-size: 1.7rem; /* smaller heading */
  }

  .header-text p {
    font-size: 0.95rem;
  }

  .back-home-btn {
    font-size: 0.85rem;
    padding: 8px 14px;
    margin: 6px auto 0;
  }
}



/* ---------------- PROJECTS SECTION ---------------- */
.projects-section {
  padding: 40px 20px; /* tight top padding */
}

/* ---------------- PAGE HEADER ---------------- */
.page-header {
  max-width: 1100px; /* SAME as projects grid */
  margin: 20px auto 40px;
  padding: 0 20px; /* matches grid padding */
  text-align: left;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-header h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
    background: linear-gradient(90deg, #22c1c3, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  max-width: 720px;
  margin: 0; /* IMPORTANT: no auto-centering */
  font-size: 1.05rem;
  opacity: 0.85;
   color: #0f172a;
}


/* ---------------- GRID ---------------- */
.projects-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  column-gap: 28px;
  row-gap: 56px; /* 👈 more vertical spacing between rows */
}


/* ---------------- CARDS ---------------- */
.project-card {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  cursor: pointer;

  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;

  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.3s ease;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

/* DARK OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

/* TEXT LAYERS */
.card-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.4s ease;
}

.card-text.default {
  opacity: 1;
}

.card-text.hover {
  opacity: 0;
}

.project-card:hover .card-text.default {
  opacity: 0;
}

.project-card:hover .card-text.hover {
  opacity: 1;
}

.card-text h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card-text p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/*footer*/

.site-footer {
  background: white;
 
  margin-top: 80px;
}

/* Footer Divider */
.footer-divider {
  border: none;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.18),
    transparent
  );
  margin: 80px 0 0;
}

/* Footer Logo */
.footer-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  border-radius: 14%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}


.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color:#0f172a;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 420px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #22c1c3;
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }
}


/* ---------------- MOBILE ADJUSTMENTS ---------------- */
@media (max-width: 480px) {
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 0.95rem; }
  .card-text h3 { font-size: 1.1rem; }
  .card-text p { font-size: 0.85rem; }
}
