/* ===================================
   Landing Page Styles - Branch Application System
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #1a1a2e;
    --accent: #d4af37;
    --accent-light: #f4e4ba;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --gray: #6c757d;
    --light-bg: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4ba 50%, #d4af37 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.15);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ===== CTA Button ===== */
.btn-cta {
    background: var(--gradient-gold);
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 18px 45px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.5);
    color: var(--secondary);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-cta:hover::before {
    left: 100%;
}

/* ===== Navigation ===== */
.navbar {
    background: transparent;
    padding: 20px 0;
    transition: all 0.4s ease;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light) !important;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.9)),
        url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1920') center/cover fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.2), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-feature i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    font-size: 150px;
    color: var(--accent);
}

.floating-1 {
    top: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-2 {
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* ===== Value Proposition ===== */
.value-section {
    background: var(--light-bg);
}

.value-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.value-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: #fff;
    transition: all 0.4s ease;
}

.value-card:hover .value-icon {
    transform: rotateY(180deg);
    background: var(--gradient-gold);
    color: var(--secondary);
}

.value-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.value-card p {
    color: var(--gray);
    margin: 0;
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===== Criteria Section ===== */
.criteria-section {
    background: #fff;
}

.criteria-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.criteria-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.criteria-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.criteria-list li:last-child {
    border-bottom: none;
}

.criteria-list i {
    color: var(--accent);
    font-size: 1.4rem;
    margin-top: 5px;
}

.criteria-list strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

.criteria-list span {
    color: var(--gray);
}

.criteria-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.criteria-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.criteria-image:hover img {
    transform: scale(1.05);
}

/* ===== Timeline Section ===== */
.timeline-section {
    background: var(--secondary);
    color: var(--text-light);
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.timeline-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.timeline-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary);
    position: relative;
    z-index: 2;
    border: 5px solid var(--secondary);
    transition: all 0.4s ease;
}

.timeline-step:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.timeline-step h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.timeline-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.step-number {
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    background: var(--secondary);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid var(--accent);
}

/* ===== Final CTA Section ===== */
.cta-section {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.95)),
        url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1920') center/cover fixed;
    text-align: center;
}

.cta-title {
    font-size: 2.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.footer {
    background: #0d0d1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-5px);
}

.footer-links h5 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--accent);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

/* ===== Responsive - Mobile First ===== */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3);
        padding: 8px 12px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .nav-link {
        padding: 10px 15px !important;
        text-align: center;
    }

    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        padding: 100px 20px 50px;
        background-attachment: scroll;
    }

    .hero .container {
        padding: 0;
    }

    .hero .row {
        margin: 0;
    }

    .hero .col-lg-8 {
        padding: 0;
        width: 100%;
    }

    .hero-content {
        text-align: center;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.5;
        margin-bottom: 15px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        text-align: center;
        max-width: 100%;
        padding: 0 5px;
    }

    .btn-cta {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        display: flex;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        align-items: center;
        width: 100%;
        padding: 0 10px;
    }

    .hero-feature {
        font-size: 0.95rem;
        width: auto;
        justify-content: center;
        text-align: center;
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.1);
        padding: 10px 20px;
        border-radius: 25px;
    }

    .hero-feature i {
        flex-shrink: 0;
        font-size: 1rem;
    }

    .floating-element {
        display: none;
        /* Hide decorative elements on mobile */
    }

    /* Value Cards Mobile */
    .value-card {
        padding: 25px 20px;
        margin-bottom: 15px;
    }

    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .value-card h4 {
        font-size: 1.2rem;
    }

    .value-card p {
        font-size: 0.9rem;
    }

    /* Stats Mobile */
    .stats-section {
        padding: 50px 0;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Criteria Mobile */
    .criteria-card {
        padding: 25px 20px;
    }

    .criteria-list li {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }

    .criteria-list i {
        font-size: 1.2rem;
    }

    .criteria-image {
        margin-top: 30px;
        height: 250px;
    }

    /* Timeline Mobile */
    .timeline::before {
        display: none;
    }

    .timeline-step {
        padding: 15px 10px;
        margin-bottom: 20px;
    }

    .timeline-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .timeline-step h4 {
        font-size: 1.1rem;
    }

    .timeline-step p {
        font-size: 0.85rem;
    }

    .step-number {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    /* CTA Mobile */
    .cta-section {
        background-attachment: scroll;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 30px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-links {
        margin-bottom: 25px;
    }

    .footer-links h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .contact-info {
        justify-content: center;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 20px;
        font-size: 0.85rem;
    }

    /* Scroll to Top Mobile */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .value-card {
        padding: 30px 25px;
    }

    .btn-cta {
        width: auto;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        display: none;
    }

    .criteria-card {
        padding: 40px;
    }

    .footer {
        text-align: right;
    }

    .social-links {
        justify-content: flex-start;
    }

    .contact-info {
        justify-content: flex-start;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero {
        background-attachment: fixed;
    }

    .cta-section {
        background-attachment: fixed;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

    .btn-cta,
    .nav-link,
    .social-links a {
        min-height: 48px;
    }

    /* Disable hover animations on touch */
    .value-card:hover {
        transform: none;
    }

    .value-card:hover .value-icon {
        transform: none;
    }

    .timeline-step:hover .timeline-icon {
        transform: none;
    }

    .criteria-image:hover img {
        transform: none;
    }

    .btn-cta:hover {
        transform: none;
    }

    .social-links a:hover {
        transform: none;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {

    .hero,
    .section-padding,
    .footer {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .scroll-top {
        left: max(20px, env(safe-area-inset-left));
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-element {
        animation: none;
    }
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}