
:root {
    /* Apple Dark Mode Palette */
    --color-background: #000000;
    --color-surface: #1C1C1E;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #AAAAAA;
    --color-accent-blue: #007AFF; /* Standard iOS blue for CTAs */
    --color-highlight: #F5F5F7; /* Light highlight color */
    --color-divider: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    /* Using system fonts for clean, high-performance look similar to SF Pro */
    --font-family-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-background);
    height: 100%; /* ensure full-height reference */
}

body {
    font-family: var(--font-family-system);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    direction: rtl; /* Right-to-Left for Arabic */
    line-height: 1.6;
    overflow-x: hidden;
    height: 100%; /* ensure body fills viewport and helps avoid layout jump causing scrollbars */
}

/* Base Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em; /* Subtle tightening for Apple look */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-highlight);
}

p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Desktop H1/H2 override */
@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
}





/* Header/Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.8); /* Slightly transparent blur effect */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-divider);
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.nav {
    display: none; /* Hide full nav on mobile, use scrolling/sections */
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--color-divider);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: right;
}

.footer-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.footer-block p, .footer-block a {
    color: var(--color-text-secondary);
    text-decoration: none;
    /* Use inline-flex so icon + text are inline and vertically centered */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Remove forced justification so items center vertically while keeping RTL layout via container */
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

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

.social-link {
    display: inline-flex; /* inline so it flows naturally inside paragraphs */
    align-items: center;  /* vertical center the icon and text */
    justify-content: flex-end; /* Align right for RTL */
    gap: 0.5rem;
}

.social-icon {
    width: auto;
    height: auto;
    font-size: 20px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    display: inline-block;
    vertical-align: middle; /* ensure icon centers with adjacent text */
}

/* Ensure the hover effect changes the text color AND the SVG icon color */
.social-link:hover .social-icon {
    color: var(--color-text-primary);
}

.social-link span {
    /* Ensure the text itself responds to hover if it's part of the link */
    color: var(--color-text-secondary);
    transition: color 0.2s;
    vertical-align: middle;
}

.social-link:hover span {
    color: var(--color-text-primary);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-divider);
}

/* Media Query for larger screens (Tablet/Desktop) */
@media (min-width: 768px) {
    .header {
        padding: 1rem 3rem;
    }
    .nav {
        display: flex;
        gap: 1.5rem;
    }
    .nav a {
        color: var(--color-text-secondary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }
    .nav a:hover {
        color: var(--color-text-primary);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
        max-width: 1100px;
        margin: 0 auto 2rem;
    }

    .footer-block {
        flex: 1;
        max-width: 300px;
    }
}


/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-accent-blue);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px; /* Pill shape */
    transition: background-color 0.3s ease, transform 0.1s;
    min-width: 150px;
    font-size: 1.1rem;
}

.cta-button:active {
    transform: scale(0.98);
}

.secondary-cta {
    background-color: var(--color-surface); /* Use a darker, less aggressive color */
    color: var(--color-text-primary);
    border: 1px solid var(--color-divider);
}

.secondary-cta:hover {
    background-color: rgba(28, 28, 30, 0.7);
}


/* Capability Items */
.capability-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--color-surface); /* Slightly raised dark surface */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.capability-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.capability-item h3 {
    color: var(--color-highlight);
    margin-bottom: 0.5rem;
}

/* Service Cards */
.service-card {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: right;
    border: 1px solid var(--color-divider);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

/* Pricing Plan Cards */
.plan-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 30%, rgba(255,255,255,0.00) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.02);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    padding: 2rem;
    border-radius: 18px; /* Slightly larger radius for prominence */
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative; /* enable pseudo-element sheen */
    overflow: hidden;
}

/* subtle reflective sheen */
.plan-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 60%;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.00) 100%);
    transform: rotate(-18deg);
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

/* hover lift to emphasize glass reflection */
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
}

.plan-card.featured {
    border: 2px solid var(--color-accent-blue);
    background: linear-gradient(145deg, rgba(28, 28, 30, 0.6) 0%, rgba(28, 28, 30, 0.3) 100%); /* Adjusted opacity for featured */
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
}

