/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&family=Tajawal:wght@400;700&display=swap');

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f0 50%, #fff2e0 100%);
    min-height: 100vh;
    font-family: 'Source Sans Pro', 'Tajawal', sans-serif;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* RTL Support */
[style*="direction: rtl"] {
    font-family: 'Tajawal', sans-serif;
    text-align: right;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.w-full { width: 100%; }
.h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* Navigation */
.nav-container {
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

/* Logo Section */
.logo-img {
    height: 2.5rem;
    width: auto;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Social Links */
.social-links {
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
}

.social-link {
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-icon {
    height: 1.5rem;
    width: 1.5rem;
    fill: #d97706;
}

.social-link:hover .social-icon {
    fill: #f59e0b;
}

/* Main Content */
.main-container {
    padding: 0 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

/* Device Image */
.device-image {
    max-width: 650px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    margin: 0 auto;
}

/* Content Section */
.content-section {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Text Content */
.heading-main {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    color: #f59e0b;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    width: 100%;
    text-align: center;
}

.text-content {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 2.5rem;
    font-family: 'Tajawal', sans-serif;
    width: 100%;
    text-align: center;
}

.download-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
}

/* App Store Buttons */
.store-buttons {
    gap: 2rem;
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.store-button {
    height: 3.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    -webkit-tap-highlight-color: transparent;
}

.store-button:hover {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.15));
}

/* Footer */
.footer-text {
    padding: 3rem 2rem;
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(107, 114, 128, 0.1);
}

/* Colors */
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-gray-500 { color: #6b7280; }

/* Hover States */
.hover\:text-amber-500:hover { color: #f59e0b; }
.hover\:no-underline:hover { text-decoration: none; }

/* Animations */
@keyframes slide-in-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes bounce-top {
    0% {
        transform: translateY(-45px);
        animation-timing-function: ease-in;
        opacity: 1;
    }
    24% {
        opacity: 1;
    }
    40% {
        transform: translateY(-24px);
        animation-timing-function: ease-in;
    }
    65% {
        transform: translateY(-12px);
        animation-timing-function: ease-in;
    }
    82% {
        transform: translateY(-6px);
        animation-timing-function: ease-in;
    }
    93% {
        transform: translateY(-4px);
        animation-timing-function: ease-in;
    }
    25%,
    55%,
    75%,
    87% {
        transform: translateY(0);
        animation-timing-function: ease-out;
    }
    100% {
        transform: translateY(0);
        animation-timing-function: ease-out;
        opacity: 1;
    }
}

.slide-in-bottom {
    animation: slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.slide-in-bottom-h1 {
    animation: slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.slide-in-bottom-subtitle {
    animation: slide-in-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.75s both;
}

.fade-in {
    animation: fade-in 1.2s cubic-bezier(0.39, 0.575, 0.565, 1) 1s both;
}

.bounce-top-icons {
    animation: bounce-top 0.9s 1s both;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .logo-img {
        height: 2rem;
    }

    .social-links {
        gap: 0.5rem;
        margin-right: 1rem;
    }

    .social-link {
        padding: 0.25rem;
    }

    .social-icon {
        height: 1.25rem;
        width: 1.25rem;
    }

    .contact-text {
        font-size: 0.875rem;
        margin-left: 0.5rem;
    }

    /* Main Content */
    .main-container {
        padding: 0;
        margin-top: 1rem;
    }

    .content-wrapper {
        gap: 1.5rem;
        padding: 1rem;
    }

    .content-section {
        padding: 0;
        width: 100%;
    }

    /* Text Content */
    .heading-main {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        white-space: pre-line;
    }

    .text-content {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .download-text {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    /* Device Image */
    .device-image {
        display: none; /* Hide devices.svg on mobile */
    }

    /* Store Buttons */
    .store-buttons {
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .store-button {
        height: 2.75rem;
        max-width: 130px;
    }

    /* Footer */
    .footer-text {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    /* RTL Text */
    [style*="direction: rtl"] {
        text-align: center !important;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-wrapper {
        padding: 0 1.5rem;
        gap: 0rem;
    }

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

    .device-image {
        max-width: 500px;
    }

    .store-button {
        height: 3rem;
    }

    .store-buttons {
        gap: 1.5rem;
    }
}

/* Prevent text size adjustment on orientation change */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .main-container {
        margin-top: 0.5rem;
    }

    .content-wrapper {
        gap: 1rem;
    }

    .heading-main {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .text-content {
        margin-bottom: 0.75rem;
    }

    .download-text {
        margin-bottom: 0.75rem;
    }

    .store-buttons {
        margin-top: 0.5rem;
    }

    .footer-text {
        margin-top: 1.5rem;
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}
