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

:root {
    /* Premium Color Palette (Green) */
    --primary: #10B981; /* Fresh Green */
    --primary-dark: #059669;
    --bg-main: #f5f5f7;
    --bg-secondary: #ffffff;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(0, 0, 0, 0.04);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    --nav-height: 70px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother apple-like ease */
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* New UI Components */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-10 { margin-bottom: 40px; }
.mt-10 { margin-top: 40px; }

/* Pricing Cards (Airline Systems) */
.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.pricing-card.premium {
    background: linear-gradient(145deg, #1d1d1f, #2c2c2e);
    color: white;
}

.pricing-card.premium .price-tag,
.pricing-card.premium .card-title,
.pricing-card.premium .card-desc {
    color: white;
}

.feature-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
}

.pricing-card.premium .feature-list li {
    color: rgba(255,255,255,0.8);
}

.feature-list li svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: rgba(255,255,255,0.5);
}
.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
}

.nav-logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.nav-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    opacity: 0.8;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Premium Button CTA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--text-main);
    color: white;
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: scale(1.02);
}

.btn-accent {
    background: var(--primary);
    color: white;
}

.btn-accent:hover {
    background: var(--primary-dark);
}

/* Currency Selector */
.currency-selector-wrapper {
    position: relative;
}

.currency-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.currency-toggle:hover {
    background: rgba(0,0,0,0.06);
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    overflow: hidden;
}

.currency-selector-wrapper.active .currency-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-search {
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.currency-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background: rgba(255,255,255,0.5);
}

.currency-search input:focus {
    border-color: var(--primary);
}

.currency-list {
    max-height: 300px;
    overflow-y: auto;
}

.currency-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.currency-item:hover {
    background: rgba(0,0,0,0.03);
}

.currency-code {
    font-weight: 600;
    color: var(--primary);
    width: 45px;
}

.currency-name {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: var(--text-main);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 100px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.06) 0%, rgba(245,245,247,0) 70%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero h1 span {
    background: linear-gradient(90deg, #1d1d1f, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
    margin-inline: auto;
}

/* Visual Presentation (Dashboard mock) */
.hero-visual {
    margin-top: 60px;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    border-top: 1px solid rgba(255,255,255,1);
    transform: perspective(1000px) rotateX(2deg);
    transform-origin: bottom center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 30px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
    pointer-events: none;
}

/* Cards & Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.price-tag {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        width: 94%;
        top: 15px;
        border-radius: 50px;
        border: 1px solid var(--glass-border);
    }
    .nav-links {
        display: none;
    }
    .nav-right .btn-primary {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        border-radius: 30px;
        background: #ffffff;
        padding: 25px 20px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        border: 1px solid rgba(0,0,0,0.05);
    }
    .nav-links.active a {
        padding: 16px 25px;
        width: 100%;
        border: 1px solid rgba(0,0,0,0.08);
        background-color: #fafafa;
        border-radius: 30px;
        text-align: left;
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-main);
    }
    .hero-visual {
        height: 300px;
        border-radius: 16px 16px 0 0;
    }
    .footer-inner {
        flex-direction: column;
        text-align: left;
    }
    .footer-links {
        justify-content: flex-start;
    }
    .hero {
        padding-top: calc(var(--nav-height) + 40px);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 40px; /* Gap on all 4 sides */
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 40px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.5;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.modal-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 8px;
}
/* Vertical Timeline CSS */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 20px;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: white;
    border: 5px solid var(--primary);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
}
.timeline-item.right::after {
    left: -12px;
}
.timeline-card {
    padding: 30px;
    background: white;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary);
    transition: transform 0.3s ease;
}
.timeline-card:hover {
    transform: translateY(-5px);
}
.timeline-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.timeline-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }
    .timeline-item.right {
        left: 0;
    }
    .timeline-item.left::after, .timeline-item.right::after {
        left: 19px;
    }
}

/* Custom Action Buttons */
.order-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    width: 100%;
    flex-wrap: nowrap;
}
.btn-process, .btn-meeting {
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.btn-process {
    background-color: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}
.btn-process:hover { background-color: #e2e8f0; }

.btn-meeting {
    background-color: #fef2f2;
    color: #ef4444;
    border: 2px solid #fecaca;
}
.btn-meeting:hover { background-color: #fee2e2; }

.btn-start-project {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    background-color: var(--text-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    white-space: nowrap;
}
.btn-start-project:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    background-color: var(--text-secondary);
    color: white;
}

.btn-try-demo {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    white-space: nowrap;
}
.btn-try-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-color: var(--primary-dark);
    color: white;
}

@media (max-width: 768px) {
    .order-buttons-wrapper {
        flex-direction: column;
    }
    .btn-start-project, .btn-try-demo {
        order: -1;
        width: 100%;
        padding: 16px 20px;
        font-size: 18px;
    }
    .btn-process, .btn-meeting {
        width: 100%;
    }
}

/* Currency Modal Styles */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}
.currency-grid::-webkit-scrollbar {
    width: 6px;
}
.currency-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.currency-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.currency-card:hover {
    background: rgba(0,0,0,0.03);
}
.currency-card.active {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}
.currency-flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.currency-info {
    display: flex;
    flex-direction: column;
}
.c-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}
.c-code {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

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

/* Update currency toggle button */
.currency-modal-toggle {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    background: rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text-main);
}
.currency-modal-toggle:hover {
    background: rgba(0,0,0,0.06);
}
