
/* ======================================================
   RESET & BASE STYLES
   ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Tajawal', sans-serif;
    font-weight: 200;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* ======================================================
   HEADER & NAVIGATION
   ====================================================== */
.header {
    position: fixed;
    top: 20px;
    left: 80px;
    right: 80px;
    padding: 20px 0;
    background: #fff;
    z-index: 1000;
}

.navbar {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 33px;
    letter-spacing: 1.5px;
    color: #777;
    text-decoration: none;
    font-weight: 200;
}

.nav-links a {
    margin-left: 30px;
    font-size: 16px;
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000;
}

/* ======================================================
   MAIN CONTENT DEFAULT
   ====================================================== */
.main-content {
    flex: 1;
    margin: 150px auto 0 auto;  /* push below header */
    max-width: 1140px;
    padding-bottom: 60px;
    text-align: center;
}

.main-image {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    height: auto;
}

/* ======================================================
   FOOTER (STATIC & RESPONSIVE)
   ====================================================== */
.footer {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 0;
    background: #fff;
    border-top: 0.5px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .social-icons img {
    height: 16px;
    margin-right: 15px;
}

.footer .copyright {
    font-size: 13px;
    color: #999;
    text-align: right;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    .footer .social-icons {
        margin-bottom: 10px;
    }
    .footer .copyright {
        width: 100%;
        text-align: left;
        margin-top: 0;
    }
}

/* ======================================================
   ABOUT PAGE SPECIFIC STYLES
   ====================================================== */
body.about-page .main-content {
  width: 600px;
  margin: 140px 150px 80px auto; /* top, right, bottom, left */
  text-align: justify;
  text-align-last:;
  color: #777;
  font-size: 15px;
  line-height: 1.7;
}


body.about-page .main-content h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #333;
}

body.about-page .main-content h2 {
    font-size: 18px;
    line-height: 1.3;
    margin: 60px 0 20px;
    color: #333;
}

body.about-page .main-content p {
    margin-bottom: 24px;
}

body.about-page .main-content ul {
    margin-bottom: 40px;
    list-style: none;
    padding-left: 0;
}

body.about-page .main-content ul li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 16px;
}

body.about-page .main-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}



/* ============contact page==========================================*/"

/* === FINAL CONTACT PAGE — FIXED RIGHT & WIDER === */

body.contact-page .main-content {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-weight: 200;
  padding: 160px 0 100px 0;
  padding-bottom: 200px !important;
  position: relative;
}

.footer{
    position: static !important;
}

body.contact-page .contact-section {
  width: 600px;
  position: absolute;
  right: 140px;
  text-align: left;
  padding-top:60px;
}

body.contact-page .contact-section h2 {
  font-size: 16px;
  font-weight: 200;
  color: #333;
  margin-bottom: 24px;
}

body.contact-page .contact-section p {
  font-size: 16px;
  font-weight: 200;
  color: #444;
  margin-bottom: 40px;
}

body.contact-page .contact-form input,
body.contact-page .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 14px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 200;
  border: 1px solid #aaa;
  background-color: #fff;
  color: #333;
  border-radius: 0;
  box-sizing: border-box;
}

body.contact-page .contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

body.contact-page .contact-form button {
  background: none;
  color: #000;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 200;
  cursor: pointer;
  transition: opacity 0.3s ease;
  float: right;
}

body.contact-page .contact-form button:hover {
  opacity: 0.6;
}


   /* =====================================================
   FROM THE ARCHIVE – YOUR ACTUAL FIVE LINKS GRID
   ===================================================== */
body.archive-page .archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
  padding-top: 240px;
}



.archive-intro {
  position: absolute;
  right: 140px;
  top: 160px; /* adjust if needed */
  width: 600px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  text-align-last: right;
  white-space: pre-line;
}


body.archive-page .archive-grid a {
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}



body.archive-page .archive-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* modern, cover-scale */
  transition: transform 0.3s ease;
}

