/* Import Big Shoulders Display Font */
@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* Header Section Styles */
.main {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 60vh;
  background-color: #000;
  overflow: hidden;
  padding: 0 20px;
  z-index: 0; /* Ensure main section is above background pattern but below navbar */
  border-bottom: 2px solid #ffffff80;
}

.heading {
  width: 600px; /* Increased width to make separator more visible */
  height: 148px;
  position: relative;
  margin-top: -150px; /* Moved to top */
  left: 85px;
  z-index: 2;
  padding-bottom: 30px; /* Increased space between heading and line */
  opacity: 0;
  transform: translateX(-100px);
  transition: all 1s ease-out;
}

.heading.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.heading h1 {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
  transition-delay: 0.3s;
}

.heading.animate-in h1 {
  opacity: 1;
  transform: translateX(0);
}

.heading h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 147.61px;
  align-content: right;
  letter-spacing: 0%;
  background: linear-gradient(to bottom, #ffffff, #999999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  margin: 60px 0 0 0;
  font-size: 100px;
}

.bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -10; /* Set to very low negative value to ensure it stays behind navbar */
  opacity: 0; /* Start hidden for animation */
  transform: translateX(100px); /* Start position from right */
  transition: all 1s ease-out;
}

.bg-pattern.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.bg-pattern img {
  width: 240px;
  height: 180px;
  position: relative;
  top: 100px;
  left: auto;
  right: -100px; /* Position from right edge */
  opacity: 0; /* Start hidden for staggered animation */
  transform: translateX(50px); /* Additional animation for the image */
  transition: all 0.8s ease-out;
  transition-delay: 0.3s; /* Delay for staggered effect */
}

.bg-pattern.animate-in img {
  opacity: 1 !important;
  transform: translateX(0);
}

/* Responsive Styles */
@media (max-width: 1440px) {
  .bg-pattern img {
    left: auto;
    right: -200px;
  }
}

@media (max-width: 768px) {
  .main {
    padding-top: 80px; /* Add top padding to prevent navbar overlap on mobile */
  }

  .heading {
    width: 400px; /* Keep specific width instead of 100% */
    left: 40px; /* Keep left positioning */
    margin-top: 40px; /* Mobile-specific margin-top */
  }

  .heading h1 {
    font-size: 80px;
    line-height: 90px;
  }

  .bg-pattern {
    z-index: -100 !important; /* Force behind navbar on mobile */
    opacity: 1 !important; /* Ensure full opacity on mobile */
  }

  .bg-pattern img {
    width: 250px;
    height: 285px;
    top: 100px;
    right: -20px;
    opacity: 1 !important; /* Force full opacity */
  }
}

