@font-face {
  font-family: 'ManoloMono';
  src: url('./fonts/manolomono.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    overflow-y: auto;
    font-family: 'ManoloMono', system-ui, sans-serif;
    /* Replace these background properties */
    background-image: url('Media/RoomBB.png');  /* Placeholder - replace with your image path later */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #111;
}

/* Header styles */
.site-header {
    width: 100%;
    background: rgb(255, 255, 255);
    padding: 25px 28px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.site-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Changed from center to space-between */
    align-items: center;
}

.site-header h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    font-family: 'ManoloMono', system-ui, sans-serif;
    background: url('Media/Room.png') fixed;
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    color: black;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

/* Add new styles for header navigation */
.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-nav .nav-btn {
    padding: 8px 20px;
    font-size: 16px;
}

/* Top fixed name styling */
.top-name {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;   /* place name + image higher on the page */
    padding: 60px 20px 20px;       /* top padding controls how high; adjust value as needed */
    box-sizing: border-box;
}

.top-name h1 {
    margin: 0;
    font-family: 'ManoloMono', system-ui, sans-serif;
    font-size: 30px;
    font-weight: 700; /* make name bold on both pages */
    color: #111;
}

.name-image {
    margin-top: 120px;  /* Increased to account for fixed header */
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.name-image img {
    height: 400px;         /* increased from 400px */
    width: auto;
    display: block;
    max-width: 110%; 
    object-fit: contain;    /* increased from 100% to allow larger images */
}

.nav-buttons {
    margin-top: 10px;
    display: flex;
    gap: 40px;        /* increased from 20px to 40px */
    justify-content: center;
}

.nav-btn {
    padding: 10px 30px;    /* increased horizontal padding from 30px to 40px */
    font-size: 18px;
    font-family: 'ManoloMono', system-ui, sans-serif;
    background-color: transparent;
    border: 2px solid #111;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: #111;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #111;
    color: rgb(255, 255, 255);
}

.nav-btn.active {
    background-color: #111;
    color: rgb(255, 255, 255);
}

.portfolio-container {
    background-color:rgb(255, 255, 255); ;
}

.portfolio-grid {
    margin: 40px auto;  /* Changed to auto for horizontal centering */
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 5000px;
    background-color: rgba(206, 206, 206, 0);
    padding: 40px;
    border-radius: 10px;
}

.portfolio-item {
    flex: 0 1 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.portfolio-item img {
    width: 80%;
    height: 80%;
    object-fit: contain;   /* changed from cover to maintain aspect ratio */
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.portfolio-item:hover .portfolio-link {
    transform: scale(1.05);
}

.portfolio-title {
    font-family: 'ManoloMono', system-ui, sans-serif;
    font-size: 24px;
    color: #111;
    margin: 0;
    text-align: center;
    padding: 10px;
}

/* Optional: Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* About page: image beside description */
.about-content {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-grid {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* stacks on small screens */
  width: 100%;
    max-width: 1000px;
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 10px;
}

/* photo box */
.about-photo img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.08);
}

/* text column */
.about-text {
  flex: 1 1 420px;
  min-width: 260px;
}

.about-text h2 {
  margin-top: 0;
  font-family: 'ManoloMono', system-ui, sans-serif;
  font-size: 30px;
}

.about-text p {
  font-family: 'ManoloMono', system-ui, sans-serif;
  line-height: 1.6;
  color: #222;
}

/* responsive: stack vertically on narrow screens */
@media (max-width: 700px) {
  .about-grid {
    flex-direction: column;
    gap: 20px;
  }
  .about-photo img {
    width: 100%;
    height: auto;
  }
}

/* Project detail page styles */
.project-content {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    
    
}

.project-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.project-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.project-images img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
}

.project-details {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    width: 100%;
    max-width: 1000px;
    background-color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 10px;
}

.project-side-image {
    flex: 1;
    min-width: 300px;
}

.project-side-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.project-description {
    flex: 1;
    min-width: 300px;
    font-family: 'ManoloMono', system-ui, sans-serif;
    line-height: 1.6;
    margin-bottom: 40px;
}

.project-description h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.project-gallery {
    margin-top: 60px;
     max-width: 1000px;
    background-color: rgb(255, 255, 255);
    padding: 40px;
    border-radius: 10px;
}

.project-gallery h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'ManoloMono', system-ui, sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.gallery-item {
    
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* footer styles (applies site-wide) */
.site-footer {
  width: 100%;
  background: rgb(255, 255, 255);
  padding: 36px 28px;        /* increased vertical and horizontal padding */
  box-sizing: border-box;
  margin-top: 60px;          /* give more separation from content */
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 32px;                 /* slightly larger gap between columns */
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.site-footer h4 {
  margin: 0 0 8px;
  font-size: 18px;           /* slightly larger heading */
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  font-size: 15px;           /* slightly larger body text */
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,0,0,0.15);
}

@media (max-width: 700px) {
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: center;
  }
}

/* Make project details responsive */
@media (max-width: 768px) {
    .project-details {
        flex-direction: column;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

.project-video video {
    width: 200%;
    max-width: 600px;   /* set a maximum width */
    height: auto;
    border-radius: 8px;
    background: #f0f0f0;
    display: block;
    margin: 0 auto;     /* center the video horizontally */
}

/* Optional: Add a container to help with centering */
.portfolio-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}