/* ========== HERO SECTIONS (SHARED) ========== */

.services-hero,
.about-hero,
.contact-hero,
.portfolio-hero {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 60px;
}

/* Enhanced animated background with gradient overlay */
.services-hero::before,
.about-hero::before,
.contact-hero::before,
.portfolio-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  filter: blur(40px);
}

.services-hero::after,
.about-hero::after,
.contact-hero::after,
.portfolio-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 133, 51, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
  filter: blur(40px);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(50px, -50px) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) rotate(240deg);
  }
}

/* ========== FLOATING BUBBLES ========== */

.floating-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 106, 0, 0.4),
    rgba(255, 133, 51, 0.2)
  );
  box-shadow: 0 8px 32px rgba(255, 106, 0, 0.2);
  backdrop-filter: blur(4px);
  animation: floatBubble 15s infinite ease-in-out;
}

.bubble::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
}

/* Individual bubble animations */
.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.bubble:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 80%;
  top: 60%;
  animation-delay: 2s;
  animation-duration: 18s;
}

.bubble:nth-child(3) {
  width: 100px;
  height: 100px;
  left: 70%;
  top: 10%;
  animation-delay: 4s;
  animation-duration: 22s;
}

.bubble:nth-child(4) {
  width: 50px;
  height: 50px;
  left: 20%;
  top: 70%;
  animation-delay: 1s;
  animation-duration: 16s;
}

.bubble:nth-child(5) {
  width: 70px;
  height: 70px;
  left: 90%;
  top: 30%;
  animation-delay: 3s;
  animation-duration: 19s;
}

.bubble:nth-child(6) {
  width: 90px;
  height: 90px;
  left: 50%;
  top: 80%;
  animation-delay: 5s;
  animation-duration: 21s;
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-60px) translateX(-20px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-30px) translateX(30px) scale(1.05);
    opacity: 0.7;
  }
}

/* ========== FLOATING ICONS ========== */

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-icon {
  position: absolute;
  font-size: 40px;
  color: rgba(255, 106, 0, 0.15);
  animation: floatIcon 12s infinite ease-in-out;
}

.float-icon:nth-child(1) {
  left: 15%;
  top: 25%;
  animation-delay: 0s;
}

.float-icon:nth-child(2) {
  right: 20%;
  top: 15%;
  animation-delay: 2s;
  font-size: 35px;
}

.float-icon:nth-child(3) {
  left: 75%;
  bottom: 25%;
  animation-delay: 4s;
  font-size: 45px;
}

.float-icon:nth-child(4) {
  left: 25%;
  bottom: 20%;
  animation-delay: 1s;
  font-size: 38px;
}

.float-icon:nth-child(5) {
  right: 15%;
  bottom: 35%;
  animation-delay: 3s;
  font-size: 42px;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.25;
  }
}

/* ========== GEOMETRIC SHAPES ========== */

.geometric-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: rotateShape 20s infinite linear;
}

.shape.triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid #ff6a00;
}

.shape.square {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  transform: rotate(45deg);
}

.shape.circle {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #ff6a00, #ff8533);
  border-radius: 50%;
}

.shape:nth-child(1) {
  left: 10%;
  top: 15%;
  animation-duration: 25s;
}

.shape:nth-child(2) {
  right: 10%;
  top: 25%;
  animation-duration: 30s;
  animation-direction: reverse;
}

.shape:nth-child(3) {
  left: 15%;
  bottom: 20%;
  animation-duration: 22s;
}

.shape:nth-child(4) {
  right: 20%;
  bottom: 15%;
  animation-duration: 28s;
  animation-direction: reverse;
}

@keyframes rotateShape {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ========== PARTICLE DOTS ========== */

.particle-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ff6a00;
  border-radius: 50%;
  opacity: 0.3;
  animation: twinkle 3s infinite ease-in-out;
}

.dot:nth-child(odd) {
  animation-delay: 0s;
}

.dot:nth-child(even) {
  animation-delay: 1.5s;
}

/* Generate random positions for dots */
.dot:nth-child(1) {
  left: 15%;
  top: 30%;
}
.dot:nth-child(2) {
  left: 85%;
  top: 20%;
}
.dot:nth-child(3) {
  left: 45%;
  top: 15%;
}
.dot:nth-child(4) {
  left: 70%;
  top: 70%;
}
.dot:nth-child(5) {
  left: 25%;
  top: 60%;
}
.dot:nth-child(6) {
  left: 90%;
  top: 45%;
}
.dot:nth-child(7) {
  left: 35%;
  top: 75%;
}
.dot:nth-child(8) {
  left: 60%;
  top: 25%;
}
.dot:nth-child(9) {
  left: 10%;
  top: 50%;
}
.dot:nth-child(10) {
  left: 80%;
  top: 80%;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.5);
  }
}

/* ========== GLOWING LINES ========== */

.glowing-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 106, 0, 0.3),
    transparent
  );
  animation: moveLine 8s infinite linear;
}

.line.horizontal {
  width: 100%;
  height: 2px;
}

.line.vertical {
  width: 2px;
  height: 100%;
}

.line:nth-child(1) {
  top: 20%;
  animation-delay: 0s;
}
.line:nth-child(2) {
  top: 60%;
  animation-delay: 2s;
}
.line:nth-child(3) {
  left: 30%;
  animation-delay: 1s;
}
.line:nth-child(4) {
  left: 70%;
  animation-delay: 3s;
}

