/* ============================================
   GPS Iraq Landing Page — Style Sheet
   Green & White Professional Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #16a34a;
    --primary-light: #22c55e;
    --primary-lighter: #4ade80;
    --primary-dark: #15803d;
    --primary-darker: #166534;
    --accent: #059669;
    --bg: #ffffff;
    --bg-soft: #f0fdf4;
    --bg-gray: #f8faf9;
    --text: #1a2e1a;
    --text-secondary: #4a6a4a;
    --text-muted: #7a9a7a;
    --border: #d4e8d4;
    --border-light: #e8f5e8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(22, 163, 74, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 48px rgba(22, 163, 74, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--primary-dark);
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 24px rgba(22, 163, 74, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

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

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

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--bg-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-darker);
    font-weight: 800;
    font-size: 20px;
}

.nav-logo svg {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

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

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.25);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.35);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7.5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7.5px);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 30%, #f0fdf4 60%, #ecfdf5 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(22, 163, 74, 0.06);
}

.hero-circle.c1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -200px;
}

.hero-circle.c2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
}

.hero-circle.c3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 30%;
    border-color: rgba(22, 163, 74, 0.04);
}

.hero-dots {
    position: absolute;
    inset: 0;
}

.hero-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.1);
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.7;
    }
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(22, 163, 74, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    border-radius: 24px;
    border: 1px solid rgba(22, 163, 74, 0.15);
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat span {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-map-container {
    position: relative;
    width: 380px;
    height: 380px;
    background: var(--bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-map-pulse {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.07) 0%, transparent 70%);
    animation: mapPulse 4s ease-in-out infinite;
}

@keyframes mapPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.hero-map-icon {
    z-index: 1;
}

.marker {
    animation: markerBounce 3s ease-in-out infinite;
}

.m1 {
    animation-delay: 0s;
}

.m2 {
    animation-delay: 0.8s;
}

.m3 {
    animation-delay: 1.6s;
}

.m4 {
    animation-delay: 2.4s;
}

@keyframes markerBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ========== FEATURES ========== */
.features {
    padding: 100px 0;
    background: var(--bg);
}

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

.feature-card {
    padding: 32px 28px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-card.visible:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== DEVICES ========== */
.devices {
    padding: 100px 0;
    background: var(--bg-soft);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.device-card {
    padding: 32px 24px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.device-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.device-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.device-card.visible:hover {
    transform: translateY(-4px);
}

.device-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.device-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.device-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.device-features {
    list-style: none;
    text-align: right;
}

.device-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-top: 1px solid var(--border-light);
}

.device-features li::before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 700;
}

/* ========== APP SECTION ========== */
.app-section {
    padding: 100px 0;
    background: var(--bg);
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.app-text h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.app-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.app-features-list {
    list-style: none;
    margin-bottom: 32px;
}

.app-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.app-stores {
    display: flex;
    gap: 12px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.store-btn small {
    font-size: 11px;
    opacity: 0.7;
    display: block;
}

.store-btn strong {
    font-size: 16px;
    display: block;
}

/* Phone mockup */
.app-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--text);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-header {
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
}

.phone-map {
    flex: 1;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5, #f0fdf4);
    position: relative;
    background-image:
        linear-gradient(rgba(22, 163, 74, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 163, 74, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.phone-marker {
    position: absolute;
    font-size: 20px;
    animation: markerBounce 3s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.phone-bottom {
    padding: 16px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-light);
    background: var(--bg);
}

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

.phone-stat strong {
    display: block;
    font-size: 20px;
    color: var(--primary);
    font-weight: 800;
}

.phone-stat small {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========== INTEGRATIONS ========== */
.integrations {
    padding: 100px 0;
    background: var(--bg-soft);
}

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

.integration-card {
    padding: 32px 28px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.integration-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.integration-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.integration-card.visible:hover {
    transform: translateY(-4px);
}

.integration-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.integration-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.integration-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== CTA ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark), var(--primary));
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content h2 .gradient-text {
    background: linear-gradient(135deg, #fff, var(--primary-lighter));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.cta-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* ========== CONTACT ========== */
.contact {
    padding: 100px 0;
    background: var(--bg);
}

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

.contact-card {
    padding: 40px 32px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary);
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    padding: 48px 0 24px;
    background: var(--bg-gray);
    border-top: 1px solid var(--border-light);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .hero-map-container {
        width: 300px;
        height: 300px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-stores {
        justify-content: center;
    }

    .app-visual {
        order: -1;
        margin-bottom: 40px;
    }

    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

    .devices-grid {
        grid-template-columns: 1fr 1fr;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 480px) {
    .devices-grid {
        grid-template-columns: 1fr;
    }

    .hero-map-container {
        width: 260px;
        height: 260px;
    }

    .app-stores {
        flex-direction: column;
        align-items: center;
    }
}