@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #f25a59;
    --primary-glow: rgba(242, 90, 89, 0.4);
    --secondary: #0a0a0a;
    --bg-dark: #050505;
    --bg-orange: #f25a59; /* Vibrant brand orange */
    --bg-card: rgba(15, 15, 15, 0.7);
    --text-white: #ffffff;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --glass: rgba(20, 20, 20, 0.6);
    --glass-white: rgba(255, 255, 255, 0.15);
    --border: rgba(255, 255, 255, 0.05);
    --border-white: rgba(255, 255, 255, 0.2);
    --radius: 24px;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

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

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 25px var(--primary-glow); }
    100% { box-shadow: 0 0 5px var(--primary-glow); }
}

.reveal {
    opacity: 0;
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    animation: fadeInUp 1.2s forwards;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.8rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 6%;
    background: rgba(0, 0, 0, 0.85);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo img {
    height: 45px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(5deg) scale(1.1);
}

nav {
    display: flex;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 1px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 25px;
}

.cart-trigger {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-weight: 600;
}

.cart-trigger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(5,5,5,1)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent, rgba(0,0,0,0.8));
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--primary-glow);
    z-index: -1;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 1.4rem 4rem;
    background: white;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.cta-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Portfolio Section */
.section {
    padding: 150px 6%;
}

.section-header {
    text-align: left;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(242, 90, 89, 0.3);
    box-shadow: var(--shadow-soft);
}

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 25px;
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

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

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.product-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.add-btn {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.product-card:hover .add-btn {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.02);
}

/* Sidebar Cart */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: absolute;
    right: -550px;
    top: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    transition: var(--transition);
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.cart-overlay.open .cart-panel {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cart-header h3 {
    font-size: 2rem;
    text-transform: uppercase;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 15px;
}

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
}

.cart-footer {
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.checkout-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.checkout-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Floating Scroll Animation */
.chopsticks-wrapper {
    position: fixed;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 60px;
    height: auto;
    z-index: 10000; /* Over everything */
    pointer-events: none;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.chopsticks-wrapper img {
    width: 100%;
}

@media (max-width: 900px) {
    .chopsticks-wrapper {
        display: none; /* Hide on small screens for cleaner UI */
    }
}

/* Footer Section */
footer {
    padding: 120px 6%;
    background: #000;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

footer .logo {
    margin-bottom: 2rem;
}

footer p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 2.5rem;
    font-size: 1.8rem;
    margin-bottom: 4rem;
}

.social-links i {
    color: white;
    transition: var(--transition);
    cursor: pointer;
}

.social-links i:hover {
    color: var(--primary);
    transform: translateY(-8px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Utility: RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

/* Redesigned About Section */
.about-section {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    background: #000;
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    opacity: 0.4;
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 6%;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.story-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(15px);
}

.story-card.full-width {
    grid-column: 1 / -1;
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(20, 20, 20, 0.6);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(242, 90, 89, 0.05), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.story-card:hover .card-glow {
    opacity: 1;
}

.bilingual-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.story-card.full-width .bilingual-content {
    gap: 80px;
}

.bilingual-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bilingual-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-cta h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .story-grid { grid-template-columns: 1fr; }
    .bilingual-content { grid-template-columns: 1fr; gap: 30px; }
    .about-hero-image { height: 400px; }
}

@media (max-width: 768px) {
    .story-card { padding: 30px; }
    .bilingual-content h3 { font-size: 1.5rem; }
    .about-cta h3 { font-size: 1.6rem; }
}

.about-footer {
    background: transparent !important;
    border-top: 1px solid var(--border-white) !important;
}

/* Partners Section - Matte Snow White Design with Melted Transition (سايح) */
.matte-partners {
    background: linear-gradient(to bottom, #f7f7f7 85%, #f25a59 100%);
    color: #333;
    padding: 120px 8% 0; /* No bottom padding, handled by melted effect */
    position: relative;
    overflow: hidden;
}

.matte-partners::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #f25a59);
    pointer-events: none;
}

.matte-partners .matte-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -2px;
    color: #222;
    text-transform: uppercase;
}

.matte-partners .matte-title span {
    color: var(--primary);
}

.matte-partners .matte-title.rtl {
    font-size: 4rem;
    font-family: inherit;
    margin-top: -20px;
}

.matte-partners .matte-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 30px auto;
    font-weight: 300;
    line-height: 1.8;
}

.partners-grid-container {
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 100px; /* Space for grid before melt */
}

.matte-partners .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.matte-partners .partner-card {
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.matte-partners .partner-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.08);
}

.matte-partners .partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.matte-partners .partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.matte-partners .partner-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.matte-partners .partner-info h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 5px;
    font-weight: 700;
}

.matte-partners .partner-info p,
.partners-grid-section .partner-info p {
    font-size: 0.95rem;
    color: #888;
    font-weight: 300;
}

/* Partners Page Specifics */
.partners-hero {
    padding: 200px 6% 100px;
    text-align: center;
    background: linear-gradient(to bottom, #111, #000);
}

.partners-grid-section {
    padding: 100px 6%;
    background: #f7f7f7;
    color: #333;
}

.partners-grid-section .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.partners-grid-section .partner-card {
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.partners-grid-section .partner-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.partners-grid-section .partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.partners-grid-section .partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.partners-grid-section .partner-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.partners-grid-section .partner-info h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .section-header h2 { font-size: 3rem; }
    .about-hero h1 { font-size: 5rem; letter-spacing: -2px; }
    .bilingual-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    header { padding: 1.2rem 5%; }
    nav { display: none; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.1rem; }
    .section-header { text-align: center; }
    .product-grid { grid-template-columns: 1fr; }
    .cart-panel { padding: 30px; }
}