.price {
    margin: 1.5rem 0;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-highlight);
}

.price small {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* changed from flex-end to flex-start */
    gap: 0.75rem;
    padding: 0; /* changed from 0.5rem 0 to remove internal padding */
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-divider);
}

.feature-row span {
    font-size: small;
}

.feature-row:last-child {
    border-bottom: none;
}

.check {
    color: var(--color-accent-blue);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.select-plan {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s, transform 0.12s, box-shadow 0.2s;
    /* Glass-style base */
    background: rgba(255,255,255,0.03);
    color: var(--color-text-primary);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    -webkit-appearance: none;
    appearance: none;
}

.select-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.55);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.select-plan:active {
    opacity: 0.9;
    transform: translateY(0);
}

/* keep featured variant visually distinct while retaining glass border */
.plan-card.featured .select-plan {
    background-color: linear-gradient(180deg, rgba(28,28,30,0.95), rgba(28,28,30,0.9));
    background-color: var(--color-highlight);
    color: var(--color-background);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 28px rgba(0,122,255,0.15);
}

/* Software Items (Logo | Text) */
.software-item {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--color-divider);
}

.software-item img {
    width: 44px; /* Touch friendly size */
    height: 44px;
    flex-shrink: 0;
    margin-left: 1rem; /* Space between logo and text in RTL */
    border-radius: 8px; /* Give the icons a slight curve */
}

.software-info h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-text-primary);
}

.software-info p {
    font-size: 0.9rem;
    margin: 0;
}

/* Media Query for larger screens (Tablet/Desktop) */
@media (min-width: 768px) {
    /* Keep featured styling subtle on desktop without forcing different height */
    .plan-card.featured {
        /* Visual emphasis via border/shadow only â€” no transform or negative margins */
        /* ...existing visual styles from .plan-card.featured remain from base rules ... */
    }
    
    /* Adjust software grid item for desktop */
    .software-item {
        flex-direction: column; /* Stack vertically on desktop for cleaner grid */
        text-align: center;
        max-width: 250px;
        padding: 2rem;
    }

    .software-item img {
        width: 64px;
        height: 64px;
        margin: 0 auto 1rem; /* Center logo, add bottom margin */
    }

    .software-info {
        text-align: center;
    }
    
    .software-info p {
        /* Adjust font size slightly for desktop list */
        font-size: 0.95rem;
    }
}


/* Standard Section Styling */
.section {
    padding: 2rem 1rem;
    text-align: center;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: right;
    color: var(--color-text-secondary);
}

/* Subsection Styling for clarity within pricing sections */
.subsection-header {
    max-width: 600px;
    margin: 3rem auto 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: 1rem;
}

.subsection-header.subsection-separator {
    margin-top: 5rem; /* Extra separation between package groups */
}

.subsection-header h3 {
    font-size: 1.8rem;
    color: var(--color-accent-blue);
    margin-bottom: 0.5rem;
}

.subsection-header p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Hero Section */
.hero {
    height: 60vh; /* reduced from 85vh to avoid forcing large viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('hero_shot.png');
    background-size: cover;
    background-position: center 30%;
    position: relative;
    padding: 0.75rem; /* reduced padding */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 90%;
}

.hero h1 {
    /* Uses base.css h1 styling */
    color: var(--color-highlight);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

/* Capability Grid */
.capability-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

/* Services Section */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Make service cards display as a single row of three columns on wider screens */
@media (min-width: 768px) {
    .service-list {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        align-items: stretch;
        max-width: 1100px;
        margin: 2rem auto 0;
        padding: 0 1rem;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }

    .service-list .service-card {
        flex: 0 0 32%;
        min-width: 260px;
        max-width: 360px;
        text-align: right;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.5rem;
    }
}

/* Pricing Section */
#pricing {
    background-color: var(--color-background);
}

/* Make pricing container and plan cards mobile-first friendly:
   --- Implementation of horizontal mobile layout --- */
.pricing-container {
    display: flex;
    flex-direction: row; /* Force horizontal arrangement on mobile */
    gap: 0.5rem; /* Reduced gap */
    margin-top: 1.25rem;
    padding: 0 0.5rem; /* Reduced padding */
    overflow-x: hidden; /* Prevent horizontal scroll */
    justify-content: center;
    align-items: center; /* Ensure equal height */
}

