/* ========================================
   Our Work Page Styles
   Color palette matches index.html
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --bg-dominant: #E6EEF7;
  --bg-alternate: #F0F4FA;
  --bg-secondary: #B3CAE6;
  --bg-secondary-dark: #97B2D8;
  --accent-primary: #1350AC;
  --accent-secondary: #195BC3;
  --text-primary: #0F2B5B;
  --text-secondary: #3A5078;
  --text-muted: #60789E;
  --card-bg: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(15, 43, 91, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.75);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 40px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(15, 43, 91, 0.06);
  --shadow-glow-coral: 0 0 40px rgba(19, 80, 172, 0.1);
  --shadow-glow-cyan: 0 0 40px rgba(25, 91, 195, 0.1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dominant);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.8;
}

/* ---------- Grid Lines Background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 43, 91, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 43, 91, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- HEADER / NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(230, 238, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 43, 91, 0.08);
  transition: background var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(230, 238, 247, 0.95);
  border-bottom-color: rgba(15, 43, 91, 0.12);
}

.navbar__left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.navbar__logo-img:hover {
  transform: scale(1.05);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  transition: opacity var(--transition-medium), transform var(--transition-medium), visibility var(--transition-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
}

.menu-open .navbar__nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.navbar__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.2px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-primary);
  transition: width var(--transition-medium);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--accent-primary);
}

.navbar__link--active::after {
  width: 100%;
}

.navbar__link:hover::after {
  width: 100%;
}

/* Menu toggle button (Hamburger / X) */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.navbar__toggle:hover span {
  background-color: var(--accent-primary);
}

/* Transform to X when menu-open */
.menu-open .navbar__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .navbar__toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .navbar__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- FILTER SECTION ---------- */
.filter-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  background-color: var(--bg-dominant);
  color: var(--text-primary);
}

.filter__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.filter__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.filter__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.filter__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(19, 80, 172, 0.3);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 91, 195, 0.4);
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.filter-btn--active {
  background: linear-gradient(135deg, #ffffff, var(--bg-alternate));
  color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.filter-btn--active:hover {
  background: linear-gradient(135deg, var(--bg-alternate), #ffffff);
  color: var(--accent-secondary);
}

/* ---------- FEATURED PROJECT SECTION ---------- */
.featured-section {
  padding: 40px 0 80px;
  position: relative;
  z-index: 2;
}

/* ---------- PROJECTS SECTION ---------- */
.projects-section {
  padding: 0 0 100px;
  position: relative;
  z-index: 2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

/* ---------- PROJECT CARD ---------- */
.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-medium);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 43, 91, 0.12);
  border-color: var(--accent-primary);
}

.project-card--featured {
  grid-column: span 2;
}

.project-card__image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.project-card--featured .project-card__image {
  min-height: 400px;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.project-card:hover .project-card__image img {
  transform: scale(1.1);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 26, 53, 0.95) 0%, rgba(0, 26, 53, 0.7) 40%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-medium);
  z-index: 2;
}

.project-card:hover .project-card__content {
  transform: translateY(0);
  opacity: 1;
}

.project-card--featured .project-card__content {
  padding: 40px;
}

.project-card__category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.project-card--featured .project-card__title {
  font-size: 1.75rem;
}

.project-card__desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  margin-top: 8px;
}

.project-card__link:hover {
  color: var(--accent-primary);
}

.project-card__link svg {
  transition: transform var(--transition-fast);
}

.project-card__link:hover svg {
  transform: translateX(4px);
}

/* Hidden state for filter */
.project-card.hidden {
  display: none;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #001a35;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  color: #ffffff;
}

.footer__main {
  padding: 72px 0 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

/* White logo card */
.footer__logo-card {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.footer__logo-card:hover {
  transform: translateY(-2px);
}

.footer__logo-img {
  max-height: 48px;
  max-width: 80%;
  width: auto;
  height: auto;
  display: block;
}

.footer__col-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  text-transform: none;
}

.footer__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__text {
  color: #b3cae6;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: #b3cae6;
  flex-shrink: 0;
}

/* Rounded border box button */
.footer__office-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 18px;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  width: fit-content;
  background: transparent;
}

.footer__office-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.footer__office-btn .footer__icon {
  color: #ffffff;
}

/* Social Media circular icons */
.footer__social-row {
  display: flex;
  gap: 12px;
}

.footer__social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001a35;
  transition: all var(--transition-fast);
}

.footer__social-circle:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer__social-circle svg {
  width: 16px;
  height: 16px;
}

/* Proud partners section */
.footer__col-partners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__partner-card {
  width: 72px;
  height: 48px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-fast);
  padding: 4px;
}

.footer__partner-card:hover {
  transform: translateY(-2px);
}

.footer__partner-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
}

/* Bottom elements styling */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-link {
  color: #b3cae6;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover {
  color: #ffffff;
}

.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__copyright {
  color: #b3cae6;
  font-size: 0.85rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background-color: transparent;
  color: var(--accent-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--accent-secondary);
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(19, 80, 172, 0.25);
  cursor: pointer;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(19, 80, 172, 0.35);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root {
    --container-padding: 0 24px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card--featured {
    grid-column: span 2;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 24px;
  }

  .navbar__nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(230, 238, 247, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(15, 43, 91, 0.08);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-column: span 1;
  }

  .filter__header {
    margin-bottom: 40px;
  }

  .filter__title {
    font-size: 1.75rem;
  }

  .filter__desc {
    font-size: 0.9rem;
  }

  .filter__wrapper {
    gap: 12px;
  }

  .filter-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
