/* ==========================================================================
   DuoWeb Vision - Complete Stylesheet
   Recreated with proper structure and all necessary styles
   ========================================================================== */

/* ===== MOBILE HERO OVERRIDES ===== */
/* Force proper mobile display */
@media screen and (max-width: 768px) {
  .hero-section {
    padding-top: 10px !important;
    position: relative !important;
    transform: none !important;
    background-attachment: scroll !important;
  }
  
  .hero-content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    height: auto !important;
    min-height: auto !important;
    opacity: 0;
    animation: mobileHeroFadeIn 1.2s ease-out forwards;
  }
  
  .hero-text h1 {
    margin-top: 20px !important;
    z-index: 100 !important;
    position: relative !important;
    opacity: 0;
    transform: translateY(30px);
    animation: mobileSlideUp 0.8s ease-out 0.3s forwards;
  }
  
  .hero-text p {
    opacity: 0;
    transform: translateY(20px);
    animation: mobileSlideUp 0.8s ease-out 0.6s forwards;
  }
  
  .hero-btn {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: mobileButtonAppear 1s ease-out 0.9s forwards;
  }
  
  .navbar {
    position: fixed !important;
    z-index: 1000 !important;
  }
}

/* Mobile-specific animations */
@keyframes mobileHeroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileButtonAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobilePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes mobileSlideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mobileSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile section animations */
@media screen and (max-width: 768px) {
  .services-section {
    opacity: 0;
    animation: mobileHeroFadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
  }
  
  .service-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
  }
  
  .service-item:nth-child(odd) {
    animation: mobileSlideInLeft 0.8s ease-out forwards;
  }
  
  .service-item:nth-child(even) {
    animation: mobileSlideInRight 0.8s ease-out forwards;
  }
  
  .work-item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s ease-out;
  }
  
  .contact-section {
    opacity: 0;
    animation: mobileHeroFadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
  }
  
  /* Enhanced mobile button interactions */
  .hero-btn:active,
  .contact-btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease-in-out !important;
  }
  
  /* Mobile touch feedback */
  .service-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease-in-out;
  }
  
  .work-item:active {
    transform: scale(0.97);
    transition: transform 0.1s ease-in-out;
  }
}

/* Custom Font Loading */
@font-face {
  font-family: 'Chillax';
  src: url('../../assets/fonts/Chillax-Extralight.woff2') format('woff2'),
       url('../../assets/fonts/Chillax-Extralight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chillax';
  src: url('../../assets/fonts/Chillax-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chillax';
  src: url('../../assets/fonts/Chillax-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chillax';
  src: url('../../assets/fonts/Chillax-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chillax';
  src: url('../../assets/fonts/Chillax-Bold.woff') format('woff'),
       url('../../assets/fonts/Chillax-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --main-blue: #151235;
  --green: #33bfcc;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  
  --font-primary: 'Chillax', Arial, sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --container-max-width: 1300px;
  --section-padding: 80px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--main-blue);
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--main-blue);
}

html::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: 20px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--main-blue);
  overflow-x: hidden;
}

/* Body class as in original */
.body {
  font-family: Chillax, Arial, sans-serif;
}

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

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

/* Navigation */
.navbar {
  background-color: var(--main-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10002;
  transition: var(--transition);
}

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

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
  margin: 0;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 300;
  text-transform: lowercase;
  transition: var(--transition);
  line-height: 1.4;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
}

.nav-btn {
  background-color: var(--main-blue);
  color: var(--green);
  border: none;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 400;
  text-transform: lowercase;
  transition: all 0.4s;
}

.nav-btn:hover {
  background-color: var(--green);
  color: var(--main-blue);
}

/* Button Variants */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  text-transform: lowercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--green);
  color: var(--main-blue);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background-color: var(--green);
  color: var(--main-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle img {
  width: 30px;
  height: 30px;
}

/* Hero Section */
.hero-section {
  background-color: transparent;
  padding: 120px 0 0;
  height: 150vh; /* Reduced height for scroll effect */
  position: relative;
  overflow: hidden;
}

.hero-parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--main-blue) 0%, #1a1545 30%, #0f0b2e 70%, var(--main-blue) 100%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  will-change: transform, opacity, scale;
  transition: opacity 0.2s ease-out, scale 0.2s ease-out, z-index 0s 0.2s;
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  height: 100vh;
  z-index: 10;
  pointer-events: auto;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 80px;
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-primary);
}

.hero-text p {
  font-size: 18px;
  line-height: 24px;
  color: var(--white);
  margin-bottom: 60px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  background-color: var(--green);
  color: var(--main-blue);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-btn:hover {
  background-color: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 191, 204, 0.3);
}

