/* ========== HERO SECTION ========== */

body {
  overflow-x: hidden;
}

.services-preview-section .container,
.projects-preview-section .container,
.announcements-section .container {
  overflow-x: hidden;
}

.landing-page-bg {
  background-image: url("/assets/images/bg_image1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center;
  min-height: 100vh;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Title */
.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
  margin-bottom: 0;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 20px;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image-container {
  flex: 1.4;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-image {
  max-width: 100%;
  width: 800px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform-style: preserve-3d;
  margin-top: 100px;
}

/* Description text */
.hero-desc {
  max-width: 800px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.6;
  margin: 1.5rem auto 0;
}

/* Button */
.btn-get-started {
  background-color: #ff6a00;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 40px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 3px solid #ffffff;
  display: inline-block;
}

.btn-get-started:hover {
  background-color: #ffffff;
  color: #e75c00;
  border: 3px solid #e75c00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 92, 0, 0.3);
}

/* Animations */
.left-right {
  animation-name: slideInFromLeft;
  animation-duration: 2.5s;
  animation-fill-mode: both;
  transition-timing-function: ease-in-out;
}

.right-left {
  animation-name: slideInFromRight;
  animation-duration: 2.5s;
  animation-fill-mode: both;
  transition-timing-function: ease-in-out;
}

.bottom-top {
  animation-name: slideInFromBottom;
  animation-duration: 2.5s;
  animation-fill-mode: both;
  transition-timing-function: ease-in-out;
}

.top-bottom {
  animation-name: slideInFromTop;
  animation-duration: 2.5s;
  animation-fill-mode: both;
  transition-timing-function: ease-in-out;
}

/* Animation keyframes */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reveal Animations */
.revealY {
  position: relative;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.8s ease;
}

.revealY.active {
  transform: translateY(0);
  opacity: 1;
}

.revealX {
  position: relative;
  transform: translateX(-120px);
  opacity: 0;
  transition: all 0.8s ease;
}

.revealX.active {
  transform: translateX(0);
  opacity: 1;
}

.revealX1 {
  position: relative;
  transform: translateX(120px);
  opacity: 0;
  transition: all 0.8s ease;
}

.revealX1.active {
  transform: translateX(0);
  opacity: 1;
}

/* ========== ANNOUNCEMENTS SECTION ========== */

.announcements-section {
  /*background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);*/
  background-color: #ffffff;
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.announcements-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.announcements-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.announcements-section .container {
  position: relative;
  z-index: 1;
}

/* Section Badge */
.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

/* Section Title */
.announcement-title {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* Section Subtitle */
.announcement-subtitle {
  font-size: 18px;
  color: #666;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* Alternating Row Layout */
.announcement-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.announcement-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #ff8533);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.announcement-row:hover::before {
  transform: scaleX(1);
}

.announcement-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 106, 0, 0.15);
}

.announcement-row:last-child {
  margin-bottom: 0;
}

/* Image Container */
.announcement-image {
  flex: 0 0 400px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.announcement-row:hover .announcement-image img {
  transform: scale(1.05);
}

.announcement-icon-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.5);
  z-index: 2;
}

.announcement-icon-overlay i {
  font-size: 32px;
  color: #fff;
}

/* Content Container */
.announcement-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Badge */
.announcement-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 106, 0, 0.1);
  color: #ff6a00;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  width: fit-content;
}

/* Heading */
.announcement-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.announcement-row:hover .announcement-heading {
  color: #ff6a00;
}

/* Date */
.announcement-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-date i {
  font-size: 14px;
  color: #ff6a00;
}

/* Body */
.announcement-body {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Read More Link */
.announcement-read {
  color: #ff6a00;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: fit-content;
}

.announcement-read:hover {
  gap: 12px;
  color: #e75c00;
}

.announcement-read i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.announcement-read:hover i {
  transform: translateX(4px);
}

/* Featured Row */
.announcement-row.featured {
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
  border: 2px solid #ff6a00;
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.2);
}

.featured-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Reverse layout for alternating rows */
.announcement-row.reverse {
  flex-direction: row-reverse;
}

