/* --------- FONT VARIABLES --------- */
:root {
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", Georgia, serif;
  --max-width: 1200px;
  --color-text: #000;
  --color-muted: #4d4d4d;
  --background: #fff;
  --transition: all 0.4s ease;
}

/* --------- GLOBAL STYLES --------- */
* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: var(--font-serif); color: var(--color-text); background-color: var(--background); line-height:1.6; scroll-behavior: smooth; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-sans); margin-bottom:16px; }
p,li { font-family: var(--font-serif); font-weight:400; font-size:16px; margin-bottom:24px; }
a { color: inherit; text-decoration: none; font-family: var(--font-sans); }
a:hover { text-decoration: none; }

/* --------- HEADER / NAV --------- */
.header {
  position: fixed;
  top:0; left:0; width:100%;
  background: transparent;
  z-index:1000;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px; /* match gallery */
}

.nav-left { font-size:14px; font-weight:500; }
.nav-center img { height:32px; object-fit:contain; }
.nav-right { display:flex; gap:24px; }
.nav-right a { font-size:14px; opacity:0.8; transition:opacity 0.3s ease; color: inherit; }
.nav-right a:hover { opacity:1; }
.nav-right a.selected { font-weight:600; text-decoration: underline; }

/* --------- DESKTOP HEADER LOGO CENTERING --------- */
@media (min-width: 769px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* needed for absolute centering */
    padding: 20px 32px;
  }

  /* Center logo absolutely */
  .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Ensure left/right nav stay on top */
  .nav-left,
  .nav-right {
    position: relative;
    z-index: 1;
  }
}

/* --------- DESKTOP HEADER HEIGHT --------- */
@media (min-width: 769px) {
  .header-container {
    padding: 30px 32px; /* increase top/bottom padding to make header taller */
  }
}

/* --------- MOBILE HEADER UPDATE --------- */

/* Hide mobile version by default */
.mobile-header { display: none; }

/* Tagline style */
.tagline {
  font-family: var(--font-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0px;
  margin-top: 0px;
  text-align: center;
  color: var(--color-muted);
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile styles only */
@media (max-width: 768px) {
  /* Hide desktop version */
  .desktop-header { display: none; }

  /* Show mobile header */
  .mobile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    position: relative;
  }

  .mobile-header .nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-header .nav-center img {
    height: 32px;
    margin-bottom: 4px;
  }

  .tagline { display: block; }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 16px;
    z-index: 2000;
  }

  /* Mobile dropdown nav */
  .mobile-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }

  .mobile-nav a {
    font-size: 14px;
    color: var(--color-text);
  }

  .mobile-nav.show {
    display: flex;
  }
}


/* --------- MOBILE SYMMETRIC HEADER --------- */
@media (max-width: 768px) {
  .header-container {
    padding: 16px 20px;
  }
  .nav-left,
  .nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
  }
  .nav-left { left: 20px; }
  .nav-right { right: 20px; }
  .nav-center img { height: 24px; }
}

/* --------- SPACER ABOVE CONTENT --------- */
.nav-spacer { height:120px; }
@media (max-width:768px){ .nav-spacer{height:80px;} }
@media (max-width:480px){ .nav-spacer{height:50px;} }

/* --------- GALLERY (HOME PAGE) --------- */
.gallery {
  max-width: var(--max-width);
  margin: 0 auto 80px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
  padding:0 32px;
}
.gallery-item {
  position: relative;
  display:block;
  color:inherit;
  opacity:0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-decoration:none;
}
.gallery-item.visible { opacity:1; transform:translateY(0); }

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0; /* optional */
  height: auto; /* let it expand naturally */
}

.image-wrapper img {
  width: 100%;
  height: auto; /* preserve aspect ratio */
  object-fit: contain; /* ensures full image is visible */
  display: block;
  transition: filter 0.3s ease;
}


/* --------- OVERLAY --------- */
.overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out; /* smoother, slower fade */
}

