@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
    --primary-green: #0d4a3a;
    --primary-green-hover: #083328;
    --accent-slate: #4f6d7a;
    --accent-mint: #2eb88a;
    --bg-main: linear-gradient(180deg, #ffffff 0%, #f1f8f5 50%, #e4f2ec 100%);
    --bg-section-alt: #f4faf7;
    --bg-card: #ffffff;
    --bg-input: #f8fbf9;
    --text-main: #0e241d;
    --text-muted: #455c54;
    --text-inverse: #ffffff;
    --border-color: rgba(13, 74, 58, 0.14);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 8px 32px rgba(13, 74, 58, 0.1);
    --card-shadow: 0 14px 34px rgba(13, 74, 58, 0.08);
    --hero-overlay: linear-gradient(135deg, rgba(10, 42, 33, 0.78) 0%, rgba(35, 62, 74, 0.65) 100%);
    --transition-smooth: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --primary-green: #1e7a5f;
    --primary-green-hover: #289b79;
    --accent-slate: #7a9eb1;
    --accent-mint: #3cd09e;
    --bg-main: linear-gradient(180deg, #071411 0%, #0b1e19 50%, #0f2620 100%);
    --bg-section-alt: #0b1c17;
    --bg-card: #112922;
    --bg-input: #0a1915;
    --text-main: #f4f7f6;
    --text-muted: #b5c9c2;
    --text-inverse: #ffffff;
    --border-color: rgba(122, 158, 177, 0.22);
    --glass-bg: rgba(10, 28, 23, 0.72);
    --glass-border: rgba(122, 158, 177, 0.35);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    --hero-overlay: linear-gradient(135deg, rgba(5, 18, 14, 0.84) 0%, rgba(18, 38, 46, 0.72) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

html[dir="ltr"] body {
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 12px;
    border: 1.5px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-main);
    position: relative;
    padding: 0.35rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2.5px;
    background: var(--accent-mint);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-mint);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.control-btn {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    border-color: var(--accent-mint);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-slate));
    color: var(--text-inverse);
    box-shadow: 0 6px 20px rgba(13, 74, 58, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(46, 184, 138, 0.32);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-3px);
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    color: #ffffff;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #e4f7f0;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
    color: #e2ece9;
    margin-bottom: 2.2rem;
    max-width: 680px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.services-section,
.why-section,
.booking-section {
    padding: 5.5rem 0;
}

.why-section {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-slate));
    border-radius: 4px;
    margin: 0.6rem auto 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    perspective: 1200px;
}

.service-card.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.service-card:hover .card-inner {
    transform: translateY(-10px) rotateX(4deg) rotateY(-4deg);
    border-color: var(--accent-mint);
    box-shadow: 0 24px 48px rgba(13, 74, 58, 0.22);
}

html[dir="ltr"] .service-card:hover .card-inner {
    transform: translateY(-10px) rotateX(4deg) rotateY(4deg);
}

.card-media {
    position: relative;
    height: 215px;
    overflow: hidden;
    transform: translateZ(20px);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-media img {
    transform: scale(1.08);
}

.price-tag {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 14px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-slate));
    color: #ffffff;
    padding: 0.38rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: translateZ(35px);
}

.card-body {
    padding: 1.65rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transform: translateZ(25px);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.65rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--accent-mint);
    font-size: 0.95rem;
    align-self: flex-start;
}

.card-link:hover {
    transform: translateX(-5px);
    color: var(--accent-slate);
}

html[dir="ltr"] .card-link:hover {
    transform: translateX(5px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem 1.85rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent-slate);
}

.feature-number {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-slate));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.32rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.booking-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.25rem 2.75rem;
    box-shadow: var(--card-shadow);
    max-width: 880px;
    margin: 0 auto;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width,
.form-actions.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-mint);
    box-shadow: 0 0 0 3px rgba(46, 184, 138, 0.18);
}

.btn-submit {
    width: 100%;
    padding: 0.95rem;
    font-size: 1.05rem;
}

.form-feedback {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: 700;
    color: var(--accent-mint);
    min-height: 1.5rem;
}

.site-footer {
    background: #06130f;
    color: #e4edea;
    padding-top: 4.5rem;
    border-top: 1px solid rgba(122, 158, 177, 0.25);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.footer-brand .brand-name {
    color: #ffffff;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-about {
    color: #b5c9c2;
    font-size: 0.96rem;
    max-width: 360px;
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #b5c9c2;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-mint);
    padding-inline-start: 4px;
}

.footer-bottom {
    background: #040d0a;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.disclaimer {
    color: #93b3c4;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
}

.copyright {
    color: #829991;
    font-size: 0.85rem;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: absolute;
        top: 78px;
        inset-inline: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 5%;
        display: none;
        box-shadow: var(--card-shadow);
    }

    .nav-menu.open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-actions .btn-primary {
        display: none;
    }

    .booking-wrapper {
        padding: 2.25rem 1.5rem;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}