/* ========== PRELOADER STYLES ========== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-gif {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.preloader-text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #ff6a00;
  font-weight: 600;
  margin: 0;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */

/* Large Desktops (1920px and above) */
@media (min-width: 1920px) {
  .hero-title {
    font-size: 64px;
  }

  .hero-desc {
    font-size: 20px;
    max-width: 1000px;
  }

  .btn-get-started {
    font-size: 20px;
    padding: 16px 50px;
  }

  .announcement-title {
    font-size: 52px;
  }

  .announcement-subtitle {
    font-size: 20px;
  }

  .announcement-image {
    flex: 0 0 500px;
    height: 350px;
  }

  .announcement-icon-overlay {
    width: 80px;
    height: 80px;
  }

  .announcement-icon-overlay i {
    font-size: 36px;
  }

  .announcement-heading {
    font-size: 36px;
  }

  .announcement-body {
    font-size: 18px;
  }
  .hero-wrapper {
    max-width: 1600px;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-desc {
    font-size: 20px;
    max-width: 1000px;
  }

  .hero-image {
    width: 900px;
    margin-top: 120px;
  }

  .btn-get-started {
    font-size: 20px;
    padding: 16px 50px;
  }
}

/* Standard Desktop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .announcement-image {
    flex: 0 0 400px;
    height: 300px;
  }
}

/* Tablets and Small Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-desc {
    font-size: 15px;
    max-width: 700px;
  }

  .btn-get-started {
    font-size: 17px;
    padding: 11px 35px;
  }

  .announcement-title {
    font-size: 38px;
  }

  .announcement-subtitle {
    font-size: 17px;
  }

  .announcement-row {
    padding: 35px 30px;
    gap: 40px;
  }

  .announcement-image {
    flex: 0 0 350px;
    height: 280px;
  }

  .announcement-heading {
    font-size: 28px;
  }

  .announcement-body {
    font-size: 15px;
  }
}

/* Tablets Portrait (768px - 991px) */
@media (max-width: 991px) {
  .revealX {
    transform: translateY(60px) translateX(0);
  }

  .revealX1 {
    transform: translateY(60px) translateX(0);
  }

  .revealX.active,
  .revealX1.active {
    transform: translateY(0) translateX(0);
  }

  .landing-page-bg {
    padding: 80px 20px 40px;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 15px;
    max-width: 600px;
  }

  .btn-get-started {
    font-size: 16px;
    padding: 11px 32px;
  }

  .announcements-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .announcement-title {
    font-size: 36px;
  }

  .announcement-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .announcement-row {
    flex-direction: column !important;
    gap: 30px;
    padding: 30px;
    margin-bottom: 40px;
  }

  .announcement-image {
    flex: 0 0 auto;
    width: 100%;
    height: 250px;
  }

  .announcement-icon-overlay {
    width: 65px;
    height: 65px;
  }

  .announcement-icon-overlay i {
    font-size: 30px;
  }

  .announcement-heading {
    font-size: 26px;
  }

  .announcement-body {
    font-size: 15px;
  }
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    width: 100%;
    max-width: 380px;
  }
}

