/* ==========================================================================
   Hakimi Medical App Landing Page Stylesheet
   Design Palette: Medical Teal (#00897B), Cyan (#00BCD4), Emerald (#10B981)
   ========================================================================== */

:root {
    --primary: #00897B;
    --primary-dark: #00695C;
    --primary-light: #4DB6AC;
    --secondary: #00BCD4;
    --secondary-dark: #0097A7;
    --accent: #10B981;
    --dark-bg: #0B132B;
    --dark-card: #162447;
    --dark-surface: #1F4068;
    --light-bg: #F4F8F9;
    --light-card: #FFFFFF;
    --text-primary: #1A202C;
    --text-muted: #64748B;
    --text-light: #E2E8F0;
    --border-color: rgba(0, 137, 123, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 137, 123, 0.12);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-teal { color: var(--primary) !important; }
.text-cyan { color: var(--secondary) !important; }
.text-emerald { color: var(--accent) !important; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #00796B 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 137, 123, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 137, 123, 0.45);
    background: linear-gradient(135deg, #00796B 0%, #004D40 100%);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    z-index: -1;
    filter: blur(12px);
    opacity: 0.5;
    transition: var(--transition);
}

.glow:hover::after {
    opacity: 0.8;
    filter: blur(18px);
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 137, 123, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 137, 123, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn-mobile {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 170px 0 100px;
    background: linear-gradient(180deg, #E0F2F1 0%, #F4F8F9 100%);
    overflow: hidden;
}

.hero-bg-blobs {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--secondary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    bottom: -150px;
    right: -100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 137, 123, 0.1);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 137, 123, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 137, 123, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 137, 123, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 137, 123, 0); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #0F172A;
    margin-bottom: 20px;
    line-height: 1.25;
}

.hero-description {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}

/* Phone Mockup Frame */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame-wrapper {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.hero-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 137, 123, 0.25);
    border: 8px solid #FFFFFF;
    transition: var(--transition);
}

.phone-frame-wrapper:hover .hero-mockup-img {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 35px 60px -15px rgba(0, 137, 123, 0.35);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: float 4s ease-in-out infinite alternate;
}

.badge-top-right {
    top: 40px;
    right: -30px;
}

.badge-bottom-left {
    bottom: 50px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

.floating-badge i {
    font-size: 1.5rem;
}

.floating-badge strong {
    display: block;
    font-size: 0.9rem;
    color: #0F172A;
}

.floating-badge small {
    color: #64748B;
    font-size: 0.75rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #FFFFFF;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sub-title {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: #64748B;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #F8FAFC;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid #E2E8F0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: #FFFFFF;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.bg-teal-glow { background: rgba(0, 137, 123, 0.12); color: var(--primary); }
.bg-cyan-glow { background: rgba(0, 188, 212, 0.12); color: var(--secondary); }
.bg-emerald-glow { background: rgba(16, 185, 129, 0.12); color: var(--accent); }
.bg-blue-glow { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.bg-purple-glow { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.bg-orange-glow { background: rgba(249, 115, 22, 0.12); color: #F97316; }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: #0F172A;
}

.feature-card p {
    font-size: 0.98rem;
    color: #475569;
}

/* Role Tabs Section */
.roles-section {
    padding: 100px 0;
    background: #F1F5F9;
}

.role-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.role-tab {
    padding: 12px 24px;
    border-radius: 50px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #475569;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-tab:hover, .role-tab.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
}

.role-content-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid #E2E8F0;
}

.role-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.role-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 188, 212, 0.12);
    color: var(--secondary-dark);
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.role-info h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.role-info p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 24px;
}

.role-features-list {
    list-style: none;
}

.role-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

.role-card-preview {
    background: var(--dark-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(11, 19, 43, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.preview-item {
    background: rgba(255, 255, 255, 0.07);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: #FFFFFF;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    background: #F8FAFC;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 137, 123, 0.4);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-top: 16px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.step-card p {
    color: #64748B;
    font-size: 0.95rem;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #004D40 100%);
    color: #FFFFFF;
}

.download-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.download-content h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.download-content p {
    font-size: 1.15rem;
    color: #E0F2F1;
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    background: #FFFFFF;
    color: #0F172A;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.store-btn:hover {
    transform: translateY(-4px);
    background: #F8FAFC;
    box-shadow: var(--shadow-lg);
}

.store-btn i {
    font-size: 2rem;
    color: var(--primary);
}

.store-btn span {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
}

.store-btn strong {
    font-size: 1rem;
    display: block;
}

.outline-btn {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

.outline-btn i {
    color: #FFFFFF;
}

.outline-btn span {
    color: #E0F2F1;
}

.outline-btn:hover {
    background: #FFFFFF;
    color: var(--primary-dark);
}

.outline-btn:hover i {
    color: var(--primary-dark);
}

.outline-btn:hover span {
    color: #64748B;
}

.download-logo-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #0B132B;
    color: #94A3B8;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .brand-name {
    color: #FFFFFF;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-right: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-bottom {
    padding: 24px 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Scroll Reveal & Subtle Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Micro interactions */
.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(-3deg);
}

.step-card:hover .step-number {
    transform: translateX(50%) scale(1.15);
}

.btn-primary.glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.btn-primary.glow:hover::before {
    left: 140%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta, .hero-trust {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .role-display {
        grid-template-columns: 1fr;
    }

    .role-content-box {
        padding: 30px 24px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .download-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 0;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        right: 0;
        left: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        display: none;
        border-bottom: 2px solid var(--primary-light);
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-btn {
        display: none;
    }
    
    .nav-btn-mobile {
        display: inline-block;
        width: 100%;
        text-align: center;
        background: var(--primary);
        color: #FFFFFF !important;
        padding: 10px;
        border-radius: var(--radius-sm);
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }

    .badge-top-right {
        top: -15px;
        right: -10px;
        padding: 8px 12px;
    }
    
    .badge-bottom-left {
        bottom: -15px;
        left: -10px;
        padding: 8px 12px;
    }

    .floating-badge strong {
        font-size: 0.8rem;
    }

    .floating-badge small {
        font-size: 0.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .role-tabs {
        gap: 8px;
    }

    .role-tab {
        padding: 8px 16px;
        font-size: 0.88rem;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .download-logo-icon {
        width: 130px;
        height: 130px;
    }
}

