/* Reset & Base */
/* Reset & Base */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Helvetica, sans-serif;
  background-color: #fff;
  color: #000;
  padding: 40px;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  transition: background-color 0.3s ease;
  
}
.logo {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Project Titles */
.projects h2, .project span {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Helvetica, sans-serif;
  background-color: #fff;
  color: #000;
  padding: 40px;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar-container {
  max-width: 1365px;
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: auto; /* Pushes the logo to the left */
}
.logo a {
  text-decoration: none;
  color: #000;
}


.nav-links, .hamburger {
  margin-left: auto; /* Pushes links and hamburger to the right */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #aaa;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links .active {
  color: #000;
  font-weight: 700;
}
/* Hero */
.hero {
  max-width: 700px;
  margin-bottom: 80px;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  color: #444;
}

/* Projects */
.projects h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

/* Project Cards */
.project {
  position: relative;
  overflow: hidden;
  background-color: #ffffff00;
  color: #fff;
  transition: transform 0.3s ease, opacity 0.5s ease;
  animation: fadeInUp 0.6s ease forwards;
}
.project img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.project:hover img {
  transform: scale(1.05);
}
.project::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 2;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}
.project:hover::before,
.project:hover span {
  opacity: 1;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background-color: #fff;
  color: #000;
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid #eee;
}
.footer h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.footer a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}
.footer a:hover {
  text-decoration: underline;
}

/* Hamburger */
.hamburger {
  display: none; /* visible only on mobile via media query */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  /* Mobile nav styles */
  nav {
    position: absolute;
    top: 80px;
    right: 40px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    padding: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  nav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* Hamburger open state to cross */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project {
    grid-column: span 2 !important;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .project {
    grid-column: span 1 !important;
  }
}



/* Project Page CSS */
/* Project Page Styling */

.hero-image {
  width: 100vw;
  margin-left: calc(50% - 50vw); /* Full-width trick */
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px; /* Add 40px space below */
}

.project-description {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; /* space between description text and images */
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 0; /* Remove left padding */
  text-align: left;
  margin-bottom: 40px; /* Add 40px space below */
}

.project-description p {
  max-width: 70ch;
}



/* Make images full width inside the grid */
.project-gallery .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.project-gallery .project-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Page Specific Styling */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start; /* Top-aligned */
  gap: 40px;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  display: block;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-section ul {
  list-style: disc;
  padding-left: 20px;
}
.about-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    margin: 0 auto;
  }

  .about-text {
    text-align: left;
  }
}


.contact-grid {
  display: grid;
  grid-template-columns: 2.3fr 0.7fr; /* image gets more space */
  align-items: start;
  gap: 40px;
}

.contact-image img {
  width: 100%;
  max-width: 1200px; /* previously 300px */
  display: block;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-image img {
    margin: 0 auto;
  }

  .contact-text {
    text-align: left;
  }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-family: 'Roboto Slab', serif;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  resize: vertical;
}

.contact-form button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #333;
}

video {
      width: 100%;
      height: auto;
      display: block;
      padding: 40px;
    }