@media (max-width: 480px) {
  .main {
    padding-top: 70px; /* Add top padding to prevent navbar overlap on small mobile */
  }

  .heading {
    width: 300px; /* Keep specific width instead of 100% */
    left: 20px; /* Keep left positioning */
    margin-top: 40px; /* Mobile-specific margin-top */
  }

  .heading h1 {
    font-size: 40px;
    line-height: 50px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern {
    z-index: -100 !important; /* Force behind navbar on mobile */
  }

  .bg-pattern img {
    width: 240px;
    height: 180px;
    top: 100px;
    right: -10px;
  }
}

/* About Page Specific Styles */
.about-content {
  padding: 100px 0 50px;
  min-height: 80vh;
  text-align: center;
}

.about-content h1 {
  margin-bottom: 30px;
  color: #fff;
  font-size: 48px;
}

.about-content p {
  color: #ccc;
  font-size: 18px;
}

/* About Page Header Section */
.head {
  text-align: center;
  padding-top: 120px; /* Space below navbar */
  margin-bottom: 40px;
  position: relative;
  height: auto;
}

.head h1 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 117px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

/* About Page Image Section */
.head-img {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-top: 50px; /* Space after heading */
}

.head-img img {
  width: 1200px;
  height: 500px;
  display: block;
  margin: 0 auto 50px auto; /* Center horizontally and add bottom margin */
  max-width: 100%;
}

/* About Page Text Content */
.head-img p {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
  .head {
    padding-top: 100px;
  }

  .head h1 {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .head {
    padding-top: 90px;
  }

  .head h1 {
    font-size: 60px;
    letter-spacing: 1px;
  }
}

/* Hamburger Menu Styles */
.hamberger-menu:hover {
  transform: scale(1.1);
}

.hamburger-lines {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines .line {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X animation */
.hamberger-menu.active .line1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamberger-menu.active .line2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamberger-menu.active .line3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced overlay z-index to ensure it's above everything */
.overlay {
  z-index: 99999 !important;
}

/* Prevent body scroll when menu is open */
body.nav-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* Work Section Styles */
.work-section {
  position: relative;
  background-color: #000;
  padding: 0px 0 100px 0;
  clear: both;
}

/* Desktop-only: Ensure footer appears below work content */
@media (min-width: 992px) {
  .work-section {
    padding-bottom: 150px;
    margin-bottom: 50px;
  }

  .footer-section {
    position: relative;
    clear: both;
    margin-top: 260px;
    padding-top: 60px;
  }

  .work-content-container {
    position: relative;
    margin-bottom: 50px;
  }
}

/* Work Content Styles */
.work-content-container {
  padding: 60px 40px; /* Increased padding for better spacing */
  max-width: 1400px; /* Increased width for larger cards */
  margin: 50px auto; /* Added vertical margin for separation from other sections */
  border-radius: 15px; /* Rounded corners for better appearance */
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.work-content-container.container-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.work-project {
  margin-bottom: 40px; /* Space between cards */
  padding: 30px; /* Padding inside each card */
  background-color: #1f1f1f; /* Dark gray background for cards */
  border-radius: 10px; /* Rounded corners for cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Shadow for depth */
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.work-project.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.work-project:last-child {
  margin-bottom: 0; /* No bottom margin for last project */
}

.work-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.work-content-left {
  padding: 20px;
  order: 2; /* Move text content to the right */
}

.project-title {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.work-project.animate-in .project-title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

/* Space Pirates "COMING SOON" background text */
.space-pirates-title {
  position: relative;
}

.space-pirates-title::before {
  content: "COMING SOON";
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Big Shoulders Display", sans-serif;
  transform: translate(-50%, -50%);
  font-size: 6.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  letter-spacing: 0%;
}

/* The Park "COMING SOON" background text */
.the-park-title {
  position: relative;
}

.the-park-title::before {
  content: "COMING SOON";
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Big Shoulders Display", sans-serif;
  transform: translate(-50%, -50%);
  font-size: 6.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  letter-spacing: 0%;
}

.project-credits {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out;
}

.work-project.animate-in .project-credits {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.project-credits li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #fff;
}

.text-grey {
  color: #999;
  margin-right: 10px;
}

.project-btn-wrap {
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.work-project.animate-in .project-btn-wrap {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.project-btn {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: #fff;
  color: #000;
}

.btn-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.work-content-right {
  position: relative;
  order: 1; /* Move image to the left */
}

.project-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease-out;
}

.work-project.animate-in .project-image-container {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.3s;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image-container:hover .view-overlay {
  opacity: 1;
}

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

.view-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Responsive Design for Work Content */
@media (max-width: 992px) {
  .work-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .work-content-left {
    order: 2;
    text-align: left !important;
  }

  .work-content-right {
    order: 1;
  }

  .project-title {
    font-size: 2.5rem;
  }

  /* Responsive "COMING SOON" text for tablets */
  .space-pirates-title::before {
    font-size: 4rem;
  }

  /* Responsive "COMING SOON" text for The Park on tablets - larger size */
  .the-park-title::before {
    font-size: 4rem;
  }

  .work-project {
    margin-bottom: 35px; /* Maintain separation on tablets */
    padding: 25px; /* Adjusted padding for tablets */
  }
}

@media (max-width: 576px) {
  .work-content-container {
    padding: 40px 20px; /* Adjusted padding for mobile */
    margin: 30px auto; /* Reduced margin for mobile */
  }

  .work-project {
    margin-bottom: 30px; /* Maintain separation on mobile */
    padding: 20px; /* Reduced padding for mobile */
  }

  .work-project:last-child {
    margin-bottom: 0; /* No bottom margin for mobile */
  }

  .project-title {
    font-size: 2rem;
  }

  /* Responsive "COMING SOON" text for mobile */
  .space-pirates-title::before {
    font-size: 3rem;
  }

  /* Responsive "COMING SOON" text for The Park on mobile - larger size */
  .the-park-title::before {
    font-size: 3rem;
  }

  .project-credits li {
    font-size: 1rem;
  }

  .btn-text {
    font-size: 1rem;
  }
}

/* ========== COMPREHENSIVE MEDIA QUERIES ========== */

/* Extra Large Screens (1920px and above) */
@media (min-width: 1920px) {
  .main {
    padding: 0 60px;
  }

  .heading {
    left: 120px;
    width: 800px;
  }

  .heading h1 {
    font-size: 100px;
    line-height: 110px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 900px;
    height: 550px;
    right: -150px;
  }

  .work-content-container {
    max-width: 1600px;
    padding: 80px 60px;
  }

  .project-title {
    font-size: 3.5rem;
  }
}

/* Large Desktop (1440px to 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .heading {
    left: 100px;
    width: 700px;
  }

  .heading h1 {
    font-size: 90px;
    line-height: 100px;
    margin-top: 100px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 800px;
    height: 480px;
    right: -120px;
  }

  .work-content-container {
    max-width: 1500px;
    padding: 70px 50px;
  }
}

/* Standard Desktop (1200px to 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .heading {
    left: 80px;
    width: 650px;
  }

  .heading h1 {
    font-size: 80px;
    line-height: 90px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 650px;
    height: 380px;
    right: -80px;
  }

  .work-content-container {
    max-width: 1300px;
    padding: 60px 40px;
  }

  .project-title {
    font-size: 2.8rem;
  }
}

/* Small Desktop/Large Tablet (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .main {
    padding: 0 30px;
  }

  .heading {
    left: 60px;
    width: 500px;
  }

  .heading h1 {
    font-size: 70px;
    line-height: 80px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 500px;
    height: 300px;
    right: -50px;
  }

  .main::after {
    bottom: 150px;
  }

  .work-content-container {
    max-width: 1100px;
    padding: 50px 30px;
    margin: 40px auto;
  }

  .work-project {
    padding: 25px;
    margin-bottom: 30px;
  }

  .work-content-grid {
    gap: 40px;
  }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .main {
    padding: 80px 20px 0; /* Add top padding for tablet navbar overlap */
    min-height: 80vh;
  }

  .bg-pattern {
    z-index: -100 !important; /* Force behind navbar on tablet */
  }

  .heading {
    width: 500px; /* Keep specific width instead of 100% */
    left: 60px; /* Keep left positioning */
    margin-top: -100px;
  }

  .heading h1 {
    font-size: 60px;
    line-height: 70px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 500px;
    height: 700px;
    right: -50px;
  }

  .main::after {
    bottom: 100px;
  }

  .work-content-container {
    max-width: 90%;
    padding: 40px 25px;
    margin: 30px auto;
  }

  .work-project {
    padding: 20px;
    margin-bottom: 25px;
  }

  .work-content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .work-content-left {
    order: 2;
    text-align: center;
    padding: 15px;
  }

  .work-content-right {
    order: 1;
  }

  .project-title {
    font-size: 2.3rem;
  }

  /* Footer tablet-specific adjustments */
  .footer-section {
    position: static !important;
    margin-top: 100px !important;
    padding-top: 0px !important;
    padding-bottom: 40px !important;
  }

  .footer-top {
    margin-top: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 30px !important;
  }

  .footer-bottom {
    padding-top: 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .footer-logo {
    margin-bottom: 25px !important;
    text-align: center !important;
  }

  .footer-link ul li {
    margin-bottom: 12px !important;
  }

  .footer-socail h5 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }

  /* Mobile-specific overrides */
  @media (max-width: 768px) {
    .work-content-left {
      text-align: left !important;
    }
  }
}

/* Additional Tablet Landscape Media Query (1024px to 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  /* Footer adjustments for tablet landscape and larger tablets */
  .footer-section {
    position: static !important;
    margin-top: 250px !important;
    padding-top: 0px !important;
    padding-bottom: 50px !important;
  }

  .footer-top {
    margin-top: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 40px !important;
  }

  .footer-bottom {
    padding-top: 35px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  }

  .footer-logo {
    margin-bottom: 35px !important;
    text-align: center !important;
  }

  .footer-link ul li {
    margin-bottom: 16px !important;
  }

  .footer-link ul li a {
    font-size: 16px !important;
    transition: color 0.3s ease !important;
  }

  .footer-socail h5 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }

  .footer-logo-icons ul li {
    margin: 0 8px !important;
  }

  .work-section {
    padding-bottom: 120px;
    margin-bottom: 40px;
  }
}

/* Standard Tablet Media Query (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  /* Footer adjustments for standard tablets */
  .footer-section {
    position: static !important;
    margin-top: 150px !important;
    padding-top: 0px !important;
    padding-bottom: 42px !important;
  }

  .footer-top {
    margin-top: 400px !important;
    padding-top: 0px !important;
    padding-bottom: 32px !important;
  }

  .footer-bottom {
    padding-top: 28px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  }

  .footer-logo {
    margin-bottom: 28px !important;
    text-align: center !important;
  }

  .footer-link ul li {
    margin-bottom: 13px !important;
  }

  .footer-link ul li a {
    font-size: 12px !important;
  }

  .footer-socail h5 {
    font-size: 12px !important;
    margin-bottom: 9px !important;
  }

  .footer-logo-icons ul li {
    margin: 0 6px !important;
  }
}

/* iPad Pro and Large Tablet Media Query (992px to 1024px) */
@media (min-width: 992px) and (max-width: 1024px) {
  /* Footer adjustments for iPad Pro and similar large tablets */
  .footer-section {
    position: static !important;
    margin-top: 200px !important;
    padding-top: 0px !important;
    padding-bottom: 45px !important;
  }

  .footer-top {
    margin-top: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 35px !important;
  }

  .footer-bottom {
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  }

  .footer-logo {
    margin-bottom: 30px !important;
    text-align: center !important;
  }

  .footer-link ul li {
    margin-bottom: 14px !important;
  }

  .footer-link ul li a {
    font-size: 15px !important;
  }

  .footer-socail h5 {
    font-size: 17px !important;
    margin-bottom: 10px !important;
  }

  .work-section {
    padding-bottom: 130px;
    margin-bottom: 45px;
  }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .main {
    padding: 75px 15px 0; /* Add top padding to prevent navbar overlap */
    min-height: 70vh;
  }

  .bg-pattern {
    z-index: -100 !important; /* Force behind navbar on mobile */
  }

  .heading {
    width: 400px; /* Keep specific width instead of 100% */
    left: 40px; /* Keep left positioning */
    margin-top: -80px;
  }

  .heading h1 {
    font-size: 50px;
    line-height: 60px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 250px !important;
    height: 285px !important;
    top: 100px;
    right: -30px;
  }

  .main::after {
    bottom: 80px;
  }

  .work-content-container {
    max-width: 95%;
    padding: 35px 20px;
    margin: 25px auto;
  }

  .work-project {
    padding: 18px;
    margin-bottom: 20px;
  }

  .project-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .project-credits li {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .project-btn {
    padding: 12px 25px;
  }

  .btn-text {
    font-size: 1rem;
  }
}

/* Mobile Portrait (480px to 575px) */
@media (min-width: 480px) and (max-width: 575px) {
  .main {
    padding: 70px 10px 0; /* Add top padding to prevent navbar overlap */
    min-height: 65vh;
  }

  .bg-pattern {
    z-index: -100 !important; /* Force behind navbar on mobile */
  }

  .heading {
    width: 350px; /* Keep specific width instead of 100% */
    left: 30px; /* Keep left positioning */
    margin-top: -60px;
  }

  .heading h1 {
    font-size: 40px;
    line-height: 50px;
    background: linear-gradient(115.44deg, #ffffff 0%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .bg-pattern img {
    width: 250px !important;
    height: 285px !important;
    top: 100px;
    right: -20px;
  }

  .main::after {
    bottom: 60px;
  }

  .work-content-container {
    max-width: 98%;
    padding: 30px 15px;
    margin: 20px auto;
  }

  .work-project {
    padding: 15px;
    margin-bottom: 18px;
  }

  .project-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .project-credits li {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .project-btn {
    padding: 10px 20px;
  }

  .btn-text {
    font-size: 0.95rem;
  }
}

/* Small Mobile (320px to 479px) */
@media (min-width: 320px) and (max-width: 479px) {
  .main {
    padding: 65px 8px 0; /* Add top padding to prevent navbar overlap */
    min-height: 60vh;
  }

  .bg-pattern {
    z-index: -100 !important; /* Force behind navbar on mobile */
  }

  .heading {
    width: 280px; /* Keep specific width instead of 100% */
    left: 20px; /* Keep left positioning */
    margin-top: -40px;
  }

  .heading h1 {
    font-size: 50px;
    margin: auto;
    line-height: 55px;
    letter-spacing: 1px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 250px !important;
    height: 285px !important;
    top: 100px;
    right: -10px;
  }

  .main::after {
    bottom: 40px;
  }

  .work-content-container {
    max-width: 100%;
    padding: 25px 12px;
    margin: 15px auto;
    border-radius: 8px;
  }

  .work-project {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
  }

  .work-content-grid {
    gap: 15px;
  }

  .work-content-left {
    padding: 10px;
  }

  .project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .project-credits {
    margin: 15px 0;
  }

  .project-credits li {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .text-grey {
    margin-right: 5px;
  }

  .project-btn-wrap {
    margin-top: 15px;
  }

  .project-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .btn-text {
    font-size: 0.9rem;
  }

  .view-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .main {
    padding: 60px 5px 0; /* Add top padding to prevent navbar overlap */
    min-height: 55vh;
  }

  .bg-pattern {
    z-index: -100 !important; /* Force behind navbar on mobile */
  }

  .heading {
    width: 250px; /* Keep specific width instead of 100% */
    left: 15px; /* Keep left positioning */
    margin-top: -30px;
  }

  .heading h1 {
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 0.5px;
    font-family: "Big Shoulders Display", sans-serif;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
  }

  .bg-pattern img {
    width: 250px !important;
    height: 285px !important;
    top: 100px;
    right: -5px;
  }

  .main::after {
    bottom: 30px;
  }

  .work-content-container {
    max-width: 100%;
    padding: 20px 8px;
    margin: 10px auto;
  }

  .work-project {
    padding: 10px;
    margin-bottom: 12px;
  }

  .project-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .project-credits li {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }

  .project-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .btn-text {
    font-size: 0.85rem;
  }
}

/* Landscape Orientation for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
  .main {
    min-height: 90vh;
  }

  .heading {
    margin-top: -20px;
  }

  .heading h1 {
    font-size: 40px;
    line-height: 50px;
    background: linear-gradient(115.44deg, #ffffff 0%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .main::after {
    bottom: 20px;
  }

  .work-content-container {
    margin: 10px auto;
    padding: 20px 15px;
  }

  .work-project {
    padding: 10px;
    margin-bottom: 10px;
  }
}

/* ========== MOBILE-SPECIFIC COMPREHENSIVE OVERRIDES ========== */

/* Apply to all mobile screen sizes */
@media (max-width: 768px) {
  /* Heading mobile margin and animation */
  .heading {
    margin-top: 40px !important; /* Mobile-specific margin-top */
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1s ease-out;
  }

  .heading.animate-in {
    opacity: 1;
    transform: translateX(0);
  }

  .heading h1 {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
    transition-delay: 0.3s;
  }

  .heading.animate-in h1 {
    opacity: 1;
    transform: translateX(0);
  }

  /* Background pattern mobile sizing and animation */
  .bg-pattern {
    opacity: 0 !important; /* Start hidden for animation */
    transform: translateX(80px) !important; /* Start from right on mobile */
    transition: all 1s ease-out !important;
  }

  .bg-pattern.animate-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }

  .bg-pattern img {
    width: 500px !important;
    height: 590px !important;
    opacity: 0 !important; /* Start hidden */
    transform: translateX(40px) !important; /* Additional mobile animation */
    transition: all 0.8s ease-out !important;
    transition-delay: 0.3s !important;
  }

  .bg-pattern.animate-in img {
    opacity: 1 !important; /* Force full opacity */
    transform: translateX(0) !important;
  }

  /* Work content mobile alignment */
  .work-content-left {
    text-align: left !important;
  }

  /* Footer icons mobile centering */
  .footer-logo-icons {
    text-align: center !important;
  }

  .footer-logo-icons ul {
    justify-content: center !important;
  }
}

/* Extra mobile specificity for very small screens */
@media (max-width: 480px) {
  .bg-pattern {
    opacity: 1 !important; /* Ensure full opacity */
  }

  .bg-pattern img {
    width: 250px !important;
    height: 285px !important;
    opacity: 1 !important; /* Force full opacity */
  }

  .work-content-left {
    text-align: left !important;
    padding: 10px !important;
  }

  /* Extra small mobile "COMING SOON" text */
  .space-pirates-title::before {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
  }

  /* Extra small mobile "COMING SOON" text for The Park - larger size */
  .the-park-title::before {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
  }

  .footer-logo-icons {
    text-align: center !important;
    margin-top: 20px !important;
  }

  .footer-logo-icons ul {
    justify-content: center !important;
    display: flex !important;
  }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .bg-pattern img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .project-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .main {
    background: white;
    color: black;
  }

  .heading h1 {
    background: linear-gradient(115.44deg, #333333 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .bg-pattern {
    display: none;
  }

  .main::after {
    display: none;
  }

  .work-content-container {
    background: white;
    box-shadow: none;
  }

  .work-project {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .project-title,
  .project-credits li {
    color: black;
  }

  .project-btn {
    border-color: black;
    color: black;
  }
}
