/* --- Global --- */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box; /* Include padding/border in width */
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* prevent horizontal scroll */
    width: 100%;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #111;
}

/* --- Top Bar --- */
.top-bar {
    background: #ffe26a;
    padding: 8px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    font-size: 14px;
    align-items: center;
}

.top-bar i {
    margin-right: 6px;
    color: #000;
}

.lang-switch a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.lang-switch a:hover,
.lang-switch .active {
    color: #38b1af;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo img {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    gap: 25px;
    font-size: 18px;
}

nav a {
    text-decoration: none;
    color: #333;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        flex-direction: column;
        width: 200px;
        padding: 15px;
        border-left: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        display: none;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* --- Home Section --- */
.home-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.home-section img {
    width: 100%;
    height: auto;
    display: block;
}

.home-section h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: #0b1225;
    margin: 40px auto;
    max-width: 900px;
    padding: 0 20px;
}

.home-section h1 span {
    border-left: 6px solid;
    border-image: linear-gradient(to bottom, black, red, gold) 1;
    padding-left: 15px;
}

/* --- Three Cards --- */
.three-cards {
    padding: 60px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    background: white;
}

.card-phase {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 40px 30px 30px 30px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: 0.45s ease;
    cursor: pointer;
    text-align: left;
}

.card-phase:hover {
    background: linear-gradient(to bottom right, #ffe875, #ffffff);
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
    transform: translateY(-8px);
}

.card-icon {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: black;
    border: 3px solid transparent;
    transition: all 0.35s ease;
}

.card-phase:hover .card-icon {
    background: #ffe26a;
    border-color: #000;
    transform: scale(1.10);
}

.card-phase h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 20px;
    color: #111;
}

.card-phase p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* --- Founder Section --- */
.founder-section {
    background: #e0e0e0;
    padding: 80px 20px;
}

.founder-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.founder-image-wrapper {
    position: relative;
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.founder-bg-rectangle {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #38b1af;
    border-radius: 10px;
    z-index: 0;
}

.founder-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    z-index: 1;
    display: block;
    margin: 0 auto;
}

.founder-text {
    flex: 1;
    min-width: 300px;
}

.founder-text h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #111;
}

.founder-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.founder-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ccc;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.icon-circle:hover {
    background: #38b1af;
    color: #111;
}

/* --- Learn More Button --- */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid #000;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.learn-more-btn .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    transition: all 0.3s;
}

.learn-more-btn:hover {
    transform: translateY(-3px);
}

.learn-more-btn:hover .btn-icon {
    background: #ffe26a;
    color: #111;
}

/* --- How MALEA Works --- */
.how-malea-section .process-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.how-malea-section .process-left {
    flex: 1;
    min-width: 300px;
}

.how-malea-section .process-left h2 {
    font-size: 2rem;
    color: #0b1225;
    margin-bottom: 15px;
    font-weight: 700;
}

.how-malea-section .process-left p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* --- Contact Form --- */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffe26a;
    box-shadow: 0 0 5px #ffe26a;
}

.contact-form button {
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    background: #ffe26a;
    color: #0b1225;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background: #38b1af;
    color: #0b1225;
}

/* --- Process Steps --- */
.process-steps {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 50px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #333;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
    transition: 0.3s ease;
}

.step:hover .step-circle {
    background: #ffe26a;
    border-color: #ffe26a;
    color: #111;
}

.step::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 36px;
    width: 4px;
    height: 100%;
    background: #ccc;
}

.step:last-child::after {
    display: none;
}

.step-content {
    margin-left: 20px;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.step-content p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 70px 20px;
    background: #ffffff;
}

.newsletter-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.newsletter-left {
    flex: 1;
    min-width: 280px;
}

.newsletter-left h2 {
    font-size: 32px;
    color: #0b1225;
    margin-bottom: 15px;
}

.newsletter-left p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.newsletter-right {
    flex: 1;
    min-width: 280px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 50px;
    border: 2px solid #38b1af;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 26px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: #ffe26a;
    font-weight: 600;
    font-size: 16px;
    color: #111;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #38b1af;
    color: #fff;
}

/* --- Footer --- */
.footer {
    background: #0b1225;
    color: white;
    padding: 60px 20px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-logo {
    width: 140px;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin: 6px 0;
    font-size: 16px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #ffe26a;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1a1f33;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #ffe26a;
    color: #0b1225;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #ccc;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .founder-container,
    .process-container,
    .newsletter-container,
    .three-cards {
        padding-left: 20px !important;
        padding-right: 20px !important;
        gap: 25px;
        justify-content: center;  /* center the cards */
    }
     .card-phase.active-card {
    background: linear-gradient(to bottom right, #ffe875, #ffffff);
    box-shadow: 0 18px 30px rgba(0,0,0,0.18);
    transform: translateY(-8px);
}

.card-phase.active-card .card-icon {
    background: #ffe26a;
    border-color: #000;
    transform: scale(1.10);
}


    .card-phase {
        width: 100%;
        max-width: 320px;       /* keeps card beautiful on mobile */
        margin: 0 auto;         /* center card */
        padding: 35px 25px;     /* slightly reduced padding for mobile */
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .home-section h1 {
        font-size: 32px;
    }

    .contact-form {
        padding: 20px;
        max-width: 100%;
    }

    .learn-more-btn {
        width: auto;
        font-size: 15px;
    }

    .home-section,
    .three-cards,
    .founder-section,
    .what-malea-section,
    .how-malea-section,
    .newsletter-section,
    .footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .top-bar .fa-phone {
        display: none !important;
    }
    .step-circle.active-step {
    background: #ffe26a;
    border-color: #ffe26a;
    color: #111;
    transform: scale(1.1); /* optional for visual pop */
    transition: all 0.3s ease;
}

    
}

@media (max-width: 480px) {
    .three-cards {
        gap: 40px;
        padding: 40px 15px;
    }

    .card-phase {
        margin: 0 10px;
    }
  }