.pricing-container .plan-card {
    flex: 1 1 30%; /* Allow cards to shrink, targeting roughly 1/3rd */
    min-width: 100px; /* Minimum sensible width */
    max-width: 200px; /* Prevent over-stretching on wide phones */
    margin: 0;
    padding: 0.75rem 0.5rem; /* Aggressively reduced padding */
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);
    text-align: center;
    /* aspect-ratio: 1 / 1.05; /* make cards more square (width : height) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Specific styling for the Center card (Second child in RTL horizontal flow) */
.pricing-container .plan-card:nth-child(2) {
    /* Center: height more than right and left */
    /* aspect-ratio: 1 / 1.35; */
    transform: scale(1.05); 
    z-index: 10;
}

/* SCALING DOWN TEXT ELEMENTS */
.pricing-container .plan-card h3 {
    font-size: 1rem; /* Smaller heading */
    margin-bottom: 0.3rem;
    min-height: 2.4rem; /* Ensure stability */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}


.pricing-container .plan-card .price {
    font-size: 1.8rem; /* Smaller price text */
    margin: 0.75rem 0;
    font-weight: 700;
}

.pricing-container .plan-card .price small {
    font-size: 0.7rem;
    font-weight: 400;
}

.plan-card .plan-desc {
    font-size: 0.75rem; /* Small description text */
    margin-bottom: 0.7rem;
    min-height: 2.2rem; /* Consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text-secondary);
}

.plan-card ul {
    list-style: none;
    text-align: right;
    padding: 0;
    margin-bottom: 0.7rem;
}

.plan-card li {
    padding: 0.2rem 0;
    font-size: 0.7rem;
    justify-content: flex-end; /* Keep alignment right for RTL */
}

.check {
    font-size: 0.8rem;
}

.select-plan {
    width: 100%;
    padding: 0.6rem; /* Reduced button padding */
    border-radius: 8px;
    font-size: 0.85rem; /* Smaller button font */
}

/* Small adjustments for price small text */
.price small {
    font-size: 0.95rem;
}

/* General Hero Styling (for drone, social, audio, design, post-production) */
.drone-hero, .social-hero, .audio-hero, .design-photo-hero, .post-production-hero {
    background-color: var(--color-background);
    padding: 0;
    text-align: center;
    position: relative;
    min-height: 50vh; /* reduced from 70vh to avoid stacking large blocks */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom for a cinematic look */
    background-size: cover;
    background-position: center center;
}

.drone-hero {
    background-image: url('dji_drone_hero.png');
}

.social-hero {
    background-image: url('social_media_hero.png');
}

.audio-hero {
    background-image: url('voice_over_hero.png');
}

.design-photo-hero {
    background-image: url('design_photo_hero.png');
}

.post-production-hero {
    background-image: url('adobe_post_production_hero.png');
}

.drone-hero::before, .social-hero::before, .audio-hero::before, .design-photo-hero::before, .post-production-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.9) 100%);
}

