/* =========================================================
   GLOBAL RESET
========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body{

    font-family:'Montserrat',sans-serif;

    background:
    linear-gradient(
    135deg,
    #f7fff7 0%,
    #ffffff 50%,
    #f4fff5 100%);

    color:var(--text);

    overflow-x:hidden;

    line-height:1.6;
}
img {
  max-width: 100%;
  display: block;
}



/* =========================================================
   NAVIGATION
========================================================= */
.main-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  position: relative;
}

.main-header nav a {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 10px 14px;

  color: #062c63;

  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  border-radius: 7px;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.main-header nav a:hover,
.main-header nav a.active {
  background: #062c63;
  color: #fff;

  transform: translateY(-1px);
}

.main-header nav a i {
  font-size: 14px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */
.menu-toggle {
  display: none;

  border: none;
  outline: none;

  background: #062c63;
  color: #fff;

  width: 44px;
  height: 44px;

  border-radius: 8px;

  font-size: 24px;

  cursor: pointer;

  align-items: center;
  justify-content: center;
}


/* =========================================================
   SCROLL PROGRESS
========================================================= */
#scroll-progress {
  position: fixed;

  top: 0;
  left: 0;

  height: 4px;
  width: 0;

  background: linear-gradient(
    90deg,
    #1e40af,
    #047857,
    #f59e0b
  );

  z-index: 2000;
}


/* =========================================================
   PROJECT GALLERY SECTION
========================================================= */
#gallery {
  width: 100%;

  padding: 60px 20px;

  min-height: auto;

  display: block;
}

.glass-card {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  padding: 30px;

  border-radius: 18px;

  background: rgba(255,255,255,0.92);

  box-shadow:
    0 10px 35px rgba(0,0,0,0.12);

  overflow: hidden;
}

.glass-card > h3 {
  margin: 0 0 30px;

  text-align: center;

  color: #062c63;

  font-size: clamp(1.5rem, 3vw, 2.2rem);
}


/* =========================================================
   GALLERY GRID
========================================================= */
.gallery-grid {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 25px;
}


/* =========================================================
   PROJECT CARD
========================================================= */
.gallery-item {
  width: 100%;

  background: #fff;

  border-radius: 14px;

  overflow: hidden;

  cursor: pointer;

  box-shadow:
    0 5px 18px rgba(0,0,0,0.12);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  border: 1px solid rgba(6,44,99,0.08);
}

.gallery-item:hover {
  transform: translateY(-6px);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.18);
}


/* =========================================================
   FIXED PROJECT IMAGE SIZE
========================================================= */
.gallery-item > img {
  width: 100%;

  /*
     Fixed visual height for every project image.
     All project cards will therefore have the same size.
  */
  height: 230px;

  object-fit: cover;

  object-position: center;

  background: #f1f5f9;

  transition: transform 0.35s ease;
}

.gallery-item:hover > img {
  transform: scale(1.04);
}


/* =========================================================
   PROJECT NAME
========================================================= */
.project-name {
  min-height: 55px;

  margin: 0;

  padding: 14px 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  color: #062c63;

  font-size: 15px;

  line-height: 1.35;

  font-weight: 600;

  background: #fff;
}


/* =========================================================
   DOWNLOAD SAMPLE PROJECT BUTTON
========================================================= */
#sample-project-link {
  width: 100%;

  padding: 40px 20px !important;

  text-align: center;
}

#sample-project-link button {
  background: #1e40af;

  color: #fff;

  border: none;

  padding: 13px 26px;

  min-height: 50px;

  border-radius: 9px;

  font-size: clamp(1rem, 2vw, 1.25rem);

  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 5px 15px rgba(30,64,175,0.25);

  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

#sample-project-link button:hover {
  background: #3b82f6;

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(30,64,175,0.3);
}


/* =========================================================
   PROJECT IMAGE MODAL
========================================================= */
.modal {
  display: none;

  position: fixed;

  inset: 0;

  z-index: 3000;

  width: 100%;
  height: 100%;

  padding: 20px;

  background: rgba(0,0,0,0.82);

  align-items: center;
  justify-content: center;

  overflow-y: auto;
}


/* =========================================================
   MODAL CONTENT
========================================================= */
.modal-content {
  position: relative;

  width: 100%;
  max-width: 1000px;

  max-height: 92vh;

  padding: 25px;

  background: #fff;

  border-radius: 16px;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.35);

  overflow-y: auto;

  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* =========================================================
   MODAL CLOSE BUTTON
========================================================= */
.close {
  position: absolute;

  top: 10px;
  right: 15px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.9);

  color: #333;

  border-radius: 50%;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  z-index: 10;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.close:hover {
  background: #ef4444;
  color: #fff;
}


