/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --color-gold: #C5A059;
  --color-charcoal: #2C2C2C;
  --color-beige: #F4F1EA;
  --color-grey-light: #F0F0F0;
  --color-off-white: #FFFFFF;
  --color-text-dark: #1A1A1A;
  --color-text-light: #666666;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Playfair Display', serif;

  --transition: all 0.4s ease-out;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- Navigation --- */
.main-nav {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 20px 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Desktop Menu */
.desktop-menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu li a {
  color: var(--color-beige);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.desktop-menu li a:hover {
  color: var(--color-gold);
}

.desktop-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.desktop-menu li a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
#mobile-menu-btn {
  display: none;
}

/* Mobile Menu Dropdown */
.mobile-menu {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 15px 0;
}

.mobile-menu a {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--color-gold);
}

@media (max-width: 768px) {

  /* Adjust nav container for mobile */
  .nav-container {
    justify-content: flex-end;
  }

  /* Hide desktop menu on mobile */
  .desktop-menu {
    display: none;
  }

  /* Show mobile menu button */
  #mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
  }
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-off-white);
  line-height: 1.6;
}

/* ... existing code ... */

/* ... Media Queries moved to bottom ... */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Utilities --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-charcoal);
  color: var(--color-off-white);
}

.btn-primary:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-off-white);
  border: 1px solid var(--color-off-white);
}

.btn-secondary:hover {
  background-color: var(--color-off-white);
  color: var(--color-charcoal);
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
}

/* --- Navigation --- */
.main-nav {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: all 0.3s;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  /* Align right */
  align-items: center;
  position: relative;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}

