:root {
    --bg-dark: #0a0e17;
    --bg-darker: #05070a;
    --primary: #00f2ea;
    --secondary: #ff0050;
    --accent: #7d2ae8;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent), transparent);
}

.bg-glow-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--primary), transparent);
    width: 500px;
    height: 500px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Utilities */
.glass-nav,
.glass-card,
.glass-btn,
.glass-footer,
.glass-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.glass-card {
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 242, 234, 0.1);
}

.glass-card-high {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    padding: 10px 25px;
    border-radius: 50px;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 80, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.badge {
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 234, 0.3);
    display: inline-block;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.glass-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-store i {
    font-size: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.btn-text span {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
}

/* Hero Image & Animation */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

/* Phone Mockup Frame */
.phone-mockup {
    position: relative;
    width: 300px;
    /* Fixed width for consistency */
    height: 600px;
    /* Aspect ratio approx 1:2 */
    background: #000;
    border-radius: 40px;
    box-shadow: 0 0 0 10px #1a1a1a, 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: 0.5s;
    animation: float 6s ease-in-out infinite;
    display: block;
    /* Reset flex */
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.phone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 20;
    border-radius: 35px;
}

.phone-slider {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    background: #000;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Ensure full visibility */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-10deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg);
    }

    100% {
        transform: translateY(0px) rotateY(-10deg);
    }
}

.glass-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: floatIcon 4s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
    color: #ffd700;
}

.icon-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1s;
    color: var(--primary);
}

.icon-3 {
    top: 50%;
    right: 90%;
    animation-delay: 2s;
    color: var(--secondary);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Rates Section */
.rates-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 500;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rate-card {
    text-align: center;
    padding: 25px;
}

.currency-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.currency-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.currency-change {
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.up {
    color: #00ff88;
}

.down {
    color: #ff0050;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Download CTA */
.download-cta {
    padding: 100px 0;
}

.glass-card-gradient {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 242, 234, 0.1), transparent 50%);
    pointer-events: none;
}

.glass-card-gradient h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.glass-card-gradient .cta-buttons {
    justify-content: center;
}

.btn-primary-glow {
    background: var(--primary);
    color: var(--bg-darker) !important;
    /* Contrast text */
    font-weight: 800;
}

.btn-primary-glow:hover {
    background: white;
    box-shadow: 0 0 20px var(--primary);
}

/* Footer */
.glass-footer {
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: block;
}

.logo img,
.footer-logo img {
    height: 40px;
    /* Adjust height as needed */
    width: auto;
    vertical-align: middle;
}

.social-links {
    display: flex;
    gap: 15px;
}

.glass-icon-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-icon-sm:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Loader */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .phone-mockup {
        max-width: 250px;
        transform: rotateY(0deg);
        /* Simplify for mobile */
        animation: none;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        /* simple hamburger later if needed */
    }

    .cta-buttons {
        flex-direction: column;
    }
}