/* Mobile Landscape & Large Phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .landing-page-bg {
    padding: 80px 20px 40px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 15px;
    max-width: 500px;
  }

  .announcements-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .announcement-title {
    font-size: 32px;
  }

  .announcement-row {
    padding: 25px;
    margin-bottom: 35px;
  }

  .announcement-image {
    height: 220px;
  }

  .announcement-icon-overlay {
    width: 60px;
    height: 60px;
  }

  .announcement-icon-overlay i {
    font-size: 28px;
  }

  .announcement-heading {
    font-size: 24px;
  }

  .announcement-body {
    font-size: 14px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .revealX {
    transform: translateY(40px) translateX(0);
  }

  .revealX1 {
    transform: translateY(40px) translateX(0);
  }

  .revealY {
    transform: translateY(40px);
  }

  /* Ensure sections don't overflow */
  .services-preview-section,
  .projects-preview-section,
  .announcements-section {
    overflow-x: hidden;
  }

  .services-preview-section .container,
  .projects-preview-section .container,
  .announcements-section .container {
    overflow-x: hidden;
  }

  .landing-page-bg {
    padding: 100px 15px 30px;
    min-height: 100vh;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.6;
    margin-top: 1rem;
  }

  .btn-get-started {
    font-size: 16px;
    padding: 10px 30px;
    margin-top: 1.5rem !important;
  }

  .announcements-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .announcements-section::before,
  .announcements-section::after {
    width: 200px;
    height: 200px;
  }

  .section-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .announcement-title {
    font-size: 28px;
    margin-top: 1rem;
  }

  .announcement-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .announcement-row {
    flex-direction: column !important;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    gap: 20px;
  }

  .announcement-image {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .announcement-icon-overlay {
    width: 60px;
    height: 60px;
    top: 15px;
    left: 15px;
  }

  .announcement-icon-overlay i {
    font-size: 26px;
  }

  .featured-label {
    font-size: 11px;
    padding: 6px 15px;
    top: 15px;
    right: 15px;
  }

  .announcement-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .announcement-heading {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .announcement-date {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .announcement-body {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .announcement-read {
    font-size: 14px;
  }

  .loader-gif {
    width: 120px;
    height: 120px;
  }

  .preloader-text {
    font-size: 14px;
  }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
  .landing-page-bg {
    padding: 100px 12px 25px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .btn-get-started {
    font-size: 15px;
    padding: 9px 25px;
  }

  .announcement-title {
    font-size: 26px;
  }

  .announcement-subtitle {
    font-size: 14px;
  }

  .announcement-row {
    padding: 18px 15px;
  }

  .announcement-image {
    height: 180px;
  }

  .announcement-icon-overlay {
    width: 55px;
    height: 55px;
  }

  .announcement-icon-overlay i {
    font-size: 24px;
  }

  .announcement-heading {
    font-size: 20px;
  }

  .announcement-body {
    font-size: 13px;
  }

  .announcement-read {
    font-size: 13px;
  }
}

/* Very Small Devices (up to 320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 12px;
  }

  .btn-get-started {
    font-size: 14px;
    padding: 8px 22px;
  }

  .announcement-title {
    font-size: 24px;
  }

  .announcement-image {
    height: 160px;
  }

  .announcement-icon-overlay {
    width: 50px;
    height: 50px;
  }

  .announcement-icon-overlay i {
    font-size: 22px;
  }

  .announcement-heading {
    font-size: 18px;
  }
}

/* Landscape Orientation (Mobile) */
@media (max-height: 500px) and (orientation: landscape) {
  .landing-page-bg {
    min-height: auto;
    padding: 120px 20px 40px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 13px;
    margin-top: 0.75rem;
  }

  .btn-get-started {
    margin-top: 1rem !important;
    padding: 8px 25px;
  }

  .announcements-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .landing-page-bg {
    min-height: auto;
    padding: 100px 30px 50px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 15px;
  }
}

/* ========== SERVICES PREVIEW SECTION ========== */

.services-preview-section {
  background: #ffffff;
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.service-preview-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid #f0f0f0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-preview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #ff8533);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-preview-card:hover::before {
  transform: scaleX(1);
}

.service-preview-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 106, 0, 0.15);
  border-color: rgba(255, 106, 0, 0.2);
}

.service-preview-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(255, 106, 0, 0.3);
}

.service-preview-icon i {
  font-size: 36px;
  color: #ffffff;
  transition: transform 0.4s ease;
}

.service-preview-card:hover .service-preview-icon {
  transform: scale(1.1) rotateY(360deg);
}

.service-preview-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.service-preview-card:hover .service-preview-title {
  color: #ff6a00;
}

.service-preview-text {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 20px rgba(255, 106, 0, 0.3);
}

.btn-view-all:hover {
  background: #ffffff;
  color: #ff6a00;
  border-color: #ff6a00;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.4);
}

.btn-view-all i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-view-all:hover i {
  transform: translateX(5px);
}

/* ========== PROJECTS PREVIEW SECTION ========== */

.projects-preview-section {
  /*background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);*/
  background-color: #f6f6f6;
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

/* Projects Row Layout (Similar to Announcements) */
.project-preview-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-preview-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #ff8533);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-preview-row:hover::before {
  transform: scaleX(1);
}

.project-preview-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 106, 0, 0.15);
}

