/*
  Stylesheet for the Signpros Memphis website.

  The design uses a rich colour palette inspired by the existing brand: a deep
  purple foundation with bright greens, yellows and soft off‑whites for
  contrast. Components are modular and responsive, scaling gracefully on
  desktops, tablets and phones. Utility classes such as `.btn` are reused
  throughout to ensure consistency.
*/

/* Reset / base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: #fff6e5; /* off‑white background for subtle warmth */
  color: #1e0036; /* primary dark purple for text */
}

/* Colour palette as CSS variables for easy reuse */
:root {
  --color-primary-dark: #1e0036;
  --color-green: #14ff00;
  --color-yellow: #f2ea54;
  --color-gold: #e2bf00;
  --color-offwhite: #fff6e5;
  --color-dark-green: #01351e;
}

/* Header and navigation */
header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0a2c1a 50%, var(--color-dark-green) 100%);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Replaced text logo with image */
.logo-img {
  width: 300px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

nav li {
  position: relative;
}

nav a {
  background-color: var(--color-green);
  color: var(--color-primary-dark);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
  background-color: var(--color-yellow);
  color: var(--color-primary-dark);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary-dark);
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--color-yellow);
}

/* Hero section */
/* Hero background uses the downloaded photo from the original site */
.hero {
  position: relative;
  height: 80vh;
  background-image: url('assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

/* Overlay darkens the hero image slightly for legibility */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 0, 54, 0.55);
  z-index: 0;
}

/* Content atop the hero image */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
  margin-top: -30vh; /* Move content much higher up to clear the sign */
}

/* Button container at bottom of hero */
.hero-button {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Fade‑in animation for hero text */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-button a {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Smaller hero variant used on inner pages */
.about-hero {
  height: 60vh;
  background-image: url('assets/images/ground_sign.jpg');
  background-size: cover;
  background-position: center;
}

/* Large headline on the hero */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-yellow);
}

/* Subheading on the hero */
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  background-color: var(--color-green);
  color: var(--color-primary-dark);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

/* A dark‑themed button variant for contrast on light backgrounds */
.btn.dark {
  background-color: var(--color-primary-dark);
  color: var(--color-yellow);
}

.btn.dark:hover {
  background-color: var(--color-green);
  color: var(--color-primary-dark);
}

.btn:hover {
  background-color: var(--color-yellow);
  color: var(--color-primary-dark);
}

/* Services section */
.services {
  padding: 4rem 2rem;
  background-color: var(--color-yellow);
  text-align: center;
  color: var(--color-primary-dark);
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.services .subheading {
  color: var(--color-primary-dark);
  margin-bottom: 3rem;
  font-size: 1rem;
  opacity: 0.8;
}

/* Grid layout for service icons and titles */
/*
  Use a flexbox layout for the services grid.  Flexbox makes it easy to
  centre rows of items regardless of how many items fit on a line,
  ensuring the circles are always centred within the available space.
*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.service-item:hover {
  transform: translateY(-4px);
}

/* Circular container for service photos */
.service-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

/*
  When service cards are used in the About section the class .about-grid is
  applied to the grid container.  Override the large rounded corners for
  these cards to avoid the curved corners overlapping the following
  section.
*/
.about-grid .service-item {
  /* Remove the bottom corners so they butt up against the next section without showing rounded shapes */
  border-radius: 6px 6px 0 0;
}

/* Call to action */
.call-to-action {
  padding: 3rem 2rem;
  background-color: var(--color-yellow);
  text-align: center;
  color: var(--color-primary-dark);
}

.call-to-action h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.call-to-action p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.call-to-action .btn {
  background-color: var(--color-primary-dark);
  color: var(--color-yellow);
}

.call-to-action .btn:hover {
  background-color: var(--color-green);
  color: var(--color-primary-dark);
}

/* Contact section */
.contact {
  padding: 4rem 2rem;
  background-color: var(--color-primary-dark);
  color: var(--color-offwhite);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-green);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Each column (info, form and map) should share space equally */
.contact-info,
.contact-form,
.contact-map {
  flex: 1 1 300px;
}

/* New vertical social media section in contact */
.contact-socials {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-socials h3 {
  color: var(--color-green);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.social-icons-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.social-icons-vertical a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background-color 0.3s;
  text-decoration: none;
}

.social-icons-vertical a:hover {
  transform: translateY(-3px);
  background-color: var(--color-yellow);
}

.social-icons-vertical a img {
  width: 24px;
  height: 24px;
}

.contact-info p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-info strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-yellow);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 6px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-offwhite);
  font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

.contact-form button {
  align-self: flex-start;
  padding: 0.8rem 1.4rem;
  background-color: var(--color-green);
  color: var(--color-primary-dark);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}

.contact-form button:hover {
  background-color: var(--color-yellow);
  color: var(--color-primary-dark);
}

/* Map container styling */
.contact-map iframe {
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

/* Default map container height */
.contact-map {
  height: 300px;
}

/*
 * Two‑column information section used in the About area
 */
.info {
  background-color: var(--color-primary-dark);
  color: var(--color-offwhite);
  padding: 4rem 2rem;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.info-text {
  flex: 1 1 350px;
}

.info-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-green);
}

.info-text p {
  margin-bottom: 2rem;
  line-height: 1.5;
}

.info-image {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
}

.info-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Offerings section presenting three core service groups */
.offerings {
  padding: 4rem 2rem;
  background-color: var(--color-offwhite);
  color: var(--color-primary-dark);
  text-align: center;
}