.hero-btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-text {
  position: relative;
  z-index: 3;
}

/* Services Section */
.services-section {
  background-color: var(--green);
  color: var(--white);
  position: relative;
  z-index: 20;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-left: -10px;
  margin-right: -10px;
}

.service-item-wrapper {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 991px) {
  .service-item-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .service-item {
      margin-bottom: 15px;
  }
  
  .hero-section {
      height: 100vh;
  }
  
  .hero-content {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
  }
  
  .hero-text {
      text-align: center;
  }
}

@media (max-width: 767px) {
  .service-item-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .team-member {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 40px;
  }
  
  .profile-img {
    width: auto;
    max-width: 200px;
  }
  
  .text-profile-box {
    max-width: 280px;
    width: 280px;
    min-height: 60px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.service-item {
  text-align: left;
  padding: 20px;
  border-radius: 40px;
  background-color: var(--main-blue);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: stretch;
  cursor: pointer;
  transform-style: preserve-3d;
}

.service-item:hover {
  transform: translateY(-10px) rotateZ(-2deg) rotateY(5deg) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 5px 15px rgba(51, 191, 204, 0.3);
}

.service-icon {
  width: 38px;
  height: 38px;
  margin-left: auto;
  margin-bottom: 0;
}

.service-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-icon img {
  width: 100%;
  height: 100%;
  transition: inherit;
}

.service-item:hover .service-icon {
  transform: rotateZ(15deg) scale(1.1);
}

.title-icon-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 28px;
  margin-bottom: 0;
  color: var(--white);
  text-transform: lowercase;
  transition: all 0.3s ease;
  font-weight: 400;
  font-family: var(--font-primary);
  line-height: 1.2;
  flex: 1;
}

.service-item:hover h3 {
  color: var(--green);
  transform: translateX(5px);
}

.service-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  margin-top: 20px;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.service-item:hover p {
  opacity: 1;
  transform: translateX(3px);
}

/* Work Section */
.work-section {
  background-color: var(--main-blue);
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 60px;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: transparent;
  border-radius: 15px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.work-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.work-item:nth-child(even) .work-image {
  order: 2;
}

.work-item:nth-child(even) .work-content {
  order: 1;
}

.work-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.work-image img {
  width: 100%;
  height: auto;
  border-radius: 40px;
  transition: var(--transition);
}

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

.work-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--green);
}

.work-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* About Section */
.about-section {
  background-color: var(--green);
  color: var(--white);
  padding-top: 40px;
  padding-bottom: 60px;
}

.about-section .section-title {
  color: var(--white);
}

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

.text-box {
  background-color: var(--main-blue);
  text-align: center;
  border-radius: 40px;
  padding: 20px 30px;
  margin-bottom: 40px;
}

.text-box p {
  color: var(--white);
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-left: -15px;
  margin-right: -15px;
}

.team-member {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 15px;
  padding-right: 15px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.profile-img {
  border-radius: 40px;
  width: 360px;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
}

.text-profile-box {
  background-color: var(--main-blue);
  text-align: center;
  border-radius: 40px;
  width: 360px;
  max-width: 100%;
  padding: 10px 20px;
}

.text-profile-box p {
  color: var(--white);
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.text-span,
.text-span-2 {
  color: var(--green);
}

/* Contact Section */
.contact-section {
  background-color: var(--main-blue);
  color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-size: 42px;
  margin-bottom: 30px;
  color: var(--white);
  text-transform: lowercase;
}

.contact-text p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-title {
  color: var(--green);
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 18px;
  text-transform: uppercase;
}

.form-subtitle {
  font-size: 14px;
  margin-bottom: 30px;
  color: var(--white);
  opacity: 0.8;
}

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

.form-group label {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--green);
  color: var(--white);
  padding: 12px 0;
  font-size: 16px;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--white);
}

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

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

.submit-btn {
  background-color: var(--green);
  color: var(--main-blue);
  border: 2px solid transparent;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
  font-family: var(--font-primary);
  text-transform: uppercase;
}

