:root {
    /* Primary brand colors - remain constant */
    --primary: #00d2ff;
    --primary-dark: #0099cc;
    --accent: #ffdd59;
    --success: #2ecc71;

    /* Light Mode Variables */
    --bg-body: #f8fbff;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-footer: #1e272e;
    --bg-light: #f8fbff;
    --bg-input: #ffffff;

    --text-main: #1e272e;
    --text-inverse: #ffffff;
    --text-gray: #808e9b;
    --text-logo: #1e272e;

    --border-input: #edf2f7;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --container: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
html.dark {
    --bg-body: #0f172a;
    /* Tailwind slate-900 */
    --bg-card: #1e293b;
    /* Tailwind slate-800 */
    --bg-header: rgba(15, 23, 42, 0.9);
    --bg-footer: #020617;
    --bg-light: #1e293b;
    --bg-input: #334155;

    --text-main: #f8fafc;
    --text-inverse: #ffffff;
    --text-gray: #94a3b8;
    --text-logo: #ffffff;

    --border-input: #475569;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    gap: 10px;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-inverse);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-footer);
    color: var(--text-inverse);
}

.btn-secondary:hover {
    background: #000;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--bg-card);
    color: var(--primary-dark);
    border-color: var(--bg-card);
}

.full-width {
    width: 100%;
}

/* Header */
header {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-logo);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.logo span span {
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 600;
    color: var(--text-main);
}

.desktop-nav a:hover {
    color: var(--primary);
}

/* Update icon on dark mode */
html.dark .theme-toggle i::before {
    content: "\f185";
    /* sun icon */
}

.theme-toggle {
    background: var(--bg-light);
    color: var(--text-main);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: rotate(30deg);
    background: var(--primary);
    color: var(--text-inverse);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #1e272e 0%, #2c3e50 100%);
    color: var(--text-inverse);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.badge {
    background: rgba(0, 210, 255, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    /* Always light for visibility on photo */
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e272e;
    font-weight: 700;
    animation: floating 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--success);
    font-size: 1.4rem;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Calculator Section */
.calculator-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-logo);
    /* Logo color matches main text in both themes */
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

.counter {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
}

.counter button {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--text-main);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
}

.counter button:hover {
    background: var(--border-input);
}

.counter input {
    border: none;
    text-align: center;
    padding: 0;
}

.price-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-input);
}

.price-label {
    display: block;
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.price-value .currency {
    font-size: 1.2rem;
    margin-right: 5px;
}

.price-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

.feature-card.active {
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-gray);
}

/* Booking Section */
.booking-section {
    padding: 100px 0;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.booking-text h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.booking-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.booking-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.booking-perks li i {
    color: var(--success);
}

.booking-form-card {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer */
footer {
    background: var(--bg-footer);
    color: var(--text-inverse);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info .logo {
    color: var(--text-inverse);
    margin-bottom: 25px;
}

.footer-info p {
    opacity: 0.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links li:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    opacity: 0.7;
}

.footer-contact li i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Mobile Action Bar */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.action-item {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

.action-item i {
    font-size: 1.2rem;
    color: var(--text-logo);
}

.action-item.primary {
    background: var(--primary);
    color: var(--text-inverse);
}

.action-item.primary i {
    color: var(--text-inverse);
}

/* Responsiveness */
@media (max-width: 992px) {

    .hero-content,
    .calc-wrapper,
    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-btns,
    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-action-bar {
        display: grid;
    }

    body {
        padding-bottom: 70px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .form-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}