/* Base Variables based on Bank Al-Maaloumat/Raseed System */
:root {
    --bg-navy: #0B1120;
    --bg-navy-light: #151D30;
    --accent-gold: #D4AF37;
    --accent-gold-light: #FCE68E;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;

    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --transition: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-navy);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(11, 17, 32, 0) 70%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(11, 17, 32, 0) 70%);
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

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

.branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.logo-text {
    width: 100px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: var(--accent-gold);
    color: var(--bg-navy);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Download Buttons */
.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    border-radius: 16px;
    transition: all 0.4s var(--transition);
    min-width: 220px;
}

.download-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.download-btn .icon {
    font-size: 32px;
    color: var(--text-primary);
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1;
    margin-bottom: 4px;
}

.btn-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
}

/* Apple Specific */
.btn-apple:hover .icon {
    color: #A6B1B7;
    /* subtle metallic */
}

/* Google Play Specific */
.btn-google:hover .icon {
    background: -webkit-linear-gradient(45deg, #FF3333, #FFD400, #00D15C, #00A6FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats */
.stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Hero Visuals */
.hero-visuals {
    position: relative;
    perspective: 1000px;
}

.app-mockup {
    border-radius: 32px;
    padding: 16px;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.8s var(--transition);
    transform-style: preserve-3d;
}

.app-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.floating-badge i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-highlights {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.highlight-item i {
    color: var(--accent-gold);
    font-size: 24px;
}

.about-visuals {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-wrapper {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(11, 17, 32, 0.9));
}

.about-big-icon {
    font-size: 120px;
    color: var(--accent-gold);
}

.about-decoration {
    position: absolute;
    border-radius: 30px;
    z-index: 1;
    animation: rotateSlow 20s linear infinite;
}

.shape-1 {
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    background: transparent;
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 90%;
    height: 90%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    top: 5%;
    left: 5%;
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visuals {
        max-width: 400px;
        margin: 40px auto 0;
    }
}

/* Features Section */
.section-padding {
    padding: 100px 0;
}

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

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.4s var(--transition);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--accent-gold);
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon {
    font-size: 32px;
    color: var(--accent-gold);
    transition: color 0.4s ease;
}

.feature-card:hover .feature-icon {
    color: var(--bg-navy);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-card {
    border-radius: 32px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(11, 17, 32, 0.6) 100%);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-method i {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.method-value {
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.method-value:hover {
    color: var(--accent-gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 200;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    background: rgba(11, 17, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(11, 17, 32, 0.8);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b89120 100%);
    color: var(--bg-navy);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    z-index: 200;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 40px;
    }
}

/* Footer */
.footer {
    padding: 24px 0;
    text-align: center;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile behavior */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 32px;
    }

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

    .stats {
        justify-content: center;
    }

    .app-mockup {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }

    .app-mockup:hover {
        transform: translateY(-10px);
    }

    .badge-1 {
        right: 0;
    }

    .badge-2 {
        left: 0;
    }
}

@media (max-width: 480px) {
    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
}