body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden;
}

/* For WebKit-based browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 5px;
  /* Thin scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent;
  /* Optional: Make the track transparent */
}

::-webkit-scrollbar-thumb {
  background: black;
  /* Black scrollbar */
  border-radius: 10px;
  /* Optional: Rounded corners */
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: black transparent;
  /* Scrollbar thumb and track */
}

h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
}

h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}

p {
  font-size: 15px;
}

p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}

a {
  color: #608dfd;
  font-weight: 400;
}

a:hover,
a:focus {
  text-decoration: none;
  color: #608dfd;
}

ul,
ol {
  list-style: none;
}

ul,
ol {
  padding: 0;
  webkit-padding: 0;
  moz-padding: 0;
}

hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}

/* Navigation */
#menu {
  padding: 8px;
  transition: all 0.8s;
}

#menu.navbar-default {
  background-color: #e6f0f9;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
}

#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  display: flex;
  height: 65px;
  margin-top: -15px;
}

.nav-header-text {
  margin-top: 12px;
}

#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
}

#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  content: "";
  transition: width 0.2s;
}

#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
}

.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}

.navbar-toggle {
  border-radius: 0;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #608dfd;
}

.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #608dfd;
}

.section-title {
  margin-bottom: 10px;
}

.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

.section-title p {
  font-size: 18px;
}

.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #5ca9fb;
  background-image: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: black;
  background-image: none;
  background-color: white;
  border-color: white;
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}

/* Header Section */
.responsive-section {
  max-width: 100%;
  overflow-y: auto;
}

.intro {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/background.jpeg) center center no-repeat;
  background-size: cover;
  /* Ensures the image covers the entire viewport without stretching */
  background-color: #e5e5e5;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

.intro .overlay {
  background: rgba(0, 0, 0, 0.2);
}

.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  font-size: 82px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}

.intro h1 span {
  font-weight: 800;
  color: #5ca9fb;
}

.intro p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}

header .intro-text {
  padding-top: 350px;
  padding-bottom: 200px;
  text-align: center;
}

/* Features Section */
#features {
  background: #e6f0f9;
}

#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

/* About Section */
#about {
  padding: 100px 0;
  background: #e6f0f9;
}

#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
}

#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}

#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #5ca9fb;
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}

#about img {
  /* margin-top: -60px; */
  /* background: #fff; */
  background: #e6f0f9;
  border-right: 0;
  /* box-shadow: 0 0 50px rgba(0, 0, 0, 0.06); */
}

#about p {
  line-height: 24px;
  margin: 20px 0;
}

/* Services Section - Enhanced "Our Kinks" */
#tech-stack {
  padding: 40px 0;
}

#services {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  color: #fff;
  position: relative;
  overflow: hidden;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

/* Floating Background Shapes */
.services-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-duration: 25s;
  background: linear-gradient(
    45deg,
    rgba(255, 107, 107, 0.3),
    rgba(255, 142, 83, 0.3)
  );
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 15%;
  animation-duration: 30s;
  animation-direction: reverse;
  background: linear-gradient(
    45deg,
    rgba(78, 205, 196, 0.3),
    rgba(68, 160, 141, 0.3)
  );
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-duration: 22s;
  background: linear-gradient(
    45deg,
    rgba(168, 237, 234, 0.3),
    rgba(254, 214, 227, 0.3)
  );
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 25%;
  animation-duration: 28s;
  animation-direction: reverse;
  background: linear-gradient(
    45deg,
    rgba(210, 153, 194, 0.3),
    rgba(254, 249, 215, 0.3)
  );
}

.shape-5 {
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 35s;
  background: linear-gradient(
    45deg,
    rgba(79, 172, 254, 0.2),
    rgba(0, 242, 254, 0.2)
  );
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) rotate(240deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

/* Enhanced Title Section */
.services-hero {
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.kinks-title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.title-decorations {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 20px;
}

.deco-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: pulse 2s ease-in-out infinite;
}

.deco-diamond {
  width: 16px;
  height: 16px;
  background: linear-gradient(45deg, #fff, #a8edea);
  transform: rotate(45deg);
  animation: sparkle 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: rotate(225deg) scale(1.3);
    box-shadow: 0 0 30px rgba(168, 237, 234, 0.8);
  }
}

.kinks-title {
  font-size: 4.5rem !important;
  font-weight: 800;
  margin: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.kinks-word {
  display: block;
  position: relative;
  background: linear-gradient(
    135deg,
    #fff 0%,
    #a8edea 25%,
    #fed6e3 50%,
    #d299c2 75%,
    #fff 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.kinks-our {
  font-size: 0.7em;
  animation-delay: 0s;
  transform: translateX(-20px);
}

.kinks-main {
  font-size: 1.2em;
  animation-delay: 0.5s;
  transform: translateX(20px);
  letter-spacing: 5px;
}

@keyframes textShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.title-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 100px;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  filter: blur(20px);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.kinks-description {
  font-size: 18px !important;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 800px;
  margin: 0 auto !important;
  position: relative;
  z-index: 2;
}

.highlight-text {
  background: linear-gradient(135deg, #fed6e3, #d299c2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  position: relative;
}

.highlight-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(254, 214, 227, 0.8),
    transparent
  );
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

/* Enhanced Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.service-card {
  perspective: 1000px;
  height: 350px;
}

.service-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 30px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover .service-inner {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(168, 237, 234, 0.2)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 20px;
}

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

.service-icon-wrapper {
  position: relative;
  margin-bottom: 30px;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.service-card:hover .icon-glow {
  opacity: 1;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.service-inner i.fa {
  font-size: 60px !important;
  width: 120px !important;
  height: 120px !important;
  padding: 30px 0 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 50% !important;
  color: #fff !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
  position: relative;
  z-index: 2;
}

.service-card:hover .service-inner i.fa {
  transform: rotateY(360deg) scale(1.1);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
}

.icon-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #fed6e3, #a8edea);
  border-radius: 50%;
  opacity: 0;
}

.service-card:hover .particle {
  animation: particleFloat 2s ease-out infinite;
}

.particle-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle-2 {
  top: 20%;
  right: 20%;
  animation-delay: 0.3s;
}

.particle-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.6s;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0);
  }
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-title {
  font-weight: 600 !important;
  font-size: 1.4rem !important;
  padding: 15px 0 !important;
  color: #fff !important;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.service-card:hover .service-title {
  color: #fed6e3 !important;
  transform: translateY(-5px);
}

.service-text {
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6;
  font-size: 14px;
  transition: all 0.3s ease;
}

.service-card:hover .service-text {
  color: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .kinks-title {
    font-size: 3rem !important;
  }

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

  .service-card {
    height: 320px;
  }

  .kinks-description {
    font-size: 16px !important;
  }

  .shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .kinks-title {
    font-size: 2.5rem !important;
  }

  .kinks-main {
    letter-spacing: 2px;
  }
}

/* Testimonials Section */
#testimonials {
  padding: 40px 0;
  background: #e6f0f9;
}

#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}

.testimonial {
  position: relative;
  padding: 20px;
}

.testimonial-image {
  float: left;
  margin-right: 15px;
}

.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.testimonial-content {
  position: relative;
  overflow: hidden;
}

.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}

.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}