.offerings h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.offering {
  background-color: var(--color-primary-dark);
  color: var(--color-offwhite);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.offering:hover {
  transform: translateY(-4px);
}

.offering h3 {
  color: var(--color-green);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.offering p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Image within offerings */
.offering-image {
  width: 100%;
  max-width: 250px;
  /* Fixed height ensures all images in the cards are uniform */
  height: 160px;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: var(--color-dark-green);
  color: var(--color-offwhite);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer p {
  margin: 0.5rem 0;
}

/* Social section styling */
.socials {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #e7e8ff, #f9f8c1);
  text-align: center;
  color: var(--color-primary-dark);
}

.socials h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Remove dependence on Font Awesome font sizing; icons are handled via inline SVGs */
  transition: transform 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  transform: translateY(-4px);
}

/* Size the inline social icons consistently */
.social-icons a img {
  width: 32px;
  height: 32px;
}

footer a {
  color: var(--color-yellow);
  text-decoration: none;
}

/* Project Showcase Section */
.projects-showcase {
  padding: 4rem 2rem;
  background-color: var(--color-primary-dark);
  color: var(--color-offwhite);
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.projects-showcase h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-green);
  text-align: center;
}

.projects-subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(20, 255, 0, 0.2);
}

.project-card h3 {
  color: var(--color-green);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-card p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.project-preview {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card .btn {
  background-color: var(--color-green);
  color: var(--color-primary-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: var(--color-offwhite);
  margin: 2% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close {
  color: var(--color-primary-dark);
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.close:hover {
  color: var(--color-green);
}

.modal-content h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  margin-right: 3rem;
}

.modal-content p {
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.modal-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

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

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--color-green);
}

.lightbox-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 2rem;
}

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

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 3rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: var(--color-green);
  color: var(--color-primary-dark);
  border-color: var(--color-green);
  transform: scale(1.1);
}

.nav-btn:disabled,
.nav-btn[style*="opacity: 0.3"] {
  cursor: not-allowed;
  transform: none;
}

.nav-btn:disabled:hover,
.nav-btn[style*="opacity: 0.3"]:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.image-counter {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  backdrop-filter: blur(10px);
}

/* Mobile responsive lightbox */
@media (max-width: 768px) {
  .lightbox-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .lightbox-image-container {
    max-width: 95%;
    max-height: 70%;
  }
  
  .nav-btn {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    padding: 0.5rem;
  }
  
  .lightbox-close {
    font-size: 2rem;
    top: 1rem;
    right: 1rem;
  }
  
  .image-counter {
    position: static;
    transform: none;
    margin-top: 1rem;
  }
  
  .lightbox-navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }
  
  .nav-btn.prev-btn {
    order: 1;
  }
  
  .lightbox-image-container {
    order: 2;
    flex: 1;
    margin: 0 1rem;
  }
  
  .nav-btn.next-btn {
    order: 3;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Header and Navigation */
  .nav-container {
    padding: 0.5rem 1rem;
    position: relative;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Force hide navigation by default on mobile */
  nav ul {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
  }
  
  nav ul.nav-open {
    display: flex !important;
    max-height: 300px;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
  }
  
  nav li {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  nav ul#nav-menu a {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    width: 100%;
    text-align: center;
    border-radius: 25px;
    background-color: rgba(20, 255, 0, 0.9) !important;
    color: #1e0036 !important;
    font-weight: 700;
    border: 2px solid var(--color-green);
    transition: all 0.3s ease;
    text-shadow: none;
    text-decoration: none;
    display: block;
  }
  
  nav ul#nav-menu a:hover {
    background-color: rgba(242, 234, 84, 0.9) !important;
    border-color: var(--color-yellow);
    color: #1e0036 !important;
  }
  
  /* Hero Section */
  .hero {
    height: 40vh !important;
    padding: 2rem 1rem;
  }
  
  .hero-content {
    margin-top: -15vh !important; /* Less negative margin for tablets */
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  /* Content Sections */
  section {
    padding: 2rem 1rem !important;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Services Grid */
  /* Services grid for tablets - 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }
  
  .project-card {
    padding: 1rem;
  }
  
  .project-preview {
    height: 200px;
  }
  
  /* Contact Section */
  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-info, .contact-form {
    flex: 1;
  }

  /* Social icons mobile layout */
  .contact-socials {
    flex: 1;
    align-items: center;
  }

  .social-icons-vertical {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
  }  /* Typography */
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Modal Responsiveness */
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .modal h3 {
    font-size: 1.3rem;
  }
  
  .modal-gallery {
    gap: 0.5rem;
  }
  
  .modal-gallery img {
    height: 80px;
  }
}

/* Responsive navigation: stack logo and nav links vertically on narrow screens */
@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
  }
  
  nav li {
    width: 100%;
  }
  
  nav a {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
  }
  
  /* Hero adjustments for very small screens */
  .hero {
    height: 35vh !important;
    text-align: center;
  }
  
  .hero-content {
    margin-top: -5vh !important; /* Much less negative margin for mobile */
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Services grid for small screens */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  /* Typography for small screens */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  /* Contact form adjustments */
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
  
  /* Modal for very small screens */
  .modal-content {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  /* Further reduce hero size */
  .hero {
    height: 30vh !important;
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  /* Smaller padding for sections */
  section {
    padding: 1.5rem 0.5rem !important;
  }
  
  /* Smaller text */
  body {
    font-size: 0.9rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  /* Smaller buttons */
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Project cards */
  .project-card {
    padding: 0.8rem;
  }
  
  .project-preview {
    height: 150px;
  }
  
  /* Service cards */
  .service-card {
    padding: 1rem;
  }
}

/* Landscape phone adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 60vh !important;
  }
  
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  nav ul {
    flex-direction: row;
    gap: 1rem;
  }
}
