/* About Page Specific Styles */
/* Author: Melitalia Academy Development Team */
/* Version: 1.0.0 */

/* ================================
   ABOUT HERO STYLES
   ================================ */

.about-hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.about-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="5" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="10" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="15" r="0.4" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="3" r="0.6" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="8" r="0.2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="12" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="18" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="6" r="0.4" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="14" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
}

/* ================================
   STORY SECTION STYLES
   ================================ */

.story-section {
    padding: 5rem 0;
    background: white;
}

.story-content .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
}

.story-content .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-green),
        var(--primary-red)
    );
    border-radius: 2px;
}

.founder-highlight {
    background: var(--bg-gradient);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 1px solid var(--primary-green);
}

.founder-highlight:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.story-image-placeholder .image-card {
    background-size: contain;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.story-image-placeholder .image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
    flex-wrap: wrap;
}

.story-image-placeholder img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
    position: relative;
}

@media (max-width: 767px) {
    .story-image-placeholder img {
        max-height: 250px;
        position: relative;
    }
}

.placeholder-content {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
}

.languages-badge .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ================================
   PHILOSOPHY SECTION STYLES
   ================================ */

.philosophy-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.philosophy-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.philosophy-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-green),
        var(--primary-red)
    );
    transform: scaleX(0);
    transition: var(--transition);
}

.philosophy-card:hover::before {
    transform: scaleX(1);
}

.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.philosophy-card .card-icon {
    opacity: 0.8;
    transition: var(--transition);
}

.philosophy-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1);
}

.philosophy-card h4 {
    color: var(--primary-green);
}

/* ================================
   TEAM SECTION STYLES
   ================================ */

.team-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.team-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    position: relative;
    border-radius: var(--border-radius);
    background: white;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.team-icon {
    transition: var(--transition);
}

.team-card:hover .team-icon {
    transform: scale(1.1) rotate(5deg);
}

.team-badges .badge {
    font-size: 0.8rem;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ================================
   CERTIFICATION SECTION STYLES
   ================================ */

.certification-section {
    padding: 5rem 0;
    background: white;
}

.certification-content .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.certification-content .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-green),
        var(--primary-red)
    );
    border-radius: 2px;
}

.feature-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: var(--transition);
    border-radius: 8px;
}

.feature-item:hover {
    background: rgba(46, 139, 87, 0.05);
    padding-left: 1rem;
}

.certificate-mockup .certificate-placeholder {
    background: white;
    border: 3px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    border-radius: var(--border-radius);
}

.certificate-mockup .certificate-placeholder:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.certificate-seal {
    position: relative;
    display: inline-block;
}

.certificate-seal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.2;
}

/*==============================
  FUTURE GOALS SECTION
================================*/

.future-goals-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.goal-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--primary-orange)
    );
    border-radius: 0 0 0 60px;
    opacity: 0;
    transition: var(--transition);
}

