/* ================================
   ABOUT PAGE STYLES
================================ */

/* ====== HERO SECTION ====== */
.about-hero {
    background: transparent;
    overflow: visible;
    position: relative;
}

/* Force grid layout to show both columns on about page */
.about-hero.page-hero {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: center;
}

/* Canvas should be behind floating cards */
#heroCanvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Fine-tune hero spacing on larger screens so content and buttons sit higher
   than the generic inner-page hero (less vertical height for about page) */
@media (min-width: 992px) {
    .about-hero.page-hero {
        margin: 16px auto 32px;
        padding-top: 48px;
        padding-bottom: 40px;
        min-height: auto;
        max-height: none;
    }
}

.about-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 136, 206, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.about-hero-content {
    z-index: 2;
    animation: slideInLeft 1s ease-out;
    position: relative;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-hero-content h1 {
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(90deg, #0088CE, #44BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #4E4E4E;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: left;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    color: #0088CE;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 16px;
    color: #4E4E4E;
    font-weight: 500;
}

/* Hero Visual with Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
    z-index: 100 !important;
    animation: slideInRight 1s ease-out;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.about-hero .hero-visual.page-hero-media {
    position: relative;
    z-index: 100 !important;
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Ensure floating cards are visible even before animation */
.about-hero .hero-visual .floating-card,
.about-hero .hero-visual.animate-on-scroll .floating-card,
.about-hero .hero-visual.slide-up .floating-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card {
    position: absolute !important;
    /* Removed blue gradient background */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 136, 206, 0.3);
    transition: transform 0.3s ease;
    z-index: 200 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.floating-card img {
    width: 120px;
    height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Removed filter that was making images invisible */
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 15%;
    right: 15%;
    animation: float 7s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation: float 8s ease-in-out infinite 2s;
}

.card-4 {
    bottom: 15%;
    right: 10%;
    animation: float 6.5s ease-in-out infinite 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ====== VISION & MISSION SECTION ====== */
.vision-mission-section {
    padding: 80px 5vw;
    background: #FFFFFF;
}

.vm-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.vm-card {
    background: linear-gradient(135deg, #F2FAFF 0%, #FFFFFF 100%);
    border: 2px solid #E6F4FF;
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.vm-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 136, 206, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.vm-card:hover::before {
    transform: scale(1.5);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 136, 206, 0.2);
    border-color: #0088CE;
}

.vm-icon {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.vm-card h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1A1B1F;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.vm-card>p {
    font-size: 18px;
    color: #4E4E4E;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.mission-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.mission-point {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.point-icon {
    font-size: 24px;
    color: #0088CE;
    font-weight: 700;
    flex-shrink: 0;
}

.mission-point h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1B1F;
    margin-bottom: 8px;
}

.mission-point p {
    font-size: 15px;
    color: #4E4E4E;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== WHAT WE STAND FOR SECTION ====== */
.stand-for-section {
    padding: 80px 5vw;
    background: linear-gradient(180deg, #FFFFFF 0%, #E6F4FF 100%);
    text-align: center;
}

.stand-for-section h2 {
    font-size: 56px;
    font-weight: 700;
    color: #1A1B1F;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #4E4E4E;
    margin-bottom: 60px;
}

.stand-for-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stand-card {
    background: #FFFFFF;
    border: 2px solid #E6F4FF;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.stand-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 136, 206, 0.05) 100%);
    transition: height 0.4s ease;
}

.stand-card:hover::before {
    height: 100%;
}

.stand-card:hover {
    transform: translateY(-10px);
    border-color: #0088CE;
    box-shadow: 0 20px 50px rgba(0, 136, 206, 0.2);
}

.stand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F2FAFF;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.stand-card:hover .stand-icon {
    background: linear-gradient(135deg, #0088CE, #44BFFF);
    transform: scale(1.1) rotate(5deg);
}

.stand-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: filter 0.4s ease;
}

.stand-card:hover .stand-icon img {
    filter: brightness(0) invert(1);
}

.stand-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1A1B1F;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.stand-card p {
    font-size: 15px;
    color: #4E4E4E;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ====== OUR APPROACH SECTION ====== */
.approach-section {
    padding: 80px 5vw;
    background: #FFFFFF;
}

.approach-container {
    max-width: 1200px;
    margin: 0 auto;
}

.approach-header {
    text-align: center;
    margin-bottom: 70px;
}

.approach-header h2 {
    font-size: 56px;
    font-weight: 700;
    color: #1A1B1F;
    margin-bottom: 20px;
}

.approach-header p {
    font-size: 18px;
    color: #4E4E4E;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.approach-timeline {
    position: relative;
    padding-left: 100px;
}

.approach-timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0088CE 0%, #44BFFF 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInTimeline 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(5) {
    animation-delay: 1s;
}

@keyframes fadeInTimeline {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-number {
    position: absolute;
    left: -50px;
    top: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0088CE, #44BFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 136, 206, 0.3);
    z-index: 2;
}

.timeline-content {
    background: linear-gradient(135deg, #F2FAFF 0%, #FFFFFF 100%);
    border: 2px solid #E6F4FF;
    border-radius: 20px;
    padding: 35px 40px;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: #0088CE;
    box-shadow: 0 15px 40px rgba(0, 136, 206, 0.15);
}

.timeline-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #1A1B1F;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 16px;
    color: #4E4E4E;
    line-height: 1.6;
    max-width: 500px;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.timeline-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ====== TRUSTED BRANDS SECTION ENHANCEMENTS ====== */
.trusted-customers {
    padding: 80px 5vw;
}

.brands-subtitle {
    font-size: 18px;
    color: #4E4E4E;
    margin-bottom: 50px;
    text-align: center;
}

/* ====== WHY CHOOSE SYNTHLAKE SECTION ====== */
.why-choose-about {
    padding: 80px 5vw;
    background: linear-gradient(135deg, #E6F4FF 0%, #F2FAFF 100%);
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.why-container h2 {
    font-size: 56px;
    font-weight: 700;
    color: #1A1B1F;
    margin-bottom: 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-item {
    background: #FFFFFF;
    border: 2px solid #E6F4FF;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.why-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, #0088CE, #44BFFF);
    transition: height 0.4s ease;
}

.why-item:hover::before {
    height: 100%;
}

.why-item:hover {
    transform: translateY(-8px);
    border-color: #0088CE;
    box-shadow: 0 20px 50px rgba(0, 136, 206, 0.2);
}

.why-number {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(90deg, #0088CE, #44BFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
}

.why-item h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1A1B1F;
    margin-bottom: 15px;
}

.why-item p {
    font-size: 16px;
    color: #4E4E4E;
    line-height: 1.7;
}

/* ====== CALL TO ACTION SECTION ====== */
.cta-about {
    padding: 100px 5vw;
    background: linear-gradient(135deg, #0088CE 0%, #44BFFF 100%);
    position: relative;
    overflow: hidden;
}

.cta-about::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 56px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.cta-content p {
    font-size: 18px;
    color: #E6F4FF;
    line-height: 1.8;
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn.primary {
    background: #FFFFFF;
    color: #0088CE;
    border: 2px solid #FFFFFF;
}

.cta-btn.primary:hover {
    background: transparent;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.cta-btn.secondary:hover {
    background: #FFFFFF;
    color: #0088CE;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cta-btn:hover span {
    transform: translateX(5px);
}

/* ====== ACTIVE NAV LINK ====== */
.site-navigation .nav-list a.active {
    color: #0088CE;
    font-weight: 600;
}

.site-navigation .nav-list a.active::after {
    width: 100%;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-stat-grid {
        justify-items: center;
    }

    .vm-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stand-for-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .approach-timeline {
        padding-left: 80px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .hero-stat-grid {
        /* Keep all three stats inline on mobile as well */
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    /* Make hero stats a bit lighter and more compact on small screens */
    .hero-stat {
        padding: 14px 10px;
        border-radius: 16px;
    }

    .hero-stat h3 {
        font-size: 1.4rem;
    }

    .hero-stat p {
        font-size: 0.8rem;
    }

    .vision-mission-section,
    .stand-for-section,
    .approach-section,
    .why-choose-about,
    .cta-about {
        padding: 50px 20px;
    }

    .vm-card {
        padding: 35px 25px;
    }

    .vm-card h2 {
        font-size: 32px;
    }

    .stand-for-section h2,
    .approach-header h2,
    .why-container h2,
    .cta-content h2 {
        font-size: 38px;
    }

    .stand-for-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .approach-timeline {
        padding-left: 0;
        padding-top: 20px;
    }

    /* Remove the vertical line on mobile for cleaner look */
    .approach-timeline::before {
        display: none;
    }

    .timeline-number {
        position: static;
        width: 60px;
        height: 60px;
        font-size: 18px;
        margin: 0 auto 20px;
    }

    .timeline-content {
        flex-direction: column;
        padding: 25px 20px;
        margin-left: 0;
        text-align: center;
    }

    .timeline-content h3 {
        font-size: 22px;
    }

    .timeline-content p {
        font-size: 15px;
    }

    .timeline-icon {
        margin: 20px auto 0;
    }

    .cta-content h2 {
        font-size: 36px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .about-hero-content h1 {
        font-size: 32px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .vm-card h2 {
        font-size: 28px;
    }

    .stand-for-section h2,
    .approach-header h2,
    .why-container h2 {
        font-size: 32px;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .cta-content h2 {
        font-size: 28px;
    }
}

/* Hide Three.js canvas on very small screens if performance is still an issue */
@media (max-width: 480px) and (max-height: 600px) {
    #heroCanvas {
        display: none !important;
    }

    /* Add a fallback background when canvas is hidden */
    .about-hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 136, 206, 0.05) 0%, transparent 100%);
        z-index: 1;
    }
}

/* Optimize floating cards for mobile */
@media (max-width: 768px) {
    .floating-card {
        transform: scale(0.8);
    }

    .floating-card:hover {
        transform: scale(0.85) translateY(-5px);
    }

    .card-1,
    .card-2,
    .card-3,
    .card-4 {
        animation-duration: 8s;
        /* Slower animation on mobile */
    }
}

@media (max-width: 480px) {
    .floating-card {
        transform: scale(0.6);
        padding: 10px;
    }

    .floating-card img {
        width: 80px;
    }
}

/* ====== CRITICAL FIX: OVERRIDE MAIN STYLE.CSS ====== */
/* The main style.css hides .page-hero-media on screens < 600px */
/* We need to override this for the about page to show floating cards */

/* Override grid collapse on mobile */
@media (max-width: 992px) {
    .about-hero.page-hero {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .about-hero .hero-visual.page-hero-media,
    .about-hero .page-hero-media {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2;
    }
}

@media (max-width: 768px) {
    .about-hero.page-hero {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {

    .about-hero .hero-visual.page-hero-media,
    .about-hero .page-hero-media {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 300px;
        margin-top: 40px;
    }
}

/* Ensure floating cards are visible on ALL screens - MOST IMPORTANT */
.about-hero .hero-visual,
.about-hero .page-hero-media,
.about-hero .hero-visual.page-hero-media {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* ====== FIX FOR LEFT GAP ON MOBILE ====== */
@media (max-width: 768px) {
    .about-hero.page-hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    /* Ensure the container inside doesn't overflow or cause issues */
    .about-hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}