/* Combined CSS for Mahdi Travels Website */
:root {
    --primary: #2d87f0;
    --secondary: #ff6b6b;
    --accent: #4ecdc4;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --text: #1a1a2e;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --footer-bg: #1a1a2e;
    --footer-text: #ffffff;
    --input-bg: #ffffff;
    --testimonial-bg: #ffffff;
}

[data-theme="dark"] {
    --text: #f8f9fa;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --header-bg: rgba(30, 30, 30, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --footer-bg: #0d0d0d;
    --footer-text: #f8f9fa;
    --input-bg: #2d2d2d;
    --testimonial-bg: #2d2d2d;
    --gray: #adb5bd;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 15px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-nav:hover {
    background-color: transparent;
    outline: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: #1a73e8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    color: white;
    text-align: center;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-attachment: fixed;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 135, 240, 0.85), rgba(78, 205, 196, 0.85));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    overflow: hidden;
}

.hero-search input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-search button {
    border-radius: 0;
    white-space: nowrap;
    border: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.stat p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.hero-nav {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(50%);
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    transition: color 0.3s ease;
}

/* Destinations Section */
.destinations {
    padding: 2rem 0 5rem;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
    position: relative;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.card-img {
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.destination-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.card-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Packages Section */
.packages {
    padding: 5rem 0;
    background-color: var(--bg);
    transition: background-color 0.3s ease;
}

.package-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem 1rem;
    background: var(--card-bg);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px var(--shadow-color);
    color: var(--text);
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.package-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.package-card .card-img {
    height: 200px;
}

.package-info {
    padding: 1.5rem;
}

.package-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.package-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.package-features {
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.feature-item i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.package-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-duration {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color 0.3s ease;
}

/* Deal Section */
.deal {
    background: linear-gradient(to right, var(--primary), var(--accent));
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.deal-content {
    max-width: 800px;
    margin: 0 auto;
}

.deal h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.deal p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.countdown {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.countdown-item {
    margin: 0 1rem;
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg);
    padding: 5rem 0;
    transition: background-color 0.3s ease;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--testimonial-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-author strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Newsletter Section */
.newsletter {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.2rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    outline: none;
    min-width: 220px;
    background-color: var(--input-bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.newsletter-form button {
    border-radius: 50px;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.newsletter-message {
    margin-top: 1rem;
    font-size: 1.05rem;
    min-height: 1.5em;
}

.newsletter-message.success {
    color: #4ecdc4;
}

.newsletter-message.error {
    color: #ffb3b3;
}

/* Booking Section */
.booking-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, rgba(45, 135, 240, 0.8), rgba(78, 205, 196, 0.8)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 100vh;
}

.booking-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px var(--shadow-color);
    width: 100%;
    max-width: 700px;
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 135, 240, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.form-input.error,
.form-select.error {
    border-color: var(--secondary);
}

.error-message {
    color: var(--secondary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-input.error+.error-message,
.form-select.error+.error-message {
    display: block;
}

.success-message {
    background-color: #4ecdc4;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    background: var(--primary);
    color: #fff;
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0.85;
}

#scrollToTopBtn:hover {
    background: var(--secondary);
    opacity: 1;
}

#scrollToTopBtn i {
    pointer-events: none;
}

/* Animations */
@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.show-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), transform 0.7s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity, transform;
}

.show-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.show-on-scroll-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1), transform 0.7s cubic-bezier(.4, 0, .2, 1);
}

.show-on-scroll-stagger.is-visible > * {
    opacity: 1;
    transform: none;
}

.show-on-scroll-stagger > *:nth-child(1) {
    transition-delay: 0.05s;
}

.show-on-scroll-stagger > *:nth-child(2) {
    transition-delay: 0.15s;
}

.show-on-scroll-stagger > *:nth-child(3) {
    transition-delay: 0.25s;
}

.show-on-scroll-stagger > *:nth-child(4) {
    transition-delay: 0.35s;
}

.show-on-scroll-stagger > *:nth-child(5) {
    transition-delay: 0.45s;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        padding: 8rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .hero-search input {
        border-radius: 12px 12px 0 0;
    }
    
    .hero-search button {
        border-radius: 0 0 12px 12px;
        border: none;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .hero-nav {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .countdown-item {
        margin: 0 0.5rem;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
        padding: 0.7rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .booking-form {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    .logo{
        font-size: 15px;
    }
}