.project-preview-row:last-child {
  margin-bottom: 0;
}

/* Image Container */
.project-preview-image {
  flex: 0 0 400px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.project-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-preview-row:hover .project-preview-image img {
  transform: scale(1.05);
}

.project-icon-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.5);
  z-index: 2;
}

.project-icon-overlay i {
  font-size: 32px;
  color: #fff;
}

.project-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 106, 0, 0.95),
    rgba(255, 133, 51, 0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-preview-row:hover .project-preview-overlay {
  opacity: 1;
}

.btn-preview-view {
  padding: 12px 30px;
  background: #ffffff;
  color: #ff6a00;
  border: 2px solid #ffffff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-preview-row:hover .btn-preview-view {
  transform: translateY(0);
}

.btn-preview-view:hover {
  background: #ff6a00;
  color: #ffffff;
  border-color: #ff6a00;
}

/* Content Container */
.project-preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Badges */
.project-preview-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.project-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 106, 0, 0.1);
  color: #ff6a00;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Heading */
.project-preview-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.project-preview-row:hover .project-preview-heading {
  color: #ff6a00;
}

/* Category */
.project-category-text {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
}

.project-category-text i {
  font-size: 14px;
  color: #ff6a00;
}

/* Description */
.project-preview-description {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Tech Stack */
.project-tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.tech-badge {
  padding: 6px 12px;
  background: #f8f9fa;
  color: #555;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.project-preview-row:hover .tech-badge {
  background: rgba(255, 106, 0, 0.08);
  border-color: rgba(255, 106, 0, 0.2);
  color: #ff6a00;
}

/* View Link */
.project-view-link {
  color: #ff6a00;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: fit-content;
}

.project-view-link:hover {
  gap: 12px;
  color: #e75c00;
}

.project-view-link i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.project-view-link:hover i {
  transform: translateX(4px);
}

/* Featured Label */
.project-featured-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* Reverse layout for alternating rows */
.project-preview-row.reverse {
  flex-direction: row-reverse;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Large Desktops (1920px and above) */
@media (min-width: 1920px) {
  .services-preview-section,
  .projects-preview-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .section-title {
    font-size: 52px;
  }

  .section-subtitle {
    font-size: 20px;
  }

  .service-preview-card {
    padding: 50px 35px;
  }

  .service-preview-icon {
    width: 90px;
    height: 90px;
  }

  .service-preview-icon i {
    font-size: 42px;
  }

  .service-preview-title {
    font-size: 24px;
  }

  .service-preview-text {
    font-size: 16px;
  }

  .project-preview-image {
    flex: 0 0 500px;
    height: 350px;
  }

  .project-icon-overlay {
    width: 80px;
    height: 80px;
  }

  .project-icon-overlay i {
    font-size: 36px;
  }

  .project-preview-heading {
    font-size: 36px;
  }

  .project-preview-description {
    font-size: 18px;
  }
}

/* Tablets and Small Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .services-preview-section,
  .projects-preview-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-title {
    font-size: 38px;
  }

  .service-preview-card {
    padding: 35px 25px;
  }

  .service-preview-icon {
    width: 70px;
    height: 70px;
  }

  .service-preview-icon i {
    font-size: 32px;
  }

  .service-preview-title {
    font-size: 20px;
  }

  .project-preview-row {
    padding: 35px 30px;
    gap: 40px;
  }

  .project-preview-image {
    flex: 0 0 350px;
    height: 280px;
  }

  .project-preview-heading {
    font-size: 28px;
  }

  .project-preview-description {
    font-size: 15px;
  }
}

/* Tablets Portrait (768px - 991px) */
@media (max-width: 991px) {
  .revealX {
    transform: translateY(60px) translateX(0);
  }

  .revealX1 {
    transform: translateY(60px) translateX(0);
  }

  .revealX.active,
  .revealX1.active {
    transform: translateY(0) translateX(0);
  }

  .services-preview-section,
  .projects-preview-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .service-preview-card {
    padding: 35px 25px;
  }

  .project-preview-row {
    flex-direction: column !important;
    gap: 30px;
    padding: 30px;
    margin-bottom: 40px;
  }

  .project-preview-image {
    flex: 0 0 auto;
    width: 100%;
    height: 250px;
  }

  .project-icon-overlay {
    width: 65px;
    height: 65px;
  }

  .project-icon-overlay i {
    font-size: 30px;
  }

  .project-preview-heading {
    font-size: 26px;
  }

  .project-preview-description {
    font-size: 15px;
  }
}

/* Mobile Landscape & Large Phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .services-preview-section,
  .projects-preview-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-title {
    font-size: 32px;
  }

  .service-preview-icon {
    width: 70px;
    height: 70px;
  }

  .service-preview-icon i {
    font-size: 32px;
  }

  .project-preview-row {
    padding: 25px;
    margin-bottom: 35px;
  }

  .project-preview-image {
    height: 220px;
  }

  .project-icon-overlay {
    width: 60px;
    height: 60px;
  }

  .project-icon-overlay i {
    font-size: 28px;
  }

  .project-preview-heading {
    font-size: 24px;
  }

  .project-preview-description {
    font-size: 14px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .services-preview-section,
  .projects-preview-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .service-preview-card {
    padding: 30px 20px;
  }

  .service-preview-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
  }

  .service-preview-icon i {
    font-size: 30px;
  }

  .service-preview-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .service-preview-text {
    font-size: 14px;
  }

  .btn-view-all {
    padding: 12px 35px;
    font-size: 15px;
  }

  .project-preview-row {
    flex-direction: column !important;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    gap: 20px;
  }

  .project-preview-image {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .project-icon-overlay {
    width: 60px;
    height: 60px;
    top: 15px;
    left: 15px;
  }

  .project-icon-overlay i {
    font-size: 26px;
  }

  .project-featured-label {
    font-size: 11px;
    padding: 6px 15px;
    top: 15px;
    right: 15px;
  }

  .project-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .project-preview-heading {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .project-category-text {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .project-preview-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .project-tech-stack {
    margin-bottom: 15px;
    padding-top: 12px;
  }

  .tech-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .project-view-link {
    font-size: 14px;
  }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
  .section-title {
    font-size: 26px;
  }

  .service-preview-card {
    padding: 25px 18px;
  }

  .service-preview-icon {
    width: 60px;
    height: 60px;
  }

  .service-preview-icon i {
    font-size: 28px;
  }

  .service-preview-title {
    font-size: 18px;
  }

  .project-preview-row {
    padding: 18px 15px;
  }

  .project-preview-image {
    height: 180px;
  }

  .project-icon-overlay {
    width: 55px;
    height: 55px;
  }

  .project-icon-overlay i {
    font-size: 24px;
  }

  .project-preview-heading {
    font-size: 20px;
  }

  .project-preview-description {
    font-size: 13px;
  }

  .project-view-link {
    font-size: 13px;
  }
}

/* Very Small Devices (up to 320px) */
@media (max-width: 320px) {
  .section-title {
    font-size: 24px;
  }

  .service-preview-icon {
    width: 55px;
    height: 55px;
  }

  .service-preview-icon i {
    font-size: 26px;
  }

  .project-preview-image {
    height: 160px;
  }

  .project-icon-overlay {
    width: 50px;
    height: 50px;
  }

  .project-icon-overlay i {
    font-size: 22px;
  }

  .project-preview-heading {
    font-size: 18px;
  }
}

/* Landscape Orientation (Mobile) */
@media (max-height: 500px) and (orientation: landscape) {
  .services-preview-section,
  .projects-preview-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .services-preview-section,
  .projects-preview-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}
