/* =========================================================================
   Al-Fehri Travel & Tours | Premium Glassmorphism UI
   ========================================================================= */

   :root {
    /* Brand Colors derived from Logo */
    --color-primary-hsl: 348, 83%, 47%; /* Red #da1536 */
    --color-secondary-hsl: 145, 100%, 22%; /* Green #00702a */
    
    /* Background & Text Colors */
    --bg-main: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, hsl(var(--color-primary-hsl)) 0%, hsl(var(--color-secondary-hsl)) 100%);
    --gradient-primary: linear-gradient(135deg, hsl(348, 83%, 47%) 0%, hsl(348, 83%, 60%) 100%);
    
    /* Typography */
    --font-family: 'Cairo', sans-serif;
    
    /* Rounded & Transitions */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   Base Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* =========================================================================
   Glowing Orbs Background (Aesthetic)
   ========================================================================= */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.5;
    animation: floatOrb 20s infinite alternate;
}

.shape-red {
    width: 500px;
    height: 500px;
    background: hsla(var(--color-primary-hsl), 0.3);
    top: -100px;
    right: -100px;
}

.shape-green {
    width: 400px;
    height: 400px;
    background: hsla(var(--color-secondary-hsl), 0.25);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.shape-yellow {
    width: 300px;
    height: 300px;
    background: hsla(45, 100%, 50%, 0.15);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-green { color: hsl(var(--color-secondary-hsl)); }
.mt-2 { margin-top: 1.5rem; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* =========================================================================
   Glassmorphism Components
   ========================================================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn i { font-size: 1.1em; }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px hsla(var(--color-primary-hsl), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--color-primary-hsl), 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-dark);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* =========================================================================
   Header & Navbar
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: hsl(var(--color-primary-hsl));
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--color-secondary-hsl));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.floating {
    animation: floatItem 6s ease-in-out infinite;
}

.floating.delay-1 {
    animation-delay: -3s;
    transform: translateX(-40px);
}

.hero-card {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 250px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.85); /* Slightly more opaque for contrast */
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.hero-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.hero-card p { font-size: 0.85rem; color: var(--text-light); }

@keyframes floatItem {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================================================
   Services Section
   ========================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-card {
    text-align: center;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: hsla(var(--color-primary-hsl), 0.1);
    color: hsl(var(--color-primary-hsl));
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
}

.service-card h3 { margin-bottom: 15px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* =========================================================================
   Offers / Umrah Section
   ========================================================================= */
.offers-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
    overflow: hidden;
}

.offers-content {
    flex: 1;
    padding: 50px;
}

.features-list {
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.features-list i { color: hsl(var(--color-secondary-hsl)); }

.offers-image {
    flex: 1;
    min-height: 400px;
    background: linear-gradient(135deg, hsla(var(--color-secondary-hsl), 0.2), hsla(var(--color-secondary-hsl), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-size: 5rem;
    color: hsl(var(--color-secondary-hsl));
    opacity: 0.5;
}

/* =========================================================================
   Contact Section
   ========================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--color-primary-hsl));
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-item h4 { margin-bottom: 2px; font-size: 1.1rem; }
.info-item p { color: var(--text-light); }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.social-icon:hover {
    background: var(--gradient-brand);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: hsl(var(--color-primary-hsl));
    background: white;
    box-shadow: 0 0 0 4px hsla(var(--color-primary-hsl), 0.1);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-title { font-size: 2.8rem; }
    .offers-wrapper { flex-direction: column; }
    .offers-image { width: 100%; padding: 50px 0; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .header .btn-primary { display: none; }
    
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-large { width: 100%; }
    
    .offers-content { padding: 30px; }
    .features-list { grid-template-columns: 1fr; }
}
