/* Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #3b5998;
    /* Adjust based on screenshot */
    --accent-blue: #4a69bd;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --section-blue: #4c6ef5;
    /* Approximate blue from screenshot */
    --footer-bg: #f8f9fa;
    /* Or match screenshot exactly if possible */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: white;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    justify-content: flex-end;
    gap: 1.5rem;
}

.nav-logo {
    height: 50px;
}

.nav-social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.nav-social-item svg {
    width: 20px;
    height: 20px;
}

.nav-link {
    text-decoration: none;
    color: #4c6ef5;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-login {
    background-color: #3b5998;
    /* Match screenshot dark blue */
    color: white;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.btn-login:hover {
    background-color: #2d4373;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 50%;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    color: #2d3436;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #636e72;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    top: -50px;
    left: -150px;
    width: 300px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.hero-decoration img {
    width: 100%;
    height: auto;
}

/* Hero Image/Video Container */
/* Hero Image/Video Container */
.hero-image {
    position: relative;
    width: 420px;
    /* Increased from 350px */
    height: 720px;
    /* Increased from 600px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Stack Container */
.video-stack-container {
    position: relative;
    width: 360px;
    /* Increased from 300px */
    height: 640px;
    /* Increased from 533px */
    perspective: 1000px;
}

/* Common Video Card Styles */
.video-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    transition: all 0.6s ease-in-out;
    background: #000;

    /* Enhanced Blue Ramadhan Border */
    padding: 6px;
    background: linear-gradient(135deg, #4c6ef5, #a5b1c2, #5f27cd, #4c6ef5);
    background-size: 300% 300%;
    animation: gradientBorder 4s ease infinite;
    box-shadow:
        0 20px 50px rgba(76, 110, 245, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    /* Double border effect */
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    display: block;
}

/* Video Number Indicator */
.video-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: #4c6ef5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 20;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Front State */
.video-card.front {
    z-index: 10;
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Back State */
.video-card.back {
    z-index: 5;
    transform: translateX(100px) scale(0.9) rotateY(-10deg);
    /* Adjusted translateX for larger size */
    opacity: 0.6;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(76, 110, 245, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.video-control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-control-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .hero-image {
        width: 100%;
        height: auto;
        min-height: 500px;
    }

    .video-stack-container {
        width: 250px;
        height: 444px;
        /* 9:16 aspect */
        margin: 0 auto;
    }

    .hero-video {
        width: 100%;
        height: 100%;
    }
}

.btn-donate {
    background-color: #3b5bdb;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(59, 91, 219, 0.3);
}

/* Collaboration Section */
.collaboration {
    background-color: #3b5bdb;
    padding: 2rem 0;
    color: white;
    text-align: center;
}

.collab-text {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.collab-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.collab-logo {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Problem Section (Topi Toga) */
.problem-section {
    padding: 6rem 0;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.problem-image {
    flex: 1;
    text-align: center;
    /* Center the image */
}

.problem-cap-img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.problem-content {
    flex: 1;
}

.problem-title {
    font-size: 2.2rem;
    color: #2d3436;
    margin-bottom: 1.5rem;
    color: #3b5bdb;
    /* Blue heading */
}

.problem-text {
    color: #636e72;
    margin-bottom: 2rem;
}

.quote-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #3b5bdb;
    font-style: italic;
    color: #2d3436;
}

/* Solution / Bank Section */
.solution-section {
    background-color: #3b5bdb;
    color: white;
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solution-left {
    max-width: 50%;
}

.solution-right {
    text-align: right;
}

.bank-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* Features/Reward Section */
.features-section {
    padding: 6rem 0;
    text-align: center;
}

.features-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-title span {
    color: #ff9f43;
}

/* Orange accent */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #3b5bdb;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    padding-top: 4rem;
}

.feature-icon-wrapper {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
}

.feature-icon-wrapper img {
    width: 100%;
    height: auto;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* How It Works Section */
.how-it-works {
    background-color: #3b5bdb;
    color: white;
    padding: 6rem 0;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.step-number {
    background: white;
    color: #3b5bdb;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap;
}

.step-text h4 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.step-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.4;
}

/* Footer CTA */
.footer-cta {
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-cta-title {
    font-size: 2rem;
    color: #3b5bdb;
    max-width: 500px;
}

.footer-bank-details {
    text-align: right;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #3b5998;
    /* Match navbar blue or darker */
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-social-item svg {
    width: 20px;
    height: 20px;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-right {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        margin-bottom: 2rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Navbar Mobile */
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-left,
    .nav-center,
    .nav-right {
        justify-content: center;
        width: 100%;
    }

    .nav-left {
        order: 2;
        /* Socials below logo */
        margin-bottom: 0.5rem;
    }

    .nav-center {
        order: 1;
        /* Logo on top */
    }

    .nav-right {
        order: 3;
        flex-direction: column;
        gap: 1rem;
    }

    /* Sections Mobile */
    .problem-section {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
        gap: 3rem;
    }

    .solution-section .container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .problem-cap-img {
        max-width: 250px !important;
        /* Smaller on mobile */
    }

    .solution-section {
        text-align: center;
        padding: 3rem 0;
    }

    .solution-left,
    .solution-right {
        max-width: 100%;
        text-align: center;
    }

    .solution-right img {
        margin: 0 auto;
    }

    .bank-number {
        font-size: 1.8rem;
        /* Reduced from 2.5rem */
        word-break: break-all;
        /* Ensure long numbers break if needed */
        margin: 1rem 0;
    }

    /* Features Mobile */
    .features-title {
        font-size: 2rem;
        margin-bottom: 4rem;
        /* Reduced from 5rem but enough for icon */
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
        /* Increased gap to prevent icon overlap */
        padding-top: 2rem;
    }

    /* How It Works Mobile */
    .how-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .how-grid img {
        order: -1;
        margin: 0 auto;
        display: block;
        max-width: 80%;
    }

    /* Footer Mobile */
    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-cta-title {
        font-size: 1.8rem;
    }

    .footer-bank-details div {
        text-align: center !important;
    }

    .footer-bank-details img {
        margin: 0 auto;
        display: block;
    }

    .footer-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
    }

    .footer-right {
        text-align: center;
    }
}