/* =========================================================
   MODAL BODY
========================================================= */
.modal-body {
  width: 100%;

  display: grid;

  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);

  align-items: center;

  gap: 25px;
}


/* =========================================================
   MODAL IMAGE WRAPPER
========================================================= */
.image-wrapper {
  width: 100%;

  display: flex;

  align-items: center;
  justify-content: center;
}


/* =========================================================
   FIXED MODAL IMAGE SIZE
========================================================= */
#modal-img {
  width: 100%;

  /*
     Fixed maximum dimensions.
     Image will never become excessively large.
  */
  max-width: 600px;

  width: 600px;

  height: 400px;

  object-fit: contain;

  object-position: center;

  border-radius: 10px;

  background: #f1f5f9;

  box-shadow:
    0 5px 20px rgba(0,0,0,0.18);
}


/* =========================================================
   PROJECT DETAILS
========================================================= */
.project-details {
  width: 100%;

  min-width: 0;
}

.project-details h2,
.project-details p {
  margin: 8px 0;

  padding: 8px 10px;

  border-radius: 6px;

  font-size: 15px;

  line-height: 1.45;

  overflow-wrap: anywhere;
}

.project-details h2 {
  font-size: 19px;
}


/* =========================================================
   LABEL COLORS
========================================================= */
.label {
  font-weight: 700;

  padding: 3px 7px;

  border-radius: 4px;
}

.title-label {
  background: #1e40af;
  color: #fff;
}

.desc-label {
  background: #047857;
  color: #fff;
}

.loc-label {
  background: #b91c1c;
  color: #fff;
}

.scope-label {
  background: #6b21a8;
  color: #fff;
}

.type-label {
  background: #92400e;
  color: #fff;
}


/* =========================================================
   MODAL CONTROLS
========================================================= */
.modal-controls {
  display: flex;

  justify-content: center;

  gap: 12px;

  margin-top: 18px;
}

#prev-btn,
#next-btn {
  width: 46px;
  height: 46px;

  border: none;

  background: #1e3a8a;

  color: #fff;

  font-size: 30px;

  line-height: 1;

  border-radius: 50%;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#prev-btn:hover,
#next-btn:hover {
  background: #3b82f6;

  transform: scale(1.05);
}

#prev-btn:disabled,
#next-btn:disabled {
  opacity: 0.4;

  cursor: not-allowed;

  transform: none;
}


/* =========================================================
   FORM MODAL
========================================================= */
.form-modal {
  display: none;

  position: fixed;

  inset: 0;

  z-index: 4000;

  width: 100%;
  height: 100%;

  padding: 20px;

  background: rgba(0,0,0,0.72);

  align-items: center;
  justify-content: center;
}

.form-modal-content {
  position: relative;

  width: 100%;
  max-width: 430px;

  padding: 30px;

  background: #fff;

  border-radius: 14px;

  box-shadow:
    0 20px 50px rgba(0,0,0,0.3);
}

.form-modal-content h2 {
  margin-top: 0;

  padding-right: 25px;

  color: #062c63;

  font-size: 22px;
}

.form-modal-content input {
  width: 100%;

  min-height: 45px;

  padding: 10px 12px;

  margin: 7px 0;

  border: 1px solid #ccc;

  border-radius: 7px;

  outline: none;

  font-size: 15px;
}

.form-modal-content input:focus {
  border-color: #1e40af;

  box-shadow:
    0 0 0 3px rgba(30,64,175,0.12);
}

.form-modal-content button {
  width: 100%;

  min-height: 46px;

  margin-top: 10px;

  padding: 10px;

  background: #1e40af;

  color: #fff;

  border: none;

  border-radius: 8px;

  cursor: pointer;

  font-size: 16px;

  font-weight: 600;

  transition: background 0.2s ease;
}

.form-modal-content button:hover {
  background: #3b82f6;
}

.form-modal-content button:disabled {
  background: #999;

  cursor: not-allowed;
}

.form-close {
  position: absolute;

  top: 10px;
  right: 15px;

  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #333;

  font-size: 25px;

  cursor: pointer;
}

.form-close:hover {
  color: #ef4444;
}


/* =========================================================
   FORM MESSAGES
========================================================= */
.form-message {
  display: none;

  margin-top: 12px;

  padding: 10px;

  border-radius: 7px;

  font-weight: 500;

  text-align: center;
}

.form-success {
  background: #d1fae5;
  color: #065f46;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
}


/* =========================================================
   FOOTER RESPONSIVENESS
========================================================= */
.site-footer {
  width: 100%;

  overflow: hidden;
}

