/* Base Styles */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
  --gray-dark: #333333;
  --gray-darker: #1a1a1a;
  --gold: #c5a059;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--black);
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin-top: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Hero Section */
/* Existing desktop styles (unchanged) */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

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

.hero-video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: 50%;
  height: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
  height: 75%;
  display: flex;
  flex-direction: column;
}

.hero-text-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  max-width: 800px;
  border: 1px solid var(--gray-medium);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Mobile-only optimizations (will only apply below 768px) */
@media (max-width: 768px) {
  /* Make navigation smaller on mobile */
  .navbar {
    padding: 0.25rem 0;
    background-color: var(--white);
  }

  .logo {
    font-size: 1.6rem;
    margin-top: 0.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* Hero section - fit perfectly within bounds */
  .hero {
    height: 100vh;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
  }

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

  .hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    transform: none;
  }

  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 2;
  }

  .hero .container {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 20px;
    padding-top: 80px;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
  }

  .hero-text-box {
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .cta-button {
    width: 100%;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 100vh;
    min-height: 100vh;
    padding-top: 0;
  }

  .hero .container {
    padding: 0 15px;
    padding-top: 70px;
  }

  .hero-content {
    width: 100%;
    padding: 1.5rem 0;
  }

  .hero-text-box {
    padding: 1.25rem;
    max-width: 400px;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-buttons {
    max-width: 200px;
    gap: 0.5rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  background-color: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  border: 2px solid var(--black);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--black);
}

.cta-button:hover {
  background-color: var(--gray-darker);
  border-color: var(--gray-darker);
  color: var(--white);
}

.cta-button.secondary:hover {
  background-color: var(--black);
  color: var(--white);
}

.back-button {
  display: inline-block;
  margin-top: 3rem;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--black);
  margin: 1.5rem auto;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-dark);
}

.view-all {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 1rem;
}

/* Services Section - Vertical Layout */
.services-vertical {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 4rem;
}

.service-vertical-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border-top: 1px solid var(--gray-medium);
  border-bottom: 1px solid var(--gray-medium);
}

