/* 
   Redesign 2025 - Professional & Modern UI 
   Palette: Emerald Green, Gold, White, Dark Slate
*/

:root {
    --primary-color: #a38755;
    /* Gold/Brown */
    --primary-dark: #064e3b;
    /* Emerald 900 */
    --primary-light: #10b981;
    /* Emerald 500 */
    --accent-color: #d97706;
    /* Amber 600 */
    --accent-light: #fbbf24;
    /* Amber 400 */
    --text-dark: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

/* Global Reset & Typography */
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* =========================================
   1. Header Redesign
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 1rem 0;
}

.site-header.scrolled {
    background: #a38755;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
    transition: var(--transition);
}

.site-header.scrolled .logo-container img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.site-header.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.header-cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.header-cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    color: var(--text-dark);
}

/* Mobile Menu Button */
.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.site-header.scrolled .mobile-toggle {
    color: var(--text-dark);
}

/* =========================================
   2. Hero Section Redesign
   ========================================= */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(163, 135, 85, 0.85), rgba(30, 41, 59, 0.8));
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   3. Cards Redesign (Packages & Hotels)
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.modern-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid #e2e8f0;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-meta i {
    color: var(--primary-light);
    margin-left: 0.25rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-features li i {
    color: var(--primary-light);
}

.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.card-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* =========================================
   4. Footer Redesign
   ========================================= */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-heading {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-light);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(-5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item i {
    color: var(--accent-light);
    margin-top: 0.3rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* =========================================
   5. Features Section
   ========================================= */
.features-section {
    padding: 5rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
    animation: iconColorShift 5s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    transform: rotateY(360deg);
}

.feature-card:nth-child(1) .feature-icon {
    animation: iconColorShift 5s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation: iconColorShift 5s ease-in-out infinite;
}

.feature-card:nth-child(3) .feature-icon {
    animation: iconColorShift 5s ease-in-out infinite;
}

.feature-card:nth-child(4) .feature-icon {
    animation: iconColorShift 5s ease-in-out infinite;
}

.feature-card:nth-child(5) .feature-icon {
    animation: iconColorShift 5s ease-in-out infinite;
}

.feature-card:nth-child(6) .feature-icon {
    animation: iconColorShift 5s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   6. Gallery Section
   ========================================= */
.gallery-section {
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

.gallery-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.gallery-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* =========================================
   Responsive & Mobile Fixes
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--white);
        z-index: 1001;
    }

    .site-header.scrolled .mobile-toggle {
        color: var(--text-dark);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 5rem 2rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav-link {
        color: var(--text-dark);
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-link::after {
        display: none;
    }

    /* Mobile Header Fixes */
    .header-inner {
        padding: 0.5rem 0;
    }

    .logo-container img {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .card-grid,
    .features-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .modern-card,
    .feature-card,
    .gallery-item {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1rem auto;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        display: block;
    }

    .footer-top .col-lg-4,
    .footer-top .col-lg-2 {
        text-align: center;
    }

    .footer-links li {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .feature-card {
        padding: 1rem 0.75rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto 0.75rem auto;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Icon Animations */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(163, 135, 85, 0.4);
    }
}

@keyframes iconBounce {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

@keyframes iconRotate {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@keyframes iconWobble {
    0%, 100% { 
        transform: translateX(0); 
    }
    25% { 
        transform: translateX(-10px); 
    }
    75% { 
        transform: translateX(10px); 
    }
}

@keyframes iconZoom {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
}

@keyframes iconColorShift {
    0% {
        background: linear-gradient(45deg, #a38755, #d97706);
    }
    25% {
        background: linear-gradient(45deg, #d97706, #fbbf24);
    }
    50% {
        background: linear-gradient(45deg, #fbbf24, #a38755);
    }
    75% {
        background: linear-gradient(45deg, #d97706, #fbbf24);
    }
    100% {
        background: linear-gradient(45deg, #a38755, #d97706);
    }
}