/* Modern Styles for About Us Page - Enhanced */

:root {
    --primary-color: #00bcd4;
    --secondary-color: #0097a7;
    --accent-color: #ff4081;
    --dark-bg: #1a202c;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-color: #333333;
    --text-light: #f8f9fa;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-neon: 0 0 15px rgba(0, 188, 212, 0.5);
}

body {
    background-color: #f4f6f8;
    overflow-x: hidden;
    /* Prevent scrollbar from animations */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.wrapper {
    background-color: rgb(3, 120, 124);
    min-height: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Hero Section - Standardized */
.heroBox {
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out forwards;
}

.heroBox .text-decoration-none {
    position: relative;
    display: inline-block;
}

.heroBox .text-decoration-none img {
    max-width: 100%;
    height: auto;
    object-fit: scale-down;
    filter: brightness(0.8);
    transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.1, .2, 0, 1);
    will-change: transform;
}

.heroBox .text-decoration-none .heroContent {
    position: absolute;
    bottom: 25px;
    /* Standard anchored position */
    left: 40px;
    /* Standard anchored position */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    text-decoration: none;
    transform: none !important;
    pointer-events: none;
    background: transparent;
    /* Remove old carousel gradient */
    padding: 0;
    backdrop-filter: none;
}

.heroContent1 {
    font-size: 1.6rem;
    text-align: left;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    margin: 0;
}

/* Content Sections */
.bgCustom {
    background: linear-gradient(-45deg, #0097a7, #00bcd4, #26c6da, #006064) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite;
    color: white;
    padding: 4rem 0;
    margin-top: 2rem;
    position: relative;
}

.bgWhiteContent .afterHeroContentText {
    color: black !important;
    font-weight: bold !important;
}

.afterHeroContentText {
    font-size: 1.4rem;
    line-height: 1.7;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    /* Delay start */
}

.afterHeroContentText a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.afterHeroContentText a:hover {
    transform: rotate(15deg) scale(1.2);
    color: var(--accent-color);
}

/* Contact Cards Section */
.afteraboutUsSectionBoxes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation delays for cards */
.card:nth-child(1) {
    animation-delay: 0.5s;
}

.card:nth-child(2) {
    animation-delay: 0.7s;
}

.card:nth-child(3) {
    animation-delay: 0.9s;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.1);
}

.card-header {
    background: transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 0.5rem 0;
}

.card-text {
    font-size: 1.15rem;
    color: var(--text-light);
    margin: 0.4rem 0;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .heroContent1 {
        font-size: 1.3rem;
    }

    .afterHeroContentText {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .card {
        width: 100%;
        max-width: 350px;
        margin-bottom: 1rem;
    }
}