/* === Base Styles === */
:root {
  --primary-color: #fdbcdf; /* Pink accent color */
  --secondary-color: #fdbcdf; /* Pink as secondary */
  --accent-color: #fdbcdf; /* Pink accent */
  --background-color: #323232; /* Dark grey background */
  --dark-background: #242424; /* Darker grey */
  --text-color: #f6f3e2; /* Light cream text */
  --light-text: #f6f3e2; /* Light cream text */
  --white: #f6f3e2; /* Using cream instead of white */
  --black: #242424; /* Dark background color */
  --border-color: rgba(253, 188, 223, 0.3); /* Translucent pink border */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --glass-bg: rgba(253, 188, 223, 0.1); /* Glassmorphism background */
  --glass-border: rgba(255, 255, 255, 0.1); /* Glassmorphism border */
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Glassmorphism shadow */
  --glass-blur: 10px; /* Blur amount for glassmorphism */
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --section-spacing: 120px;
  --header-height: 80px;
}

/* Light Mode Theme Variables */
:root.light-mode {
  --background-color: #f6f3e2; /* Cream background */
  --dark-background: #e7e4d3; /* Slightly darker cream */
  --text-color: #242424; /* Dark text */
  --light-text: #323232; /* Light dark text */
  --white: #242424; /* Using dark instead of cream */
  --black: #f6f3e2; /* Light background color */
  --primary-color: #fdbcdf; /* Keep the pink for accent elements */
  --secondary-color: #242424; /* Dark grey for secondary elements */
  --accent-color: #fdbcdf; /* Keep pink accent color */
  --border-color: rgba(253, 188, 223, 0.4); /* Pink translucent border */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --glass-border: rgba(0, 0, 0, 0.1); /* Glassmorphism border for light mode */
  --glass-bg: rgba(253, 188, 223, 0.08); /* Light pink glassmorphism background */
}

/* Theme Toggle Styles */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  margin-right: 12px;
  overflow: hidden;
}

.theme-toggle:hover {
  background-color: rgba(253, 188, 223, 0.1);
  transform: translateY(-2px);
}

.theme-toggle i {
  font-size: 16px;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.theme-toggle i.fa-sun {
  color: #fdbcdf; /* Always keep sun icon pink regardless of mode */
}

.theme-toggle i.fa-moon {
  color: #f6f3e2; /* Moon icon cream color in dark mode */
}

:root.light-mode .theme-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

/* Animation for theme toggle */
.theme-toggle:active i {
  transform: rotate(360deg);
}

/* Theme toggle glow effect */
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.theme-toggle:hover::after {
  opacity: 0.3;
}

/* Light mode overrides for headers and mobile menu */
:root.light-mode .sliding-header {
  background-color: rgba(246, 243, 226, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(253, 188, 223, 0.2);
}

:root.light-mode .feature-list li::before {
  background-color: rgba(253, 188, 223, 0.2);
}

:root.light-mode .feature-list li::after {
  background-color: var(--primary-color);
}

:root.light-mode .sliding-header .menu-toggle span {
  background-color: #242424 !important;
}

:root.light-mode .mobile-nav {
  background-color: var(--background-color);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

:root.light-mode .mobile-nav-header .logo img {
  filter: brightness(0.2);
}

:root.light-mode .mobile-menu a,
:root.light-mode .mobile-email,
:root.light-mode .mobile-social a {
  color: #242424;
}

:root.light-mode .mobile-social a {
  border-color: rgba(36, 36, 36, 0.3);
}

:root.light-mode .mobile-menu a:hover,
:root.light-mode .mobile-email:hover,
:root.light-mode .mobile-social a:hover {
  color: #111111;
}

:root.light-mode .close-menu {
  color: #242424;
}

/* Improved mobile menu for light mode */
:root.light-mode .mobile-menu a,
:root.light-mode .mobile-email,
:root.light-mode .mobile-social a {
  color: #242424;
}

:root.light-mode .mobile-menu a:hover,
:root.light-mode .mobile-email:hover,
:root.light-mode .mobile-social a:hover {
  color: #000000;
}

:root.light-mode .mobile-nav-footer {
  border-top-color: rgba(36, 36, 36, 0.1);
}

/* Card improvements for light mode */
:root.light-mode .service-card,
:root.light-mode .project-card,
:root.light-mode .value-card {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

:root.light-mode .service-card:hover,
:root.light-mode .project-card:hover,
:root.light-mode .value-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
}

:root.light-mode .service-icon,
:root.light-mode .value-icon {
  background-color: rgba(253, 188, 223, 0.15);
}

:root.light-mode .service-icon i,
:root.light-mode .value-icon i {
  color: var(--primary-color);
}

:root.light-mode .service-title span,
:root.light-mode .value-card h4 span {
  color: var(--primary-color);
}

:root.light-mode .project-overlay {
  background-color: rgba(36, 36, 36, 0.8);
}

:root.light-mode .project-card:hover .view-project-btn {
  color: var(--white);
}

/* Button styles for light mode */
:root.light-mode .btn-primary {
  color: #242424;
}

:root.light-mode .btn-primary .btn-backdrop {
  background-color: var(--primary-color);
}

:root.light-mode .btn-primary:hover .btn-backdrop {
  background-color: #ffaed4;
  box-shadow: 
    0 5px 15px rgba(253, 188, 223, 0.4),
    0 0 40px rgba(253, 188, 223, 0.2);
}

:root.light-mode .btn-secondary,
:root.light-mode .services-btn {
  border-color: rgba(253, 188, 223, 0.5);
  color: #242424;
}

:root.light-mode .btn-secondary:hover,
:root.light-mode .services-btn:hover {
  border-color: var(--primary-color);
}

:root.light-mode .btn-secondary:hover .btn-text,
:root.light-mode .services-btn:hover .btn-text {
  color: var(--primary-color);
}

:root.light-mode .view-project-btn {
  background-color: rgba(255, 255, 255, 0.85);
  color: #242424;
  border-color: rgba(253, 188, 223, 0.3);
}

:root.light-mode .view-project-btn:hover {
  background-color: var(--primary-color);
  color: #242424;
  border-color: var(--primary-color);
}

/* Light mode contact section */
:root.light-mode .contact-section {
  background-color: #242424;
}

:root.light-mode .contact-title,
:root.light-mode .contact-email {
  color: #f6f3e2;
}

:root.light-mode .contact-title::after {
  background-color: #f6f3e2;
}

:root.light-mode .back-to-top {
  background-color: #242424;
  color: #f6f3e2;
}

/* Section header styles for light mode */
:root.light-mode .section-tag {
  color: var(--primary-color);
}

:root.light-mode .section-tag::after {
  background-color: var(--primary-color);
}

:root.light-mode .section-title {
  color: #242424;
}

:root.light-mode .section-description {
  color: #323232;
}

/* Special elements for light mode */
:root.light-mode .project-category {
  color: var(--primary-color);
  font-weight: 800;
}

:root.light-mode .hero-tag {
  color: var(--primary-color);
}

/* Highlight effects in light mode */
:root.light-mode .highlight {
  color: var(--primary-color);
}

:root.light-mode .highlight::after {
  background-color: rgba(253, 188, 223, 0.15);
}

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.hero-theme-toggle {
  display: none;
  margin-right: 15px;
}

@media (max-width: 767px) {
  .hero-theme-toggle {
    display: flex;
  }
  
  .header-actions .theme-toggle {
    display: none;
  }
}

/* Add theme transition to body */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* === Utility Classes === */
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  position: relative;
  text-align: center;
  width: 100%;
}

.section-tag::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
  line-height: 1.2;
  text-align: center;
}

.section-description {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--light-text);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-color);
  padding: 0;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-text {
  position: relative;
  z-index: 3;
  display: block;
  padding: 12px 30px;
}

.btn-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 1;
  border-radius: 50px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  z-index: 2;
  border-radius: 50px;
  pointer-events: none;
  mix-blend-mode: overlay;
  transform: scale(1.5);
  transition: opacity 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
}

.btn-primary:hover .btn-backdrop {
  background-color: #ffaed4;
  box-shadow: 
    0 5px 15px rgba(253, 188, 223, 0.4),
    0 0 40px rgba(253, 188, 223, 0.3),
    0 0 80px rgba(253, 188, 223, 0.2);
}

.btn-primary:hover .btn-glow {
  opacity: 1;
  animation: glowPulse 2s infinite alternate;
}

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-color);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-arrow {
  margin-left: 8px;
  transform: translateX(0);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  right: 28px;
  z-index: 3;
}

.btn-liquid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 188, 223, 0.2) 0%, rgba(253, 188, 223, 0.1) 100%);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 50px;
}

.btn-secondary:hover {
  padding-right: 55px;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(253, 188, 223, 0.3);
}

.btn-secondary:hover .btn-arrow {
  transform: translateX(0);
  opacity: 1;
  animation: arrowBounce 1s infinite alternate;
}

.btn-secondary:hover .btn-liquid {
  transform: translateY(0);
  animation: liquidFlow 2.5s infinite;
}

.btn-secondary:hover .btn-text {
  color: var(--primary-color);
  animation: textFloating 2.5s infinite;
}

@keyframes arrowBounce {
  0% { transform: translateX(0); }
  100% { transform: translateX(5px); }
}