.goal-card:hover::before {
    opacity: 0.1;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.goal-icon {
    transition: var(--transition);
}

.goal-card:hover {
    transform: scale(1.02);
    color: var(--primary-green) !important;
}

/* ====================
   CTA SECTION STYLES
======================= */

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

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Medium-Large Screens (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .courses-hero-section {
        padding: 100px 0 60px;
    }
}

/* Medium Screens (768px to 991px) - Tablets */
@media (max-width: 991px) and (min-width: 768px) {
    .courses-hero-section {
        padding: 80px 0 50px;
    }

    .story-section,
    .philosophy-section,
    .team-section,
    .certification-section,
    .future-goals-section,
    .cta-section {
        padding: 3rem 0;
    }

    /* Card spacing adjustments */
    .philosophy-card,
    .team-card,
    .goal-card {
        margin-bottom: 1.5rem;
        padding: 1.75rem;
    }

    /* Story section adjustments */
    .story-content {
        margin-bottom: 2rem;
        text-align: center;
    }

    .story-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small-Medium Screens (576px to 767px) - Large Mobile */
@media (max-width: 767px) and (min-width: 576px) {
    .courses-hero-section {
        padding: 70px 0 40px;
    }

    /* Card improvements */
    .philosophy-card,
    .team-card,
    .goal-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }

    /* CTA section improvements */
    .cta-section {
        text-align: center;
    }

    .cta-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .stat-badge {
        margin-bottom: 0.5rem;
        display: inline-block;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Certificate section */
    .certificate-placeholder {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    /* Button improvements */
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        max-width: 280px;
    }
}

.story-section .founder-image-background {
    width: 90%;
    opacity: 0.8;
}

.future-goals-section .slide-in-up:first-child,
.philosophy-section .slide-in-up:first-child,
.team-section .slide-in-up:first-child {
    animation-delay: 0.1s;
}
.future-goals-section .slide-in-up:nth-child(2),
.philosophy-section .slide-in-up:nth-child(2),
.team-section .slide-in-up:nth-child(2) {
    animation-delay: 0.2s;
}
.future-goals-section .slide-in-up:nth-child(3),
.philosophy-section .slide-in-up:nth-child(3),
.team-section .slide-in-up:nth-child(3) {
    animation-delay: 0.3s;
}
.future-goals-section .slide-in-up:nth-child(4) {
    animation-delay: 0.4s;
}

/* Small Screens (400px to 575px) - Standard Mobile */
@media (max-width: 575px) and (min-width: 400px) {
    .courses-hero-section {
        padding: 60px 0 30px;
    }

    /* Container adjustments */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Card improvements */
    .philosophy-card,
    .team-card,
    .goal-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }

    /* Text improvements */
    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Certificate section */
    .certificate-placeholder {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Button improvements */
    .btn-lg {
        font-size: 0.85rem;
        padding: 0.7rem 1.25rem;
        width: 100%;
        max-width: 250px;
    }

    /* Badge improvements */
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        margin: 0.2rem;
    }
}

/* Extra Small Screens (up to 399px) - Small Mobile */
@media (max-width: 399px) {
    .courses-hero-section {
        padding: 50px 0 25px;
    }

    /* Container adjustments */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Card improvements */
    .philosophy-card,
    .team-card,
    .goal-card {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Text improvements */
    .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Certificate section */
    .certificate-placeholder {
        padding: 1rem;
        margin-top: 1rem;
    }

    /* Button improvements */
    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
    }

    /* Badge improvements */
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin: 0.15rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* ===== MOBILE-FIRST ENHANCEMENTS ===== */

/* Touch-friendly interactions for mobile */
@media (max-width: 991px) {
    /* Larger touch targets for mobile */
    .btn,
    .social-link,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for touch */
    .philosophy-card,
    .team-card,
    .goal-card {
        margin-bottom: 1.5rem;
    }

    /* Improved text readability */
    .card-icon {
        font-size: 2.5rem !important;
    }

    /* Better button spacing */
    .btn + .btn {
        margin-left: 0.5rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .courses-hero-section {
        padding: 40px 0 20px;
    }

    .story-section,
    .philosophy-section,
    .team-section,
    .certification-section,
    .future-goals-section,
    .cta-section {
        padding: 2rem 0;
    }
}

@media screen and (max-width: 768px) {
    .message-text {
        font-size: 0.9rem;
    }
}

/* Improved image responsiveness */
@media (max-width: 991px) {
    .certificate-placeholder {
        text-align: center;
    }

    .certificate-placeholder i {
        font-size: 3rem !important;
    }
}

/* Better spacing for very small screens */
@media (max-width: 360px) {
    .philosophy-card,
    .team-card,
    .goal-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .btn-lg {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .courses-hero-section {
        padding: 40px 0 20px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .slide-in-up,
    .slide-in-left,
    .slide-in-right {
        animation: none;
    }

    * {
        transition: none !important;
    }
}

.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .philosophy-card,
    .team-card,
    .goal-card {
        border-width: 2px;
    }

    .text-muted {
        color: var(--text-dark) !important;
    }
}

@media print {
    .navbar,
    .cta-section,
    .courses-hero-section {
        background: white;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }

    .courses-hero-section .hero-title,
    .courses-hero-section .hero-subtitle {
        color: black;
    }
}

.future-goals-section .slide-in-up:first-child {
    animation-delay: 0.1s;
}
.future-goals-section .slide-in-up:nth-child(2) {
    animation-delay: 0.2s;
}
.future-goals-section .slide-in-up:nth-child(3) {
    animation-delay: 0.3s;
}