.mobile-menu {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul {
  padding: 0;
}

.mobile-menu li {
  margin: 15px 0;
}

.mobile-menu a {
  color: white;
  font-size: 1.1rem;
  display: block;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  width: 100%;
  background-image: url('../assets/gallery_full/image123.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  /* Overlay for readability */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-off-white);
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--color-beige);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-out forwards;
}

.hero-content p {
  color: #ddd;
  font-size: 1.2rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
  /* Star hidden */
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 1s forwards;
  opacity: 0;
}

.hero-buttons .btn {
  margin: 0 10px;
}

/* --- About Section --- */
.about {
  background-color: var(--color-beige);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: var(--color-gold);
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}

/* --- Products Section --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 300px;
  overflow: hidden;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 25px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* --- Why Choose Us --- */
.features {
  background-color: var(--color-charcoal);
  color: var(--color-off-white);
}

.features h2 {
  color: var(--color-beige);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--color-gold);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.feature-item p {
  color: #ccc;
  font-size: 0.9rem;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 300px;
}

.gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay svg {
  width: 40px;
  height: 40px;
  fill: var(--color-off-white);
}

/* --- Contact Section --- */
.contact {
  background-color: var(--color-beige);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info,
.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
}

.info-item {
  margin-bottom: 30px;
}

.info-item h4 {
  color: var(--color-gold);
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  background: transparent;
  font-family: var(--font-body);
}

.contact-form button {
  width: 100%;
  background-color: var(--color-charcoal);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background-color: var(--color-gold);
}

.map {
  width: 100%;
  height: 300px;
  margin-top: 40px;
  background: #eee;
}

/* --- Footer --- */
footer {
  background-color: #111;
  color: #777;
  padding: 50px 0 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links a {
  color: #aaa;
  margin: 0 15px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
}

.whatsapp-btn {
  background-color: #25D366;
}

.instagram-btn {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.phone-btn {
  background-color: #25D366;
}

/* --- Animations --- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Media Queries --- */
@media (max-width: 768px) {

  /* Typography */
  h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  /* Navigation */
  nav .container {
    padding: 0 15px !important;
  }

  nav span {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  nav span:last-child {
    font-size: 0.75rem !important;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 2.5rem !important;
    margin-top: 61px;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero {
    height: auto;
    min-height: 100dvh;
    padding-top: 80px;
    padding-bottom: 40px;
    align-items: center;
  }

  /* Buttons */
  .hero-buttons .btn {
    display: block;
    margin: 15px auto;
    width: 100%;
    max-width: 280px;
    font-size: 0.85rem;
    padding: 12px 25px;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-text {
    text-align: center;
  }

  /* Services/Products Grid */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-item {
    height: 280px;
    /* Slightly taller for better mobile viewing */
  }

  .gallery-item img {
    object-fit: cover;
  }

  /* Contact Section */
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .contact-info,
  .contact-form-wrapper {
    min-width: 100%;
  }

  /* Section Padding */
  .section-padding {
    padding: 60px 0;
  }

  /* Floating Buttons Mobile */
  .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  #splash-screen img {
    width: 300px;
  }

  #testimonials {
    display: none;
  }

  /* Container */
  .container {
    width: 95%;
    padding: 0 15px;
  }

  /* Footer */
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-links a {
    display: block;
    margin: 5px 0;
  }

  /* Portfolio Mobile Adjustments */
  .portfolio-grid {
    gap: 20px;
    /* Reduced gap for mobile */
  }

  .project-card {
    margin: 0;
  }

  .project-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    /* Single column for better readability on tablets */
  }

  .project-image {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem !important;
  }

  nav span {
    font-size: 0.85rem !important;
  }

  nav span:last-child {
    font-size: 0.65rem !important;
  }

  .section-title {
    font-size: 1.5rem;
  }

  #splash-screen img {
    width: 220px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .project-image {
    height: 220px;
    /* Smaller for very small screens */
  }

  .project-content {
    padding: 15px;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  .gallery-item {
    height: 240px;
    /* Compact but still viewable */
  }

  .section-padding {
    padding: 40px 0;
    /* Tighter spacing on small devices */
  }
}

/* Medium Mobile / Large Phones */
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for larger phones */
    gap: 12px;
  }

  .gallery-item {
    height: 220px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-image {
    height: 280px;
  }
}

/* --- Premium Enhancements (Art Cult Polish) --- */

/* WhatsApp Form Styling Enhancements */
#whatsapp-form input,
#whatsapp-form textarea {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-bottom: 2px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  transition: all 0.3s;
}

#whatsapp-form input:focus,
#whatsapp-form textarea:focus {
  border-bottom-color: var(--color-gold);
  background: #fff;
  outline: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Testimonial Card Styling */
.feature-item {
  text-align: left;
  padding: 30px;
  background: white;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid transparent;
  /* Default border */
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-top-color: var(--color-gold);
  /* Gold accent on hover */
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* QR Code Styling */
.info-item img {
  border: 1px solid #eee;
  padding: 5px;
  background: white;
  transition: transform 0.3s;
}

.info-item img:hover {
  transform: scale(1.02);
  border-color: var(--color-gold);
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Changed from 500px to 300px for mobile responsiveness */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-image {
  position: relative;
  height: 350px;
  overflow: hidden;
}

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

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

.project-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.project-tag {
  display: inline-block;
  background: rgba(190, 157, 98, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.project-content p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.project-content p:last-child {
  margin-bottom: 0;
}

.project-content strong {
  color: var(--color-gold);
  font-weight: 600;
}

/* --- Splash Screen --- */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s;
}

#splash-screen img {
  width: 400px;
  /* Adjust based on logo size */
  height: auto;
  animation: pulse 2s infinite;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  /* Increased to be above header */
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid white;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  /* Make it larger for mobile touch */
  cursor: pointer;
  z-index: 2001;
  padding: 10px;
  /* Larger touch target */
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 1002;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-hint {
  margin-top: 20px;
  color: #aaa;
  font-size: 0.9rem;
  position: absolute;
  bottom: 20px;
}

/* Mobile Lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    width: 100%;
  }

  .lightbox-prev {
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-next {
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-img {
    max-height: 60vh;
  }

  .lightbox-hint {
    display: none;
  }
}

/* --- Media Queries --- */

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    /* Single column for better readability on tablets */
  }

  .project-image {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

/* Medium Mobile / Large Phones */
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for larger phones */
    gap: 12px;
  }

  .gallery-item {
    height: 220px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-image {
    height: 280px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem !important;
    /* Reduced to fit small screens */
    margin-top: 80px;
    word-wrap: break-word;
    /* Ensure text doesn't flow out */
  }

  /* Subtitle adjustments */
  .hero-content p[style*="font-size: 1.5rem"] {
    font-size: 1.2rem !important;
    margin-top: 5px !important;
    /* Fix overlap */
    margin-bottom: 20px !important;
  }

  .hero-content p {
    padding: 0 10px;
  }

  nav span {
    font-size: 0.85rem !important;
  }

  nav span:last-child {
    font-size: 0.65rem !important;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
  }

  #splash-screen img {
    width: 220px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .project-image {
    height: 220px;
  }

  .project-content {
    padding: 15px;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  .gallery-item {
    height: 240px;
  }

  .section-padding {
    padding: 40px 0;
  }


  /* Ensure container doesn't overflow */
  .container {
    width: 100% !important;
    padding: 0 20px !important;
    overflow-x: hidden;
  }
}

/* Fixed Header for Mobile & Tablet */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Dark, visible background */
    backdrop-filter: blur(5px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    /* Ensure above everything */
  }

  .nav-container {
    padding-right: 20px;
  }

  .mobile-menu {
    top: 60px;
    /* Adjust based on header height */
    background: rgba(0, 0, 0, 0.95);
  }
}