:root {
    --primary-color: #0d1f2d;
    /* Deep Dark Blue */
    --secondary-color: #d4af37;
    /* Elegant Gold */
    --accent-color: #f1c40f;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(13, 31, 45, 0.75);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

/* Background & Overlays */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.05);
    /* Prevents blur edges */
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 15, 23, 0.7);
    /* Darkens the background */
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-color) 120%);
}

/* Main Container */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    width: 100%;
    gap: 4rem;
}

/* --- Right Column: Text Content --- */
.text-content {
    flex: 1.1;
    z-index: 10;
    animation: slideInRight 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Inner glow for glass card */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 8s infinite;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.brand-logo {
    width: 80px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.main-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #d4af37, #fdfbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.intro-box {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.intro-box strong {
    color: var(--secondary-color);
    font-weight: 800;
}

.vision-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-right: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 12px 0 0 12px;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.vision-box:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(-5px);
}

.vision-icon {
    font-size: 2rem;
}

.box-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.services-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: inline-block;
    position: relative;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-10px);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon-wrapper {
    background: rgba(212, 175, 55, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon {
    font-size: 1.5rem;
}

.service-text h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.service-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-note {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.download-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.store-btn img {
    height: 45px;
    width: auto;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.store-btn:hover img {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* --- Left Column: Mockup Content --- */
.mockup-content {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInLeft 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
    opacity: 0;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.iphone-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
    transition: transform 0.2s ease-out;
    /* For JS mousemove */
}

/* Floating Bubbles around Mockup */
.floating-bubble {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.bubble-icon {
    font-size: 1.2rem;
}

.bubble-1 {
    top: 15%;
    right: -5%;
    animation: floatBubble 5s ease-in-out infinite alternate;
}

.bubble-2 {
    bottom: 25%;
    left: -10%;
    animation: floatBubble 4s ease-in-out infinite alternate 1s;
}

.bubble-3 {
    top: 50%;
    right: -15%;
    animation: floatBubble 6s ease-in-out infinite alternate 2s;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

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

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

@keyframes floatBubble {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        gap: 2rem;
    }

    .glass-card {
        padding: 2rem;
    }

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

    .iphone-img {
        max-width: 280px;
    }
}

@media (max-width: 900px) {
    .content-grid {
        flex-direction: column;
    }

    .text-content,
    .mockup-content {
        width: 100%;
        flex: none;
    }

    .mockup-content {
        margin-top: 3rem;
        opacity: 1;
        /* override animation initial state */
        animation: none;
        /* simple display on mobile */
    }

    .glass-card {
        padding: 1.5rem;
    }

    .brand-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .services-title {
        display: block;
        text-align: center;
    }

    .services-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    .vision-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        border-right: none;
        border-top: 4px solid var(--secondary-color);
        border-radius: 0 0 12px 12px;
    }

    .floating-bubble {
        transform: scale(0.8);
    }

    .bubble-1 {
        top: 5%;
        right: 0;
    }

    .bubble-2 {
        bottom: 10%;
        left: 0;
    }

    .bubble-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}