/* ======================================
   Falcon Flags - Premium Theme (Gold/Dark)
   ====================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #f59e0b;
    --primary-dark: #b45309;
    --secondary-color: #111827;
    /* Dark Gray/Black */
    --light-bg: #f9fafb;
    --dark-bg: #0f0f0f;
    --text-main: #374151;
    --text-muted: #6b7280;
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 76px;
    /* Navbar height */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Typography Utility */
.fw-extra-bold {
    font-weight: 800;
}

.ls-2 {
    letter-spacing: 2px;
}

/* ================= Navbar ================= */
.falcon-navbar {
    background: rgba(10, 10, 10, 0.85);
    /* Darker, more transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    /* Subtle gold border */
    padding: 15px 0;
    transition: all 0.4s ease;
}

.falcon-navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.falcon-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 18px;
    position: relative;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.falcon-navbar .nav-link:hover,
.falcon-navbar .nav-link.active {
    color: var(--primary-color) !important;
}

/* Elegant Underline Effect */
.falcon-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.falcon-navbar .nav-link:hover::after,
.falcon-navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Cart Icon */
.cart-link {
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid #1a1a1a;
}

/* ================= Buttons ================= */
.btn {
    border-radius: 8px;
    /* Slightly squarer for professional look */
    font-weight: 600;
    padding: 12px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gold-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #111;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline-dark {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ================= Hero Section ================= */
.hero-section {
    position: relative;
    background: #fdfdfd;
}

.hero-blob {
    filter: blur(80px);
    opacity: 0.15;
}

.experience-badge {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ================= Cards ================= */
.feature-box {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-color: var(--primary-color);
}

.icon-circle {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.feature-box:hover .icon-circle {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: scale(1.1) rotate(5deg);
}

/* Fix Icon Sizing */
.icon-box,
.icon-square,
.social-btn,
.contact-pill i {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    /* Ensure perfect square/circle */
}

/* Specific fixed sizes for consistency */
.icon-box {
    width: 60px;
    height: 60px;
    line-height: 1;
}

.icon-square {
    width: 70px;
    height: 70px;
    line-height: 1;
}

/* ================= Gallery ================= */
.gallery-card {
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-card img {
    transition: transform 0.6s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* ================= Footer ================= */
.main-footer {
    background-color: #111827;
    color: #9ca3af;
    padding-top: 60px;
    border-top: 5px solid var(--primary-color);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

.contact-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.contact-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    color: var(--primary-color);
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

/* ================= Admin Styles Override ================= */
body.admin-body {
    background: #f3f4f6;
    padding-top: 0;
    /* Admin has its own layout */
}

.admin-sidebar {
    background: #1f2937;
    color: #fff;
}

.admin-sidebar .nav-link {
    color: #d1d5db;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: #000 !important;
}

/* ================= Cart & Utilities ================= */
.cart-float,
.whatsapp-float {
    z-index: 1000;
}

/* ================= Page Header ================= */
.page-header {
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.8)), url('../images/page-bg.jpg');
    /* You might need to change the image path if it doesn't exist, generic gradient serves as fallback */
    background-size: cover;
    background-position: center;
    background-color: #111;
    color: #fff;
    padding: 160px 0 80px;
    /* Large top padding to clear fixed navbar */
    text-align: center;
    margin-bottom: 50px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-header-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    min-height: 60vh;
    /* Ensure footer doesn't float up too high on empty pages */
    padding-bottom: 80px;
}

/* ================= Mobile Responsiveness ================= */
@media (max-width: 991px) {
    .skew-bg {
        display: none;
    }

    .hero-section {
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    /* Fix Hero Images on Mobile */
    .hero-section img {
        max-width: 100%;
        height: auto;
    }

    .carousel-item img {
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }

    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    /* Navbar Toggles */
    .navbar-collapse {
        background: #111;
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }

    /* Smaller Floating Buttons */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .cart-float {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 70px;
        /* Stacked above whatsapp (15 + 45 + 10 gap) */
        right: 15px;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    /* Hero Text Size */
    .display-3 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    /* Carousel */
    .carousel-inner {
        border-radius: 12px;
    }

    /* Section Padding */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}