/* Team Section */
#team {
  padding: 40px 0;
}

#team h4 {
  margin: 5px 0;
}

#team .team-img {
  /* width: 240px; */
}

#team .thumbnail {
  background: transparent;
  border: 0;
}

#team .thumbnail .caption {
  padding: 10px 0 0;
  color: #888;
}

/* Contact Section */
#contact {
  padding: 100px 0 60px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  color: rgba(255, 255, 255, 0.75);
}

#contact .section-title {
  margin-bottom: 40px;
}

#contact .section-title p {
  font-size: 16px;
}

#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}

#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}

#contact form {
  padding-top: 20px;
}

#contact .text-danger {
  color: #cc0033;
  text-align: left;
}

#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}

#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}

label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}

#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}

.form-control::-webkit-input-placeholder {
  color: #777;
}

.form-control:-moz-placeholder {
  color: #777;
}

.form-control::-moz-placeholder {
  color: #777;
}

.form-control:-ms-input-placeholder {
  color: #777;
}

#contact .contact-item {
  margin: 20px 0;
}

#contact .contact-item span {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: block;
}

#contact .contact-item i.fa {
  margin-right: 10px;
}

#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}

#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}

#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}

/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}

#footer p {
  color: #888;
  font-size: 14px;
}

#footer a {
  color: #608dfd;
}

#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
  }

  .intro h1 {
    font-size: 350%;
  }
}

.booking-widget {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Portfolio Section Base ===== */
#portfolio {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
}

/* ===== Portfolio Item ===== */
.portfolio-item-r {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.portfolio-item-r h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

.portfolio-item-r p {
  font-size: 1rem;
  margin-top: 20px;
  color: #555;
  line-height: 1.6;
}

/* ===== Media Container ===== */
.media-container {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 12px;
}

/* Regular media container */
.media-container:not(.long-image-container) {
  max-height: 420px;
}

/* Long image container - shows full image scaled to fit width */
.long-image-container {
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  cursor: zoom-in;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 500px;
}

.long-image-container.zoomed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  max-height: none;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.97) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 0;
  cursor: zoom-out;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Regular media styling */
.media.stylish-media {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

/* Regular images - use cover to fit nicely */
.media.stylish-media:not(.long-image) {
  max-height: 420px;
  object-fit: cover;
}

/* Long images - show full image scaled to container width */
.media.stylish-media.long-image {
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
  cursor: zoom-in;
  transition: all 0.3s ease;
}

/* Long image in zoomed state */
.long-image-container.zoomed .media.stylish-media.long-image {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  cursor: zoom-out;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px rgba(59, 130, 246, 0.15);
  transform: scale(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: imageZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect for regular images only */
.media.stylish-media:not(.long-image):hover {
  transform: scale(1.02);
}

/* Long image hover effect when not zoomed */
.long-image-container:not(.zoomed) .media.stylish-media.long-image:hover {
  transform: scale(1.01);
}

/* Zoom indicator for long images */
.zoom-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.long-image-container:hover .zoom-indicator {
  opacity: 1;
}

.long-image-container.zoomed .zoom-indicator {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.9)
  );
  color: #1e293b;
  top: 30px;
  right: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
  animation: fadeInSlide 0.5s ease-out 0.2s both;
}

/* Animations */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

.zoom-icon {
  font-size: 1rem;
}

/* ===== Thumbnail Strip ===== */
.thumbnail-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
  padding: 5px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.thumbnail.active {
  border-color: #00c3ff;
  transform: scale(1.05);
}

.thumbnail:hover {
  border-color: #ff6600;
}

.thumbnail img,
.thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Long image thumbnail indicator */
.long-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.thumbnail.long-thumb {
  border: 2px dashed #888;
}

.thumbnail.long-thumb.active {
  border: 2px solid #00c3ff;
}

/* ===== Body scroll lock for zoom ===== */
body.zoom-active {
  overflow: hidden;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .portfolio-item-r {
    padding: 20px 15px;
  }

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

  .portfolio-item-r h3 {
    font-size: 1.5rem;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }

  .long-image-container {
    max-height: 400px;
  }

  .zoom-indicator {
    font-size: 0.7rem;
    padding: 6px 8px;
  }

  .long-image-container.zoomed {
    padding: 10px;
  }

  .long-image-container.zoomed .media.stylish-media.long-image {
    max-width: 95vw;
    max-height: 95vh;
  }
}

@media (max-width: 480px) {
  #portfolio {
    padding: 40px 15px;
  }

  .portfolio-item-r {
    padding: 15px 10px;
  }

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

  .thumbnail {
    width: 50px;
    height: 40px;
  }

  .long-image-container {
    max-height: 350px;
  }

  .zoom-indicator {
    font-size: 0.6rem;
    padding: 4px 6px;
  }
}