@keyframes liquidFlow {
  0% {
    transform: translateY(0) skewX(0);
    opacity: 0.7;
  }
  25% {
    transform: translateY(0) skewX(10deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(0) skewX(-8deg);
    opacity: 0.9;
  }
  75% {
    transform: translateY(0) skewX(5deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) skewX(0);
    opacity: 0.7;
  }
}

@keyframes textFloating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.highlight {
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(253, 188, 223, 0.25); /* Pink highlight */
  z-index: -1;
  transition: all 0.3s ease;
}

.hero-title:hover .highlight::after {
  height: 30%;
  background-color: rgba(253, 188, 223, 0.15); /* Pink highlight */
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* === Cursor Follow Element === */
.cursor-follow {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(253, 188, 223, 0.5); /* Pink cursor */
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
  display: block; /* Changed from none to block to always show */
}

@media (min-width: 1024px) {
  .cursor-follow {
    display: block;
  }
}

/* === Header Styles === */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  padding: 30px 0;
  transition: var(--transition);
  will-change: transform;
}

.site-header .header-inner {
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sliding-header {
  position: fixed;
  top: -100px; /* Start off-screen */
  left: 0;
  width: 100%;
  z-index: 101; /* Higher than regular header */
  background-color: rgba(253, 188, 223, 0.9); /* Semi-transparent pink */
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              left 1s cubic-bezier(0.22, 1, 0.36, 1); /* Ultra-smooth transitions */
  will-change: transform, opacity, left; /* Performance optimization */
}

.sliding-header.visible {
  transform: translateY(100px) translateZ(0); /* Move into view with hardware acceleration */
  opacity: 1;
}

.sliding-header:hover {
  background-color: rgba(253, 188, 223, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Animation for when menu is open */
.sliding-header.menu-open {
  left: -100%; /* Slide out to the left */
  opacity: 0;
  transform: translateY(100px) translateZ(0);
  transition: 
    left 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sliding-header.menu-close {
  left: 0; /* Slide back from the left */
  opacity: 1;
  transform: translateY(100px) translateZ(0);
  transition: 
    left 1s cubic-bezier(0.22, 1, 0.36, 1), 
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Add refined slide-in animation keyframes */
@keyframes smoothSlideDown {
  0% {
    transform: translateY(-100%) translateZ(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) translateZ(0);
    opacity: 1;
  }
}

@keyframes smoothSlideOut {
  0% {
    transform: translateX(0) translateZ(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-110%) translateZ(0);
    opacity: 0;
  }
}

@keyframes smoothSlideIn {
  0% {
    transform: translateX(-110%) translateZ(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateZ(0);
    opacity: 1;
  }
}

.sliding-header .logo img {
  height: 65px; /* Exactly matching the hero section logo height */
  width: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.sliding-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  height: auto; /* Allow natural height based on content */
  min-height: 60px; /* Reduced minimum height for thinner header */
}

.sliding-header .menu-toggle {
  margin-right: 0;
}

.sliding-header .menu-toggle span {
  background-color: #333333 !important; /* Dark grey color for hamburger menu */
}

.sliding-header .menu-toggle.active span {
  background-color: #333333 !important; /* Dark grey color when active */
}

.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  position: relative;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
}

/* Language Switcher - Simple & Smooth */
.lang-switcher {
    position: relative;
    margin-right: 1.5rem;
    display: flex;
    gap: 6px;
    padding: 4px;
    background-color: rgba(36, 36, 36, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.lang-switcher:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-option {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 5px 12px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-option.active {
    color: #242424;
}

.lang-selector {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    border-radius: 16px;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(253, 188, 223, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

/* Mobile language switcher modifications */
.mobile-lang-switcher {
    margin: 1.5rem 0 0.5rem;
    align-self: center;
    width: fit-content;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 1rem;
    }
    
    .lang-option {
        font-size: 13px;
        padding: 4px 10px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 1rem;
        padding: 0.2rem 0.4rem;
    }
    
    .lang-toggle {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        margin-right: 0.75rem;
    }
}

/* Add animation for language toggle */
.lang-toggle::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #fdbcdf;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.lang-toggle:hover::before {
    width: 70%;
}

.lang-toggle.active::before {
    width: 80%;
}

.about-text .section-tag, 
.about-text .section-title {
  text-align: center;
}

.about-text .section-tag::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-btn {
  padding: 10px 25px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  display: none;
}

.menu-toggle {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin-right: 10px;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  transform-origin: center;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-4px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(4px);
}

.menu-toggle.active {
  transform: rotate(180deg);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  width: 80%;
}

.menu-toggle.active span:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
  width: 80%;
}

/* === Mobile Navigation === */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%; /* Reduced from 100% */
  max-width: 350px; /* Reduced from 400px */
  height: 100%;
  max-height: 100vh;
  background-color: var(--primary-color);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 30px 25px; /* Increased padding */
  overflow: hidden; /* Prevent scrolling */
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px; /* Increased spacing */
}

.mobile-nav-header .logo img {
  height: 65px; /* Match the hero section logo size */
}

.close-menu {
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.close-menu:hover {
  color: var(--dark-background);
  transform: rotate(90deg);
}

.mobile-menu {
  margin: 0 0 20px 0; /* Reduced bottom margin */
  flex-grow: 1; /* Allow menu to take available space */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center items vertically */
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Slightly increased gap but still compact */
}

.mobile-menu li {
  opacity: 0;
  transform: translateX(20px);
  padding-bottom: 0;
  margin-bottom: 3px; /* Add slight margin for breathing room */
}

.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 44px; /* Even larger font size */
  color: var(--text-color);
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
  line-height: 1.1; /* Tighter line height */
  transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--dark-background);
  transform: translateX(5px);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 18px; /* Increased gap */
  margin-top: auto; /* Push to bottom */
  padding-top: 25px; /* Increased padding */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: flex-start;
}

.mobile-social-wrapper {
  display: flex;
  align-items: center; /* Ensure vertical center alignment */
  gap: 15px;
  width: 100%;
  margin-top: 2px; /* Add slight top margin to help vertical alignment */
}

.mobile-social {
  display: flex;
  gap: 15px;
}

/* Mobile Language Switcher - Positioning next to social icons */
.mobile-lang-switcher {
  margin: 0;
  padding: 3px; /* Slightly increased padding */
  height: auto;
  transform-origin: left center;
  background-color: rgba(36, 36, 36, 0.5);
  border-radius: 18px;
  align-self: center; /* Align with the social icon */
  position: relative;
  top: -3px; /* Push up to perfectly align with social icons */
}

.mobile-lang-switcher .lang-option {
  font-size: 14px; /* Increased font size */
  padding: 5px 10px; /* Adjusted padding */
}

.mobile-lang-switcher .lang-selector {
  top: 3px;
  left: 4px;
  height: calc(100% - 6px);
  width: 32px !important; /* Adjusted width for larger text */
}

.mobile-email {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: var(--transition);
  font-size: 22px; /* Increased font size */
  color: var(--text-color);
  display: inline-block;
}

.mobile-email:hover {
  color: var(--dark-background);
}

.mobile-social a {
  font-size: 26px; /* Increased icon size */
  color: var(--text-color);
  transition: var(--transition);
  width: 48px; /* Increased size */
  height: 48px; /* Increased size */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-social a:hover {
  color: var(--dark-background);
  border-color: var(--dark-background);
  transform: translateY(-3px);
}

/* === Services Section === */
.services-section {
  padding: var(--section-spacing) 0;
  background-color: var(--dark-background);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background-color: rgba(253, 188, 223, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 188, 223, 0.1) 0%, rgba(253, 188, 223, 0) 100%);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(253, 188, 223, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon i {
  font-size: 28px;
  color: var(--primary-color);
}

.service-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-title span {
  color: var(--primary-color);
}

.service-description {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 25px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-features li {
  font-family: 'Poppins', sans-serif;
  position: relative;
  padding-left: 25px;
  display: flex;
  align-items: center;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: rgba(253, 188, 223, 0.1);
  border-radius: 50%;
}

.service-features li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Services CTA Button - Changed to match the secondary button style */
.services-cta {
  text-align: center;
  margin-top: 60px;
}

.services-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-color);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-btn .btn-text {
  position: relative;
  z-index: 3;
  display: block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-btn .btn-arrow {
  margin-left: 8px;
  transform: translateX(0);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  right: 28px;
  z-index: 3;
}

.services-btn .btn-liquid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 188, 223, 0.2) 0%, rgba(253, 188, 223, 0.1) 100%);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 50px;
}

.services-btn:hover {
  padding-right: 55px;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(253, 188, 223, 0.3);
}

.services-btn:hover .btn-arrow {
  transform: translateX(0);
  opacity: 1;
  animation: arrowBounce 1s infinite alternate;
}

.services-btn:hover .btn-liquid {
  transform: translateY(0);
  animation: liquidFlow 2.5s infinite;
}

.services-btn:hover .btn-text {
  color: var(--primary-color);
  animation: textFloating 2.5s infinite;
}

/* === Work Section === */
.work-section {
  padding: var(--section-spacing) 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.project-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  background-color: rgba(253, 188, 223, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.project-card:hover {
  transform: translateY(-10px);
}

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

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(36, 36, 36, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project-btn {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: var(--transition);
}

.project-card:hover .view-project-btn {
  transform: translateY(0);
}

.project-card:hover .view-project-btn:hover {
  background-color: var(--primary-color);
  color: var(--dark-background);
}

.project-info {
  padding: 25px;
}

.project-category {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.project-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}

.project-description {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--light-text);
}

/* === About Section Redesigned === */
.about-section {
  padding: var(--section-spacing) 0;
  background-color: var(--dark-background);
  overflow: hidden;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header .section-tag,
.about-header .section-title {
  text-align: center;
}

.about-header .about-text-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 20px auto 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

/* Image Column */
.about-image-column {
  flex: 1;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center; /* Center vertically */
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%; /* Changed from max-width */
  height: 400px; /* Increased from 300px */
  margin: 0 auto; /* Center the image */
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--border-radius);
  transition: transform 0.8s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(36, 36, 36, 0.8) 0%, rgba(36, 36, 36, 0) 100%);
  padding: 30px 20px 20px;
  text-align: center;
}

.about-image-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 1px;
}

/* Text Column */
.about-text-column {
  flex: 1;
}

.about-text {
  margin-bottom: 0;
  text-align: center;
}

.about-text-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 20px auto 25px;
}

.about-description {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--light-text);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Value Cards Redesign - Match Service Cards */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  margin-top: 30px; /* Add more space between about content and values grid */
  clear: both; /* Ensure grid starts on new line */
}

.value-card {
  position: relative;
  background-color: rgba(253, 188, 223, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  height: 100%;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 188, 223, 0.1) 0%, rgba(253, 188, 223, 0) 100%);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card-inner {
  padding: 30px;
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(253, 188, 223, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.value-icon i {
  color: var(--primary-color);
  font-size: 24px;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  transform: translateY(-5px);
}

.value-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--white);
}

.value-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--light-text);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--dark-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  background-color: #ffaed4;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* Responsive adjustments for About section */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: stretch; /* Changed from center to fill space */
  }
  
  .about-image-column {
    width: 45%; /* Keep proportion */
    max-width: 600px; /* But allow it to get wider */
    padding-right: 40px;
  }
  
  .about-text-column {
    width: 55%;
  }
  
  .about-text {
    text-align: left;
  }
  
  .about-text-divider {
    margin-left: 0;
    margin-right: auto;
  }
  
  .about-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* About image larger on desktop */
  .about-image {
    height: 450px; /* Larger on desktop */
  }
}

@media (max-width: 767px) {
  .about-content {
    display: flex;
    flex-direction: column;
  }
  
  .about-text .section-title,
  .about-text .section-tag,
  .about-text-divider {
    order: 1;
  }
  
  .about-image-column {
    order: 1;
    margin: 0 auto 30px;
    width: 100%;
    padding-right: 0;
  }
  
  .about-image {
    max-width: 400px; /* Size on mobile */
  }
  
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  
  .about-description {
    order: 2;
  }
}

/* === Contact Section === */
.contact-section {
    position: relative;
    padding: 120px 0;
    background-color: var(--primary-color);
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
    transform: translateY(30px);
    opacity: 0.8;
}

.contact-section.in-view {
    transform: translateY(0);
    opacity: 1;
}

.contact-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    transition: all 0.5s ease;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 60px;
    color: var(--black);
    margin-bottom: 40px;
    position: relative;
    transition: all 0.4s ease;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.4s ease;
}

