﻿/* ========================================
   Home Page Styles - OBSCURE
   ======================================== */

/* منع الـ horizontal scroll على جميع العناصر */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Navbar Hamburger Menu - Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: rgba(29, 28, 28, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
}

.navbar-toggle:hover {
    background: rgba(29, 28, 28, 0.1);
}

.navbar-toggle span {
    width: 24px;
    height: 2.5px;
    background: #1D1C1C;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Show hamburger on mobile */
@media (max-width: 992px) {
    .navbar-toggle {
        display: flex;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: #E0DCD1;
    z-index: 2;
    max-width: 100%; /* منع تجاوز الشاشة */
    padding: 0 15px; /* إضافة padding */
}

.slide-title {
    font-family: 'Romantice', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    word-wrap: break-word; /* كسر النص الطويل */
}

.slide-tagline {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #AAA498;
    word-wrap: break-word;
}

.slide-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: #AAA498;
    word-wrap: break-word;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 15px; /* إضافة padding */
}

.btn {
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: #E0DCD1;
    color: #1D1C1C;
}

.btn-primary:hover {
    background: #AAA498;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 220, 209, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #E0DCD1;
    border: 2px solid #E0DCD1;
}

.btn-secondary:hover {
    background: #E0DCD1;
    color: #1D1C1C;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.slider-btn {
    background: rgba(224, 220, 209, 0.2);
    border: 2px solid #E0DCD1;
    color: #E0DCD1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #E0DCD1;
    color: #1D1C1C;
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(224, 220, 209, 0.3);
    border: 2px solid #E0DCD1;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: #E0DCD1;
    transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #E0DCD1;
    border-radius: 25px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background: #E0DCD1;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        top: 32px;
        opacity: 0;
    }
}

/* Services Section */
.services-section {
    padding: 120px 20px;
    background: #E0DCD1;
    overflow-x: hidden; /* منع overflow */
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 100%; /* منع تجاوز الشاشة */
}

.section-title {
    font-family: 'Romantice', serif;
    font-size: 3.5rem;
    color: #1D1C1C;
    margin-bottom: 20px;
    letter-spacing: 3px;
    word-wrap: break-word;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6A6254;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Cairo', sans-serif;
    word-wrap: break-word;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    max-width: 100%; /* منع تجاوز الشاشة */
}

