/* CSS Variables */
:root {
  --background: hsl(220, 20%, 10%);
  --foreground: hsl(210, 20%, 98%);
  --primary: hsl(220, 90%, 40%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(45, 100%, 50%);
  --secondary-foreground: hsl(220, 20%, 10%);
  --card: hsl(220, 20%, 14%);
  --card-foreground: hsl(210, 20%, 98%);
  --muted: hsl(220, 20%, 20%);
  --muted-foreground: hsl(215, 20%, 65%);
  --border: hsl(220, 20%, 20%);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

/* Prevent text selection on non-interactive elements */
body, div, section, article, header, footer, main, aside, 
h1, h2, h3, h4, h5, h6, p, span, li {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Allow text selection only in form inputs and textareas */
input, textarea {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default; /* Set default cursor for entire body */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Interactive elements get pointer cursor */
a, button, .btn, .contact-card, .nav-link, .filter-btn, 
.carousel-dot, .work-card, .mobile-toggle, .whatsapp-btn button,
.expand-btn, .project-card {
  cursor: pointer;
}

/* Specifically for contact cards since they're now <a> tags */
.contact-card, .contact-card * {
  cursor: pointer;
}

/* Links inside text areas should have pointer cursor */
a {
  text-decoration: none;
  color: inherit;
}

/* Images and non-interactive elements get default cursor */
img, .logo, .section-title, .section-subtitle, .about-text, .about-text-lg,
.service-card, .service-list li, .list-icon, .footer-services li, 
.footer-contact span, .footer-brand p, .map-container, .map-container iframe,
.portfolio-title, .project-service, .project-title, .project-location {
  cursor: default;
}

/* Button states */
.btn:hover, .btn:focus {
  cursor: pointer;
}

/* Navigation */
.navbar {
  cursor: default;
}

.nav-link:hover {
  cursor: pointer;
}

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

ul {
  list-style: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(220, 90%, 35%);
}

.btn-skew {
  transform: skewX(-10deg);
  border-left: 4px solid var(--secondary);
}

.btn-skew span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: skewX(10deg);
}

.btn-skew:hover {
  transform: skewX(-10deg) translateX(0.5rem);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-facebook {
  background-color: #1877F2;
  color: white;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
}

.btn-facebook:hover {
  background-color: #1565c0;
}

.btn-dark {
  background-color: black;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
}

.btn-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(17, 19, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--secondary);
}

.logo:hover .logo-icon {
  background-color: rgba(37, 99, 235, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  line-height: 1;
}

.logo-sub {
  font-size: 0.625rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--secondary);
}

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

.navbar .btn {
  display: none;
}

@media (min-width: 768px) {
  .navbar .btn {
    display: inline-flex;
  }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all 0.3s;
}

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

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

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

/* Mobile Menu */
.nav-links.mobile-open {
  display: flex;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--background);
  flex-direction: column;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links.mobile-open .nav-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background-color: black;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.carousel {
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-out;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 20;
  max-width: 700px;
  padding: 0 1rem;
  animation: slideIn 0.7s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: black;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.slide-content h1 {
  font-size: 2.5rem;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .slide-content h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .slide-content h1 {
    font-size: 4.5rem;
  }
}

.slide-content p {
  font-size: 1.125rem;
  color: #e5e7eb;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.slide-content .btn svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 0.75rem;
}

.carousel-dot {
  width: 48px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 9999px;
  transition: background-color 0.3s;
}

.carousel-dot:hover,
.carousel-dot.active {
  background-color: var(--secondary);
}

/* Services Section */
.services {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.services-bg-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 100%;
  background-color: rgba(37, 99, 235, 0.05);
  transform: skewX(-12deg);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  color: white;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-line {
  width: 6rem;
  height: 4px;
  background-color: var(--primary);
  margin: 1.5rem auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
}

.service-shadow {
  position: absolute;
  inset: 0;
  background-color: rgba(250, 204, 21, 0.1);
  transform: translate(8px, 8px);
  transition: transform 0.3s;
}

.service-card:hover .service-shadow {
  transform: translate(16px, 16px);
}

.service-content {
  position: relative;
  background-color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--background);
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
  transition: box-shadow 0.3s;
}

.service-card:hover .service-icon {
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.3);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--secondary);
}

.service-content h4 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.service-content > p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

.list-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.list-icon svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.service-list li:hover .list-icon {
  background-color: rgba(250, 204, 21, 0.1);
}

.service-list li:hover .list-icon svg {
  color: var(--secondary);
}

/* About Section */
.about {
  padding: 6rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content .section-title {
  text-align: left;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-text-lg {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Make contact cards look clickable */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background-color: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background-color: rgba(37, 99, 235, 0.2);
  transform: scale(1.1);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon svg {
  color: var(--secondary);
}

.contact-card h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.contact-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  word-break: break-word;
  transition: color 0.3s ease;
}

.contact-card:hover p {
  color: rgba(255, 255, 255, 0.8);
}

/* Style for phone links in Call Us card */
.phone-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.phone-link:hover {
  color: var(--secondary);
}

.social-buttons {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

.social-buttons svg {
  width: 20px;
  height: 20px;
}

.about-map {
  position: relative;
}

.map-border-1 {
  position: absolute;
  inset: -16px;
  border: 2px solid rgba(250, 204, 21, 0.2);
  border-radius: var(--radius);
  transform: rotate(3deg);
  z-index: 0;
}

.map-border-2 {
  position: absolute;
  inset: -16px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  transform: rotate(-3deg);
  z-index: 0;
}

.map-container {
  position: relative;
  z-index: 10;
  background-color: var(--card);
  padding: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-container iframe {
  border-radius: var(--radius);
}

/* Footer */
.footer {
  background-color: black;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.3s;
}

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

.footer-services li {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact a {
  color: var(--muted-foreground);
  transition: color 0.3s;
  word-break: break-all;
  text-decoration: none;
}

.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

.whatsapp-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.75rem;
  background-color: white;
  color: black;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background-color: white;
  transform: rotate(45deg);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

.whatsapp-btn button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  position: relative;
  z-index: 10;
}

.whatsapp-btn button:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-btn button svg {
  width: 32px;
  height: 32px;
}

.whatsapp-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #25D366;
  z-index: 0;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Portfolio Section */
.portfolio {
  padding: 6rem 0;
  background-color: var(--card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-portfolios {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-portfolio {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.service-portfolio:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-title {
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  margin: 0;
}

.expand-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.expand-btn:hover {
  border-color: var(--primary);
  color: white;
  background-color: rgba(37, 99, 235, 0.1);
}

.expand-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Collapsed state - show only first row */
.portfolio-grid.collapsed {
  max-height: 350px;
  overflow: hidden;
}

/* Mobile: Show only first item */
.portfolio-grid.collapsed .project-card:nth-child(n+2) {
  display: none;
}

/* Tablet: Show first 2 items, hide rest */
@media (min-width: 768px) {
  .portfolio-grid.collapsed {
    max-height: 350px;
  }
  .portfolio-grid.collapsed .project-card:nth-child(n+3) {
    display: none;
  }
  .portfolio-grid.collapsed .project-card:nth-child(-n+2) {
    display: block;
  }
}

/* Desktop: Show first 3 items, hide rest */
@media (min-width: 1024px) {
  .portfolio-grid.collapsed {
    max-height: 350px;
  }
  .portfolio-grid.collapsed .project-card:nth-child(n+4) {
    display: none;
  }
  .portfolio-grid.collapsed .project-card:nth-child(-n+3) {
    display: block;
  }
}

/* Expanded state - show all items */
.portfolio-grid.expanded {
  max-height: 2000px;
}

.portfolio-grid.expanded .project-card {
  display: block;
}

/* Project card adjustments */
.project-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: var(--background);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.project-service {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.25rem;
}

.project-location {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Make sure form elements have appropriate cursors */
input, textarea, select {
  cursor: text;
}