/* ========== SKEWED PAGES STYLES ========== */
:root {
    --animation-timing: cubic-bezier(0.65, 0, 0.35, 1); /* More natural swipe timing */
    --animation-duration: 1.4s; /* Slightly longer for smoother feel */
    --swipe-intensity: 35vh; /* Control swipe distance */
}



.skw-pages {
    overflow: hidden;
    position: relative;
    height: 100vh;
    width: 100%;
}

.skw-page {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s var(--animation-duration), opacity 0s var(--animation-duration);
    will-change: transform, opacity; /* Performance optimization */
}

.skw-page.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s 0s, opacity 0s 0s;
}

/* ========== FULL SCREEN BACKGROUND ========== */
.skw-page__full-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    transform: scale(1.05); /* Slight zoom for swipe effect */
    transition: opacity 1.4s var(--animation-timing), transform 1.4s var(--animation-timing);
    will-change: opacity, transform;
}

.skw-page.active .skw-page__full-bg {
    opacity: 1;
    transform: scale(1);
}

/* Page specific full backgrounds */
.skw-page-1 .skw-page__full-bg {
    background-image: url('../../../images/carousel2.jpg');
}

.skw-page-2 .skw-page__full-bg {
    background-image: url('../../../images/carousel4.jpg');
}

.skw-page-3 .skw-page__full-bg {
    background-image: url('../../../images/carousel1.jpg');
}

/* ========== SPLIT HALF STYLES (for overlay only) ========== */
.skw-page__half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    will-change: transform, opacity;
}

.skw-page__half--left {
    left: 0;
    transform: translate3d(calc(-1 * var(--swipe-intensity)), 100%, 0);
    transition: transform 1.4s var(--animation-timing), opacity 0.3s ease;
}

.skw-page__half--right {
    left: 50%;
    transform: translate3d(var(--swipe-intensity), -100%, 0);
    transition: transform 1.4s var(--animation-timing), opacity 0.3s ease;
}

.skw-page.active .skw-page__half {
    opacity: 1;
}

.skw-page.active .skw-page__half--left {
    transform: translate3d(0, 0, 0);
    transition-delay: 0.1s;
}

.skw-page.active .skw-page__half--right {
    transform: translate3d(0, 0, 0);
    transition-delay: 0.15s;
}

.skw-page__skewed {
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 135%;
    height: 100%;
    transform: skewX(-40deg);
    background: transparent;
    backface-visibility: hidden; /* Prevent flickering */
}

.skw-page__half--left .skw-page__skewed {
    left: -50%;
}

.skw-page__half--right .skw-page__skewed {
    right: -50%;
}

/* ========== OVERLAY CONTENT STYLES ========== */
.skw-page__content--overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    transform: skewX(40deg);
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s var(--animation-timing);
    will-change: opacity;
    backdrop-filter: blur(0px); /* For smoothness */
}

.skw-page.active .skw-page__content--overlay {
    opacity: 1;
    transition-delay: 0.3s;
}

/* PAGE 1 - Brown overlay */
.skw-page-1-overlay {
    background: rgba(95, 76, 66, 0.85) !important;
}

/* PAGE 2 - Beige overlay */
.skw-page-2-overlay {
    background: rgba(146, 144, 141, 0.85) !important;
}

/* PAGE 3 - Gray overlay */
.skw-page-3-overlay {
    background: rgba(109, 107, 106, 0.85) !important;
}

.skw-page__half--left .skw-page__content--overlay {
    padding-left: 10%;
    padding-right: 30%;
    transform-origin: 100% 0;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20vh;
}

.skw-page__half--right .skw-page__content--overlay {
    padding-left: 30%;
    padding-right: 10%;
    transform-origin: 0 100%;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10vh;
}

/* ========== TEXT STYLES WITH SMOOTH ANIMATIONS ========== */
.skw-page__heading {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 106, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--animation-timing), transform 0.6s var(--animation-timing);
    will-change: opacity, transform;
}

.skw-page.active .skw-page__heading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.skw-page__description {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(20px, 5vh, 40px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: min(700px, 90%);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--animation-timing), transform 0.6s var(--animation-timing);
    will-change: opacity, transform;
}

.skw-page.active .skw-page__description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.skw-page__buttons {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--animation-timing), transform 0.6s var(--animation-timing);
    will-change: opacity, transform;
}