.portfolio-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
  color: #333;
}

.portfolio-heading {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #2c3e50;
  position: relative;
}

.portfolio-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #3498db;
  border-radius: 5px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Styles for single media items (not in slider) */
.portfolio-media-container {
  padding: 15px;
  background-color: #ecf0f1;
  display: flex; /* For centering single images/videos */
  justify-content: center;
  align-items: center;
  height: 350px; /* Consistent height for single media containers */
  overflow: hidden; /* Hide overflow if media doesn't fit exactly */
}
.in-modal {
  max-height: 350px !important;
}

.portfolio-media {
  max-width: 100%;
  max-height: 100%; /* Ensure single media fits its container */
  display: block;
  border-radius: 8px;
  object-fit: cover; /* Covers container, crops if necessary */
}

.portfolio-media.video {
  object-fit: contain; /* Ensures video is fully visible */
}

.portfolio-media.image.long-image {
  object-fit: contain; /* Ensures entire long image is visible */
  height: auto; /* Allow height to adjust */
  max-width: 100%; /* Ensure it doesn't exceed container width */
  max-height: 250px; /* Limit max height for long images too, consistent with container */
}

/* --- Slider Specific Styles --- */
.portfolio-media-slider {
  position: relative;
  width: 100%;
  height: 350px; /* Fixed height for the slider to keep cards uniform */
  overflow: hidden;
  background-color: #ecf0f1;
  border-bottom: 1px solid #ddd;
}

.slider-content {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out; /* Smooth slide transition */
}

.slide {
  min-width: 100%; /* Each slide takes full width */
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevents slides from shrinking */
}

.slider-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensure media fits within the slide without cropping */
  border-radius: 8px;
}