.service-image {
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-line {
  width: 80px;
  height: 1px;
  background: var(--black);
  margin: 1.5rem 0;
}

.service-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.service-content li {
  margin-bottom: 0.8rem;
}

.service-vertical-card.reverse {
  grid-template-columns: 1fr 1fr;
  direction: ltr;
}
.service-vertical-card.reverse > .service-content {
  order: 1;
}
.service-vertical-card.reverse > .service-image {
  order: 2;
}
@media (min-width: 1025px) {
  .service-vertical-card.reverse {
    direction: rtl;
  }
  .service-vertical-card.reverse > .service-content,
  .service-vertical-card.reverse > .service-image {
    direction: ltr;
  }
}

.service-vertical-card.reverse-flex {
  display: flex;
  flex-direction: row;
  min-height: 500px;
  border-top: 1px solid var(--gray-medium);
  border-bottom: 1px solid var(--gray-medium);
}

.service-vertical-card.reverse-flex .service-content {
  flex: 1 1 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-vertical-card.reverse-flex .service-image {
  flex: 1 1 0;
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

@media (max-width: 1024px) {
  .service-vertical-card.reverse-flex {
    flex-direction: column;
    min-height: auto;
  }
  .service-vertical-card.reverse-flex .service-image {
    min-height: 300px;
  }
}

/* About Section */
.about {
  padding: 8rem 0;
  background-color: var(--gray-light);
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.about-column p {
  margin-bottom: 2rem;
}

.expertise-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.metric {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--gray-medium);
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.expertise-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.expertise-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

/* Portfolio Preview */
.portfolio-preview {
  padding: 6rem 0 2rem;
}

/* Multi-Item Carousel */
.multi-carousel {
  padding: 2rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  cursor: grab;
  width: 100%;
  gap: 1.5rem;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-slide {
  min-width: calc(10% - 1.5rem);
  max-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-slide:hover {
  transform: translateY(-5px);
}

.slide-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.carousel-slide:hover .slide-overlay {
  opacity: 1;
}

/* Right hover area for speed-up */
.carousel-hover-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  background: transparent;
}

/* Left hover area for speed-up */
.carousel-hover-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  background: transparent;
}

/* Logo cursor pointer */
.logo {
  cursor: pointer;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

/* Enhanced carousel slide hover effect */
.carousel-slide:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 2;
}

.carousel-slide {
  transition: transform 0.4s ease, z-index 0.4s ease;
}

.slide-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.slide-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-medium);
  border: none;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--black);
}

/* Footer */
.footer {
  padding: 5rem 0 2rem;
  background-color: var(--gray-darker);
  color: var(--white);
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-email {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gray-medium);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.link-group {
  display: flex;
  flex-direction: column;
}

.link-group h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.link-group a {
  color: var(--gray-medium);
  margin-bottom: 0.8rem;
}

.link-group a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: var(--gray-medium);
}

/* Small Footer Styles */
.footer.small-footer {
  padding: 2rem 0 1rem;
  background-color: var(--gray-darker);
  color: var(--white);
}

.footer-brand-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-small .logo {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.footer-email,
.footer-phone {
  color: var(--gray-medium);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.footer-bottom-small {
  text-align: center;
  margin-top: 1rem;
  color: var(--gray-medium);
  font-size: 0.95rem;
}

/* Hide grid and extra padding for small footer */
.footer.small-footer .footer-content,
.footer.small-footer .footer-links,
.footer.small-footer .link-group {
  display: none !important;
}

.footer.small-footer .footer-bottom {
  justify-content: center;
  border-top: none;
  padding-top: 0;
}

/* Minimal Footer Styles */
.footer.minimal-footer {
  padding: 1.2rem 0 0.8rem;
  background-color: var(--gray-darker);
  color: var(--white);
  position: relative;
  font-size: 1rem;
}

.footer-minimal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-minimal-left {
  text-align: left;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.footer-minimal-center {
  flex: 1 1 auto;
  text-align: center;
  color: var(--gray-medium);
  font-size: 1rem;
}

.footer-minimal-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.footer-email {
  color: var(--gray-medium);
  font-size: 1rem;
}

.footer-phone {
  color: var(--gray-medium);
  font-size: 1rem;
}

.footer-contact-btn {
  background: var(--gold);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 1rem;
}

.footer-contact-btn:hover {
  background: #b8935f;
}

@media (max-width: 700px) {
  .footer-minimal-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .footer-minimal-left,
  .footer-minimal-center,
  .footer-minimal-right {
    text-align: center;
    align-items: center;
  }
  .footer-minimal-right {
    flex-direction: column;
    align-items: center;
  }
}

/* Hide previous footer styles for minimal footer */
.footer.minimal-footer .footer-content,
.footer.minimal-footer .footer-links,
.footer.minimal-footer .footer-brand,
.footer.minimal-footer .footer-bottom,
.footer.minimal-footer .footer-brand-small {
  display: none !important;
}

/* Portfolio Page Styles */
.portfolio-page {
  padding-top: 64px;
}

.portfolio-header {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--gray-light);
}

.portfolio-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.portfolio-header p {
  font-size: 1.2rem;
  color: var(--gray-dark);
}

.portfolio-grid {
  margin-bottom: 5rem;
}

.portfolio-project {
  margin-bottom: 5rem;
}

.project-hero {
  position: relative;
}

.project-image {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-header {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  padding: 4rem 0;
}

.project-logo {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.project-tagline {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0;
}

.project-content {
  padding: 5rem 0;
}

.project-overview {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.project-overview h3 {
  margin-bottom: 1.5rem;
  position: relative;
}

.project-overview h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--black);
  margin: 1rem 0;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.detail-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.detail-column h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--black);
  margin: 1rem 0;
}

.project-results {
  margin-bottom: 4rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.result-item {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--gray-medium);
}

.result-metric {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-testimonial {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  background-color: var(--gray-light);
  position: relative;
}

.project-testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}

blockquote {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
}

/* Modern Portfolio Grid Styles */
.modern-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
  padding-top: 2rem;
}

.portfolio-card {
  background: var(--white);
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.07),
    0 1.5px 6px 0 rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  border: 1px solid var(--gray-medium);
}

.portfolio-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.13), 0 3px 12px 0 rgba(0, 0, 0, 0.07);
  border-color: var(--gold);
}