.skw-page.active .skw-page__buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.skw-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ff6a00;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    padding: clamp(12px, 2vh, 16px) clamp(24px, 4vw, 40px);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s var(--animation-timing);
    border: 2px solid #ff6a00;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.4);
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.skw-page__btn:hover {
    background-color: transparent;
    color: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.5);
}

.skw-page__btn:active {
    transform: translateY(0); /* Remove hover effect on tap */
}

.skw-page__btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    padding: clamp(12px, 2vh, 16px) clamp(24px, 4vw, 40px);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s var(--animation-timing);
    border: 2px solid rgba(255, 255, 255, 0.8);
    -webkit-tap-highlight-color: transparent;
}

.skw-page__btn-outline:hover {
    background-color: white;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.skw-page__btn-outline:active {
    transform: translateY(0);
}

/* ========== NAVIGATION ========== */
.skw-page__nav {
    position: absolute;
    right: max(15px, 2vw);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 15px);
}

.skw-page__nav-dot {
    width: clamp(10px, 1.5vw, 12px);
    height: clamp(10px, 1.5vw, 12px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s var(--animation-timing);
    -webkit-tap-highlight-color: transparent;
}

.skw-page__nav-dot.active {
    background: #ff6a00;
    border-color: #ff6a00;
    transform: scale(1.3);
}

.skw-page__nav-dot:hover {
    background: rgba(255, 106, 0, 0.7);
    transform: scale(1.2);
}

.skw-page__nav-dot:active {
    transform: scale(1.1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: clamp(15px, 3vh, 30px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    animation: smoothBounce 2.2s infinite var(--animation-timing);
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1.5rem, 3vw, 2rem);
    pointer-events: none; /* Don't block clicks */
}

@keyframes smoothBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== MOBILE PANEL (hidden on desktop) ========== */
/* This is a new element needed in HTML for the text panel below the image */
.skw-page__mobile-panel {
    display: none;
}

/* ========== RESPONSIVE DESIGN - MOBILE FIRST ========== */

/* Large Tablets and Small Laptops (992px and below) */
@media (max-width: 992px) {
    :root {
        --swipe-intensity: 25vh;
    }

    /* FIX: At ~1024px the skew angle eats into the content area.
       Reduce padding-right/left so text has room, and center
       vertically so it doesn't get clipped at top or bottom */
    .skw-page__half--left .skw-page__content--overlay {
        padding-left: 6%;
        padding-right: 38%;   /* pulled in from skew edge */
        padding-top: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .skw-page__half--right .skw-page__content--overlay {
        padding-left: 38%;    /* pulled in from skew edge */
        padding-right: 6%;
        padding-bottom: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* =====================================================
   MOBILE (768px and below)
   TOP: image carousel  |  BOTTOM: white text panel
   Same pattern as Barangay Dolores mobile layout
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --swipe-intensity: 20vh;
        --animation-duration: 1.2s;
    }

    /* Container becomes scrollable column */
    .landing-page-bg {
        height: auto;
        overflow: visible;
    }

    .skw-pages {
        height: auto;
        overflow: visible;
    }

    /* Pages stack in normal flow */
    .skw-page {
        position: relative;
        height: auto;
        display: none;
        visibility: visible;
        opacity: 1;
        transition: none;
        flex-direction: column;
    }

    .skw-page.active {
        display: flex;
    }

    /* ── TOP: image block ── */
    .skw-page__full-bg {
        position: relative;
        width: 100%;
        height: 56vw;      /* aspect-ratio-ish, same feel as Barangay Dolores */
        min-height: 220px;
        max-height: 340px;
        opacity: 1;
        transform: none;
        transition: none;
        flex-shrink: 0;
        z-index: 0;
    }

    /* Hide skewed overlay halves — content moves to panel below */
    .skw-page__half {
        display: none;
    }

    /* ── BOTTOM: white text panel ── */
    .skw-page__mobile-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #ffffff;
        padding: 28px 24px 36px;
        width: 100%;
    }

    .skw-page__mobile-panel .skw-page__heading {
        /* White bg — switch from gradient to solid dark text */
        background: none;
        -webkit-text-fill-color: unset;
        color: #1a1a2e;
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        margin-bottom: 12px;
        opacity: 1;
        transform: none;
        transition: none;
        text-shadow: none;
    }

    .skw-page__mobile-panel .skw-page__description {
        color: #555555;
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin-bottom: 22px;
        text-shadow: none;
        max-width: 100%;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .skw-page__mobile-panel .skw-page__buttons {
        opacity: 1;
        transform: none;
        transition: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .skw-page__mobile-panel .skw-page__btn,
    .skw-page__mobile-panel .skw-page__btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Outline btn: orange on white bg */
    .skw-page__mobile-panel .skw-page__btn-outline {
        border-color: #ff6a00;
        color: #ff6a00;
    }

    .skw-page__mobile-panel .skw-page__btn-outline:hover {
        background: #ff6a00;
        color: #fff;
    }

    /* ── Nav dots: horizontal row between image and panel ── */
    .skw-page__nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 14px 0;
        background: #ffffff;
        width: 100%;
        z-index: 10;
    }

    .skw-page__nav-dot {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(0, 0, 0, 0.15);
    }

    .skw-page__nav-dot.active {
        background: #ff6a00;
        border-color: #ff6a00;
        transform: scale(1.2);
    }

    /* Hide scroll indicator — not needed with stacked layout */
    .scroll-indicator {
        display: none;
    }
}

/* Small phones (576px and below) */
@media (max-width: 576px) {
    :root {
        --swipe-intensity: 15vh;
        --animation-duration: 1s;
    }

    .skw-page__full-bg {
        height: 58vw;
        min-height: 200px;
    }

    .skw-page__mobile-panel {
        padding: 22px 18px 30px;
    }
}

/* Small Mobile (375px and below) */
@media (max-width: 375px) {
    .skw-page__full-bg {
        height: 60vw;
        min-height: 180px;
    }

    .skw-page__nav-dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
}

/* Landscape Orientation — revert to desktop-like side-by-side */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-page-bg {
        height: 100vh;
        overflow: hidden;
    }

    .skw-pages {
        height: 100vh;
        overflow: hidden;
    }

    .skw-page {
        position: absolute;
        height: 100vh;
        display: block;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s var(--animation-duration), opacity 0s var(--animation-duration);
    }

    .skw-page.active {
        visibility: visible;
        opacity: 1;
        transition: visibility 0s 0s, opacity 0s 0s;
    }

    .skw-page__full-bg {
        position: absolute;
        height: 100vh;
        max-height: unset;
        opacity: 0;
        transform: scale(1.05);
        transition: opacity 1.4s var(--animation-timing), transform 1.4s var(--animation-timing);
    }

    .skw-page.active .skw-page__full-bg {
        opacity: 1;
        transform: scale(1);
    }

    .skw-page__half {
        display: block;
        height: 100vh;
        width: 50%;
    }

    .skw-page__half--left {
        top: 0;
        left: 0;
        transform: translate3d(-100%, 0, 0);
    }

    .skw-page__half--right {
        top: 0;
        left: 50%;
        transform: translate3d(100%, 0, 0);
    }

    .skw-page.active .skw-page__half--left,
    .skw-page.active .skw-page__half--right {
        transform: translate3d(0, 0, 0);
    }

    .skw-page__skewed {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        transform: skewX(0deg);
    }

    .skw-page__content--overlay {
        transform: skewX(0deg);
    }

    .skw-page__half--left .skw-page__content--overlay,
    .skw-page__half--right .skw-page__content--overlay {
        padding: 0 24px;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Hide mobile panel in landscape */
    .skw-page__mobile-panel {
        display: none !important;
    }

    /* Restore vertical nav dots */
    .skw-page__nav {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        background: transparent;
        padding: 0;
        width: auto;
        gap: 12px;
    }

    .skw-page__nav-dot {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .scroll-indicator {
        display: block;
    }

    .skw-page__heading {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .skw-page__description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .skw-page__btn,
    .skw-page__btn-outline {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* High Refresh Rate Devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .skw-page__btn:hover,
    .skw-page__btn-outline:hover,
    .skw-page__nav-dot:hover {
        transform: none;
    }
    
    .skw-page__btn:active,
    .skw-page__btn-outline:active {
        transform: scale(0.98);
    }
}

/* ========== EXISTING STYLES FOR SECTIONS BELOW (unchanged) ========== */
.revealY {
    position: relative;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.8s var(--animation-timing);
}

.revealY.active {
    transform: translateY(0);
    opacity: 1;
}

.revealX {
    position: relative;
    transform: translateX(-120px);
    opacity: 0;
    transition: all 0.8s var(--animation-timing);
}

.revealX.active {
    transform: translateX(0);
    opacity: 1;
}

.revealX1 {
    position: relative;
    transform: translateX(120px);
    opacity: 0;
    transition: all 0.8s var(--animation-timing);
}

.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;
  }
}