.submit-btn:hover {
  background-color: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

/* Duo Logo Large Section */
.duo-logo-large {
    text-align: center;
    padding: 3rem 0;
    background: var(--color-background);
    overflow: hidden;
}

.duo-big-wrapper {
    position: relative;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

.duo-big-wrapper.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.duo-big {
    max-width: 100%;
    height: auto;
    display: block;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9);
}

.duo-big-wrapper:hover {
    border-color: var(--color-primary);
    transform: translateY(0) scale(1.02);
}

.duo-big-wrapper:hover .duo-big {
    filter: brightness(1);
    transform: rotate(1deg);
}

/* Footer */
.footer {
  background-color: var(--main-blue);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-text p {
  color: var(--white);
  font-size: 14px;
  opacity: 0.8;
}

.social-link {
  display: inline-block;
  transition: var(--transition);
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link img {
  width: 37px;
  height: 37px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 55px;
  text-align: left;
  margin-bottom: 40px;
  text-transform: lowercase;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
}

.section-subtitle {
  font-size: 20px;
  text-align: center;
  margin-bottom: 60px;
  opacity: 0.8;
}

/* Success Message Page */
.message-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-blue);
  position: relative;
}

.message-container {
  text-align: center;
  color: var(--white);
  max-width: 600px;
  padding: 40px;
}

.message-container h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--green);
}

.message-container p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.success-btn {
  display: inline-block;
  background-color: var(--green);
  color: var(--main-blue);
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  transition: var(--transition);
}

.success-btn:hover {
  background-color: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

/* Utilities */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.bg-white { background-color: var(--white); }
.bg-blue { background-color: var(--main-blue); }

/* Animations */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.service-item,
.work-item,
.team-member {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Show elements immediately if animations are disabled */
@media (prefers-reduced-motion: reduce) {
  .service-item,
  .work-item,
  .team-member {
    opacity: 1;
    transform: none;
  }
}

.navbar.scrolled {
  background-color: rgba(21, 18, 53, 0.95);
  backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .contact-content,
  .work-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .work-item:nth-child(even) .work-image,
  .work-item:nth-child(even) .work-content {
    order: initial;
  }
  
  .hero-text h1 {
    font-size: 48px;
  }
  
  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--main-blue);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    z-index: 9999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
    z-index: 10003;
  }
  
  .navbar {
    z-index: 10002;
  }
  
  .hero-section {
    padding-top: 160px;
    height: 120vh;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    top: 70%;
    height: auto;
    min-height: 70vh;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  .work-item {
    grid-template-columns: 1fr !important;
    gap: 30px;
    text-align: center;
  }
  
  .work-item:nth-child(even) .work-image,
  .work-item:nth-child(even) .work-content {
    order: unset;
  }
  
  .service-item {
    padding-bottom: 30px;
    margin-bottom: 10px;
  }
  
  .services-grid {
    margin-left: 0;
    margin-right: 0;
  }
  
  .service-item-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  
  .team-grid {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    gap: 30px;
  }
  
  .team-member {
    flex: 0 0 auto;
    max-width: 320px;
    width: 100%;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .contact-content {
    gap: 40px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 200px;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .hero-content {
    position: static !important;
    top: auto !important;
    transform: none !important;
    height: auto !important;
    min-height: auto !important;
    justify-content: center;
    align-items: center;
    display: flex !important;
    flex-direction: column;
    padding: 40px 0;
    width: 100%;
  }
  
  .hero-text {
    padding: 20px 0;
  }
  
  .hero-text h1 {
    font-size: 35px;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .hero-text p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
  }
  
  .hero-image {
    margin-top: 30px;
  }
  
  .hero-image img {
    max-width: 280px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .contact-text h2 {
    font-size: 24px;
  }
  
  .message-container h1 {
    font-size: 32px;
  }
  
  .work-item,
  .service-item {
    padding: 20px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .contact-text {
    text-align: center;
  }
  
  .text-profile-box {
    width: 100%;
    max-width: 300px;
    min-height: 55px;
    margin: 0 auto;
  }
}

/* Extra Small Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
  .hero-section {
    padding-top: 10px !important;
    min-height: 100vh !important;
    height: auto !important;
    position: relative !important;
    transform: none !important;
  }
  
  .hero-content {
    padding: 10px 0 !important;
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
  }
  
  .hero-text h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    margin-top: 30px !important;
  }
  
  .hero-text p {
    font-size: 14px !important;
    margin-bottom: 25px !important;
    line-height: 1.4 !important;
  }
  
  .hero-btn {
    font-size: 20px !important;
    padding: 8px 16px !important;
  }
  
  .container {
    padding: 0 10px !important;
  }
}

/* iPhone specific fixes */
@media only screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
  .hero-section {
    padding-top: 10px !important;
  }
  
  .hero-text h1 {
    margin-top: 10px !important;
  }
}

/* iPhone X and newer */
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  .hero-section {
    padding-top: 10px !important;
  }
  
  .hero-text h1 {
    margin-top: 10px !important;
  }
}

/* Smooth scrolling enhancement */
html {
  scroll-padding-top: 80px;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .nav-toggle {
    display: none;
  }
}