.footer-container {
  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

  padding: 30px 20px;

  text-align: center;
}

.footer-columns {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 30px;
}

.footer-col {
  min-width: 0;

  line-height: 1.7;
}

.social-icons {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 15px;

  margin-top: 20px;
}

.social-icons a {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  text-decoration: none;
}


/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1000px) {

  .main-header {
    padding: 10px 18px;
  }

  .main-header h1 {
    font-size: 1.2rem;
  }

  .main-header nav {
    gap: 3px;
  }

  .main-header nav a {
    padding: 9px 10px;

    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
  }

  .gallery-item > img {
    height: 240px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  #modal-img {
    width: 100%;

    max-width: 650px;

    height: 380px;
  }

  .project-details {
    width: 100%;
  }
}


/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {

  /* Top bar */
  .top-bar {
    position: relative;

    justify-content: center;

    padding: 7px 10px;

    gap: 7px 15px;

    font-size: 11px;
  }

  /* Header */
  .main-header {
    position: sticky;

    top: 0;

    padding: 9px 12px;

    min-height: 66px;
  }

  .main-header .logo {
    gap: 7px;
  }

  .main-header .logo img {
    width: 43px;
    height: 43px;
  }

  .main-header h1 {
    font-size: 1rem;

    white-space: normal;

    line-height: 1.15;
  }

  /* Hamburger */
  .menu-toggle {
    display: flex;

    flex-shrink: 0;
  }

  /* Mobile navigation */
  .main-header nav {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    padding: 10px;

    background: #fff;

    box-shadow:
      0 8px 15px rgba(0,0,0,0.12);

    flex-direction: column;

    align-items: stretch;

    gap: 5px;
  }

  .main-header nav.show {
    display: flex;
  }

  .main-header nav a {
    width: 100%;

    justify-content: flex-start;

    padding: 12px 15px;

    font-size: 15px;
  }


  /* Gallery */
  #gallery {
    padding: 35px 12px;
  }

  .glass-card {
    padding: 20px 12px;

    border-radius: 14px;
  }

  .glass-card > h3 {
    margin-bottom: 20px;

    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  /*
     Mobile image size.
     Every image remains exactly the same visual height.
  */
  .gallery-item > img {
    width: 100%;

    height: 230px;

    object-fit: cover;
  }

  .project-name {
    min-height: auto;

    padding: 12px 10px;

    font-size: 14px;
  }


  /* Sample button */
  #sample-project-link {
    padding: 25px 15px !important;
  }

  #sample-project-link button {
    width: 100%;

    max-width: 340px;

    padding: 13px 15px;

    font-size: 1rem;
  }


  /* Image modal */
  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 100%;

    max-height: 95vh;

    padding: 35px 15px 18px;

    border-radius: 12px;
  }

  .modal-body {
    display: flex;

    flex-direction: column;

    gap: 15px;
  }

  #modal-img {
    width: 100%;

    /*
       Fixed mobile modal image size.
       It scales to container width but keeps a fixed height.
    */
    height: 260px;

    max-width: 100%;

    object-fit: contain;
  }

  .project-details h2,
  .project-details p {
    font-size: 13px;

    margin: 6px 0;

    padding: 8px;
  }

  .project-details h2 {
    font-size: 16px;
  }

  .modal-controls {
    margin-top: 12px;
  }

  #prev-btn,
  #next-btn {
    width: 43px;
    height: 43px;

    font-size: 27px;
  }


  /* Form modal */
  .form-modal {
    padding: 12px;
  }

  .form-modal-content {
    padding: 25px 18px;

    border-radius: 12px;
  }

  .form-modal-content h2 {
    font-size: 20px;
  }


  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .footer-container {
    padding: 25px 15px;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */
@media (max-width: 480px) {

  .top-bar {
    font-size: 10px;

    gap: 5px 10px;
  }

  .main-header {
    padding: 8px 10px;
  }

  .main-header .logo img {
    width: 38px;
    height: 38px;
  }

  .main-header h1 {
    font-size: 0.88rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;

    font-size: 21px;
  }

  #gallery {
    padding: 25px 8px;
  }

  .glass-card {
    padding: 18px 10px;
  }

  .gallery-item > img {
    height: 200px;
  }

  #modal-img {
    height: 220px;
  }

  .modal-content {
    padding: 35px 12px 15px;
  }

  .close {
    top: 7px;
    right: 8px;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */
@media (max-width: 360px) {

  .main-header h1 {
    font-size: 0.8rem;
  }

  .gallery-item > img {
    height: 180px;
  }

  #modal-img {
    height: 200px;
  }
}

