/* ----------------------------------------------------
   DESIGN SYSTEM & CUSTOM STYLES - ABO ALAA BOOKSTORE
------------------------------------------------------- */

:root {
    /* Color Palette */
    --primary: #c99a3c;
    --primary-hover: #ad802a;
    --primary-light: #f7eedb;
    --secondary: #229ED9; /* Telegram Blue */
    --whatsapp: #25D366; /* WhatsApp Green */
    --accent: #ff477e; /* Cute/Pink accents for stationery */
    
    /* Backgrounds */
    --bg-main: #faf7f2; /* Warm Cream */
    --bg-card: #ffffff;
    --bg-dark: #161513; /* Warm Dark Charcoal */
    --bg-dark-card: #201e1a;
    
    /* Text Colors */
    --text-primary: #2d2a26;
    --text-secondary: #6e675f;
    --text-light: #ffffff;
    --text-light-muted: #bdafa2;
    
    /* Shadows & Borders */
    --border-color: #eadecf;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(107, 95, 80, 0.05), 0 2px 4px -1px rgba(107, 95, 80, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(107, 95, 80, 0.08), 0 4px 6px -2px rgba(107, 95, 80, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(107, 95, 80, 0.1), 0 10px 10px -5px rgba(107, 95, 80, 0.04);
    --shadow-premium: 0 30px 60px -15px rgba(45, 42, 38, 0.15);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(107, 95, 80, 0.06);
    
    /* Fonts */
    --font-main: 'Cairo', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   BASE STYLES & RESET
------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ----------------------------------------------------
   TYPOGRAPHY & UTILITIES
------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.3;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background-color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 50px;
}

.font-accent {
    font-weight: 700;
    color: var(--accent);
    background-color: #ffe6ec;
}

/* ----------------------------------------------------
   BUTTONS
------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 8px 16px -4px rgba(201, 154, 60, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -4px rgba(201, 154, 60, 0.5);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
    box-shadow: 0 8px 16px -4px rgba(34, 158, 217, 0.3);
}

.btn-secondary:hover {
    background-color: #1b85b8;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -4px rgba(34, 158, 217, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ----------------------------------------------------
   GLASS CARDS
------------------------------------------------------- */
.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(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(201, 154, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ----------------------------------------------------
   MAIN HEADER NAVIGATION
------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* ----------------------------------------------------
   HERO SECTION
------------------------------------------------------- */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f7eedb 0%, #faf7f2 100%);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content .hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(201, 154, 60, 0.1);
    color: var(--primary-hover);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Hero card image wrap */
.hero-card-wrapper {
    position: relative;
}

.hero-glass-card {
    padding: 24px;
}

.library-preview {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.preview-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.hero-glass-card:hover .preview-img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 24px;
    right: 24px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 24px;
    left: 24px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ----------------------------------------------------
   QUICK STATS BAR
------------------------------------------------------- */
.stats-bar {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 800;
}

.stat-box .stat-label {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ----------------------------------------------------
   ABOUT SECTION
------------------------------------------------------- */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img-box {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.about-floating-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 260px;
}

.about-floating-box h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-floating-box p {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.about-content .about-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 32px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.about-point {
    display: flex;
    gap: 16px;
}

.point-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.point-text h5 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.point-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-actions {
    display: flex;
    gap: 16px;
}

/* ----------------------------------------------------
   PACKAGES SECTION
------------------------------------------------------- */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(107, 95, 80, 0.15);
}

.service-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 32px;
    position: relative;
    flex-grow: 1;
}

.service-icon {
    position: absolute;
    top: -30px;
    left: 32px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

.service-card-content h3 {
    margin-top: 10px;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.package-price {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.service-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-list li i {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

/* ----------------------------------------------------
   CONTACT & MAP SECTION
------------------------------------------------------- */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.contact-item-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.contact-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-wrapper.telegram-icon {
    background-color: rgba(34, 158, 217, 0.1);
    color: var(--secondary);
}

.contact-icon-wrapper.whatsapp-card-icon {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp);
}

.contact-icon-wrapper.tiktok-icon {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.contact-icon-wrapper.location-icon {
    background-color: rgba(255, 71, 126, 0.1);
    color: var(--accent);
}

.contact-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.contact-text a {
    font-size: 1.1rem;
    font-weight: 800;
}

.contact-text a:hover {
    color: var(--primary);
}

.map-panel {
    padding: 16px;
    height: 480px;
}

.map-container {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.map-placeholder-bg {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #d3d3d3 25%, #e6e6e6 25%, #e6e6e6 50%, #d3d3d3 50%, #d3d3d3 75%, #e6e6e6 75%, #e6e6e6 100%);
    background-size: 40px 40px;
    filter: grayscale(1);
    opacity: 0.25;
}

.interactive-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 42, 38, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 24px;
    z-index: 5;
}

.bouncing-pin {
    color: var(--accent);
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.interactive-map-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.interactive-map-overlay p {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* ----------------------------------------------------
   MAIN FOOTER
------------------------------------------------------- */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--text-light);
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4, .footer-info h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul, .footer-info ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 4px;
}

.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-info li i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    font-size: 0.85rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (MOBILE ADAPTATION)
------------------------------------------------------- */

@media (max-width: 992px) {
    /* Container Grid stackings */
    .hero-container, 
    .about-container, 
    .services-grid, 
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-floating-box {
        bottom: 10px;
        right: 10px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Core Typography */
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .section-header h2,
    .about-content h2,
    .contact-info-panel h2 {
        font-size: 1.8rem;
    }

    /* Navbar styling toggles */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
        z-index: 999;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .header-tele-btn {
        display: none; /* Hide header telegram btn on small screens */
    }
    
    /* Stats grid stackings */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .about-actions {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}
