/* 
 * Majaz Architectural Competition Website CSS
 * Version: 2.0 - Updated with new header layout and hero image fixes
 * Last Modified: 2025
 */

/* Import fonts that match the image */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700&family=Noto+Sans+Arabic:wght@300;400;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
  background: #000;
  color: #ccc;
  direction: rtl;
  padding-top: 220px; /* Account for fixed header and nav */
}

/* Ensure proper spacing for scroll pages */
body.scroll-page {
  padding-top: 220px;
}

/* Fixed Header Container */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  z-index: 2000;
}

/* Header text centered */
.header-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-container h1 {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', serif;
  font-size: 2.8rem;
  color: #fff;
  font-weight: 400;
  margin: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.header-container p {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
  font-size: 1.4rem;
  color: #ccc;
  font-weight: 300;
  margin: 0;
  letter-spacing: 1px;
}

/* Logo positioned to the right of the centered text */
.logo-container {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
}

.logo-container img {
  height: 120px;
  transition: all 0.3s ease;
}

.logo-container img:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Navigation below header - separate */
nav {
  position: fixed;
  top: 160px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 1.2rem 2rem;
  z-index: 1500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a {
  color: #00cfd4;
  text-decoration: none;
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  position: relative;
}

nav a:hover {
  color: #333;
  background-color: rgba(0, 207, 212, 0.1);
  transform: translateY(-1px);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00cfd4;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 70%;
}

/* For pages without scroll effect (simple header) */
header {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 160px;
  border-bottom: 1px solid #333;
}

header .logo {
  height: 120px;
}

header h1 {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', serif;
  font-size: 2.8rem;
  color: #fff;
  margin: 0;
  font-weight: 400;
}

/* Hero Section - UPDATED to show full image height */
.hero-frame {
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: none;
}

/* Main Content */
main {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
  line-height: 1.8;
  background-color: #000;
  min-height: calc(100vh - 220px);
}

main.page {
  background-color: #000;
  color: #ccc;
  min-height: 60vh;
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
}

main h2 {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', serif;
  color: #00cfd4;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-size: 2.2rem;
  font-weight: 600;
}

main.page h2 {
  color: #00cfd4;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', serif;
}

main.page p {
  color: #ccc;
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 400;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  color: #333;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #eee;
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
}

.footer-icons {
  margin: 1rem 0;
}

.footer-icons img {
  width: 28px;
  height: 28px;
  margin: 0 1rem;
  transition: all 0.3s ease;
  opacity: 0.7;
  filter: grayscale(100%);
}

.footer-icons img:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
  filter: grayscale(0%);
}

.developer-link {
  color: #00cfd4;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.developer-link:hover {
  text-decoration: underline;
  color: #333;
  transform: translateY(-1px);
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  body {
    padding-top: 200px;
  }
  
  body.scroll-page {
    padding-top: 200px;
  }
  
  .header-container {
    height: 140px;
    padding: 1rem;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
  
  .header-text {
    order: 2;
  }
  
  .header-container h1 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
  
  .header-container p {
    font-size: 0.8rem;
  }
  
  .logo-container {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    order: 1;
    align-self: center;
  }
  
  .logo-container img {
    height: 60px;
  }
  
  .logo-container img:hover {
    transform: scale(1.05);
  }
  
  nav {
    top: 140px;
    gap: 1rem;
    padding: 0.8rem 0.5rem;
    flex-wrap: wrap;
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  main {
    padding: 2rem 1rem;
  }
  
  main h2 {
    font-size: 1.8rem;
  }
  
  .hero-frame img {
    height: auto;
    max-height: none;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #00cfd4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00a8ac;
}

/* Add some nice animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main.page {
  animation: fadeInUp 0.8s ease-out;
}

/* Enhanced button styles for future use */
.btn {
  font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00cfd4 0%, #00a8ac 100%);
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 207, 212, 0.3);
}

/* Force cache refresh - update this comment when making changes */
/* Cache Version: 2.0 - December 2024 */