@keyframes moveLine {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

.line.vertical {
  animation: moveLineVertical 8s infinite linear;
}

@keyframes moveLineVertical {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

/* ========== CONTAINER Z-INDEX ========== */

.services-hero .container,
.about-hero .container,
.contact-hero .container,
.portfolio-hero .container {
  position: relative;
  z-index: 10;
}

/* ========== ENHANCED SECTION BADGE ========== */

.section-badge {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.9);
  color: #ff6a00;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid rgba(255, 106, 0, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.2);
  animation: fadeInDown 0.8s ease, badgePulse 3s infinite ease-in-out 2s;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.2);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 106, 0, 0.4);
  }
}

/* ========== ENHANCED HERO TITLE ========== */

.hero-title {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6a00 0%, #ff8533 50%, #ff6a00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease 0.2s both, gradientShift 4s ease infinite;
  text-shadow: 0 0 40px rgba(255, 106, 0, 0.3);
  line-height: 1.2;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ========== ENHANCED HERO SUBTITLE ========== */

.hero-subtitle {
  font-size: 22px;
  color: #666;
  font-weight: 400;
  max-width: 800px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s both;
  flex-wrap: wrap;
}

.hero-subtitle i {
  font-size: 28px;
  color: #ff6a00;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.3));
  flex-shrink: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ========== ENHANCED SCROLL INDICATOR ========== */

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ff6a00;
  font-size: 14px;
  font-weight: 700;
  animation: bounce 2s ease-in-out infinite;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  color: #ff8533;
}

.scroll-indicator i {
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(255, 106, 0, 0.3));
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(15px);
  }
}

/* Large Desktops (1920px and above) */
@media (min-width: 1920px) {
  .hero-title {
    font-size: 80px;
  }

  .hero-subtitle {
    font-size: 18px;
    gap: 10px;
  }

  .section-badge {
    font-size: 12px;
    padding: 10px 22px;
  }

  .bubble {
    opacity: 0.5;
  }

  .float-icon {
    font-size: 30px;
  }

  .shape {
    opacity: 0.08;
  }
}

/* Mobile Landscape & Large Phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .services-hero,
  .about-hero,
  .contact-hero,
  .portfolio-hero {
    padding: 100px 20px 40px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .section-badge {
    font-size: 12px;
    padding: 9px 20px;
  }

  .scroll-indicator {
    bottom: 35px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .services-hero,
  .about-hero,
  .contact-hero,
  .portfolio-hero {
    min-height: 100vh;
    padding: 110px 15px 30px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-subtitle i {
    font-size: 24px;
  }

  .section-badge {
    font-size: 11px;
    padding: 8px 18px;
    letter-spacing: 1px;
  }

  .scroll-indicator {
    bottom: 30px;
    font-size: 12px;
  }

  .scroll-indicator i {
    font-size: 22px;
  }

  /* Simplify floating elements on mobile */
  .bubble {
    opacity: 0.3;
  }

  .bubble:nth-child(n + 4) {
    display: none;
  }

  .float-icon {
    font-size: 25px;
    opacity: 0.1;
  }

  .float-icon:nth-child(n + 3) {
    display: none;
  }

  .shape {
    opacity: 0.05;
  }

  .shape:nth-child(n + 3) {
    display: none;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .dot:nth-child(n + 6) {
    display: none;
  }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
  .services-hero,
  .about-hero,
  .contact-hero,
  .portfolio-hero {
    padding: 100px 12px 25px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-subtitle i {
    font-size: 20px;
  }

  .section-badge {
    font-size: 10px;
    padding: 7px 16px;
  }

  .scroll-indicator {
    bottom: 25px;
    font-size: 11px;
  }

  .scroll-indicator i {
    font-size: 20px;
  }
}

/* Very Small Devices (up to 320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 13px;
  }
}

/* Landscape Orientation (Mobile) */
@media (max-height: 500px) and (orientation: landscape) {
  .services-hero,
  .about-hero,
  .contact-hero,
  .portfolio-hero {
    min-height: auto;
    padding: 100px 20px 30px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-top: 10px;
  }

  .section-badge {
    padding: 6px 16px;
  }

  .scroll-indicator {
    display: none;
  }

  .bubble,
  .floating-icons,
  .geometric-shapes {
    display: none;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .services-hero,
  .about-hero,
  .contact-hero,
  .portfolio-hero {
    min-height: auto;
    padding: 100px 30px 50px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .card-img-wrapper {
    height: 200px;
  }

  .section-badge {
    font-size: 16px;
    padding: 14px 32px;
  }
}

/* Standard Desktop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 22px;
  }
}

/* Tablets and Small Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .services-hero,
  .about-hero,
  .contact-hero,
  .portfolio-hero {
    padding: 110px 20px 50px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 19px;
    max-width: 700px;
  }

  .section-badge {
    font-size: 13px;
    padding: 10px 24px;
  }
}

/* Tablets Portrait (768px - 991px) */
@media (max-width: 991px) {
  .services-hero,
  .about-hero,
  .contact-hero,
  .portfolio-hero {
    min-height: 90vh;
    padding: 100px 20px 40px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
    gap: 10px;
    max-width: 700px;
  }

  .hero-subtitle i {
    font-size: 26px;
  }
}