.slider-media.image.long-image {
  object-fit: contain; /* Specifically for long images in slider */
  max-height: 250px; /* Constrain height for consistency */
  width: auto; /* Adjust width proportionally */
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev-arrow {
  left: 10px;
}

.next-arrow {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.dot.active {
  background-color: #3498db;
  transform: scale(1.2);
  border: 1px solid #3498db;
}

/* --- Content Below Media --- */
.portfolio-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-title {
  font-size: 1.8em;
  color: #34495e;
  margin-top: 0;
  margin-bottom: 10px;
}

.portfolio-description {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.portfolio-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.portfolio-tech-item {
  display: flex;
  align-items: center;
  background-color: #e8f6fd;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.9em;
  color: #2980b9;
  border: 1px solid #d0eaf7;
  transition: background-color 0.2s ease;
}

.portfolio-tech-item:hover {
  background-color: #d6eaf8;
}

.tech-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-heading {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .portfolio-section {
    padding: 20px 15px;
  }

  .portfolio-title {
    font-size: 1.5em;
  }

  .portfolio-description {
    font-size: 0.9em;
  }

  .portfolio-tech-item {
    font-size: 0.8em;
    padding: 3px 8px;
  }
  .slider-arrow {
    padding: 8px 12px;
    font-size: 1.2em;
  }
}

.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(74 74 74 / 70%);
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  max-width: 800px;
  border-radius: 8px;
  z-index: 1010;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Section Styling */
.tech-stack-section {
  text-align: center;
  padding: 60px 20px;
}

.tech-stack-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

/* Flexbox Gallery */
.tech-stack-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center horizontally */
  gap: 30px; /* Even space between items */
}

/* Individual Tech Item */
.tech-item {
  flex: 0 1 120px; /* Keep items consistent in size */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.tech-item img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Hover Effect */
.tech-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Title Styling */
.tech-title {
  font-size: 0.9rem;
  color: #444;
  margin-top: 4px;
  font-weight: 500;
}

/* Contact Section Enhancements */
.contact-hero {
  text-align: center;
  position: relative;
  margin-bottom: 60px !important;
}

.contact-title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.contact-icon-group {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 2;
}

.contact-icon-1,
.contact-icon-2,
.contact-icon-3 {
  font-size: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: floatIcon 3s ease-in-out infinite;
}

.contact-icon-1 {
  animation-delay: 0s;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.contact-icon-2 {
  animation-delay: 0.5s;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.contact-icon-3 {
  animation-delay: 1s;
  background: linear-gradient(135deg, #a8edea, #fed6e3);
}

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

.gradient-text {
  background: linear-gradient(
    135deg,
    #fff 0%,
    #a8edea 25%,
    #fed6e3 50%,
    #d299c2 75%,
    #fef9d7 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  font-size: 3.5rem !important;
  font-weight: 700;
  margin: 40px 0 20px 0 !important;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animated-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-line-1,
.title-line-2 {
  display: block;
  animation: slideInFromLeft 1s ease-out;
}

.title-line-2 {
  animation: slideInFromRight 1s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

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

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

.title-underline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.underline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  animation: pulse 2s ease-in-out infinite;
}

.underline-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  border-radius: 2px;
  animation: expand 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes expand {
  0%,
  100% {
    width: 80px;
  }
  50% {
    width: 120px;
  }
}

.contact-description {
  font-size: 18px !important;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.description-icon {
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 20px;
  color: #a8edea;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    color: #a8edea;
  }
  25% {
    transform: rotate(10deg) scale(1.1);
    color: #fed6e3;
  }
  50% {
    transform: rotate(-10deg) scale(1.2);
    color: #d299c2;
  }
  75% {
    transform: rotate(5deg) scale(1.1);
    color: #fef9d7;
  }
}

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

/* Enhanced form styling */
#contact form {
  animation: fadeInUp 1s ease-out 1.2s both;
}

/* Responsive design for contact enhancements */
@media (max-width: 768px) {
  .gradient-text {
    font-size: 2.5rem !important;
  }

  .contact-icon-group {
    gap: 10px;
  }

  .contact-icon-1,
  .contact-icon-2,
  .contact-icon-3 {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .contact-description {
    font-size: 16px !important;
    padding-left: 30px;
  }

  .underline-line {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .gradient-text {
    font-size: 2rem !important;
  }

  .contact-description {
    font-size: 14px !important;
    padding-left: 25px;
  }
}

/* ===== MAGICAL NAVIGATION ENHANCEMENTS ===== */
.magical-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.magical-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #667eea,
    #764ba2,
    transparent
  );
  animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.nav-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.nav-particle-1,
.nav-particle-2,
.nav-particle-3 {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  animation: navParticleFloat 8s infinite linear;
}

.nav-particle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.nav-particle-2 {
  top: 60%;
  left: 50%;
  animation-delay: 2s;
}

.nav-particle-3 {
  top: 30%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes navParticleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.magical-logo {
  height: 50px !important;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.magical-brand:hover .magical-logo {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.magical-brand:hover .logo-glow {
  opacity: 1;
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.magical-nav-list {
  position: relative;
}

.magical-nav-link {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  color: #333 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 13px !important;
}

.nav-text {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.nav-hover-effect {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

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

.magical-nav-link:hover .nav-text {
  color: #667eea !important;
  transform: translateY(-2px);
}

.contact-special .special-effect {
  background: linear-gradient(90deg, #f093fb, #f5576c) !important;
}

.contact-special:hover .nav-text {
  color: #f093fb !important;
}

.magical-toggle .magical-bar {
  background: linear-gradient(90deg, #667eea, #764ba2) !important;
  transition: all 0.3s ease !important;
}

/* ===== MAGICAL HEADER/HERO ENHANCEMENTS ===== */
.magical-header {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.2),
    rgba(118, 75, 162, 0.2)
  );
  backdrop-filter: blur(40px);
  animation: orbFloat 20s infinite ease-in-out;
}

.orb-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.3),
    rgba(255, 142, 83, 0.3)
  );
}

.orb-2 {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 15%;
  animation-delay: 4s;
  background: linear-gradient(
    135deg,
    rgba(78, 205, 196, 0.3),
    rgba(68, 160, 141, 0.3)
  );
}

.orb-3 {
  width: 100px;
  height: 100px;
  bottom: 30%;
  left: 20%;
  animation-delay: 8s;
  background: linear-gradient(
    135deg,
    rgba(168, 237, 234, 0.3),
    rgba(254, 214, 227, 0.3)
  );
}

.orb-4 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  right: 25%;
  animation-delay: 12s;
  background: linear-gradient(
    135deg,
    rgba(210, 153, 194, 0.3),
    rgba(254, 249, 215, 0.3)
  );
}

.orb-5 {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 16s;
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.3),
    rgba(0, 242, 254, 0.3)
  );
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(90deg);
  }
  50% {
    transform: translateY(15px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.magical-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3) !important;
}

.magical-intro {
  animation: heroFadeIn 2s ease-out;
}

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

.title-container {
  margin-bottom: 40px;
  position: relative;
}

.magical-title {
  font-size: 5rem !important;
  font-weight: 800 !important;
  margin-bottom: 30px !important;
  position: relative;
}

.title-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.title-word {
  display: inline-block;
  background: linear-gradient(
    135deg,
    #fff 0%,
    #a8edea 25%,
    #fed6e3 50%,
    #d299c2 75%,
    #fff 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 3s ease-in-out infinite;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-word.word-1 {
  animation-delay: 0s;
}

.title-word.word-2 {
  animation-delay: 0.3s;
}

.title-word.word-3 {
  animation-delay: 0.6s;
}

.title-word.word-4 {
  animation-delay: 0.9s;
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
    transform: translateY(0px);
  }
  50% {
    background-position: 100% 50%;
    transform: translateY(-5px);
  }
}

.title-underline {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.underline-segment {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  animation: segmentGrow 2s ease-in-out infinite;
}

.segment-1 {
  width: 60px;
  animation-delay: 0s;
}

.segment-2 {
  width: 40px;
  animation-delay: 0.3s;
}

.segment-3 {
  width: 80px;
  animation-delay: 0.6s;
}

@keyframes segmentGrow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1.2);
    opacity: 1;
  }
}

.magical-paragraph {
  font-size: 1.6rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 600px !important;
  margin: 0 auto 50px auto !important;
  animation: paragraphFadeIn 2s ease-out 0.5s both;
}

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

.cta-container {
  margin-bottom: 80px;
  animation: ctaFadeIn 2s ease-out 1s both;
}

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

.magical-cta {
  position: relative !important;
  overflow: hidden !important;
  padding: 18px 40px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
}

.magical-cta:hover {
  transform: translateY(-5px) scale(1.05) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.btn-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #fff, #a8edea);
  border-radius: 50%;
  opacity: 0;
}

.magical-cta:hover .btn-particle {
  animation: btnParticleFloat 1.5s ease-out infinite;
}

.particle-1 {
  top: 25%;
  left: 25%;
  animation-delay: 0s;
}

.particle-2 {
  top: 25%;
  right: 25%;
  animation-delay: 0.2s;
}

.particle-3 {
  bottom: 25%;
  left: 25%;
  animation-delay: 0.4s;
}

.particle-4 {
  bottom: 25%;
  right: 25%;
  animation-delay: 0.6s;
}

@keyframes btnParticleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0);
  }
}

.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.magical-cta:hover .btn-ripple {
  width: 300px;
  height: 300px;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollIndicatorFadeIn 2s ease-out 1.5s both;
}

@keyframes scrollIndicatorFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  position: relative;
}

.scroll-arrow span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(-45deg);
  animation: scrollArrowMove 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  top: 10px;
  animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
  top: 20px;
  animation-delay: 0.4s;
}

@keyframes scrollArrowMove {
  0%,
  100% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: rotate(-45deg) translate(-10px, 10px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .tech-stack-gallery {
    gap: 20px;
  }

  .tech-item {
    flex: 0 1 100px;
  }

  .tech-stack-section h2 {
    font-size: 1.5rem;
  }

  .magical-title {
    font-size: 2.5rem !important;
  }

  .title-words {
    flex-direction: column;
    gap: 10px;
  }

  .orb {
    display: none;
  }

  .magical-paragraph {
    font-size: 1.6rem !important;
  }
}

/* ===== MAGICAL FEATURES SECTION ===== */
#features.magical-features {
  position: relative !important;
  padding: 80px 0 50px 0 !important;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  overflow: hidden !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

.magical-features {
  position: relative;
  padding: 80px 0 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  margin-bottom: 50px;
}

.features-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.feature-particles {
  position: relative;
  width: 100%;
  height: 100%;
}

.feature-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  animation: featureParticleFloat 15s infinite linear;
}

.particle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle-2 {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.particle-3 {
  bottom: 30%;
  left: 30%;
  animation-delay: 6s;
}

.particle-4 {
  top: 40%;
  right: 40%;
  animation-delay: 9s;
}

@keyframes featureParticleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 1;
  }
}

