/* =========================================================================
   Global Variables & Reset
   ========================================================================= */
:root {
    /* Color Palette */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #1e293b;
    --accent-color: #38bdf8;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Typography */
    --font-main: 'Cairo', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-image: radial-gradient(circle at top right, rgba(56, 189, 248, 0.05), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent 40%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1, h2, h3, h4 { color: var(--secondary-color); line-height: 1.3; }

/* =========================================================================
   UI Components (Buttons)
   ========================================================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* =========================================================================
   Header 
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

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

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    min-height: 100vh;
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Glass Mockup Illustration */
.hero-image {
    flex: 1;
    position: relative;
}

/* Screenshot Frame in Hero */
.screenshot-frame {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 15px 15px 5px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.screenshot-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.frame-header {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    direction: ltr;
}

.screenshot-img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
}

.floating-card h4 { font-size: 1rem; margin-bottom: 2px; }
.floating-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.metric-icon { font-size: 1.5rem; }

.metric-card { top: -20px; right: -30px; }
.schedule-card { bottom: 40px; left: -40px; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.delay-float-1 { animation-delay: 0s; }
.delay-float-2 { animation-delay: 3s; }

/* =========================================================================
   Screenshots Gallery
   ========================================================================= */
.gallery {
    padding: 100px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    background: var(--bg-light);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-label {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary-color);
    text-align: center;
    background: #fff;
}

/* =========================================================================
   Benefits Section
   ========================================================================= */
.benefits {
    padding: 100px 0;
    background: #fff;
}

.section-title { font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 60px; }

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

.benefit-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: #fff;
    border-color: rgba(37, 99, 235, 0.1);
    box-shadow: var(--shadow-soft);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.benefit-card h3 { margin-bottom: 15px; font-size: 1.5rem;}
.benefit-card p { color: var(--text-muted); }

/* =========================================================================
   Features Section
   ========================================================================= */
.features { padding: 100px 0; }
.features-wrapper { margin-top: 60px; display: flex; flex-direction: column; gap: 40px; }

.feature-item {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.feature-item:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: scale(1.02); }

.feature-content h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary-color); }
.feature-content p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8;}

/* =========================================================================
   Call To Action (CTA) Section
   ========================================================================= */
.cta-section { padding: 80px 0; }

.bg-gradient-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 40px;
    border-radius: 24px;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.bg-gradient-card h2 { color: #fff; font-size: 2.5rem; margin-bottom: 20px; }
.bg-gradient-card p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.cta-btn { background: #fff; color: var(--primary-color); }
.cta-btn:hover { background: var(--bg-light); color: var(--secondary-color); box-shadow: 0 10px 30px rgba(255,255,255,0.2) }

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background: var(--secondary-color);
    color: #cbd5e1;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 { color: #fff; font-size: 1.8rem; margin-bottom: 15px; }
.footer-brand p { max-width: 300px; }

.footer-links h4, .footer-contact h4 { color: #fff; margin-bottom: 20px; font-size: 1.2rem;}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a:hover { color: #fff; padding-right: 5px; }

.email-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* =========================================================================
   Animations (Fade-in on load / scroll)
   ========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* =========================================================================
   Responsive Settings
   ========================================================================= */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 50px; }
    .hero-text p { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-image { width: 100%; margin-top: 40px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Could add mobile hamburger menu later */
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .metric-card, .schedule-card { display: none; }
}
