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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.side-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}

/* Text Colors */
.home-text {
    background: linear-gradient(45deg, #10b981, #059669);
}

.about-text {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.takeed-text {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.clients-text {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.contact-text {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.nav-text:hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/building-logo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    box-sizing: border-box;
    /* تحسينات إضافية للوضوح */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #1e3a8a, #fbbf24);
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #ffffff !important;
}

.about * {
    background: white !important;
}

.about-text, .about-text p {
    background: white !important;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #1e3a8a, #fbbf24);
    border-radius: 15px 15px 0 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Takeed Section */
.takeed-section {
    background: #f8fafc;
    padding: 80px 0;
}

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

/* Digital Documentation Slider */
.digital-docs {
    padding: 5rem 0;
    background: #f8fafc;
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    min-height: 500px;
    box-sizing: border-box;
}

.slide.active {
    display: block !important;
}

.slide-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 4px solid #1e3a8a;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.slide-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide h3 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.slide p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.stars {
    margin: 1.5rem 0;
}

.stars i {
    color: #fbbf24;
    font-size: 1.2rem;
    margin: 0 2px;
}

.slide-description {
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.7;
    margin: 1.5rem 0;
    font-style: normal !important;
    font-weight: 500;
}

.slide-note {
    color: #718096;
    font-size: 0.9rem;
    font-style: normal !important;
    margin-top: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 138, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: #1e3a8a;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    text-align: center;
    padding: 2rem 0;
    background: #f8fafc;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #cbd5e0;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #1e3a8a;
    transform: scale(1.2);
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background: #f8fafc;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.client-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.client-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.contact-details h3 {
    color: #ffffff !important;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.contact-details a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #f1f5f9 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #fbbf24;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    font-family: inherit;
    font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(30, 58, 138, 0.6);
}

/* Footer */
.footer {
    background: #1e3a8a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .takeed-circles {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .circle-image {
        width: 150px;
        height: 150px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .client-circle {
        width: 80px;
        height: 80px;
    }
    
    .client-circle img {
        max-width: 50px;
        max-height: 50px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .side-nav {
        left: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
        padding: 10px;
    }
    
    .side-menu {
        flex-direction: row;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .nav-text {
        min-width: 60px;
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-text {
        min-width: 50px;
        font-size: 0.6rem;
        padding: 6px 8px;
    }
}

.about-goals {
    margin-top: 2rem;
    background: transparent !important;
    padding: 2rem;
    border-radius: 10px;
}

.about-goals h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-goals p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

/* Contact Form Enhancements */
.btn-loading {
    display: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#form-status {
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group textarea.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}