.features-title {
  margin-bottom: 80px !important;
  position: relative;
  z-index: 2;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 20px;
}

.deco-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  animation: decorationPulse 3s ease-in-out infinite;
}

.deco-sparkles {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.deco-sparkles .sparkle {
  font-size: 1.2rem;
  display: inline-block;
  animation: sparkleGlow 2s ease-in-out infinite;
}

.deco-sparkles .sparkle:nth-child(1) {
  animation-delay: 0s;
}

.deco-sparkles .sparkle:nth-child(2) {
  animation-delay: 0.3s;
}

.deco-sparkles .sparkle:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes decorationPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

@keyframes sparkleGlow {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3) rotate(10deg);
    opacity: 1;
    filter: brightness(1.5);
  }
}

.magical-features-title {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
  position: relative;
}

.title-part {
  display: block;
  margin-bottom: 10px;
}

.title-part.highlight {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

.title-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 100px;
  background: radial-gradient(
    ellipse,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  filter: blur(30px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.features-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 40px !important;
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 40px auto !important;
}

.feature-card {
  perspective: 1000px;
  height: 420px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 30px 50px 30px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .card-inner {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.icon-container {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin-left: auto;
  margin-right: auto;
}

.icon-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  opacity: 0.1;
  transition: all 0.3s ease;
}

.feature-card:hover .icon-background {
  opacity: 0.2;
  transform: translate(-50%, -50%) scale(1.2);
}

.feature-icon {
  font-size: 3rem !important;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-align: center !important;
}

/* Healthcare - Medical Red/Pink */
.feature-card[data-index="0"] .feature-icon {
  color: #e74c3c !important;
}

.feature-card[data-index="0"]:hover .feature-icon {
  color: #c0392b !important;
  transform: scale(1.1) rotate(10deg);
}

.feature-card[data-index="0"] .icon-background {
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.15),
    rgba(236, 112, 99, 0.15)
  ) !important;
}

/* Finance - Gold/Yellow */
.feature-card[data-index="1"] .feature-icon {
  color: #f39c12 !important;
}

.feature-card[data-index="1"]:hover .feature-icon {
  color: #d68910 !important;
  transform: scale(1.1) rotate(10deg);
}

.feature-card[data-index="1"] .icon-background {
  background: linear-gradient(
    135deg,
    rgba(243, 156, 18, 0.15),
    rgba(247, 220, 111, 0.15)
  ) !important;
}

/* E-Commerce - Purple/Magenta */
.feature-card[data-index="2"] .feature-icon {
  color: #6a1b9a !important;
}

.feature-card[data-index="2"]:hover .feature-icon {
  color: #4a148c !important;
  transform: scale(1.1) rotate(10deg);
}

.feature-card[data-index="2"] .icon-background {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(248, 187, 208, 0.3)
  ) !important;
}

/* Logistics - Blue/Cyan */
.feature-card[data-index="3"] .feature-icon {
  color: #1565c0 !important;
}

.feature-card[data-index="3"]:hover .feature-icon {
  color: #0d47a1 !important;
  transform: scale(1.1) rotate(10deg);
}

.feature-card[data-index="3"] .icon-background {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(187, 222, 251, 0.3)
  ) !important;
}

.icon-subtle-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Healthcare glow */
.feature-card[data-index="0"] .icon-subtle-glow {
  background: radial-gradient(
    circle,
    rgba(231, 76, 60, 0.2) 0%,
    transparent 70%
  );
}

/* Finance glow */
.feature-card[data-index="1"] .icon-subtle-glow {
  background: radial-gradient(
    circle,
    rgba(243, 156, 18, 0.2) 0%,
    transparent 70%
  );
}

/* E-Commerce glow */
.feature-card[data-index="2"] .icon-subtle-glow {
  background: radial-gradient(
    circle,
    rgba(106, 27, 154, 0.2) 0%,
    transparent 70%
  );
}

/* Logistics glow */
.feature-card[data-index="3"] .icon-subtle-glow {
  background: radial-gradient(
    circle,
    rgba(21, 101, 192, 0.2) 0%,
    transparent 70%
  );
}

.feature-card:hover .icon-subtle-glow {
  opacity: 1;
  animation: subtleGlowPulse 2s ease-in-out infinite;
}

@keyframes subtleGlowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.6;
  }
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 200px;
}

.feature-title {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 15px !important;
  transition: all 0.3s ease;
}

/* Healthcare title hover */
.feature-card[data-index="0"]:hover .feature-title {
  color: #e74c3c !important;
  transform: translateY(-2px);
}

/* Finance title hover */
.feature-card[data-index="1"]:hover .feature-title {
  color: #f39c12 !important;
  transform: translateY(-2px);
}

/* E-Commerce title hover */
.feature-card[data-index="2"]:hover .feature-title {
  color: #6a1b9a !important;
  transform: translateY(-2px);
}

