html {
    scroll-behavior: smooth;
}

/* ===== Page Load Entrance Animations ===== */
@keyframes pageSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pageFadeScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main section entrance */
.page-enter {
    animation: pageSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Title entrance */
.page-enter-title {
    opacity: 0;
    animation: pageSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Staggered children - cards/items */
.page-enter-child {
    opacity: 0;
    animation: pageFadeScale 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger delay utilities */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.18s;
}

.stagger-3 {
    animation-delay: 0.26s;
}

.stagger-4 {
    animation-delay: 0.34s;
}

.stagger-5 {
    animation-delay: 0.42s;
}

.stagger-6 {
    animation-delay: 0.50s;
}

.stagger-7 {
    animation-delay: 0.58s;
}

.stagger-8 {
    animation-delay: 0.66s;
}

.stagger-9 {
    animation-delay: 0.74s;
}

.stagger-10 {
    animation-delay: 0.82s;
}

.stagger-11 {
    animation-delay: 0.90s;
}

.stagger-12 {
    animation-delay: 0.98s;
}

/* Scroll Reveal - Improved System */
.reveal-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--delay, 0ms);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal-blur {
    filter: blur(5px);
}

.reveal-on-scroll.show {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
    filter: blur(0) !important;
}

.scroll-section {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-section.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fade-in animation - for sub-page elements */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s cubic-bezier(.2, .65, .3, 1), transform 0.75s cubic-bezier(.2, .65, .3, 1);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.glass-effect {
    backdrop-filter: blur(10px);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
}

.dark-gradient-card {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
}

.backdrop-blur-sm {
    --tw-backdrop-blur: none !important;
    --tw-backdrop-brightness: none !important;
    --tw-backdrop-contrast: none !important;
    --tw-backdrop-grayscale: none !important;
    --tw-backdrop-hue-rotate: none !important;
    --tw-backdrop-invert: none !important;
    --tw-backdrop-opacity: none !important;
    --tw-backdrop-saturate: none !important;
    --tw-backdrop-sepia: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.bg-white\/10 {
    background-color: transparent !important;
}

.py-24 {
    padding-top: 3rem !important;
    padding-bottom: 4rem !important;
}

section {
    scroll-margin-top: 100px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Card Layout */
.card {
    display: block;
    position: relative;
    max-width: 350px;
    height: 160px;
    background: linear-gradient(to bottom, #ffffff, #ffffff);
    border-radius: 15px;
    padding: 10px 7px;
    margin: 12px;
    text-decoration: none;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-8px);
}

/* Expanding Background Circle */
.card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, #35458e 0%, #764ba2 100%);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.5s ease-out;
}

.card:hover::before {
    transform: scale(25);
}

/* Card Content */
.card-title {
    position: relative;
    z-index: 1;
    color: #262626;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.8em;
    transition: color 0.4s ease;
}

.small-desc {
    position: relative;
    z-index: 1;
    font-size: 0.95em;
    line-height: 1.6em;
    color: #452c2c;
    transition: color 0.4s ease;
}

/* Arrow Corner */
.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 2.2em;
    height: 2.2em;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #35458e 0%, #764ba2 100%);
    border-radius: 0 15px 0 40px;
    z-index: 2;
}

.go-arrow {
    color: white;
    font-family: Courier, monospace;
    font-size: 16px;
    margin-top: -2px;
    margin-right: -2px;
}

/* Hover Text Color Change */
.card:hover .small-desc {
    color: rgba(255, 255, 255, 0.85);
}

.card:hover .card-title {
    color: #ffffff;
}

/* GRID LAYOUT */
.platform-grid {
    display: grid;
    gap: 20px;
    /* spacing between cards */
    grid-template-columns: repeat(1, 1fr);
    /* mobile default: 1 column */
    justify-items: center;
    padding: 0 20px;
}

/* Tablet: 2 columns */
@media screen and (min-width: 768px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop/Desktop: 3 columns */
@media screen and (min-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Icon Styles */
.card-icon {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    color: #1c3297;
    margin: 0 auto 0.5em;
    display: block;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.4s ease;
}

.card-icon {
    font-size: 34px;
    /* change size here */
}

/* Hover effects for icons */
.card:hover .card-icon {
    color: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
    transform: scale(1.1);
}

/* Cloud Section styling */
.cloud-section {
    padding: 40px 20px;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
}

/* Grid layout (6x6) */
.cloud-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* grid-template-rows: repeat(6, 1fr); */
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    align-items: stretch;
}

/* Cloud boxes */
.cloud-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    border-radius: 16px;
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
    justify-content: space-between;
    /* 🔥 spreads content */
    height: 100%;
    /* 🔥 makes it fill grid cell */
}

.cloud-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

/* Gradient top border */
/* .cloud-box::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(135deg, #667eea, #764ba2);
        } */

/* Icon circle */
.cloud-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 28px;
}

/* Headings and text */
.cloud-box h2 {
    font-size: 26px;
    margin-bottom: 6px;
    font-weight: 700;
}

.cloud-box p {
    font-size: 15px;
    margin: 5px 0;
    color: #555;
}

.cloud-box p b {
    font-size: 16px;
    color: #222;
}

/* Assign grid placement like your 6x6 example */
@media (min-width: 901px) {
    .cloud-grid a:nth-child(1) {
        grid-column: 1 / span 3;
    }

    .cloud-grid a:nth-child(2) {
        grid-column: 4 / span 3;
    }

    .cloud-grid a:nth-child(3) {
        grid-column: 1 / span 3;
    }

    .cloud-grid a:nth-child(4) {
        grid-column: 4 / span 3;
    }

    .cloud-grid a:nth-child(5) {
        grid-column: 1 / span 3;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .cloud-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .cloud-grid a {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .cloud-grid {
        grid-template-columns: 1fr;
    }
}