/* ============================================
   TOURISTA - Coming Soon Page
   Modern & Creative Design
   ============================================ */

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Based on Logo #6F61E1 */
    --primary: #6F61E1;
    --primary-dark: #5A4ED1;
    --primary-light: #8A7FE8;
    --secondary: #9D8DF0;
    --accent: #6F61E1;
    --accent-light: #A89CF5;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6F61E1 0%, #8A7FE8 50%, #A89CF5 100%);
    --gradient-secondary: linear-gradient(135deg, #5A4ED1 0%, #6F61E1 100%);
    --gradient-accent: linear-gradient(135deg, #6F61E1 0%, #9D8DF0 100%);
    --gradient-dark: linear-gradient(135deg, #ffffff 0%, #fdfcff 50%, #ffffff 100%);
    
    /* Text Colors - Light Mode */
    --text-primary: #1e1b4b;
    --text-secondary: rgba(30, 27, 75, 0.65);
    --text-muted: rgba(30, 27, 75, 0.45);
    
    /* Background - Light Mode */
    --bg-dark: #ffffff;
    --bg-card: rgba(111, 97, 225, 0.06);
    
    /* Effects */
    --glow-primary: 0 0 40px rgba(111, 97, 225, 0.2);
    --glow-accent: 0 0 40px rgba(111, 97, 225, 0.15);
    
    /* Spacing */
    --section-padding: 2rem;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   DECORATIVE BACKGROUND IMAGES
   ============================================ */
.passport-decoration {
    position: fixed;
    bottom: 50px;
    left: 30px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    transform: rotate(-10deg);
    animation: floatPassport 6s ease-in-out infinite;
}

.passport-img {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(111, 97, 225, 0.25));
}

@keyframes floatPassport {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-10px); }
}

.plane-decoration {
    position: fixed;
    top: 80px;
    right: 50px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    transform: rotate(-15deg);
    animation: floatPlane 5s ease-in-out infinite;
}

.plane-img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(111, 97, 225, 0.25));
}

@keyframes floatPlane {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-12px); }
}

/* Mobile decorative elements positioning */
@media (max-width: 768px) {
    .passport-decoration {
        bottom: 30px;
        left: 15px;
        opacity: 0.14;
    }
    
    .passport-img {
        width: 200px;
    }
    
    .plane-decoration {
        top: 50px;
        right: 15px;
        opacity: 0.14;
    }
    
    .plane-img {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .passport-decoration {
        bottom: 20px;
        left: 10px;
        opacity: 0.12;
        transform: rotate(-8deg);
    }
    
    .passport-img {
        width: 150px;
    }
    
    .plane-decoration {
        top: 30px;
        right: 10px;
        opacity: 0.12;
        transform: rotate(-12deg);
    }
    
    .plane-img {
        width: 130px;
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ============================================
   LOGO
   ============================================ */
.logo-container {
    position: relative;
    margin-bottom: 3rem;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}

.logo {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out;
}

.logo-icon {
    width: 240px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon i {
    font-size: 2rem;
    color: white;
    -webkit-text-fill-color: white;
    transform: rotate(45deg);
}

@keyframes planeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================
   COMING SOON TEXT
   ============================================ */
.coming-soon-text {
    margin-bottom: 1.5rem;
    text-align: center;
}

.reveal-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.word {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(50px);
    animation: revealWord 0.8s ease-out forwards;
}

.word:nth-child(1) { animation-delay: 0.3s; }
.word:nth-child(2) { animation-delay: 0.5s; }
.word:nth-child(3) { animation-delay: 0.7s; }
.word:nth-child(4) { animation-delay: 0.9s; }

.word.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.word.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: underlineGrow 1s ease-out 1.2s forwards;
    transform: scaleX(0);
    transform-origin: right;
}

@keyframes revealWord {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

/* Tagline */
.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.3s forwards;
}

/* CTA Text - Bigger انتظرونا */
.tagline.cta-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

/* Year Text - Bigger 2026 */
.tagline.year-text {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    animation: none;
    opacity: 1;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary);
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown-wrapper {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.countdown-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.countdown-item {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--glow-primary);
}

.countdown-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-item:hover .countdown-glow {
    opacity: 1;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.countdown-separator {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 300;
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   SUBSCRIBE SECTION
   ============================================ */
.subscribe-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.7s forwards;
}

.subscribe-title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.input-wrapper input:focus + .input-border {
    width: 80%;
}

.subscribe-btn {
    position: relative;
    padding: 1.25rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-icon {
    transform: translateX(-5px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.subscribe-btn:hover .btn-glow {
    left: 100%;
}

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #10b981;
    font-size: 0.95rem;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.show {
    display: flex;
}

.success-message i {
    font-size: 1.25rem;
}

/* ============================================
   FEATURES PREVIEW
   ============================================ */
.features-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.9s forwards;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social-section {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.1s forwards;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-link:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.social-link:active .social-ripple {
    width: 100px;
    height: 100px;
}

/* Tooltip */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.3s forwards;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loader-circle:nth-child(1) {
    border-top-color: var(--primary);
    animation: spin 1.5s linear infinite;
}

.loader-circle:nth-child(2) {
    border-right-color: var(--secondary);
    animation: spin 2s linear infinite reverse;
}

.loader-circle:nth-child(3) {
    border-bottom-color: var(--accent);
    animation: spin 2.5s linear infinite;
}

.loader-plane {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    animation: planeFloat 2s ease-in-out infinite;
}

.loader-plane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-plane i {
    transform: rotate(45deg);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--text-secondary);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-icon {
        width: 160px;
        height: 170px;
    }
    
    .logo-icon i {
        font-size: 1.5rem;
    }
    
    .word {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .countdown {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem 1.25rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .tagline.year-text {
        font-size: 3.5rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-preview {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }
    
    .tagline.year-text {
        font-size: 3rem;
    }
    
    .logo {
        font-size: 1.4rem;
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    
    .logo-icon {
        width: 140px;
        height: 150px;
    }
    
    .word {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-value {
        font-size: 1.75rem;
    }
}

/* ============================================
   ADDITIONAL ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Hover glow effect for interactive elements */
.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}