/* Logistics title hover */
.feature-card[data-index="3"]:hover .feature-title {
  color: #1565c0 !important;
  transform: translateY(-2px);
}

.feature-text {
  color: #666 !important;
  line-height: 1.7 !important;
  font-size: 15px !important;
  transition: all 0.3s ease;
  margin-bottom: 30px !important;
  padding: 0 10px !important;
}

.feature-card:hover .feature-text {
  color: #555 !important;
  transform: translateY(-1px);
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05),
    rgba(118, 75, 162, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.feature-card:hover .card-hover-effect {
  opacity: 1;
}

/* Card animation delays */
.feature-card[data-index="0"] {
  animation: cardFadeIn 0.8s ease-out 0.1s both;
}

.feature-card[data-index="1"] {
  animation: cardFadeIn 0.8s ease-out 0.2s both;
}

.feature-card[data-index="2"] {
  animation: cardFadeIn 0.8s ease-out 0.3s both;
}

.feature-card[data-index="3"] {
  animation: cardFadeIn 0.8s ease-out 0.4s both;
}

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

/* ===== ENHANCED ABOUT SECTION ===== */
#about {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
  /* margin-top: 10px; */
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

#about .container {
  position: relative;
  z-index: 2;
}

#about .about-text h2 {
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin-bottom: 30px !important;
  background: linear-gradient(135deg, #fff, #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aboutTitleShimmer 4s ease-in-out infinite;
}

@keyframes aboutTitleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

#about .about-text p {
  font-size: 1.5rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 25px !important;
  animation: aboutTextSlide 1s ease-out 0.3s both;
}

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

#about .about-text h3 {
  font-size: 2rem !important;
  color: #fed6e3 !important;
  margin: 40px 0 20px 0 !important;
  font-weight: 600 !important;
}

#about .list-style ul {
  list-style: none !important;
  padding: 0 !important;
}

#about .list-style li {
  position: relative !important;
  padding: 10px 0 10px 40px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.5rem !important;
  line-height: 1.6 !important;
  animation: aboutListSlide 0.8s ease-out both;
}

#about .list-style li:nth-child(1) {
  animation-delay: 0.5s;
}
#about .list-style li:nth-child(2) {
  animation-delay: 0.6s;
}
#about .list-style li:nth-child(3) {
  animation-delay: 0.7s;
}
#about .list-style li:nth-child(4) {
  animation-delay: 0.8s;
}

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

#about .list-style li::before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 1.2rem;
  animation: sparkleRotate 3s ease-in-out infinite;
}

@keyframes sparkleRotate {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
}

#about .col-12.col-md-6:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

#about .img-fluid {
  max-width: 300px !important;
  height: auto !important;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: logoFloat 6s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(5px) rotate(-2deg);
  }
}

.section-spacer {
  height: 20px;
  width: 100%;
  background: transparent;
  clear: both;
}

/* Enhanced responsive design */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 35px !important;
  }
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 768px) {
  .magical-features-title {
    font-size: 2.2rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .feature-card {
    height: 400px;
  }

  #about .about-text h2 {
    font-size: 2.2rem !important;
  }

  #about .about-text h3 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 10px !important;
  }

  .feature-card {
    height: 380px;
  }

  .card-inner {
    padding: 35px 25px 45px 25px !important;
  }
}

/* ===== MAGICAL TEAM SECTION ===== */
.magical-team {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  overflow: hidden;
}

.team-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.team-sparkles {
  position: relative;
  width: 100%;
  height: 100%;
}

.sparkle {
  position: absolute;
  font-size: 2rem;
  animation: sparkleFloat 8s infinite ease-in-out;
}

.sparkle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 30%;
  right: 15%;
  animation-delay: 2s;
}

.sparkle-3 {
  bottom: 40%;
  left: 20%;
  animation-delay: 4s;
}

.sparkle-4 {
  top: 60%;
  right: 30%;
  animation-delay: 6s;
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.team-section-title {
  margin-bottom: 80px !important;
}

.team-title-wrapper {
  position: relative;
  margin-bottom: 30px;
}

.magical-team-title {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.team-title-word {
  display: block;
  transition: all 0.3s ease;
}

.team-title-word.highlight {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: teamTitleGlow 3s ease-in-out infinite;
}

@keyframes teamTitleGlow {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.2);
    transform: scale(1.02);
  }
}

.team-title-underline {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  border-radius: 2px;
  margin: 0 auto;
  animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
  0%,
  100% {
    width: 100px;
    opacity: 0.7;
  }
  50% {
    width: 140px;
    opacity: 1;
  }
}

.team-description {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  color: #666 !important;
  max-width: 800px !important;
  margin: 0 auto 60px auto !important;
  animation: teamDescFadeIn 1s ease-out 0.3s both;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.magical-team-card {
  perspective: 1000px;
}

.team-card-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.magical-team-card:hover .team-card-inner {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.team-image-wrapper {
  position: relative;
  margin-bottom: 25px;
  display: inline-block;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.4) 0%,
    rgba(252, 182, 159, 0.3) 40%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.magical-team-card:hover .image-glow {
  opacity: 1;
  animation: imageGlowPulse 2s ease-in-out infinite;
}

@keyframes imageGlowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.magical-team-img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 6px solid rgba(255, 255, 255, 0.9) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
  filter: brightness(1.1) contrast(1.05) !important;
}

.magical-team-card:hover .magical-team-img {
  transform: scale(1.08) rotate(2deg);
  border-color: #ff6b6b !important;
  box-shadow: 0 25px 50px rgba(255, 107, 107, 0.3),
    0 10px 25px rgba(0, 0, 0, 0.15) !important;
  filter: brightness(1.2) contrast(1.1) saturate(1.1) !important;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 107, 107, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.magical-team-card:hover .hover-overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  font-size: 1.5rem;
  animation: socialBounce 0.6s ease infinite alternate;
}

.social-icon:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes socialBounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

.magical-team-info {
  position: relative;
  z-index: 2;
}

.team-name {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 12px !important;
  margin-top: 20px !important;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.magical-team-card:hover .team-name {
  color: #ff6b6b !important;
  transform: translateY(-2px);
}

.team-role {
  color: #666 !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Raleway", sans-serif;
}

.magical-team-card:hover .team-role {
  color: #555 !important;
  transform: translateY(-1px);
}

.card-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  border-radius: 50%;
  opacity: 0;
}

.magical-team-card:hover .card-particle {
  animation: teamParticleFloat 2s ease-out infinite;
}

.p1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.p2 {
  top: 30%;
  right: 20%;
  animation-delay: 0.3s;
}

.p3 {
  bottom: 20%;
  left: 50%;
  animation-delay: 0.6s;
}

@keyframes teamParticleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0);
  }
}