/* 60% dark overlay, hidden by default */
body.archive-page .archive-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* White title text, centered */
body.archive-page .archive-grid a .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Hover & focus state */
body.archive-page .archive-grid a:hover::before,
body.archive-page .archive-grid a:focus::before {
  opacity: 1;
}
body.archive-page .archive-grid a:hover .title,
body.archive-page .archive-grid a:focus .title {
  opacity: 1;
}
body.archive-page .archive-grid a:hover img,
body.archive-page .archive-grid a:focus img {
  transform: scale(1.05);
}

/* Responsive – 2 columns on small screens */
@media (max-width: 568px) {
  body.archive-page .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 40px 5%;
  }
}

/* ======================================================
   WORK PAGE GRID STYLES (same as archive page)
   ====================================================== */
body.work-page .archive-grid {
  margin: 120px 80px 60px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 10px;
}

body.work-page .archive-grid a {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1 / 1;
}

body.work-page .archive-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

body.work-page .archive-grid a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.work-page .archive-grid a .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

body.work-page .archive-grid a:hover::before,
body.work-page .archive-grid a:focus::before {
  opacity: 1;
}

body.work-page .archive-grid a:hover .title,
body.work-page .archive-grid a:focus .title {
  opacity: 1;
}

body.work-page .archive-grid a:hover img,
body.work-page .archive-grid a:focus img {
  transform: scale(1.05);
}

@media (max-width: 568px) {
  body.work-page .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 40px 5%;
  }
}

.archive-grid {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}









.project-detail {
  justify-content: space-between;
  max-width: 600px;    /* match your site width */
  margin: 0 auto;
  padding: 40px 1px;   /* match your other sections */
  margin-left: 600px;
  text-align: justify;
  text-align-last:;
  color: #777;
  font-size: 15px;
  line-height: 1.7;
}
.project-media {
  flex: 0 0 60%;        /* adjust if you need more/less width */
}
.project-description {
  flex: 0 0 35%;
  text-align: right;
  text-align: justify;
}
.project-description h1,
.project-description p {
  font-family: inherit;
  font-size:    inherit;
  line-height:  inherit;
  color:        inherit;
  margin:       0;
}
.project-description h1 {
  margin-bottom: 16px;  /* match your headers’ spacing */
  font-weight:    bold;
}
.project-year {
  font-weight: normal;
}

/* shrink each image to 80% of its container, centered */
.image-gallery img {
  width:      100%;      /* ↓ change this % to whatever “smaller” means for you */
  max-width:  1150px;    /* ↑ optionally cap the width in pixels */
  height:     auto;
  display:    block;
  margin:     0 auto 1rem;
  cursor:     pointer;
}



/* ===========================================
   UNIVERSAL MOBILE FIX FOR ALL PAGES
   =========================================== */
@media (max-width: 768px) {

  body {
    padding: 0 10px;
    font-size: 14px;
  }

  .header {
    left: 20px;
    right: 20px;
    top: 10px;
    padding: 10px 0;
  }

  .logo {
    font-size: 20px;
  }

  .nav-links a {
    margin-left: 10px;
    font-size: 13px;
  }

  .main-content {
    margin: 100px 10px 20px 10px;
    padding: 0;
    max-width: 100%;
    text-align: left;
  }

  .project-detail {
    margin: 0;
    padding: 20px 10px;
    max-width: 100%;
  }

  .project-description {
    text-align: left;
    font-size: 14px;
    padding: 0 5px;
  }

  .project-description h1 {
    font-size: 18px;
  }

  .image-gallery img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  body.about-page .main-content {
    width: auto;
    margin: 100px 10px 20px 10px;
    font-size: 14px;
    text-align: left;
  }

  body.contact-page .main-content {
    padding: 100px 10px 60px 10px;
  }

  body.contact-page .contact-section {
    width: auto;
    position: static;
    padding-top: 40px;
  }

  .footer {
    flex-direction: column;
    padding: 20px;
    text-align: left;
  }

  .footer .copyright {
    text-align: left;
    width: 100%;
  }
}



/* ====================================
   FIX STRETCHED SOCIAL ICONS ON MOBILE
   ==================================== */

.image-gallery figure img {
  width: 100%;
  max-width: 1150px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  cursor: pointer;
}

.footer .social-icons img {
  width: auto !important;
  height: 16px !important;
  display: inline-block;
  object-fit: contain;
  margin-right: 10px;
}








