﻿/* Custom Font Declaration */
@font-face {
    font-family: 'Gismonda';
    src: url('../fonts/gismonda-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-blue: #003087; /* Rich blue for professionalism */
    --secondary-blue: #00a8e8; /* Vibrant accent blue */
    --blue-accent: #007bff; /* Bootstrap blue for buttons */
    --primary-dark: #1a2a44; /* Deep navy for text */
    --secondary-dark: #5c6b80; /* Softer gray for secondary text */
    --background-white: #ffffff;
    --background-light: #f5f7fa;
    --gradient-blue: linear-gradient(135deg, #003087 0%, #00a8e8 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--background-white);
    color: var(--primary-dark);
    font-family: 'Arial', sans-serif;
}

/* Base Styles */
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--blue-accent);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

    .section-label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1.5rem;
        height: 3px;
        background: var(--blue-accent);
        transition: width 0.3s ease;
    }

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.white-text {
    color: var(--background-white) !important;
}

.white-text-opacity {
    color: rgba(255, 255, 255, 0.85) !important;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.text-secondary-dark {
    color: var(--secondary-dark) !important;
}

.info-button {
    background: var(--blue-accent);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .info-button:hover {
        background: var(--primary-blue);
        transform: translateY(-3px);
        box-shadow: var(--card-shadow);
        color: white;
    }

.btn-outline-secondary-blue {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .btn-outline-secondary-blue:hover {
        background: var(--primary-blue);
        color: white;
        transform: translateY(-3px);
    }

/* Hero Section */
.about-hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: var(--background-white);
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0.1;
    animation: gradientPulse 15s ease-in-out infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

    .hero-title[data-animation="text-reveal"] {
        opacity: 0;
        transform: translateY(20px);
    }

    .hero-title.is-visible {
        animation: textReveal 1.5s ease forwards;
    }

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-dark);
    margin-bottom: 2.5rem;
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: var(--blue-accent);
    margin: 1.5rem auto 2.5rem;
    border-radius: 5px;
}

    .hero-divider[data-animation="expand"] {
        width: 0;
    }

    .hero-divider.is-visible {
        animation: expand 1s ease-out 0.5s forwards;
    }

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expand {
    0% {
        width: 0;
    }

    100% {
        width: 100px;
    }
}

/* Our Story Section */
.our-story-section {
    background: var(--background-light);
    padding: 6rem 0;
}

.story-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--blue-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .story-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--card-shadow);
    }

.story-effect-box {
    height: 300px;
    border-radius: 15px;
    background: var(--gradient-blue);
    position: relative;
    overflow: hidden;
}

.gradient-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 40%);
    animation: rotateGradient 10s linear infinite;
}

.story-effect-box[data-animation="pulse"] {
    opacity: 0;
}

.story-effect-box.is-visible {
    animation: pulse 2s ease forwards;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.story-item[data-animation="slide-right"] {
    transform: translateX(-100px);
    opacity: 0;
}

.story-item[data-animation="slide-left"] {
    transform: translateX(100px);
    opacity: 0;
}

.story-item.is-visible {
    transform: translateX(0);
    opacity: 1;
    transition: transform 1s ease, opacity 1s ease;
}

.story-separator {
    text-align: center;
    margin: 4rem 0;
}

/* Mission & Values Section */
.mission-values-section {
    background: var(--gradient-blue);
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-card {
    perspective: 1000px;
    position: relative;
    height: 200px;
    cursor: pointer;
}

.value-front, .value-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    background: var(--background-white);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.value-front {
    color: var(--primary-dark);
}

.value-back {
    transform: rotateY(180deg);
    background: var(--background-light);
    color: var(--secondary-dark);
}

.value-card.active .value-front {
    transform: rotateY(-180deg);
}

.value-card.active .value-back {
    transform: rotateY(0);
}

.value-icon {
    font-size: 2rem;
    color: var(--blue-accent);
    margin-bottom: 1rem;
}

.value-card[data-animation="flip-in"] {
    opacity: 0;
    transform: translateY(50px);
}

.value-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Why Choose Section */
.why-choose-section {
    padding: 6rem 0;
}

.stat-box {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--background-light);
    transition: all 0.3s ease;
}

    .stat-box:hover {
        transform: translateY(-5px);
        border-color: var(--secondary-blue);
        box-shadow: var(--card-shadow);
    }

.stat-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon {
    font-size: 1.75rem;
    color: white;
}

.stat-number, .stat-number-text {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-box[data-animation="fade-in-up"] {
    opacity: 0;
    transform: translateY(30px);
}

.stat-box.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Call to Action Section */
.cta-section {
    background: var(--background-light);
    padding: 6rem 0;
}

.cta-card {
    background: var(--background-white);
    padding: 3.5rem;
    border-radius: 15px;
    border-top: 6px solid var(--blue-accent);
}

    .cta-card[data-animation="scale-up"] {
        opacity: 0;
        transform: scale(0.9);
    }

    .cta-card.is-visible {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .story-item.reverse {
        flex-direction: column-reverse;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cta-card {
        padding: 2rem;
    }

        .cta-card h2 {
            font-size: 1.75rem;
        }
}


/* About Page Image Styles */
.about-content-section {
    background-color: var(--background-white);
}

.about-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    aspect-ratio: 3/4;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 48, 135, 0.8) 0%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.about-overlay-text {
    font-family: 'Gismonda', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Remove old styles if they exist */
.about-image-bg {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .about-overlay-text {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .about-image-container {
        aspect-ratio: 16/9;
    }

    .about-overlay-text {
        font-size: 1.75rem;
        padding: 1rem;
    }
}