/* ===== MAGICAL TESTIMONIALS SECTION ===== */
.magical-testimonials {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  overflow: hidden;
}

.testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-quotes {
  position: relative;
  width: 100%;
  height: 100%;
}

.quote {
  position: absolute;
  font-size: 8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.1);
  font-family: serif;
  animation: quoteFloat 12s infinite ease-in-out;
}

.quote-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.quote-2 {
  top: 60%;
  right: 10%;
  animation-delay: 4s;
}

.quote-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 8s;
}

@keyframes quoteFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
    opacity: 0.2;
  }
}

.testimonials-title {
  margin-bottom: 80px !important;
  position: relative;
}

.title-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 20px;
  animation: iconBob 3s ease-in-out infinite;
}

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

.magical-testimonials-title {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 20px !important;
}

.emphasis {
  color: #ff6b6b !important;
  font-style: italic;
  animation: emphasisPulse 2s ease-in-out infinite;
}

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

.title-sparkle {
  font-size: 2rem;
  animation: sparkleRotate 4s linear infinite;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.magical-testimonial {
  perspective: 1000px;
}

.testimonial-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.magical-testimonial:hover .testimonial-inner {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.98);
}

.quote-mark {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 4rem;
  color: rgba(102, 126, 234, 0.2);
  font-family: serif;
  line-height: 1;
}

.magical-image {
  position: relative;
  margin-bottom: 25px;
  display: inline-block;
}

.image-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  background-clip: padding-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.magical-testimonial:hover .image-frame {
  opacity: 1;
  animation: frameRotate 3s linear infinite;
}

@keyframes frameRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.testimonial-photo {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  transition: all 0.3s ease !important;
  position: relative;
  z-index: 2;
}

.magical-testimonial:hover .testimonial-photo {
  transform: scale(1.1);
}

.image-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.magical-testimonial:hover .image-glow-effect {
  opacity: 1;
  animation: testimonialGlow 2s ease-in-out infinite;
}

@keyframes testimonialGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.testimonial-text {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #555 !important;
  font-style: italic !important;
  margin-bottom: 25px !important;
  position: relative;
  z-index: 2;
}

.testimonial-meta {
  position: relative;
  z-index: 2;
}

.author-name {
  font-weight: 600 !important;
  color: #333 !important;
  font-size: 1.1rem !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease;
}

.magical-testimonial:hover .author-name {
  color: #667eea !important;
  transform: translateY(-2px);
}

.rating {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.star {
  font-size: 1.2rem;
  animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(1) {
  animation-delay: 0s;
}
.star:nth-child(2) {
  animation-delay: 0.2s;
}
.star:nth-child(3) {
  animation-delay: 0.4s;
}
.star:nth-child(4) {
  animation-delay: 0.6s;
}
.star:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes starTwinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  border-radius: 25px;
}

.magical-testimonial:hover .card-shine {
  left: 100%;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .magical-team-title {
    font-size: 2.5rem !important;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
  }

  .magical-team-img {
    width: 150px !important;
    height: 150px !important;
  }

  .team-card-inner {
    min-height: 320px;
    padding: 35px 25px;
  }

  .magical-testimonials-title {
    font-size: 2.2rem !important;
  }

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

  .testimonial-inner {
    min-height: 320px;
  }

  .quote {
    font-size: 4rem;
  }
}

/* ========================================
   FEATURES SECTION V2 - COMPLETE REDESIGN
   ======================================== */

.magical-features-v2 {
  position: relative;
  padding: 140px 0;
  background: linear-gradient(
    135deg,
    #0a0e27 0%,
    #1a1d3a 30%,
    #2d3561 70%,
    #3f4787 100%
  );
  overflow: hidden;
  min-height: 100vh;
}

/* Animated Background */
.features-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.animated-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: waveFloat 8s ease-in-out infinite;
}

.wave-1 {
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.wave-2 {
  top: -30%;
  right: -10%;
  animation-delay: -2s;
  animation-duration: 10s;
}

.wave-3 {
  bottom: -20%;
  left: -5%;
  animation-delay: -4s;
  animation-duration: 12s;
}

@keyframes waveFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.1;
  }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
  animation: elementFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.el-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.el-2 {
  top: 25%;
  right: 15%;
  animation-delay: -1s;
}

.el-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: -2s;
}

.el-4 {
  bottom: 20%;
  right: 25%;
  animation-delay: -3s;
}

.el-5 {
  top: 40%;
  left: 50%;
  animation-delay: -4s;
}

@keyframes elementFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: translateY(10px) translateX(-5px) scale(0.9);
    opacity: 0.4;
  }
}

/* Header Section */
.features-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 3;
}

.section-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: badgePulse 3s ease-in-out infinite;
}

.badge-text {
  color: #1a1d3a;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.badge-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7
  );
  border-radius: 50px;
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
  animation: gradientShift 4s ease-in-out infinite;
}

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

@keyframes gradientShift {
  0%,
  100% {
    opacity: 0.7;
    filter: blur(8px) hue-rotate(0deg);
  }
  50% {
    opacity: 0.9;
    filter: blur(12px) hue-rotate(180deg);
  }
}

