/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  /* Hero Video Background */
  .hero {
    position: relative;
    overflow: hidden;
  }

  .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }


  .hero-bg-video {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.20;
    /* control the opacity as you need */
    pointer-events: none;
  }

  .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 8px;
    /* opacity: 0.3; */
    /* Adjust opacity as needed */
  }

  .hero-content {
    position: relative;
    z-index: 1;
  }

  /* Typing effect cursor */
  .cursor {
    display: inline-block;
    width: 2px;
    background-color: #666;
    margin-left: 2px;
    animation: blink 1s infinite;
  }

  @keyframes blink {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0;
    }
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #ffffff;
  cursor: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #e18431;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}

.cursor-follower {
  width: 8px;
  height: 8px;
  background-color: #e18431;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  display: flex;
  gap: 8px;
}

.loader-dot {
  width: 12px;
  height: 12px;
  background-color: #e18431;
  border-radius: 50%;
  animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loader-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  /* padding: 20px 0; */
  transition: all 0.3s ease;
}

.navbar.scrolled {
  /* padding: 15px 0; */
  padding: 0px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 24px;
  font-weight: 900;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: 10px;
  margin-left: 10px;
}

.nav-logo:hover {
  color: #e18431;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: #000;
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #e18431;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e18431;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: #000;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #666;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-line {
  width: 100px;
  height: 3px;
  background-color: #e18431;
  margin: 0 auto;
}

/* Projects Section */
.projects {
  padding: 120px 0;
  background-color: #ffffff;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
  color: #000;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 40px 30px 30px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-category {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 300;
}

/* About Page */
.about-page {
  padding: 140px 0 100px;
  min-height: 100vh;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #666;
}

.about-skills {
  margin: 50px 0;
}

.about-skills h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #e18431;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #666;
}

.about-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Contact Page */
.contact-page {
  padding: 140px 0 100px;
  min-height: 100vh;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
  line-height: 1.2;
}

.contact-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 50px;
  color: #666;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e18431;
  margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
  color: #666;
  text-decoration: none;
}

.contact-item a:hover {
  color: #e18431;
}

/* Contact Form */
.contact-form {
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #000;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e18431;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Project Detail Page */
.project-detail {
  padding: 140px 0 100px;
}

.project-header {
  text-align: center;
  margin-bottom: 60px;
}

.project-detail-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.project-detail-subtitle {
  font-size: 1.3rem;
  color: #e18431;
  font-weight: 300;
}

.project-info {
  margin-bottom: 60px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 8px;
}

.meta-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e18431;
  margin-bottom: 8px;
}

.meta-item p {
  color: #666;
}

.project-images {
  margin-bottom: 60px;
}

.project-images img {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  border-radius: 8px;
}

.project-description {
  max-width: 800px;
  margin: 0 auto 60px;
}

.project-description h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #000;
}

.project-description h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #e18431;
}

.project-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #666;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: "Lato", sans-serif;
}

.btn-primary {
  background-color: #e18431;
  color: white;
}

.btn-primary:hover {
  background-color: #c7722a;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #000;
  border: 2px solid #000;
}

.btn-secondary:hover {
  background-color: #000;
  color: white;
}

/* Footer Styles */
.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 0 30px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 20px; */
}

.footer-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 30px;
  justify-content: center;
}

.footer-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: #ccc;
}

.footer-social {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.social-icon {
  color: #fff;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: #ccc;
}

.footer-copyright {
  color: #888;
  font-size: 14px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .footer-nav ul {
    gap: 20px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 10px 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-cta {
    justify-content: center;
  }

  .project-navigation {
    justify-content: center;
    text-align: center;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  body {
    cursor: auto;
  }

  .custom-cursor,
  .cursor-follower {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .project-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }

  .project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(40%);
  }

  .project-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
  }

  .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transition: background 0.3s ease;
  }

  .project-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

}

/* Video Play Button */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(225, 132, 49, 0.7);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.video-play-button:hover {
  background-color: rgba(225, 132, 49, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button span {
  color: white;
  font-size: 32px;
  line-height: 1;
  margin-left: 5px;
}

.project-meta.darker-bg {
  background-color: #1a1a1a;
  color: #ffffff; /* Fallback for all text, but can still be overridden */
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

/* Make only the gray <p> text inside this section fully white */
.project-meta.darker-bg p {
  color: #ffffff;
}