.hero {
  position: relative;
  background: url("../jpg/i2desk_hero.jpg") center/cover
    no-repeat;
  color: #fff;
  padding: 140px 20px 100px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 0, 22, 0.7), rgba(1, 1, 24, 0.7));
  z-index: 1;
}
.hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 2;
}

.hero-content {
  flex: 1 1 500px;
  text-align: left;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  max-width: 720px;
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-btn {
  background: #fff;
  color: #4f46e5;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: #e0e7ff;
}

/* Hero image with float animation */
.hero-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  /* border-radius: 16px; */
  box-shadow: 0 26px 70px #03798b31;
}

/* 1. The Perspective Stage */
.three-d-wrapper {
  perspective: 1000px; /* Lower perspective makes the depth/height difference more extreme */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px; /* Gives the smaller image room to 'lean' */
}

/* 2. Smaller 3D Transformation */
.static-3d-img {
  width: 100%;
  max-width: 380px; /* Reduced from 550px to make the image smaller */
  /* border-radius: 12px; */
  border: 1px solid rgba(255, 255, 255, 0.4);

  /* rotateY(-30deg): Higher degree makes the right side recede more.
     skewY(5deg): Dramatically reduces the height of the right side.
     scale(0.9): Ensures the overall image doesn't feel too bulky.
  */
  transform: rotateX(6deg) rotateY(-30deg) rotateZ(0deg) skewY(5deg) scale(1);

  /* Origin on the left makes the left side feel 'stuck' to the screen while the right side goes deep */
  transform-origin: left center;

  /* Shadow logic: Stronger on the left to simulate the lift */
  box-shadow: -15px 20px 30px rgba(0, 0, 0, 0.2),
    -30px 45px 70px rgba(79, 70, 229, 0.12);

  backface-visibility: hidden;
  transition: all 0.5s ease;
}

/* Animated shapes */
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: floatShape 10s linear infinite alternate;
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: #ffffff;
  top: 10%;
  left: 5%;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: #e0e7ff;
  bottom: 15%;
  right: 10%;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #c7d2fe;
  top: 40%;
  right: 25%;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 16px 80px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 16px;
  }
}

/* OVERVIEW SECTION */
.overview {
  background: #f8fafc;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.overview-container {
  max-width: 1000px;
  border-radius: 14px;
  background: linear-gradient(135deg, #197e8e 0%, #56d9ed 100%);
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.overview-content {
  /* background: #fff; */
  padding: 15px; /* This creates the gap between the outer edge and the inner frame */
  border-radius: 20px;
  box-shadow: 0px 0px 5px #02414b31;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

/* THE NEW INNER FRAME */
.overview-frame {
  
  border: 1px solid white;
  border-radius: 14px;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.overview-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1e293b;
  font-weight: 700;
}

.overview-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 25px;
}

.overview-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 26px 70px #03798b31;
  transition: transform 0.3s ease;
}

.overview-image:hover {
  transform: scale(1.03);
}



.overview-frame h2 {
  margin-top: 0;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.overview-frame p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 25px;
}

.overview-frame p:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .overview-content {
    padding: 30px 20px;
  }

  .overview-content h2 {
    font-size: 28px;
  }

  .overview-content p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .overview {
    padding: 60px 16px;
  }

  .overview-content {
    padding: 25px 15px;
  }

  .overview-content h2 {
    font-size: 24px;
  }

  .overview-content p {
    font-size: 15px;
  }
}

/* FEATURES SECTION */
.features {
  padding: 50px 20px;
  background: #f8fafc;
}

.features-grid {
  max-width: 950px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* CARD */
.feature-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border-radius: 20px;
  padding: 26px 20px;
  box-shadow: 0px 0px 5px #02414b31;
  overflow: hidden;
  transition: all 0.35s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  opacity: 0.06;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px #03798b31;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.1) rotate(-5deg);
}

/* TITLE */
.feature-card h2 {
  font-size: 16px;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.3;
}

/* TEXT */
.feature-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card ul {
  padding-left: 18px;
  margin: 0;
  font-size: 13.5px;
  color: #475569;
  position: relative;
  z-index: 1;
}

.feature-card ul li {
  margin-bottom: 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .feature-card h2 {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .features {
    padding: 60px 16px;
  }

  .feature-head {
    gap: 12px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }
}

/* WHY i2Desk */
.why {
  background: linear-gradient(135deg, #0f172a, #1e293b); /* Dark gradient */
  color: #ffffff;
  padding: 90px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.why h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #f8fafc;
  position: relative;
  z-index: 1;
  text-align: center;
}

.why-list {
  max-width: 600px;
  margin: auto;
  list-style: none;
  display: grid;
  gap: 18px;
  z-index: 1;
  position: relative;
}

.why-list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.7;
  color: #e0e7ff;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.why-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #4f46e5; /* Bright check icon */
  font-weight: bold;
  font-size: 18px;
}

/* Add subtle hover effect */
.why-list li:hover {
  transform: translateX(6px);
}

/* Optional: animated gradient overlay */
.why::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(79, 70, 229, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.why {
  position: relative;
  padding: 100px 20px;
  background-color: #f8fafc;
  overflow: hidden; /* Prevents logos from showing outside the section */
}

/* Watermark Base Style */
.why-wm {
  position: absolute;
  width: 380px;
  height: auto;

  /* 1. Reduce opacity further (0.02 to 0.04 is the 'sweet spot' for light themes) */
  opacity: 0.1;

  /* 2. Increase brightness to wash out dark colors and match white backgrounds */
  filter: grayscale(100%) brightness(3.5);

  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Left side positioning */
.wm-left {
  top: 10%;
  left: -80px;
  transform: rotate(-15deg);
  animation: driftLeft 12s ease-in-out infinite alternate;
}

/* Right side positioning */
.wm-right {
  bottom: 10%;
  right: -80px;
  transform: rotate(15deg);
  animation: driftRight 15s ease-in-out infinite alternate;
}

/* Ensure text is above the images */
.why .container {
  position: relative;
  z-index: 2;
}

/* List Styling (Optional cleanup) */
.why-list {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.why-list li {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
}

/* CTA */
.cta {
  background: #ffffff; /* White background */
  color: #1e293b; /* Dark text for contrast */
  padding: 90px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.cta p {
  max-width: 700px;
  margin: auto;
  font-size: 16px;
  color: #475569;
  margin-bottom: 40px;
}

/* CTA Button */
.cta-btn {
  background: linear-gradient(135deg, #04048a, #6366f1);
  color: #fff;
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 26px 70px #03798b31;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px #03798b31;
}

/* Optional: subtle background shapes */
.cta::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.cta .container {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .cta h2 {
    font-size: 28px;
  }

  .cta-btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .cta h2 {
    font-size: 24px;
  }

  .cta p {
    font-size: 15px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 34px;
  }

  .feature h2 {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 80px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .overview,
  .features,
  .why,
  .cta {
    padding: 60px 16px;
  }

  .cta h2 {
    font-size: 26px;
  }
}

/* Keys Frames */

/* Floating Animations */
@keyframes driftLeft {
  from {
    transform: translate(0, 0) rotate(-15deg);
  }
  to {
    transform: translate(30px, 20px) rotate(-10deg);
  }
}

@keyframes driftRight {
  from {
    transform: translate(0, 0) rotate(15deg);
  }
  to {
    transform: translate(-30px, -20px) rotate(20deg);
  }
}

@keyframes floatShape {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) translateX(10px) rotate(15deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}