.features-main-title {
  font-size: 4.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 30px !important;
  line-height: 1.1;
  position: relative;
}

.title-line {
  display: block;
  color: #ffffff;
  animation: titleSlideIn 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight-gradient {
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 3s ease-in-out infinite;
}

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

@keyframes gradientText {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.features-subtitle {
  font-size: 1.5rem !important;
  /* color: rgba(255, 255, 255, 0.95) !important; */
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  animation: subtitleFadeIn 1s ease-out 0.3s both;
  /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); */
}

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

/* Showcase Grid */
.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.feature-showcase-item {
  position: relative;
  animation: itemFadeInUp 0.8s ease-out both;
}

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

/* Showcase Cards */
.showcase-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border-radius: 25px;
  padding: 40px 30px;
  height: 100%;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.showcase-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.1) 0%,
    rgba(78, 205, 196, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
}

.showcase-card:hover .card-background {
  opacity: 1;
}

.card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(-45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.showcase-card:hover .card-shine {
  transform: rotate(-45deg) translateX(100%);
}

/* Icon Section */
.icon-section {
  position: relative;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-orbit {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border: 2px solid rgba(45, 53, 97, 0.3);
  border-radius: 50%;
  animation: orbitRotate 8s linear infinite;
}

.ring-1 {
  width: 100px;
  height: 100px;
  animation-duration: 8s;
}

.ring-2 {
  width: 120px;
  height: 120px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.ring-3 {
  width: 140px;
  height: 140px;
  animation-duration: 16s;
}

@keyframes orbitRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.showcase-icon {
  font-size: 3.5rem !important;
  color: #2d3561 !important;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

.showcase-card:hover .showcase-icon {
  transform: scale(1.1);
  color: #ff6b6b !important;
  filter: drop-shadow(0 5px 15px rgba(255, 107, 107, 0.4));
}

.icon-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(45, 53, 97, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Content Section */
.content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-title {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #1a1d3a !important;
  margin-bottom: 15px !important;
  transition: all 0.3s ease;
}

.showcase-card:hover .showcase-title {
  color: #ff6b6b !important;
  transform: translateY(-3px);
}

.title-underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  margin: 0 auto 25px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.showcase-card:hover .title-underline {
  width: 80px;
  background: linear-gradient(90deg, #4ecdc4, #45b7d1);
}

.showcase-description {
  color: #4a5568 !important;
  font-size: 1.5rem !important;
  line-height: 1.6;
  margin-bottom: 30px;
  flex: 1;
  transition: all 0.3s ease;
}

.showcase-card:hover .showcase-description {
  color: #2d3748 !important;
}

/* Card Action */
.card-action {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.95rem;
}

.showcase-card:hover .card-action {
  opacity: 1;
  transform: translateY(0);
}

.action-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.showcase-card:hover .action-arrow {
  transform: translateX(5px);
}

/* Card Particles */
.card-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 25px;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 107, 107, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-card:hover .particle {
  opacity: 1;
  animation: particleFloat 3s ease-in-out infinite;
}

.p-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.p-2 {
  top: 30%;
  right: 25%;
  animation-delay: 0.5s;
}

.p-3 {
  bottom: 30%;
  left: 30%;
  animation-delay: 1s;
}

.p-4 {
  bottom: 25%;
  right: 20%;
  animation-delay: 1.5s;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  /* Navigation fixes */
  .navbar-brand img {
    height: 35px !important;
  }

  .navbar-nav {
    margin-top: 10px;
  }

  .navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    padding-top: 10px;
  }

  /* Header section */
  .intro {
    padding: 120px 0 80px;
  }

  .intro h1 {
    font-size: 2.5rem !important;
    margin-bottom: 20px;
  }

  .intro p {
    font-size: 16px !important;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  /* Features section */
  .magical-features-v2 {
    padding: 80px 0;
  }

  .features-main-title {
    font-size: 2.5rem !important;
  }

  .features-subtitle {
    font-size: 1.5rem !important;
    padding: 0 20px;
  }

  .features-showcase {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px;
  }

  .showcase-card {
    padding: 25px 20px;
  }

  .floating-element {
    font-size: 1.3rem;
  }

  /* About section */
  #about {
    padding: 80px 0;
  }

  #about .container {
    padding: 0 20px;
  }

  /* Services section */
  #services {
    padding: 80px 0;
  }

  /* Contact section */
  #contact {
    padding: 80px 0 40px;
  }

  #contact .container {
    padding: 0 20px;
  }

  /* General container improvements */
  .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 576px) {
  /* Small mobile devices */
  .navbar-brand img {
    height: 30px !important;
  }

  .intro {
    padding: 100px 0 60px;
  }

  .intro h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .intro p {
    font-size: 14px !important;
    padding: 0 15px;
  }

  .btn-custom {
    padding: 12px 25px !important;
    font-size: 14px !important;
  }

  .features-main-title {
    font-size: 2rem !important;
  }

  .features-subtitle {
    font-size: 0.9rem !important;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  h2 {
    font-size: 28px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  p {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .intro h1 {
    font-size: 1.8rem !important;
  }

  .features-main-title {
    font-size: 1.8rem !important;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .showcase-card {
    padding: 20px 15px;
  }

  .btn-custom {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 400px) {
  /* Very small devices */
  .intro {
    padding: 80px 0 50px;
  }

  .intro h1 {
    font-size: 1.6rem !important;
  }

  .intro p {
    font-size: 13px !important;
  }

  .features-main-title {
    font-size: 1.6rem !important;
  }

  .magical-features-v2 {
    padding: 60px 0;
  }

  #about,
  #services,
  #contact {
    padding: 60px 0 40px;
  }
}

.contact-us-col {
  padding-left: 0;
  padding-right: 0;
}
.contact-us-form .form-group {
  padding: 0 10px !important;
}
