/* =====================================
   OUR WORK SECTION
===================================== */

.our-work-section {
    padding: 100px 60px 120px;
    background: white;
    position: relative;
}

/* Header */
.our-work-header {
    text-align: center;
    margin-bottom: 60px;
}

.our-work-header span {
    font-size: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0E78BE;
    font-weight: 700;
}

.our-work-header h2 {
    font-size: 42px;   /* increased */
    line-height: 1.1;
    font-weight: 800;
    max-width: 1100px;
    margin: 20px auto 0;
}

/* Subheader smaller */
.our-work-header p {
    font-size: 17px;   /* slightly reduced */
    color: #6b7280;
}

/* Cards Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.work-card {
    position: relative;
    background: #ffffff;
    padding: 36px 36px;
    border-radius: 28px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1),
                box-shadow 0.35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    will-change: transform;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* Icon Container */
/* ==============================
   ICON CENTERING (CORRECTED)
================================= */

.work-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.work-icon img {
    width: 110px;
    height: auto;
}

.work-card:hover .card-icon img {
    transform: scale(1.08);
}

/* Title */
.work-card h3 {
    font-size: 28px;
    margin-bottom: 14px;
    font-weight: 700;
}

/* Description */
.work-card p {
    font-size: 17px;
    color: #6b7280;
    line-height: 1.6;
}


/* Container */

.our-work-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
    padding-top:30px;
}

/* Header */

.our-work-header {
    text-align: center;
    margin-bottom: 80px;
}

.our-work-eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0E78BE;
    margin-bottom: 20px;
    display: block;
}

/* Subheader Brush Background */

.our-work-title {
    font-size: 48px; /* slightly larger */
    font-weight: 800;
    line-height: 1.15;
    max-width: 1000px;
    margin: 30px auto 0;
    position: relative;
    display: inline-block;
    padding: 0 10px;
    text-align: center;
}

.our-work-title::before {
    content: "";
    position: absolute;
    left: -10px;
    bottom: 8px;
    width: 105%;
    height: 55%;
    background: #fde8ee; /* soft pink */
    border-radius: 40px;
    z-index: -1;
    transform: rotate(-1.2deg);
}


/* Grid */

.our-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Cards */

.work-card {
    position: relative;
    background: #ffffff;
    padding: 38px 34px;
    border-radius: 28px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    overflow: hidden;
    cursor: pointer;
}

/* Floating depth animation */
.work-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* Accent line on hover */

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    transition: width 0.4s ease;
}

.work-card:hover .card-accent {
    width: 100%;
}

/* Card Colors */

.work-card.blue .card-accent {
    background: #0E78BE;
}

.work-card.yellow .card-accent {
    background: #F2D377;
}

.work-card.pink .card-accent {
    background: #DA6586;
}

/* Headings */

.work-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
    text-align: center;
}

.work-card p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center;
}

/* ==============================
   CUSTOM ICONS (CLASSY VERSION)
================================= */

/* ==============================
   ICON SIZE + CENTERING FIX
================================= */

/* ==============================
   ICON CENTERING FIX
================================= */

.card-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 110px;
    height: auto;
    display: block;
    margin: auto;
}


/* INFRASTRUCTURE ICON */
.infrastructure-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #0E78BE;
    border-radius: 50%;
}

.infrastructure-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    border: 3px solid #0E78BE;
    border-radius: 6px;
    transform: translate(-50%, -50%);
}

/* ORGANISING ICON */
.organising-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px dashed #F2D377;
}

.organising-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #F2D377;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* LEARNING ICON */
.learning-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #DA6586;
}

.learning-icon::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    width: 6px;
    height: 22px;
    background: #DA6586;
    transform: translateX(-50%);
}
/* =====================================
   PREMIUM FLOAT ANIMATION
===================================== */

/* =====================================
   SUBTLE Z-DEPTH FLOAT
===================================== */

.work-card {
    position: relative;
    transform: translateZ(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

/* Ambient depth shadow */

.work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: radial-gradient(
        circle at 50% 120%,
        rgba(0,0,0,0.06),
        transparent 70%
    );
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Slow float */

.work-card:nth-child(1) {
    animation: depthFloat 5s ease-in-out infinite;
}

.work-card:nth-child(2) {
    animation: depthFloat 5s ease-in-out infinite;
    animation-delay: 1.8s;
}

.work-card:nth-child(3) {
    animation: depthFloat 5s ease-in-out infinite;
    animation-delay: 3.5s;
}

@keyframes depthFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* Hover interaction */

.work-card:hover {
    transform: translateY(-14px) scale(1.01);
    box-shadow: 0 35px 70px rgba(0,0,0,0.08);
}




/* Responsive */

@media (max-width: 1000px) {
    .our-work-grid {
        grid-template-columns: 1fr;
    }

    .our-work-title {
        font-size: 36px;
    }
}