.portfolio-card-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s;
  border-radius: 0.8rem 0.8rem 0 0;
}

.portfolio-card:hover .portfolio-card-image {
  transform: scale(1.04);
}

.portfolio-card-content {
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio-card-logo {
  max-width: 120px;
  margin-bottom: 1rem;
  margin-top: -2.5rem;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  padding: 0.5rem 1rem;
}

.portfolio-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--black);
  letter-spacing: 1px;
}

.portfolio-card-description {
  font-size: 1.05rem;
  color: var(--gray-dark);
  margin-bottom: 0;
}

/* Modern Vertical Portfolio List */
.vertical-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 5rem;
  padding-top: 2rem;
  padding-left: 3vw;
  padding-right: 3vw;
}

.vertical-portfolio-project {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
  background: var(--white);
  border-radius: 0;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.07),
    0 1.5px 6px 0 rgba(0, 0, 0, 0.03);
  overflow: hidden;
  border: 1px solid var(--gray-medium);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.vertical-portfolio-project:hover {
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.13), 0 3px 12px 0 rgba(0, 0, 0, 0.07);
  border-color: var(--gold);
}

.vertical-portfolio-project.reverse {
  flex-direction: row-reverse;
}

.vertical-portfolio-image-container {
  flex: 0 0 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  min-height: 340px;
  max-width: 340px;
  border-radius: 0;
  overflow: hidden;
}

.vertical-portfolio-project.reverse .vertical-portfolio-image-container {
  border-radius: 0;
}

.vertical-portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  transition: transform 0.3s;
}

.vertical-portfolio-project.reverse .vertical-portfolio-image {
  border-radius: 0;
}

.vertical-portfolio-project:hover .vertical-portfolio-image {
  transform: scale(1.08);
}

.vertical-portfolio-content {
  flex: 1 1 0;
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vertical-portfolio-logo {
  max-width: 120px;
  margin-bottom: 1.2rem;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  padding: 0.5rem 1rem;
}

.vertical-portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--black);
  letter-spacing: 1px;
}

.vertical-portfolio-description {
  font-size: 1.13rem;
  color: var (--gray-dark);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .vertical-portfolio-project,
  .vertical-portfolio-project.reverse {
    flex-direction: column !important;
    align-items: stretch;
  }
  .vertical-portfolio-image-container {
    max-width: 100%;
    min-height: 220px;
    border-radius: 0 !important;
  }
  .vertical-portfolio-image {
    border-radius: 0 !important;
  }
  .vertical-portfolio-content {
    padding: 1.5rem 1.2rem 2rem 1.2rem;
  }
}

