* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #ffffff;
    --accent: #ffffff;
    --gray: #0a0a0a;
    --dark-gray: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
}

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background: var(--primary) !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* إخفاء العناوين حسب اللغة */
body.arabic-lang .english-title,
body.arabic-lang .english-subtitle {
    display: none !important;
}

body.english-lang .arabic-title,
body.english-lang .arabic-subtitle {
    display: none !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.2);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.95) !important;
    text-decoration: none;
}

.logo span {
    color: rgba(0, 0, 0, 0.7) !important;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.9) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: rgba(0, 0, 0, 0.7) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.8) !important;
    transition: width 0.3s ease;
}

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-right: 2rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.3rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.lang-btn {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
    color: rgba(0, 0, 0, 0.8) !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn.active {
    background: rgba(0, 0, 0, 0.9) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circular-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    height: 300%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 10%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.floating-image-container {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 900px;
    height: 900px;
    pointer-events: none;
}

.floating-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(255, 255, 255, 0.2));
    will-change: transform;
    animation: float 4s ease-in-out infinite;
}

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

.floating-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
    margin-top: 750px;
}

.hero-title {
    font-size: 3.1rem !important;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.hero-title .title-line {
    display: block;
    margin-bottom: 0.1rem;
}

/* العنوان بالعربية */
.arabic-title .title-line:first-child .word {
    color: #a48242 !important;
    font-size: 4.5rem !important;
    font-weight: 800;
}

.arabic-title .title-line.small-line .word {
    color: #a48242 !important;
    font-size: 3.2rem !important;
    font-weight: 600;
}

/* العنوان بالإنجليزية */
.english-title .title-line:first-child .word {
    color: #a48242 !important;
    font-size: 4rem !important;
    font-weight: 800;
    letter-spacing: 2px;
}

.english-title .title-line.small-line .word {
    color: #a48242 !important;
    font-size: 3.5rem !important;
    font-weight: 700;
    letter-spacing: 1px;
}

/* تحسين النص الفرعي */
.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.subtitle-line {
    display: block;
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 3.7rem !important;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
}

.cta-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.btn {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Services Section - مع الصور المعلقة من الأعلى */
.services {
    padding: 8rem 2rem 4rem;
    background: var(--primary) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.services .container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    width: 100%;
    margin-bottom: 6rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 12rem 2rem 2rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(50px);
    margin-top: 150px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.15);
}

.service-image-container {
    position: relative;
    width: 360px;
    height: 360px;
    margin: -300px auto 1rem;
    z-index: 2;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(255, 255, 255, 0.25));
    transition: all 0.4s ease;
    transform-origin: center bottom;
}

.service-card:hover .service-image {
    transform: translateY(-15px) scale(1.05);
    filter: drop-shadow(0 20px 45px rgba(255, 255, 255, 0.4));
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .image-glow {
    opacity: 1;
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    margin-top: 0;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

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

.service-image.floating-image {
    animation: serviceFloat 4s ease-in-out infinite;
}

.service-card:nth-child(1) .service-image {
    animation-delay: 0s;
}

.service-card:nth-child(2) .service-image {
    animation-delay: 1s;
}

.service-card:nth-child(3) .service-image {
    animation-delay: 2s;
}

.service-card:nth-child(4) .service-image {
    animation-delay: 3s;
}

/* تأثير عبوات المياه */
.water-bottles-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
    height: 100vh;
    overflow: hidden;
}

.water-bottles-section .scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.water-bottles-section .bottle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.water-bottles-section .bottle img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.water-bottles-section .main-bottle, 
.water-bottles-section .back-bottle {
    z-index: 300;
    width: 400px;
}

.water-bottles-section .bottle img {
    width: 100%;
    filter: none;
}

.water-bottles-section .back-bottle {
    z-index: 200;
    opacity: 0.9;
}

.water-bottles-section .scroll-content {
    position: relative;
    margin-top: 100vh;
    padding: 50px 20px;
    background: transparent;
    min-height: 100vh;
    z-index: 50;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
    background: var(--primary) !important;
}

.portfolio .container {
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.portfolio-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-icon {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-year {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.portfolio-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 15px;
}

/* Footer */
.footer {
    background: var(--primary) !important;
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-links-bottom {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.footer-links-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.footer-links-bottom a:hover {
    color: var(--accent);
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* تحسين التجاوب للشاشات الصغيرة */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-image-container {
        width: 300px;
        height: 300px;
        margin: -250px auto 1rem;
    }
    
    .service-card {
        padding: 10rem 2rem 2rem;
        margin-top: 120px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .language-switcher {
        margin-right: 1rem;
    }
    
    .floating-image-container {
        width: 500px;
        height: 500px;
        top: 8%;
    }
    
    .hero-content {
        margin-top: 550px;
    }
    
    .hero-title {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }
    
    .service-image-container {
        width: 250px;
        height: 250px;
        margin: -200px auto 1rem;
    }
    
    .service-card {
        padding: 8rem 1.5rem 2rem;
        margin-top: 100px;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .horizontal-slide {
        font-size: 1.5rem;
        padding: 0 20px;
        text-align: center;
    }
    
    .scroll-indicator-horizontal {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-sm {
        width: 100%;
        max-width: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .scroll-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }
    
    /* تحسينات الهيرو للجوال */
    .arabic-title .title-line:first-child .word {
        font-size: 2.8rem !important;
    }
    
    .arabic-title .title-line.small-line .word {
        font-size: 2rem !important;
    }
    
    .english-title .title-line:first-child .word {
        font-size: 2.5rem !important;
        letter-spacing: 1px;
    }
    
    .english-title .title-line.small-line .word {
        font-size: 2.2rem !important;
        letter-spacing: 0.5px;
    }
    
    .subtitle-line {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        gap: 0.6rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .language-switcher {
        margin-right: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .floating-image-container {
        width: 300px !important;
        height: 300px !important;
        top: 20% !important;
    }
    
    .hero-content {
        margin-top: 150px !important;
    }
    
    .floating-glow {
        width: 130% !important;
        height: 130% !important;
    }
    
    .arabic-title .title-line:first-child .word {
        font-size: 2.2rem !important;
    }
    
    .arabic-title .title-line.small-line .word {
        font-size: 1.6rem !important;
    }
    
    .english-title .title-line:first-child .word {
        font-size: 2rem !important;
    }
    
    .english-title .title-line.small-line .word {
        font-size: 1.8rem !important;
    }
    
    .subtitle-line {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* للوضع الأفقي على الموبايل */
@media (max-width: 768px) and (orientation: landscape) {
    .floating-image-container {
        width: 250px !important;
        height: 250px !important;
        top: 40% !important;
    }
    
    .hero-content {
        margin-top: 100px !important;
    }
    
    .hero-title {
        font-size: 0.9rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.6rem !important;
    }
}

/* تحسينات إضافية للأداء */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* تحسين التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* تحسين عرض النص للعربية */
body[dir="rtl"] {
    text-align: right;
}

body[dir="ltr"] {
    text-align: left;
}