.overlay img {
  width: 95%;
  max-height: 95%;
  object-fit: contain;
  filter: brightness(1.1); /* slightly brighten the overlay image */
  transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.image-wrapper:hover .overlay img {
  transform: scale(1.03); /* subtle zoom effect */
  filter: brightness(1.5); /* a touch brighter on hover */
}

.image-wrapper:hover img {
  filter: brightness(95%); /* gentle dim on main image */
}

.gallery-item h3 {
  margin:16px 0 0px 0; /* added spacing */
  font-size:18px;
  font-weight:600;
  text-decoration:none; /* prevent underline */
}
.gallery-item p {
  font-size:14px;
  color:var(--color-muted);
  font-family: var(--font-serif);
  margin-bottom: 16px; /* spacing below image text */
}

/* --------- INFORMATION PAGE --------- */
.info-main { max-width: var(--max-width); margin:0 auto; padding:80px 32px; line-height:1.8; }
.info-main section { margin-bottom:60px; }
.info-main h2 { font-family: var(--font-sans); font-size:24px; font-weight:600; margin-bottom:16px; }
.info-main p { font-size:16px; color:var(--color-muted); margin-bottom:24px; }
.info-main ul { list-style:none; padding-left:0; }
.info-main ul li { font-size:16px; color:var(--color-muted); margin-bottom:8px; }

.intro, .founder-content { display:flex; align-items:top; justify-content:space-between; gap:40px; }
.intro .text, .founder-text { flex:1; }
.intro .image, .founder-image { flex:1; max-width:45%; }
.intro .image img, .founder-image img { width:100%; border-radius:0px; object-fit:cover; }

.contact a { color: var(--color-text); text-decoration: underline; }
.contact a:hover { opacity:0.8; }

/* --------- PROJECT PAGE --------- */
.project-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px 40px 32px; /* reduced bottom padding from 80px to 40px */
  text-align: center;
}
.project-intro h1 {
  font-size: 48px;
  margin-bottom: 12px;
}
.project-intro p {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* --------- PROJECT PAGE LARGE IMAGES --------- */
.project-images {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px 100px 32px; /* reduced top padding from 60px to 20px */
  display: flex;
  flex-direction: column;
  gap: 60px; /* space between stacked images */
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* perfectly rectangular */
  object-fit: cover;
  transition: transform 0.3s ease;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .project-images {
    padding: 20px 20px 80px 20px; /* tighter top padding on mobile too */
    gap: 40px;
  }
}

/* PROJECT PAGE VIDEO STYLING */
.project-video {
  width: 100%;
  height: 600px;
  display: block;
  object-fit: cover;
  margin-bottom: 2rem; /* same spacing as your images */
  border-radius: 0; /* or match your image corners if you use rounded edges */
}

/* --------- FOOTER --------- */
footer {
  max-width: var(--max-width);
  margin:0 auto;
  padding:40px 32px;
  font-family: var(--font-sans);
  font-size:14px;
  color: var(--color-muted);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  border-top:1px solid #eee;
}
footer a { text-decoration:underline; margin:0 4px; color:inherit; }

/* --------- RESPONSIVE --------- */
@media (max-width:768px){
  .nav-left{display:none;}
  .header{padding:16px 20px;}
  .gallery{grid-template-columns:repeat(2,1fr); padding:0 20px; gap:16px;}
  .intro, .founder-content { flex-direction: column; }
  .intro .image, .founder-image { max-width: 100%; margin-top:24px; }
  .image-gallery { grid-template-columns: 1fr; }
}
@media (max-width:480px){
  .gallery{grid-template-columns:1fr;}
}

@media (max-width: 768px) {
  .project-intro h1 {
    line-height: 1.2; /* tighten spacing between wrapped lines */
  }
}

/* --------- MOBILE HEADER (ELENA MISKA STYLE) --------- */
@media (max-width: 768px) {
  /* Hide desktop header */
  .header {
    display: none;
  }

  /* === MOBILE HEADER LOGO SIZE === */
.mobile-header .mobile-logo img {
  width: 280px;      /* adjust this number to make the logo bigger or smaller */
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;    /* keeps it centered */
}

/* === MOBILE HEADER TAGLINE SPACING === */
.mobile-header .mobile-tagline {
  font-size: 14px;        /* keep it subtle and refined */
  letter-spacing: 0px;
  margin-top: 6px;        /* space between logo and tagline */
  text-align: center;
  color: #000;            /* or whatever color you’re using for text */
}

  /* Mobile header container */
  .mobile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }

  /* Logo */
  .mobile-header .nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
  }
/* Make mobile logo slightly larger */
.mobile-header .nav-center img {
  height: 48px; /* increased from 36px */
  width: auto;
  object-fit: contain;
}

  /* Tagline below logo */
  .mobile-header .tagline {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 8px;
  }

  /* Hamburger */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
    z-index: 2000;
  }



/* Refined mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: white;
  padding: 24px 0 12px 0; /* added more padding at top for spacing */
  gap: 12px;
  border-top: none; /* removed the line */
}

  .mobile-menu a {
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
  }

  .mobile-menu.show {
    display: flex;
  }

  /* Spacer so content starts below fixed mobile header */
  .nav-spacer {
    height: 80px;
  }
}

/* -------------------- */
/* Information Page Layout */
/* -------------------- */

.information-page .founder-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.information-page .founder-text,
.information-page .founder-image {
  flex: 1;
  width: 50%;
  max-width: 50%;
  box-sizing: border-box;
}

.information-page .founder-text {
  flex: 0 0 50%;
}

.information-page .founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Adjust for laptop screens slightly smaller than desktop */
@media (max-width: 1100px) {
  .information-page .founder-content {
    gap: 40px;
    padding: 0 24px;
  }

  .information-page .founder-text,
  .information-page .founder-image {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .information-page .founder-content {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }

  .information-page .founder-text,
  .information-page .founder-image {
    width: 100%;
    max-width: 100%;
  }
}