.service-card {
    background: white;
    padding: 50px 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(29, 28, 28, 0.08);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(29, 28, 28, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: #1D1C1C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #E0DCD1;
    font-size: 2rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-family: 'Romantice', serif;
    font-size: 1.6rem;
    color: #1D1C1C;
    margin-bottom: 20px;
    letter-spacing: 1px;
    word-wrap: break-word;
}

.service-description {
    color: #6A6254;
    line-height: 1.8;
    margin-bottom: 25px;
    font-family: 'Cairo', sans-serif;
    word-wrap: break-word;
}

.service-link {
    color: #1D1C1C;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #1D1C1C;
    padding-bottom: 5px;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.service-link:hover {
    color: #6A6254;
}

/* Projects Section */
.projects-section {
    padding: 120px 20px;
    background: #1D1C1C;
    overflow-x: hidden; /* منع overflow */
}

.projects-section .section-title {
    color: #E0DCD1;
}

.projects-section .section-subtitle {
    color: #AAA498;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    max-width: 100%; /* منع تجاوز الشاشة */
}

.project-card {
    background: #2d2d2d;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #1D1C1C;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #E0DCD1;
}

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.project-badge {
    background: #E0DCD1;
    color: #1D1C1C;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.project-content {
    padding: 35px 30px;
}

.project-category {
    color: #AAA498;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    font-family: 'Cairo', sans-serif;
}

.project-title {
    font-family: 'Romantice', serif;
    font-size: 1.5rem;
    color: #E0DCD1;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.project-description {
    color: #AAA498;
    line-height: 1.7;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    word-wrap: break-word;
}

.project-link {
    color: #E0DCD1;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #E0DCD1;
    padding-bottom: 5px;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.project-link:hover {
    color: #AAA498;
    border-bottom-color: #AAA498;
}

/* Philosophy Section */
.philosophy-section {
    padding: 120px 20px;
    background: #E0DCD1;
    overflow-x: hidden; /* منع overflow */
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 100%; /* منع تجاوز الشاشة */
}

.philosophy-card {
    text-align: center;
    transition: all 0.3s;
}

.philosophy-card:hover {
    transform: translateY(-10px);
}

.philosophy-icon {
    width: 100px;
    height: 100px;
    background: #1D1C1C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(29, 28, 28, 0.2);
}

.philosophy-title {
    font-family: 'Romantice', serif;
    font-size: 1.8rem;
    color: #1D1C1C;
    margin-bottom: 18px;
    letter-spacing: 1px;
    word-wrap: break-word;
}

.philosophy-description {
    color: #6A6254;
    line-height: 1.8;
    font-family: 'Cairo', sans-serif;
    word-wrap: break-word;
}

/* Partners Section - احترافي جداً */
.partners-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(224, 220, 209, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(29, 28, 28, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.partners-section .section-header {
    position: relative;
    z-index: 2;
}

.partners-slider {
    margin-top: 60px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-slider::before,
.partners-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(90deg, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(270deg, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: scroll-partners 30s linear infinite;
    will-change: transform;
}

.partner-logo {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 220, 209, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.partner-logo:hover::before {
    opacity: 1;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.logo-placeholder {
    font-size: 3.5rem;
    opacity: 0.3;
    transition: all 0.3s;
}

.partner-logo:hover .logo-placeholder {
    opacity: 0.6;
    transform: scale(1.1);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-180px * 8 - 60px * 8));
    }
}

.partners-track:hover {
    animation-play-state: paused;
}

/* Newsletter Section */
.newsletter-section {
    padding: 120px 20px;
    background: #1D1C1C;
    overflow-x: hidden; /* منع overflow */
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: 'Romantice', serif;
    font-size: 3rem;
    color: #E0DCD1;
    margin-bottom: 20px;
    letter-spacing: 2px;
    word-wrap: break-word;
}

.newsletter-description {
    font-size: 1.15rem;
    color: #AAA498;
    margin-bottom: 40px;
    line-height: 1.8;
    font-family: 'Cairo', sans-serif;
    word-wrap: break-word;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    border: 2px solid #E0DCD1;
    background: transparent;
    color: #E0DCD1;
    font-size: 1rem;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    max-width: 100%; /* منع تجاوز الشاشة */
}

.newsletter-input::placeholder {
    color: #6A6254;
}

.newsletter-input:focus {
    outline: none;
    border-color: #AAA498;
}

.newsletter-btn {
    padding: 18px 45px;
    background: #E0DCD1;
    color: #1D1C1C;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.newsletter-btn:hover {
    background: #AAA498;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(224, 220, 209, 0.3);
}

.newsletter-privacy {
    font-size: 0.9rem;
    color: #6A6254;
    font-family: 'Cairo', sans-serif;
}

/* CTA Section */
.cta-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, #1D1C1C 0%, #2d2d2d 100%);
    text-align: center;
    overflow-x: hidden; /* منع overflow */
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Romantice', serif;
    font-size: 3.5rem;
    color: #E0DCD1;
    margin-bottom: 25px;
    letter-spacing: 3px;
    word-wrap: break-word;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: #AAA498;
    margin-bottom: 50px;
    font-family: 'Cairo', sans-serif;
    word-wrap: break-word;
}

.btn-cta {
    background: #E0DCD1;
    color: #1D1C1C;
    padding: 20px 55px;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(224, 220, 209, 0.2);
}

.btn-cta:hover {
    background: #AAA498;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(224, 220, 209, 0.3);
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-dark {
    background: #1D1C1C;
    color: #E0DCD1;
}

.btn-dark:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
}

.btn-light {
    background: #E0DCD1;
    color: #1D1C1C;
}

.btn-light:hover {
    background: #AAA498;
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .navbar-toggle {
        display: flex;
    }

    .slide-title {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }

    .slide-tagline {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .slider-controls {
        padding: 0 15px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .partners-track {
        gap: 40px;
    }

    .partner-logo {
        width: 140px;
        height: 90px;
    }
    
    .services-grid,
    .projects-grid,
    .philosophy-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        padding: 6px;
    }
    
    .navbar-toggle span {
        width: 22px;
        height: 2px;
    }

    .slide-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .slide-tagline {
        font-size: 1.2rem;
    }

    .slide-subtitle {
        font-size: 0.9rem;
    }

    .slide-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        width: 100%;
        min-width: unset;
    }
    
    .newsletter-btn {
        width: 100%;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .partners-track {
        gap: 30px;
    }

    .partner-logo {
        width: 120px;
        height: 80px;
        padding: 15px;
    }

    .logo-placeholder {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .projects-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .navbar-toggle {
        padding: 5px;
        gap: 4px;
    }
    
    .navbar-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .slide-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .slide-tagline {
        font-size: 1rem;
    }
    
    .slide-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .partner-logo {
        width: 100px;
        height: 70px;
        padding: 10px;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .slide-tagline {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .partner-logo {
        width: 90px;
        height: 65px;
        padding: 8px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .slide-content {
        padding: 0 10px;
    }
    
    .slide-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