@media (max-width: 600px) {
  .modern-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .portfolio-card-content {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .portfolio-card-logo {
    max-width: 90px;
    margin-top: -1.5rem;
  }
}

@media (max-width: 1200px) {
  .carousel-slide {
    min-width: calc(33.33% - 1.5rem);
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .service-vertical-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-image {
    height: 300px;
  }

  .project-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    position: static;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
  }

  .nav-links.active {
    transform: none;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: inline-block;
    width: auto;
    text-align: center;
  }

  .hero {
    padding-top: 120px; /* Increased to prevent navbar overlap */
    padding-bottom: 8rem; /* Increased to prevent services overlap */
    min-height: 100vh; /* Full viewport height */
  }

  .hero-content {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-text-box {
    padding: 3rem;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 8px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.8rem; /* Better mobile scaling */
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  h2.section-title {
    font-size: 2rem;
  }

  .carousel-slide img {
    height: 500px;
  }

  .slide-content {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .carousel-track {
    touch-action: pan-x;
  }

  .carousel-hover-left,
  .carousel-hover-right {
    display: none; /* Hide hover areas on mobile */
  }
}

@media (max-width: 480px) {
  /* Hero adjustments for small screens */
  .hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-text-box {
    padding: 2rem;
  }

  /* Services */
  .service-content {
    padding: 2rem;
  }

  .service-vertical-card .service-image,
  .service-vertical-card.reverse-flex .service-image {
    min-height: 240px;
  }

  /* Carousel - Even smaller for very small screens */
  .carousel-slide {
    min-width: calc(30% - 1rem); /* Even smaller to show more slides */
  }

  /* Consultation Form */
  .consultation-form {
    padding: 1.5rem;
  }

  .consultation-form h2 {
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--black);
  transition: all 0.3s ease;
}

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

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Enhancements */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  padding: 0.75rem 0;
}

/* Consultation Overlay Styles */
.consultation-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  transition: right 0.5s ease;
}

.consultation-overlay.active {
  right: 0;
}

.consultation-container {
  width: 80%;
  max-width: 1200px;
  height: 100%;
  background: white;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.consultation-overlay.active .consultation-container {
  transform: translateX(0);
}

.consultation-form {
  width: 50%;
  padding: 5%;
  overflow-y: auto;
}

.consultation-details {
  width: 50%;
  padding: 5%;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: -1;
}

.close-consultation {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  z-index: 1;
}

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

.consultation-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.consultation-details p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.consultation-form h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--black);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

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

.submit-btn {
  padding: 0.75rem 1.5rem;
  background: var(--black);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Navigation */
  .hamburger {
    display: none; /* Remove hamburger menu */
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    position: static;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
  }

  .nav-links.active {
    transform: none;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: inline-block;
    width: auto;
    text-align: center;
  }

  /* Hero Section - Fix mobile navigation overlap and ensure full coverage */
  .hero {
    padding-top: 120px; /* Increased to prevent navbar overlap */
    padding-bottom: 8rem; /* Increased to prevent services overlap */
    min-height: 100vh; /* Full viewport height */
  }

  .hero-content {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-text-box {
    padding: 3rem;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 8px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.8rem; /* Better mobile scaling */
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

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

  /* Services section adjustments */
  .service-vertical-card,
  .service-vertical-card.reverse-flex {
    flex-direction: column;
  }

  .service-vertical-card .service-image,
  .service-vertical-card.reverse-flex .service-image {
    min-height: 280px;
    width: 100%;
    order: 1; /* Image always comes first on mobile */
  }

  .service-vertical-card .service-content,
  .service-vertical-card.reverse-flex .service-content {
    order: 2; /* Content always comes second on mobile */
  }

  .service-content {
    padding: 2.5rem;
  }

  /* Carousel adjustments */
  .carousel-slide {
    min-width: calc(35% - 1rem); /* Much smaller to show multiple slides */
  }

  /* Footer */
  .footer-minimal-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-minimal-right {
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact-btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  /* Consultation Overlay - Mobile only form */
  .consultation-container {
    width: 100%;
    flex-direction: column;
  }

  .consultation-details {
    display: none; /* Hide info panel on mobile */
  }

  .consultation-form {
    width: 100%;
    padding: 2rem;
  }

  .consultation-form h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  /* Hero adjustments for small screens */
  .hero {
    min-height: 550px;
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-text-box {
    padding: 2rem;
  }

  /* Services */
  .service-content {
    padding: 2rem;
  }

  .service-vertical-card .service-image,
  .service-vertical-card.reverse-flex .service-image {
    min-height: 240px;
  }

  /* Carousel */
  .carousel-slide {
    min-width: calc(80% - 1rem);
  }

  /* Consultation Form */
  .consultation-form {
    padding: 1.5rem;
  }

  .consultation-form h2 {
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }
}

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Thank You Page Styles */
.thank-you-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.thank-you-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.thank-you-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #666;
}

.thank-you-content .cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.thank-you-content .cta-button:hover {
  background-color: #555;
}
