/* ============================================
   Fonts
   ============================================ */
@font-face {
    font-family: 'Fakieh';
    src: url('../../fonts/Fakieh.woff2') format('woff2'),
         url('../../fonts/Fakieh.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B4513;
    --primary-dark: #654321;
    --primary-light: #A0522D;
    --secondary: #D2691E;
    --secondary-dark: #CD853F;
    --secondary-light: #DEB887;
    --accent: #F4A460;
    --accent-dark: #D2B48C;
    --accent-light: #FFE4B5;
    --brown: #8B4513;
    --brown-dark: #654321;
    --brown-light: #DEB887;
    --dark: #3E2723;
    --dark-light: #5D4037;
    --white: #ffffff;
    --cream: #FFF8DC;
    --light: #F5F5DC;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Fakieh', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(0px);
    padding: 0;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

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

.navbar.scrolled .menu-toggle span {
    background: var(--dark);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: width 0.3s ease;
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu.active .nav-link {
        color: var(--dark);
    }

    .menu-toggle {
        display: flex;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.05) 40%, 
        rgba(255, 255, 255, 0.02) 60%, 
        rgba(255, 255, 255, 0.01) 80%, 
        transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.9) 15%, 
        rgba(0, 0, 0, 0.7) 30%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.2) 70%, 
        rgba(0, 0, 0, 0.05) 85%, 
        transparent 100%);
    -webkit-mask-image: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.9) 15%, 
        rgba(0, 0, 0, 0.7) 30%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.2) 70%, 
        rgba(0, 0, 0, 0.05) 85%, 
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    direction: rtl;
}

.hero-text {
    flex: 1;
    text-align: right;
    color: var(--white);
    direction: rtl;
    padding-right: 2rem;
}

.hero-floating-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    direction: rtl;
    position: relative;
}

.floating-img {
    max-width: 110%;
    width: 110%;
    height: auto;
    max-height: 650px;
    min-height: 550px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
    transform: scale(1.1);
}

/* Coffee Beans Decoration */
.coffee-beans-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.coffee-beans-decoration::before,
.coffee-beans-decoration::after {
    content: '☕';
    position: absolute;
    font-size: 20px;
    opacity: 0.3;
    color: var(--brown-light);
    animation: floatBeans 15s ease-in-out infinite;
}

.coffee-beans-decoration::before {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.coffee-beans-decoration::after {
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}

@keyframes floatBeans {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(-20px) rotate(270deg);
        opacity: 0.5;
    }
}

/* Additional coffee bean particles */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(139, 69, 19, 0.15) 3px, transparent 3px),
        radial-gradient(circle at 85% 75%, rgba(139, 69, 19, 0.15) 3px, transparent 3px),
        radial-gradient(circle at 45% 55%, rgba(139, 69, 19, 0.12) 2.5px, transparent 2.5px),
        radial-gradient(circle at 65% 15%, rgba(139, 69, 19, 0.12) 2.5px, transparent 2.5px),
        radial-gradient(circle at 25% 85%, rgba(139, 69, 19, 0.15) 3px, transparent 3px),
        radial-gradient(circle at 75% 35%, rgba(139, 69, 19, 0.15) 3px, transparent 3px),
        radial-gradient(circle at 35% 40%, rgba(139, 69, 19, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 55% 80%, rgba(139, 69, 19, 0.1) 2px, transparent 2px);
    background-size: 300px 300px, 350px 350px, 280px 280px, 320px 320px, 300px 300px, 340px 340px, 250px 250px, 270px 270px;
    background-position: 0 0, 150px 150px, 300px 300px, 450px 450px, 600px 600px, 750px 750px, 200px 200px, 400px 400px;
    animation: coffeeBeansFloat 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes coffeeBeansFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-50px) translateX(30px);
    }
    100% {
        transform: translateY(-100px) translateX(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        direction: rtl;
    }

    .hero-floating-image {
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        direction: rtl;
    }

    .floating-img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .floating-img {
        max-height: 500px;
        min-height: 400px;
        width: 120%;
        max-width: 120%;
        transform: scale(1.1);
    }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--cream);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--gray-700);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   Products Section
   ============================================ */
.products {
    background: var(--white);
}

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

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    background: var(--white);
    cursor: pointer;
    height: 400px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.95) 0%, rgba(139, 69, 19, 0.7) 50%, transparent 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

.product-tagline {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .product-card {
        height: 350px;
    }

    .product-tagline {
        font-size: 1.2rem;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light) 100%);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--white);
}

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

.info-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-content p {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.info-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.footer-contact li {
    margin-bottom: 0.5rem;
    color: var(--gray-300);
}

.footer-contact a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-text {
    color: var(--gray-400);
}

.credits-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.credits-link:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-bottom {
        text-align: center;
    }
}