.contact-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
    transition: all 0.4s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.contact-email:hover {
    transform: translateY(-3px);
    border-color: var(--black);
}

@media (max-width: 767px) {
    .contact-title {
        font-size: 36px;
    }
    
    .contact-email {
        font-size: 22px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .contact-title {
        font-size: 46px;
    }
}

@media (min-width: 992px) {
    .contact-title {
        font-size: 56px;
    }
}

/* === Media Queries === */
@media (min-width: 768px) {
  .hero-content,
  .about-content {
    flex-direction: row;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-title {
    font-size: 72px;
  }
  
  .contact-email {
    font-size: 36px;
  }
}

@media (min-width: 992px) {
  .section-title {
    font-size: 52px;
  }
  
  .hero-title {
    font-size: 58px;
  }
  
  .main-nav {
    display: block;
  }
  
  .contact-btn {
    display: block;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-title {
    font-size: 84px;
  }
  
  .contact-email {
    font-size: 42px;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 80px; /* Increased from 72px */
  }
}

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

/* Hero Portfolio Preview */
.hero-portfolio-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(5, 60px);
  grid-gap: 15px;
  margin-left: 50px;
  perspective: 1000px;
  margin-right: 20px;
}

.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform-origin: center;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  animation: fadeIn 0.8s forwards;
  opacity: 0;
  will-change: transform, box-shadow;
  transition: 
    transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.6s cubic-bezier(0.33, 1, 0.68, 1),
    border-color 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.preview-item-1 {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  animation-delay: 0.2s;
}

.preview-item-2 {
  grid-column: 3 / span 3;
  grid-row: 2 / span 2;
  animation-delay: 0.4s;
}

.preview-item-3 {
  grid-column: 1 / span 2;
  grid-row: 3 / span 2;
  animation-delay: 0.6s;
}

.preview-item-4 {
  grid-column: 3 / span 2;
  grid-row: 4 / span 2;
  animation-delay: 0.8s;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 
    transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
    filter 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  filter: brightness(0.92) contrast(1.05) saturate(0.95);
  transform: scale(1);
  will-change: transform, filter;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(36, 36, 36, 0.75) 0%, rgba(36, 36, 36, 0) 65%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 15px 10px;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.preview-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 0;
}

.preview-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(253, 188, 223, 0.15) 0%, rgba(253, 188, 223, 0) 70%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

.preview-item:hover {
  transform: scale(1.25);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.preview-item:hover::before {
  opacity: 1;
}

.preview-item:hover img {
  filter: brightness(1.08) contrast(1.1) saturate(1.08);
  transform: scale(1.08);
}

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

.preview-item:hover .preview-overlay span {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments for the portfolio preview */
@media (max-width: 991px) {
  .hero-portfolio-preview {
    display: none;
  }
}

@media (min-width: 992px) {
  .hero-content {
    justify-content: space-between;
  }
  
  .hero-text {
    max-width: 50%;
  }
}

/* Media queries for responsive adjustments */
@media (max-width: 767px) {
  .cursor-follow {
    display: none; /* Hide on mobile */
  }
  
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 75%;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 70px; /* Increase bottom margin on mobile */
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }
  
  .btn-secondary {
    padding: 12px 30px; /* Match primary button padding */
  }
  
  .btn-secondary:hover {
    padding-right: 30px; /* Prevent padding change on hover */
  }
  
  .btn-secondary:hover .btn-arrow {
    position: absolute;
    right: 15px;
    transform: translateX(0);
    opacity: 1;
  }
  
  /* Make services and project CTA buttons slimmer on mobile */
  .services-btn, .project-cta .services-btn {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* About section on mobile */
  .about-image-column {
    order: 1;
    margin: 0 auto 30px;
    width: 100%;
    padding-right: 0;
  }
  
  .about-text-column {
    order: 2;
    width: 100%;
  }
  
  .about-image {
    max-width: 400px; /* Size on mobile */
  }
  
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  
  .cursor-follow {
    display: none; /* Hide on mobile */
  }
}

.sliding-header .container {
  padding: 5px 0; /* Very slim header */
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Project Modal Styles === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(36, 36, 36, 0.85);
  backdrop-filter: blur(8px);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.project-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(36, 36, 36, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  border: 1px solid rgba(253, 188, 223, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: 30px;
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(36, 36, 36, 0.3);
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* Light mode styles for modal */
:root.light-mode .modal-content {
  background: rgba(246, 245, 240, 0.98);
  border: 1px solid rgba(253, 188, 223, 0.6);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  scrollbar-color: var(--primary-color) rgba(246, 245, 240, 0.7);
}

:root.light-mode .modal-header h3,
:root.light-mode .modal-description h4 {
  color: #111111;
  font-weight: 800;
}

:root.light-mode .modal-description p,
:root.light-mode .feature-list li {
  color: #222222;
  font-weight: 500;
}

:root.light-mode .modal-tag {
  color: var(--primary-color);
  font-weight: 700;
}

:root.light-mode .feature-list li::before {
  background: rgba(253, 188, 223, 0.5);
}

:root.light-mode .feature-list li::after {
  background: var(--primary-color);
}

:root.light-mode .modal-description {
  border-left: 3px solid rgba(253, 188, 223, 0.3);
  padding-left: 20px;
}

:root.light-mode .close-modal {
  color: #111111;
  background: rgba(253, 188, 223, 0.4);
  border: 1px solid rgba(253, 188, 223, 0.7);
}

:root.light-mode .close-modal:hover {
  background: var(--primary-color);
  color: #111111;
}

:root.light-mode .modal-overlay {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
}

:root.light-mode .modal-image {
  border: 1px solid rgba(253, 188, 223, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

:root.light-mode .modal-content::-webkit-scrollbar-track {
  background: rgba(246, 245, 240, 0.8);
}

:root.light-mode .modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(36, 36, 36, 0.3);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(253, 188, 223, 0.1);
  border: 1px solid rgba(253, 188, 223, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.close-modal:hover {
  background: var(--primary-color);
  color: var(--dark-background);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 30px;
  padding-right: 50px;
}

.modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--white);
}

.modal-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal-image {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(253, 188, 223, 0.1);
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.modal-image:hover img {
  transform: scale(1.03);
}

.modal-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-description p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--light-text);
}

.modal-description h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-top: 10px;
  color: var(--white);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 5px;
}

.feature-list li {
  font-family: 'Poppins', sans-serif;
  position: relative;
  padding-left: 25px;
  font-size: 15px;
  color: var(--light-text);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: rgba(253, 188, 223, 0.2);
  border-radius: 50%;
}

.feature-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
}

.modal-cta {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

/* Animation for modal entry */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .modal-image {
    flex: 1;
    max-width: 45%;
  }
  
  .modal-description {
    flex: 1.2;
  }
}

@media (max-width: 767px) {
  .modal-content {
    padding: 20px;
  }
  
  .modal-header h3 {
    font-size: 26px;
  }
  
  .feature-list li {
    font-size: 14px;
  }
}

/* === Language Switcher === */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Project CTA Section */
.project-cta {
  text-align: center;
  margin-top: 50px; /* Add space above the button */
  margin-bottom: 20px; /* Add space below the button */
}

.quotation-btn {
  padding: 15px 40px;
  font-size: 18px;
  letter-spacing: 1px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.quotation-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quotation-btn .btn-text {
  font-weight: 800;
}

.about-text .section-tag, 
.about-text .section-title {
  text-align: center;
}

.about-text .section-tag::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Media queries for responsive adjustments */
@media (max-width: 767px) {
  .cursor-follow {
    display: none; /* Hide on mobile */
  }
  
  .hero-actions {
    margin-bottom: 70px; /* Increase bottom margin on mobile */
  }
  
  /* Make services and project CTA buttons slimmer on mobile */
  .services-btn, .project-cta .services-btn {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile language switcher */
.mobile-lang-switcher {
    margin: 1.5rem 0 0.5rem;
    align-self: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
    padding: 1.5rem;
}

@media (max-width: 480px) {
    .mobile-lang-switcher {
        margin: 1rem 0 0.5rem;
    }
}

/* Mobile footer specific style for small screens */
@media (max-height: 600px) {
  .mobile-nav-container {
    padding: 20px;
  }
  
  .mobile-menu {
    margin-bottom: 20px;
  }
  
  .mobile-menu ul {
    gap: 5px;
  }
  
  .mobile-menu a {
    font-size: 24px;
  }
  
  .mobile-nav-footer {
    margin-top: 10px;
    padding-top: 10px;
  }
}

.mobile-email {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: var(--transition);
  font-size: 18px;
  color: var(--text-color);
  display: inline-block;
}

.mobile-email:hover {
  color: var(--dark-background);
}

.mobile-social a {
  font-size: 22px;
  color: var(--text-color);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-social a:hover {
  color: var(--dark-background);
  border-color: var(--dark-background);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .mobile-nav {
    width: 100%;
    max-width: 100%;
  }
}

/* Optimize for very small devices */
@media (max-width: 375px) {
  .mobile-nav-container {
    padding: 25px 20px;
  }
  
  .mobile-nav-header .logo img {
    height: 55px; /* Still larger than original but fits better on tiny screens */
  }

  .mobile-menu a {
    font-size: 32px; /* Adjusted for tiny screens but still large */
  }
  
  .mobile-email {
    font-size: 20px;
  }
  
  .mobile-social a {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  
  .mobile-lang-switcher {
    transform: scale(0.95);
    transform-origin: left center;
  }
}

/* Ensure menu fits in landscape orientation on small devices */
@media (max-height: 480px) and (orientation: landscape) {
  .mobile-nav {
    width: 60%;
    right: 0;
  }
  
  .mobile-nav-container {
    padding: 20px;
  }
  
  .mobile-nav-header {
    margin-bottom: 15px;
  }
  
  .mobile-nav-header .logo img {
    height: 50px; /* Slightly smaller for landscape */
  }
  
  .mobile-menu {
    margin-bottom: 15px;
  }
  
  .mobile-menu a {
    font-size: 30px; /* Adjusted for landscape but still large */
  }
}

/* Overlay for mobile nav */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animation for menu items */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Menu enter animation */
@keyframes menuEnter {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Menu exit animation */
@keyframes menuExit {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* === Hero Section === */
.hero-section {
  min-height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 60px; /* Adjusted padding */
  position: relative;
  overflow: hidden;
}

/* Hide particle animation */
.particle-container {
  display: none;
}

.particle {
  display: none;
}

.interactive-sphere {
  display: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  z-index: 2;
  margin-top: 40px; /* Added more margin from top */
}

.hero-text {
  max-width: 600px;
  animation: fadeInUp 1s forwards;
}

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

.hero-tag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 68px; /* Increased from 60px */
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-description {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--light-text);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px; /* Added margin to create space between buttons and contact info */
}

.hero-contact {
  position: absolute;
  bottom: 30px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 3;
  margin-top: 20px; /* Added margin top */
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-email {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--light-text);
  transition: var(--transition);
}

.contact-separator {
  display: inline-block;
  width: 1px;
  height: 16px;
  background-color: var(--light-text);
  opacity: 0.5;
}

.hero-social-icon {
  color: var(--light-text);
  font-size: 16px;
  transition: var(--transition);
}

.hero-email:hover, 
.hero-social-icon:hover {
  color: var(--primary-color);
}

/* Remove scroll indicator styles */
.scroll-indicator {
  display: none;
}

.mouse, .wheel, .scroll-text {
  display: none;
}

@keyframes scroll {
  0% { opacity: 0; }
  100% { opacity: 0; }
}

/* === Services Section === */
.services-section {
  padding: var(--section-spacing) 0;
  background-color: var(--dark-background);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background-color: rgba(253, 188, 223, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 188, 223, 0.1) 0%, rgba(253, 188, 223, 0) 100%);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(253, 188, 223, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon i {
  font-size: 28px;
  color: var(--primary-color);
}

.service-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-title span {
  color: var(--primary-color);
}

.service-description {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 25px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-features li {
  font-family: 'Poppins', sans-serif;
  position: relative;
  padding-left: 25px;
  display: flex;
  align-items: center;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: rgba(253, 188, 223, 0.1);
  border-radius: 50%;
}

.service-features li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* Services CTA Button - Changed to match the secondary button style */
.services-cta {
  text-align: center;
  margin-top: 60px;
}

.services-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-color);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-btn .btn-text {
  position: relative;
  z-index: 3;
  display: block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-btn .btn-arrow {
  margin-left: 8px;
  transform: translateX(0);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  right: 28px;
  z-index: 3;
}

.services-btn .btn-liquid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 188, 223, 0.2) 0%, rgba(253, 188, 223, 0.1) 100%);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 50px;
}

.services-btn:hover {
  padding-right: 55px;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(253, 188, 223, 0.3);
}

.services-btn:hover .btn-arrow {
  transform: translateX(0);
  opacity: 1;
  animation: arrowBounce 1s infinite alternate;
}

.services-btn:hover .btn-liquid {
  transform: translateY(0);
  animation: liquidFlow 2.5s infinite;
}

.services-btn:hover .btn-text {
  color: var(--primary-color);
  animation: textFloating 2.5s infinite;
}

/* === Work Section === */
.work-section {
  padding: var(--section-spacing) 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.project-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  background-color: rgba(253, 188, 223, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.project-card:hover {
  transform: translateY(-10px);
}

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

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(36, 36, 36, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project-btn {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: var(--transition);
}

.project-card:hover .view-project-btn {
  transform: translateY(0);
}

.project-card:hover .view-project-btn:hover {
  background-color: var(--primary-color);
  color: var(--dark-background);
}

.project-info {
  padding: 25px;
}

.project-category {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.project-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}

.project-description {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--light-text);
}

/* === About Section Redesigned === */
.about-section {
  padding: var(--section-spacing) 0;
  background-color: var(--dark-background);
  overflow: hidden;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header .section-tag,
.about-header .section-title {
  text-align: center;
}

.about-header .about-text-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 20px auto 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

/* Image Column */
.about-image-column {
  flex: 1;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center; /* Center vertically */
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%; /* Changed from max-width */
  height: 400px; /* Increased from 300px */
  margin: 0 auto; /* Center the image */
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--border-radius);
  transition: transform 0.8s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(36, 36, 36, 0.8) 0%, rgba(36, 36, 36, 0) 100%);
  padding: 30px 20px 20px;
  text-align: center;
}

.about-image-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 1px;
}

/* Text Column */
.about-text-column {
  flex: 1;
}

.about-text {
  margin-bottom: 0;
  text-align: center;
}

.about-text-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 20px auto 25px;
}

.about-description {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--light-text);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Value Cards Redesign - Match Service Cards */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  margin-top: 30px; /* Add more space between about content and values grid */
  clear: both; /* Ensure grid starts on new line */
}

.value-card {
  position: relative;
  background-color: rgba(253, 188, 223, 0.05);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  height: 100%;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(253, 188, 223, 0.1) 0%, rgba(253, 188, 223, 0) 100%);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card-inner {
  padding: 30px;
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(253, 188, 223, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.value-icon i {
  color: var(--primary-color);
  font-size: 24px;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  transform: translateY(-5px);
}

.value-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--white);
}

.value-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--light-text);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--dark-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  background-color: #ffaed4;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* Responsive adjustments for About section */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: stretch; /* Changed from center to fill space */
  }
  
  .about-image-column {
    width: 45%; /* Keep proportion */
    max-width: 600px; /* But allow it to get wider */
    padding-right: 40px;
  }
  
  .about-text-column {
    width: 55%;
  }
  
  .about-text {
    text-align: left;
  }
  
  .about-text-divider {
    margin-left: 0;
    margin-right: auto;
  }
  
  .about-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* About image larger on desktop */
  .about-image {
    height: 450px; /* Larger on desktop */
  }
}

@media (max-width: 767px) {
  .about-content {
    display: flex;
    flex-direction: column;
  }
  
  .about-text .section-title,
  .about-text .section-tag,
  .about-text-divider {
    order: 1;
  }
  
  .about-image-column {
    order: 1;
    margin: 0 auto 30px;
    width: 100%;
    padding-right: 0;
  }
  
  .about-image {
    max-width: 400px; /* Size on mobile */
  }
  
  .about-values-grid {
    grid-template-columns: 1fr;
  }
  
  .about-description {
    order: 2;
  }
}

/* === Contact Section === */
.contact-section {
    position: relative;
    padding: 120px 0;
    background-color: var(--primary-color);
    overflow: hidden;
    z-index: 1;
    transition: all 0.8s ease;
    transform: translateY(30px);
    opacity: 0.8;
}

.contact-section.in-view {
    transform: translateY(0);
    opacity: 1;
}

/* Add hover effect for the contact section */
.contact-section:has(.contact-email:hover) {
    background-color: var(--dark-background);
    transition: background-color 0.8s ease-in-out;
}

.contact-section:has(.contact-email:hover) .contact-title,
.contact-section:has(.contact-email:hover) .contact-email {
    color: var(--primary-color) !important;
    transition: color 0.8s ease-in-out;
    transform: none;
}

.contact-section:has(.contact-email:hover) .contact-title::after {
    background-color: var(--primary-color);
    transition: background-color 0.8s ease-in-out;
}

.contact-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    transition: all 0.5s ease;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 60px;
    color: var(--black);
    margin-bottom: 40px;
    position: relative;
    transition: all 0.4s ease;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.4s ease;
}

.contact-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
    transition: all 0.8s ease;
    padding-bottom: 5px;
    position: relative;
    z-index: 2;
    text-decoration: none;
    border-bottom: none;
}

.contact-email:hover {
    /* Removed underline and movement effects */
}

@media (max-width: 767px) {
    .contact-title {
        font-size: 36px;
    }
    
    .contact-email {
        font-size: 22px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .contact-title {
        font-size: 46px;
    }
}

@media (min-width: 992px) {
    .contact-title {
        font-size: 56px;
    }
}

/* === Media Queries === */
@media (min-width: 768px) {
  .hero-content,
  .about-content {
    flex-direction: row;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-title {
    font-size: 72px;
  }
  
  .contact-email {
    font-size: 36px;
  }
}

@media (min-width: 992px) {
  .section-title {
    font-size: 52px;
  }
  
  .hero-title {
    font-size: 58px;
  }
  
  .main-nav {
    display: block;
  }
  
  .contact-btn {
    display: block;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-title {
    font-size: 84px;
  }
  
  .contact-email {
    font-size: 42px;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 80px; /* Increased from 72px */
  }
}

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

/* Hero Portfolio Preview */
.hero-portfolio-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(5, 60px);
  grid-gap: 15px;
  margin-left: 50px;
  perspective: 1000px;
  margin-right: 20px;
}

.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform-origin: center;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  animation: fadeIn 0.8s forwards;
  opacity: 0;
  will-change: transform, box-shadow;
  transition: 
    transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.6s cubic-bezier(0.33, 1, 0.68, 1),
    border-color 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.preview-item-1 {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
  animation-delay: 0.2s;
}

.preview-item-2 {
  grid-column: 3 / span 3;
  grid-row: 2 / span 2;
  animation-delay: 0.4s;
}

.preview-item-3 {
  grid-column: 1 / span 2;
  grid-row: 3 / span 2;
  animation-delay: 0.6s;
}

.preview-item-4 {
  grid-column: 3 / span 2;
  grid-row: 4 / span 2;
  animation-delay: 0.8s;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 
    transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
    filter 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  filter: brightness(0.92) contrast(1.05) saturate(0.95);
  transform: scale(1);
  will-change: transform, filter;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(36, 36, 36, 0.75) 0%, rgba(36, 36, 36, 0) 65%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 15px 10px;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.preview-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 0;
}

.preview-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(253, 188, 223, 0.15) 0%, rgba(253, 188, 223, 0) 70%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

.preview-item:hover {
  transform: scale(1.25);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.preview-item:hover::before {
  opacity: 1;
}

.preview-item:hover img {
  filter: brightness(1.08) contrast(1.1) saturate(1.08);
  transform: scale(1.08);
}

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

.preview-item:hover .preview-overlay span {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments for the portfolio preview */
@media (max-width: 991px) {
  .hero-portfolio-preview {
    display: none;
  }
}

@media (min-width: 992px) {
  .hero-content {
    justify-content: space-between;
  }
  
  .hero-text {
    max-width: 50%;
  }
}

/* Media queries for responsive adjustments */
@media (max-width: 767px) {
  .cursor-follow {
    display: none; /* Hide on mobile */
  }
  
  .hero-actions {
    margin-bottom: 70px; /* Increase bottom margin on mobile */
  }
  
  /* Make services and project CTA buttons slimmer on mobile */
  .services-btn, .project-cta .services-btn {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile language switcher */
.mobile-lang-switcher {
    margin: 1.5rem 0 0.5rem;
    align-self: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
    padding: 1.5rem;
}

@media (max-width: 480px) {
    .mobile-lang-switcher {
        margin: 1rem 0 0.5rem;
    }
}

/* Mobile footer specific style for small screens */
@media (max-height: 600px) {
  .mobile-nav-container {
    padding: 20px;
  }
  
  .mobile-menu {
    margin-bottom: 20px;
  }
  
  .mobile-menu ul {
    gap: 5px;
  }
  
  .mobile-menu a {
    font-size: 24px;
  }
  
  .mobile-nav-footer {
    margin-top: 10px;
    padding-top: 10px;
  }
}

.mobile-email {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: var(--transition);
  font-size: 18px;
  color: var(--text-color);
  display: inline-block;
}

.mobile-email:hover {
  color: var(--dark-background);
}

.mobile-social a {
  font-size: 22px;
  color: var(--text-color);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-social a:hover {
  color: var(--dark-background);
  border-color: var(--dark-background);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .mobile-nav {
    width: 100%;
    max-width: 100%;
  }
}

/* Optimize for very small devices */
@media (max-width: 375px) {
  .mobile-nav-container {
    padding: 25px 20px;
  }
  
  .mobile-nav-header .logo img {
    height: 55px; /* Still larger than original but fits better on tiny screens */
  }

  .mobile-menu a {
    font-size: 32px; /* Adjusted for tiny screens but still large */
  }
  
  .mobile-email {
    font-size: 20px;
  }
  
  .mobile-social a {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  
  .mobile-lang-switcher {
    transform: scale(0.95);
    transform-origin: left center;
  }
}

/* Ensure menu fits in landscape orientation on small devices */
@media (max-height: 480px) and (orientation: landscape) {
  .mobile-nav {
    width: 60%;
    right: 0;
  }
  
  .mobile-nav-container {
    padding: 20px;
  }
  
  .mobile-nav-header {
    margin-bottom: 15px;
  }
  
  .mobile-nav-header .logo img {
    height: 50px; /* Slightly smaller for landscape */
  }
  
  .mobile-menu {
    margin-bottom: 15px;
  }
  
  .mobile-menu a {
    font-size: 30px; /* Adjusted for landscape but still large */
  }
}

/* Logo styling standardization */
.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.sliding-header .logo img {
  height: 65px !important; /* Set to exactly 65px as requested */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  margin: 4px 0; /* Reduced vertical margin for thinner header */
  padding: 0;
  display: block; /* Ensure consistent box model */
  transform: scale(1); /* Removed scale to maintain exact 65px size */
}

.mobile-nav-header .logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

/* Ensure consistent logo dimensions across all viewports */
@media (max-width: 480px) {
  .logo img {
    height: 55px;
  }
  
  .sliding-header .logo img {
    height: 55px;
  }
  
  .mobile-nav-header .logo img {
    height: 55px;
  }
}

/* Specific override for very small screens */
@media (max-width: 375px) {
  .mobile-nav-header .logo img {
    height: 50px;
  }
}

/* ======================================
   MOBILE OPTIMIZATION IMPROVEMENTS 
   ====================================== */

/* Extra mobile optimizations for perfect spacing, dimensions, and cleaner appearance */
@media (max-width: 767px) {
  /* Better general spacing */
  .section-tag {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .section-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .section-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
  }
  
  /* Improve section spacing */
  .services-section,
  .work-section,
  .about-section,
  .contact-section {
    padding: 70px 0;
  }
  
  .container {
    width: 92%;
    padding: 0 12px;
  }
  
  /* Hero section improvements */
  .hero-section {
    padding: 120px 0 50px;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 16px;
  }
  
  .hero-description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
  }
  
  .hero-tag {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .hero-actions {
    width: 100%;
    max-width: 100%;
    margin-bottom: 50px;
  }
  
  /* Project cards sizing and spacing */
  .project-card {
    margin-bottom: 5px;
  }
  
  .project-image {
    height: 220px;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .project-description {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Service cards improvements */
  .service-card {
    padding: 25px 20px;
    margin-bottom: 5px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .service-title {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .service-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .service-features li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  
  /* Better grid spacing */
  .services-grid,
  .project-grid,
  .about-values-grid {
    gap: 20px;
  }
  
  /* About section fixes */
  .about-image {
    height: 300px;
  }
  
  .about-description {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .value-card-inner {
    padding: 22px 18px;
  }
  
  .value-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .value-card p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Project modal improvements */
  .modal-content {
    padding: 20px;
  }
  
  .modal-header h3 {
    font-size: 24px;
  }
  
  /* Mobile menu improvements */
  .mobile-menu a {
    font-size: 36px;
  }
  
  /* Contact section */
  .contact-section {
    padding: 80px 0;
  }
}

/* Further optimize for smaller phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }
  
  .btn-primary, 
  .btn-secondary {
    padding: 10px 24px;
    font-size: 15px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .mobile-menu a {
    font-size: 32px;
  }
  
  .mobile-nav-container {
    padding: 25px 20px;
  }
  
  .mobile-nav-header {
    margin-bottom: 20px;
  }
  
  .service-card,
  .project-card,
  .value-card {
    border-radius: 10px;
  }
  
  /* Adjust spacing for project and service cards */
  .service-icon {
    width: 55px;
    height: 55px;
  }
  
  .contact-title {
    font-size: 32px;
  }
  
  .contact-email {
    font-size: 20px;
  }
}

/* Special fixes for very small devices */
@media (max-width: 375px) {
  .container {
    width: 94%;
    padding: 0 10px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .mobile-menu a {
    font-size: 28px;
  }
  
  .btn-primary, 
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .project-image {
    height: 200px;
  }
  
  .service-card,
  .project-card,
  .value-card {
    padding: 20px 16px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }
  
  .service-icon i {
    font-size: 20px;
  }
  
  .about-image {
    height: 250px;
  }
}

/* Ensure the site works well on larger tablets */ 
@media (min-width: 768px) and (max-width: 991px) {
  .section-title {
    font-size: 42px;
  }
  
  .hero-title {
    font-size: 52px;
  }
  
  .container {
    width: 90%;
  }
  
  .hero-description {
    font-size: 17px;
    max-width: 90%;
  }
  
  .services-grid,
  .project-grid {
    gap: 25px;
  }
  
  .about-image {
    height: 380px;
  }
}

/* Tablet landscape optimization */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 56px;
  }
}

/* Special fixes for different aspect ratios */
@media (max-aspect-ratio: 16/9) and (max-width: 767px) {
  .hero-section {
    min-height: 90vh;
  }
}

/* Optimizations for short screens in landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 80px 0 40px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .hero-description {
    margin-bottom: 20px;
  }
  
  .hero-actions {
    margin-bottom: 30px;
  }
  
  .services-section,
  .work-section,
  .about-section,
  .contact-section {
    padding: 50px 0;
  }
  
  .mobile-menu {
    justify-content: flex-start;
    padding-top: 20px;
  }
  
  .mobile-menu a {
    font-size: 24px;
  }
} 

/* ======================================
   MOBILE TOUCH OPTIMIZATIONS 
   ====================================== */

/* Better touch targets and mobile navigation experience */
@media (max-width: 767px) {
  /* Improve touch targets */
  .btn-primary, 
  .btn-secondary,
  .view-project-btn,
  .mobile-social a,
  .close-modal,
  .mobile-menu a {
    transition: all 0.25s ease; /* Faster transitions on mobile */
  }
  
  /* Add subtle active state feedback for touch */
  .btn-primary:active, 
  .btn-secondary:active,
  .view-project-btn:active,
  .project-card:active,
  .service-card:active,
  .value-card:active {
    transform: scale(0.98);
  }
  
  /* Increase tap targets in navigation */
  .mobile-menu li {
    margin-bottom: 8px;
    padding: 4px 0;
  }
  
  /* Fix mobile navigation scrolling */
  .mobile-nav-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better spacing in the mobile menu */
  .mobile-nav-footer {
    padding-top: 15px;
    margin-top: 10px;
  }
  
  /* Improved mobile social icons */
  .mobile-social {
    gap: 12px;
  }
  
  .mobile-social a {
    width: 46px;
    height: 46px;
  }
  
  /* Prevent text size adjustments */
  html {
    -webkit-text-size-adjust: 100%;
  }
  
  /* Better form element styling on mobile */
  input, 
  textarea, 
  select, 
  button {
    font-size: 16px; /* Prevent zoom on focus in iOS */
  }
  
  /* Add momentum scrolling to modal content */
  .modal-content {
    -webkit-overflow-scrolling: touch;
  }
}

/* Additional optimizations for very small screens */
@media (max-width: 360px) {
  /* Even more compact UI for tiny screens */
  .container {
    width: 95%;
    padding: 0 8px;
  }
  
  .hero-title {
    font-size: 30px;
  }
  
  .mobile-social a {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  
  /* Reduce paddings further */
  .service-card,
  .project-card,
  .value-card {
    padding: 18px 14px;
  }
  
  .project-title {
    font-size: 18px;
  }

  /* Even smaller text sizes */
  .project-description,
  .service-description,
  .about-description {
    font-size: 14px;
  }
}

/* Better usability for foldable devices and unusual aspect ratios */
@media (max-width: 767px) and (max-height: 600px) {
  .hero-section {
    padding: 100px 0 40px;
  }
  
  .services-section,
  .work-section,
  .about-section,
  .contact-section {
    padding: 60px 0;
  }
  
  /* More compact spacing */
  .section-title {
    margin-bottom: 15px;
  }
  
  .section-description {
    margin-bottom: 25px;
  }
}

/* ======================================
   MOBILE HEADER & MENU BUTTON OPTIMIZATION 
   ====================================== */

/* Optimized mobile header and menu buttons */
@media (max-width: 767px) {
  /* Better header positioning */
  .site-header {
    padding: 20px 0;
  }
  
  /* Improved menu toggle button */
  .menu-toggle {
    width: 44px;
    height: 44px;
    margin-right: 0;
    background-color: transparent;
  }
  
  .menu-toggle:active {
    transform: scale(0.95);
  }
  
  /* Better visibility for menu lines */
  .menu-toggle span {
    height: 2.5px;
    width: 55%;
    transition: all 0.3s ease;
  }
  
  /* Smooth menu open/close animation */
  .mobile-nav {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.3s ease-in-out;
  }
  
  /* Improved mobile transition animations */
  .project-card,
  .service-card,
  .value-card {
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease;
  }
  
  /* Smooth page transitions */
  .sliding-header {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  /* Optimize language switcher for touch */
  .lang-switcher {
    padding: 3px;
  }
  
  .lang-option {
    min-width: 40px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fix button hover states on mobile */
  .btn-secondary:hover {
    padding-right: 28px; /* Keep original padding on mobile */
  }
  
  .btn-secondary:hover .btn-arrow {
    opacity: 0; /* Hide arrow on mobile */
  }
  
  /* Optimized slideout menu */
  .mobile-menu li {
    transform: none;
    opacity: 1;
  }
  
  /* Cleaner scrolling */
  html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix for sticky hover effects on mobile */
  .btn-primary:hover,
  .btn-secondary:hover,
  .project-card:hover,
  .service-card:hover,
  .value-card:hover {
    transform: none;
  }
  
  /* Use active states instead of hover for touch devices */
  .btn-primary:active,
  .btn-secondary:active,
  .project-card:active,
  .service-card:active,
  .value-card:active {
    transform: translateY(-3px);
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    height: -webkit-fill-available;
  }
}

/* Improved footer on mobile */
@media (max-width: 767px) {
  .contact-section {
    min-height: 40vh;
  }
  
  .contact-content {
    padding: 20px 0;
  }
}

/* === Mobile Fixes === */
@media (max-width: 767px) {
  /* Fix mobile hero section layout */
  .hero-section {
    padding: 130px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .hero-content {
    margin-top: 0;
  }
  
  .hero-text {
    max-width: 100%;
    width: 100%;
  }
  
  .hero-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
  }
  
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-bottom: 40px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  
  /* Fix mobile header */
  .site-header {
    padding: 15px 0;
  }
  
  .logo img {
    height: 55px;
    width: auto;
  }
  
  /* Mobile hero contact section */
  .hero-contact {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    align-items: flex-start;
  }
  
  /* Better spacing for sections */
  .services-section,
  .work-section,
  .about-section {
    padding: 60px 0;
  }
  
  /* Improved layout for mobile sections */
  .section-title {
    font-size: 32px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  /* Mobile menu improvements */
  .mobile-nav {
    width: 85%; 
    max-width: 320px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .mobile-nav-container {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }
  
  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .mobile-nav-header .logo img {
    height: 45px !important;
  }
  
  .mobile-menu {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .mobile-menu a {
    font-size: 32px;
    line-height: 1.2;
    display: block;
    padding: 5px 0;
  }
  
  .mobile-menu li {
    margin-bottom: 5px;
  }
  
  .mobile-nav-footer {
    margin-top: auto;
    padding-top: 15px;
  }
  
  .mobile-email {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .mobile-social {
    display: flex;
    gap: 12px;
  }
  
  .mobile-social a {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  
  /* Mobile language switcher */
  .mobile-lang-switcher {
    margin-top: 5px;
    margin-bottom: 15px;
  }
  
  /* Fix menu toggle button */
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  
  .menu-toggle span {
    width: 55%;
    height: 2px;
    background-color: var(--white);
  }
  
  /* Fix menu opening animation */
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Extra small devices fixes */
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .site-header {
    padding: 12px 0;
  }
  
  .logo img {
    height: 50px;
  }
  
  .hero-section {
    padding: 110px 0 60px;
  }
  
  .lang-switcher {
    margin-right: 0.5rem;
  }
  
  .theme-toggle {
    margin-right: 8px;
  }
  
  .header-actions {
    gap: 10px;
  }
}

/* Ultra small device fixes */
@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  .container {
    width: 94%;
    padding: 0 10px;
  }
  
  .section-title {
    font-size: 28px;
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

@media (max-width: 767px) {
  /* Fix button styling for mobile */
  .btn-primary, 
  .btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .btn-secondary:hover {
    padding-right: 25px; /* Prevent padding change on hover */
  }
  
  .btn-secondary:hover .btn-arrow {
    display: none; /* Hide arrow icon on hover on mobile */
  }
  
  /* Fix the hero section button scaling */
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    margin: 0 auto;
    max-width: 90%;
  }
  
  /* Fix language switcher positioning */
  .lang-switcher {
    margin-right: 10px;
  }
  
  /* Center align text in hero section */
  .hero-text {
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Better mobile spacing */
  .section-header {
    margin-bottom: 40px;
  }
  
  /* Fix mobile contact section spacing */
  .contact-section {
    padding: 80px 0;
  }
}

/* Mobile logo and header fixes */
@media (max-width: 767px) {
  /* Fix logo sizing and position */
  .logo img {
    height: 50px !important;
    width: auto !important;
    object-fit: contain;
  }
  
  /* Ensure proper spacing in header */
  .header-inner {
    padding: 0 10px;
    height: 60px;
  }
  
  /* Fix sliding header for mobile */
  .sliding-header .logo img {
    height: 45px !important;
  }
  
  /* Ensure buttons display properly */
  .hero-actions {
    align-items: center;
  }
  
  /* Fix menu toggle positioning */
  .menu-toggle {
    margin-right: 0;
  }
  
  /* Fix hero email display */
  .hero-email {
    text-align: center;
    width: 100%;
    display: block;
    margin-top: 20px;
  }
  
  /* Better section spacing */
  .about-section,
  .services-section,
  .work-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  /* Fix grid items in mobile view */
  .services-grid,
  .project-grid,
  .about-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Fix mobile nav animation */
  .mobile-nav.active {
    transform: translateX(0);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Better positioning for the mobile theme toggle */
  .hero-theme-toggle {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Fix theme toggle and project cards */
@media (max-width: 767px) {
  /* Theme toggle positioning */
  .theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .theme-toggle i {
    font-size: 15px;
  }
  
  .header-actions .theme-toggle {
    margin-right: 8px;
  }
  
  .hero-theme-toggle {
    margin: 15px auto;
    display: flex;
  }
  
  /* Project grid improvements */
  .project-card {
    margin-bottom: 10px;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-info {
    padding: 18px;
  }
  
  .project-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .project-description {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Fix project modal for mobile */
  .project-modal {
    width: 95%;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-header h3 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .close-modal {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  /* Fix services cards */
  .service-card {
    padding: 25px 20px;
  }
  
  .service-title {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .service-icon i {
    font-size: 24px;
  }
}

/* Completely revamped mobile hero section */
@media (max-width: 767px) {
  .hero-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  
  .hero-content {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
  }
  
  .hero-text {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-tag {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
  }
  
  .hero-title {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 800;
  }
  
  .hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
    opacity: 0.95;
  }
  
  .hero-actions {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0 auto 40px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }
  
  .btn-primary {
    margin-bottom: 5px;
  }
  
  .btn-text {
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  .hero-contact {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    padding-bottom: 20px;
  }
  
  .contact-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-email {
    font-size: 15px;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  
  .hero-social-icon {
    margin: 0 8px;
  }
  
  .hero-theme-toggle {
    position: relative;
    margin: 20px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  
  /* Fix logo on small screens */
  .logo img {
    height: 55px;
    width: auto;
  }
  
  /* Fix header spacing */
  .site-header {
    padding: 15px 0;
  }
  
  .header-inner {
    align-items: center;
    padding: 0 10px;
  }
}

/* Smaller mobile devices optimization */
@media (max-width: 480px) {
  .hero-section {
    padding: 90px 0 40px;
  }
  
  .hero-title {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 95%;
  }
  
  .hero-actions {
    max-width: 280px;
    gap: 12px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    height: 46px;
    font-size: 14px;
  }
  
  .hero-tag {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .hero-contact {
    margin-top: 5px;
  }
  
  .hero-email {
    font-size: 14px;
  }
  
  .hero-social-icon {
    font-size: 15px;
  }
  
  .hero-theme-toggle {
    margin: 15px auto 5px;
    width: 40px;
    height: 40px;
  }
  
  .logo img {
    height: 48px;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .hero-title {
    font-size: 30px;
  }
  
  .hero-description {
    font-size: 14px;
    max-width: 100%;
  }
  
  .hero-actions {
    max-width: 260px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    height: 44px;
    font-size: 14px;
    padding: 0 20px;
  }
  
  .logo img {
    height: 45px;
  }
  
  .site-header {
    padding: 12px 0;
  }
}

/* Fix for better iOS Safari support */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    .hero-section {
      min-height: -webkit-fill-available;
      height: -webkit-fill-available;
    }
  }
}

/* Mobile button refinements */
@media (max-width: 767px) {
  /* Button styling refinements */
  .hero-actions .btn-primary {
    box-shadow: 0 6px 15px rgba(253, 188, 223, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .hero-actions .btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(253, 188, 223, 0.25);
  }
  
  .hero-actions .btn-primary .btn-backdrop {
    border-radius: 25px;
  }
  
  .hero-actions .btn-primary .btn-text {
    padding: 0;
    font-weight: 700;
    letter-spacing: 0.3px;
  }
  
  .hero-actions .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .hero-actions .btn-secondary:active {
    transform: translateY(2px);
    border-color: var(--primary-color);
  }
  
  .hero-actions .btn-secondary .btn-text {
    padding: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  
  /* Fix hover states for mobile */
  .hero-actions .btn-secondary:hover {
    padding-right: inherit;
    border-color: var(--primary-color);
  }
  
  .hero-actions .btn-primary:hover {
    transform: translateY(0) scale(1);
  }
  
  .hero-actions .btn-secondary:hover {
    transform: translateY(0);
  }
  
  /* Fix ripple and hover effects on mobile */
  .btn-primary:active .btn-backdrop {
    background-color: #ffaed4;
  }
  
  .btn-secondary:active .btn-text {
    color: var(--primary-color);
  }
  
  /* Ensure buttons have consistent height */
  .btn-primary, .btn-secondary {
    min-height: 48px;
    border-radius: 24px;
  }
}

/* COMPLETE MOBILE REDESIGN */
@media (max-width: 767px) {
  /* Global mobile fixes */
  html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    height: auto;
  }
  
  body {
    min-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .container {
    width: 92%;
    padding: 0 12px;
  }
  
  /* Header fixes */
  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
  }
  
  .header-inner {
    align-items: center;
    padding: 0 10px;
  }
  
  .logo img {
    height: 48px;
    width: auto;
  }
  
  .sliding-header .logo img {
    height: 45px !important;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    margin-right: 6px;
  }
  
  .theme-toggle i {
    font-size: 14px;
  }
  
  .lang-switcher {
    margin-right: 6px;
    transform: scale(0.9);
  }
  
  .menu-toggle {
    width: 40px;
    height: 40px;
    margin-right: 0;
  }
  
  /* Hero section fixes - Left aligned */
  .hero-section {
    position: relative;
    min-height: auto;
    height: auto;
    padding: 100px 0 60px;
    display: block;
    overflow: visible;
  }
  
  .hero-content {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    height: auto;
  }
  
  .hero-text {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    text-align: left;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-tag {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
  }
  
  .hero-title {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 18px;
    text-align: left;
  }
  
  .hero-description {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 25px 0;
    max-width: 100%;
    text-align: left;
  }
  
  .hero-actions {
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 0 0 40px 20px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    letter-spacing: 0.3px;
    padding: 0 30px;
    min-width: 180px;
  }
  
  .hero-contact {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 30px 20px;
  }
  
  .contact-row {
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  
  .hero-email {
    font-size: 14px;
    text-align: left;
  }
  
  .hero-social-icon {
    margin: 0 10px 0 0;
    font-size: 15px;
  }
  
  .hero-theme-toggle {
    margin: 15px 0 0 20px;
    width: 40px;
    height: 40px;
  }
  
  /* Services section fixes */
  .services-section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-tag {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .section-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .section-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 25px 20px;
    margin-bottom: 0;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .service-icon i {
    font-size: 24px;
  }
  
  .service-title {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .service-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .service-features {
    gap: 12px;
  }
  
  .service-features li {
    font-size: 14px;
    line-height: 1.4;
    padding-left: 25px;
  }
  
  .services-cta {
    margin-top: 35px;
  }
  
  .services-btn {
    padding: 12px 25px;
    font-size: 15px;
  }
  
  /* Projects section fixes */
  .work-section {
    padding: 50px 0;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-card {
    margin-bottom: 0;
  }
  
  .project-image {
    height: 210px;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .project-description {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .project-category {
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  /* About section fixes */
  .about-section {
    padding: 50px 0;
  }
  
  .about-header {
    margin-bottom: 30px;
  }
  
  .about-content {
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .about-image {
    height: 250px;
    max-width: 100%;
  }
  
  .about-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  
  .value-card {
    margin-bottom: 0;
  }
  
  .value-card-inner {
    padding: 25px 20px;
  }
  
  .value-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
  }
  
  .value-icon i {
    font-size: 22px;
  }
  
  .value-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .value-card p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Contact section fixes */
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-content {
    min-height: auto;
  }
  
  .contact-title {
    font-size: 36px;
    margin-bottom: 30px;
  }
  
  .contact-title::after {
    bottom: -12px;
    width: 60px;
    height: 2px;
  }
  
  .contact-email {
    font-size: 22px;
  }
  
  /* Mobile nav fixes */
  .mobile-nav {
    width: 85%;
    max-width: 320px;
  }
  
  .mobile-nav-container {
    padding: 25px 20px;
    overflow-y: auto;
  }
  
  .mobile-nav-header {
    margin-bottom: 20px;
  }
  
  .mobile-nav-header .logo img {
    height: 45px;
  }
  
  .mobile-menu {
    margin: 20px 0;
  }
  
  .mobile-menu a {
    font-size: 30px;
    line-height: 1.2;
    padding: 5px 0;
  }
  
  .mobile-menu li {
    margin-bottom: 5px;
  }
  
  .mobile-nav-footer {
    margin-top: auto;
    padding-top: 15px;
  }
  
  .mobile-email {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .mobile-social {
    gap: 12px;
  }
  
  .mobile-social a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  /* Modal fixes for mobile */
  .project-modal {
    width: 90%;
    max-height: 80vh;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-header h3 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .close-modal {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .modal-body {
    flex-direction: column;
  }
  
  .modal-image {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .modal-description {
    gap: 15px;
  }
  
  .modal-description p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .feature-list {
    gap: 10px;
  }
  
  .feature-list li {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Back to top button */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  /* Fix for iOS Safari */
  @supports (-webkit-touch-callout: none) {
    .hero-section {
      min-height: auto;
    }
  }
}

/* Smaller screens optimization */
@media (max-width: 480px) {
  /* Fix scrolling */
  html, body {
    overflow-x: hidden;
    width: 100vw;
  }
  
  /* Hero section adjustments - maintain left alignment */
  .hero-section {
    padding: 90px 0 50px;
  }
  
  .hero-text {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 30px;
    margin-bottom: 16px;
  }
  
  .hero-description {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .hero-actions {
    width: calc(100% - 30px);
    margin: 0 0 40px 15px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    height: 48px;
    font-size: 15px;
    padding: 0 25px;
    min-width: 160px;
    justify-content: center;
  }
  
  .hero-actions .btn-primary .btn-text,
  .hero-actions .btn-secondary .btn-text {
    font-size: 15px;
    letter-spacing: 0.3px;
  }
  
  .hero-contact {
    padding: 10px 0 30px 15px;
  }
  
  .hero-theme-toggle {
    margin: 15px 0 0 15px;
  }
  
  /* Header and logo */
  .logo img {
    height: 45px;
  }
  
  .sliding-header .logo img {
    height: 42px !important;
  }
  
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  
  .lang-switcher {
    transform: scale(0.85);
  }
  
  /* Section spacing */
  .services-section,
  .work-section,
  .about-section,
  .contact-section {
    padding: 40px 0;
  }
  
  /* Better font sizes */
  .section-title {
    font-size: 28px;
  }
  
  /* Project cards */
  .project-image {
    height: 190px;
  }
  
  /* Service cards */
  .service-card {
    padding: 22px 18px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  /* Value cards */
  .value-card-inner {
    padding: 22px 18px;
  }
  
  /* Contact section */
  .contact-title {
    font-size: 32px;
  }
  
  .contact-email {
    font-size: 20px;
  }
  
  /* Mobile nav */
  .mobile-nav {
    width: 90%;
  }
  
  /* Full width on very small screens */
  @media (max-width: 380px) {
    .mobile-nav {
      width: 100%;
      max-width: 100%;
    }
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-tag {
    font-size: 12px;
  }
  
  .hero-text {
    padding: 0 12px;
  }
  
  .logo img {
    height: 42px;
  }
  
  .sliding-header .logo img {
    height: 40px !important;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .hero-actions {
    width: calc(100% - 24px);
    margin: 0 0 35px 12px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    height: 46px;
    font-size: 15px;
    padding: 0 22px;
    min-width: 150px;
    justify-content: flex-start;
  }
  
  .hero-actions .btn-primary .btn-text,
  .hero-actions .btn-secondary .btn-text {
    font-size: 15px;
  }
  
  .hero-contact {
    padding: 10px 0 30px 12px;
  }
  
  .hero-theme-toggle {
    margin: 15px 0 0 12px;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    height: 42px;
    font-size: 14px;
  }
  
  .container {
    width: 94%;
    padding: 0 8px;
  }
  
  .service-title {
    font-size: 20px;
  }
  
  .value-card h4 {
    font-size: 18px;
  }
}

/* Landscape fixes */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 767px) {
  .hero-section {
    padding: 80px 0 30px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .hero-description {
    margin-bottom: 20px;
  }
  
  .hero-actions {
    margin-bottom: 25px;
  }
  
  .services-section,
  .work-section,
  .about-section,
  .contact-section {
    padding: 35px 0;
  }
  
  .logo img {
    height: 42px;
  }
  
  .mobile-nav {
    width: 60%;
  }
  
  .mobile-menu a {
    font-size: 26px;
  }
  
  .mobile-nav-header {
    margin-bottom: 15px;
  }
  
  .about-image {
    height: 200px;
  }
}

/* Mobile button refinements */
@media (max-width: 767px) {
  /* Refine button styling */
  .btn-primary,
  .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  /* Primary button polish */
  .hero-actions .btn-primary {
    background: transparent;
    position: relative;
    padding: 0;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(253, 188, 223, 0.35);
  }
  
  .hero-actions .btn-primary .btn-backdrop {
    background-color: var(--primary-color);
    border-radius: 25px;
  }
  
  .hero-actions .btn-primary .btn-text {
    color: var(--dark-background);
    font-weight: 700;
    padding: 0;
    position: relative;
    z-index: 2;
    font-size: 16px;
    letter-spacing: 0.4px;
    text-align: center;
  }
  
  /* Secondary button polish */
  .hero-actions .btn-secondary {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
  }
  
  .hero-actions .btn-secondary .btn-text {
    position: relative;
    z-index: 2;
    padding: 0;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.4px;
    text-align: center;
  }
  
  /* Button hover/active states */
  .hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(253, 188, 223, 0.45);
  }
  
  .hero-actions .btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(253, 188, 223, 0.3);
  }
  
  .hero-actions .btn-primary .btn-backdrop {
    transition: all 0.3s ease;
  }
  
  .hero-actions .btn-primary:active .btn-backdrop {
    background-color: #ffaed4;
  }
  
  .hero-actions .btn-secondary {
    transition: all 0.3s ease;
  }
  
  .hero-actions .btn-secondary:hover {
    border-color: rgba(253, 188, 223, 0.6);
    transform: translateY(-2px);
    background: rgba(253, 188, 223, 0.08);
  }
  
  .hero-actions .btn-secondary:active {
    transform: translateY(1px);
    background: rgba(253, 188, 223, 0.12);
  }
  
  /* Stop layout shifts on hover */
  .btn-secondary:hover {
    padding-right: inherit;
  }
  
  .btn-secondary:hover .btn-arrow {
    opacity: 0;
  }
  
  /* Service button fixes */
  .services-btn {
    height: 46px;
    max-width: 220px;
    border-radius: 23px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .services-btn .btn-text {
    font-weight: 600;
  }
  
  .services-btn:hover {
    transform: translateY(-2px);
    padding-right: inherit;
  }
  
  .services-btn:hover .btn-arrow {
    opacity: 0;
  }
  
  /* View project button */
  .view-project-btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0 20px;
  }
  
  /* Fix active states for touch devices */
  .btn-primary:active,
  .btn-secondary:active,
  .view-project-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}