.drone-content, .social-content, .audio-content, .design-photo-content, .post-production-content {
    z-index: 2;
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.drone-hero h2, .social-hero h2, .audio-hero h2, .design-photo-hero h2, .post-production-hero h2 {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.drone-content .tagline, .social-content .tagline, .audio-content .tagline, .design-photo-content .tagline, .post-production-content .tagline {
    color: var(--color-highlight); /* changed from #8E8E93 to a lighter highlight for better contrast */
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Software Capabilities Grid (Logo | Text) */
.software-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: right; /* RTL alignment */
}

/* Fixes for Design & Photo packages to avoid internal scrolls on small viewports */
@media (max-width: 420px) {
    /* Reduce container padding/gaps and ensure no overflow */
    .pricing-container.plans-design,
    .pricing-container.plans-photo {
        gap: 0.4rem;
        padding: 0 0.25rem;
        justify-content: center;
        align-items: center;
        overflow: visible; /* ensure content doesn't create an inner scrollbar */
    }

    /* Make each plan-card smaller and more compact */
    .pricing-container.plans-design .plan-card,
    .pricing-container.plans-photo .plan-card {
        min-width: 86px;
        max-width: 120px;
        padding: 0.5rem;
        /* aspect-ratio: 1 / 1.05; */
        transform: none !important; /* cancel any scaling that could force overflow */
        margin: 0;
    }

    /* Prevent the center (second) card from becoming taller than neighbors */
    .pricing-container.plans-design .plan-card:nth-child(2),
    .pricing-container.plans-photo .plan-card:nth-child(2) {
        /* aspect-ratio: 1 / 1.05; */
        transform: none !important;
        z-index: auto;
    }

    /* Further reduce typography so cards fit without scroll */
    .pricing-container.plans-design .plan-card h3,
    .pricing-container.plans-photo .plan-card h3 {
        font-size: 0.9rem;
    }

    .pricing-container.plans-design .plan-card .price,
    .pricing-container.plans-photo .plan-card .price {
        font-size: 1.4rem;
    }

    .pricing-container.plans-design .plan-card .plan-desc,
    .pricing-container.plans-photo .plan-card .plan-desc {
        font-size: 0.68rem;
        min-height: 1.6rem;
    }

    .pricing-container.plans-design .plan-card li,
    .pricing-container.plans-photo .plan-card li {
        font-size: 0.62rem;
        padding: 0.15rem 0;
    }

    .pricing-container.plans-design .select-plan,
    .pricing-container.plans-photo .select-plan {
        padding: 0.45rem;
        font-size: 0.82rem;
    }
}

/* Media Query for larger screens (Tablet/Desktop) */
@media (min-width: 768px) {
    .section {
        padding: 6rem 3rem;
    }

    .hero {
        height: 80vh;
    }

    .drone-hero, .social-hero, .audio-hero, .design-photo-hero, .post-production-hero {
        min-height: 80vh;
    }

    .drone-hero h2, .social-hero h2, .audio-hero h2, .design-photo-hero h2, .post-production-hero h2 {
        font-size: 4rem;
    }

    .capability-grid {
        flex-direction: row;
        justify-content: center;
        max-width: 900px;
        margin: 3rem auto 0;
    }

    .software-grid {
        flex-direction: row;
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 3rem;
    }

    /* Desktop pricing layout - prevent scrollbars by allowing visible overflow,
       preventing unexpected wrapping and constraining padding so cards fit */
    .pricing-container {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        align-items: stretch;
        max-width: 1400px; /* increased to allow wider cards */
        margin: 2rem auto;
        padding: 0 1rem;
        overflow: visible;
        flex-wrap: nowrap;
        box-sizing: border-box;
    }

    /* Make plan cards substantially wider on desktop:
       - Use fixed-ish basis so cards are visually larger
       - Allow a sensible min-width to avoid becoming too narrow on medium desktops
       - Remove the mobile aspect-ratio behavior so height adapts naturally */
    .pricing-container .plan-card {
        flex: 0 0 34%; /* each card takes ~1/3 of available row */
        min-width: 320px; /* ensure cards have comfortable width */
        max-width: 460px; /* cap so three cards fit on large screens */
        padding: 1.25rem 1.75rem;
        aspect-ratio: unset;
    }

    .pricing-container .plan-card .price {
        font-size: 2rem; /* reduce price size to save vertical space */
        margin: 0.75rem 0; /* tighten vertical spacing */
    }
    
    .pricing-container .plan-card .price small {
        font-size: 1rem;
    }

    .plan-card .plan-desc {
        font-size: 1rem; /* Restore standard P size */
        min-height: auto;
        -webkit-line-clamp: unset;
        margin-bottom: 1rem; /* Reduced margin (2rem -> 1rem) */
    }

    .plan-card ul {
        margin-bottom: 1.5rem; /* Reduced margin (2rem -> 1.5rem) */
    }

    .plan-card li {
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    .check {
        font-size: 1.1rem;
    }

    .select-plan {
        padding: 0.8rem; /* Reduced button padding (1rem -> 0.8rem) */
        font-size: 1.0rem; /* Reduced button font size */
    }
}