/* Main CSS for Tayseir Tech Website */

/* General Styles */
:root {
    --primary-color: #6A0DAD;
    --secondary-color: #1C003D;
    --accent-color: #ffc107;
    --dark-color: #1C003D;
    --light-color: #f8f8fa;
    --text-color: #afafaf;
    --white-color: #fff;
}

/* Fix horizontal overflow issue */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Add Tajawal font for Arabic text */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;900&display=swap');

/* RTL specific adjustments */
.navbar-nav {
    padding-right: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 60%, var(--primary-color) 100%);
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    color: var(--white-color);
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-logo {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 16px 48px rgba(106,13,173,0.3);
    border-color: rgba(106,13,173,0.5);
}

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

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(106,13,173,0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 2s ease-in-out infinite;
    filter: blur(20px);
}

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

.hero-logo-container:hover .hero-logo-glow {
    animation: glowPulse 1s ease-in-out infinite;
}

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

.svg-divider {
    display: block;
    width: 100%;
    height: 80px;
    margin-bottom: -1px;
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-title .title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    margin: 0 auto 16px auto;
    border-radius: 2px;
}

/* Enhanced Icon Styles */
.section-title h2 i {
    animation: iconPulse 2s infinite;
    margin-left: 0.75rem;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Cards Styles */
.service-card, .project-card, .team-card {
    background-color: var(--white-color);
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: none;
}

.service-card:hover, .project-card:hover, .team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(106,13,173,0.10);
}

.service-card h4, .project-card h5, .team-info h5 {
    color: var(--primary-color);
    font-weight: 700;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px auto;
    background: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(106,13,173,0.3);
    background: var(--primary-color);
    color: var(--white-color);
}

.service-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(106,13,173,0.3);
    background: var(--primary-color);
    color: var(--white-color);
}

/* Projects Section */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    background-color: var(--white-color);
    padding: 20px;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--light-color);
}

.position-badge {
    background: #CCCCCC;
    color: var(--secondary-color);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.95em;
    display: inline-block;
    margin-bottom: 6px;
}

/* Contact Section */
.contact-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section Styles */
.about-content {
    padding: 0;
    margin: 0;
}

.about-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-content .lead {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-media {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-media img,
.about-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* Legal Info Items */
.legal-info-item {
    background: var(--light-color);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.legal-info-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.legal-info-item .fw-bold {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.legal-info-item div:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsive adjustments for About section */
@media (max-width: 768px) {
    .about-content h3 {
        font-size: 1.2rem;
    }
    
    .legal-info-item {
        padding: 10px 14px;
    }
    
    .about-media {
        margin-top: 2rem;
    }
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    color: var(--white-color);
    border-radius: 8px;
    font-weight: 700;
}

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

.btn-outline-primary {
    background: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 700;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* Dashboard Styles */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--dark-color);
    color: var(--white-color);
}

.sidebar .nav-link {
    color: var(--white-color);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.sidebar .nav-link i {
    margin-left: 10px;
}

/* Enhanced Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 9999;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(106,13,173,0.2);
    font-size: 2rem;
    transition: all 0.3s ease;
    animation: floatingBounce 2s infinite;
}

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

.floating-contact-btn:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(106,13,173,0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(106,13,173,0.25);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-img {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Report Cards */
.report-card {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Notification Badge */
.notification-badge {
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Background Colors */
.bg-light { background: var(--light-color) !important; }
.bg-white { background: var(--white-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

/* Text Colors */
.lead, p, .small, .project-caption p, .team-info p { 
    color: var(--text-color); 
}

.project-caption, .team-info {
    color: var(--secondary-color);
}

/* تحسين ألوان النصوص فوق الخلفيات الداكنة أو البنفسجية */
.coming-soon-title,
.coming-soon-subtitle,
.coming-soon-description,
.service-hero h1,
.service-hero p,
.project-hero h1,
.project-hero p,
.dashboard-hero h1,
.dashboard-hero p,
.rights-hero h1,
.rights-hero p {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(28,0,61,0.18);
}

.coming-soon-title {
    color: #fff !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 4px 12px rgba(28,0,61,0.18);
}

.coming-soon-subtitle {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(28,0,61,0.18);
}

.coming-soon-description {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(28,0,61,0.12);
}

/* تحسين النصوص فوق الخلفيات البنفسجية في أقسام أخرى */
.service-hero h1, .service-hero p,
.project-hero h1, .project-hero p,
.dashboard-hero h1, .dashboard-hero p,
.rights-hero h1, .rights-hero p {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(28,0,61,0.18);
}

/* إذا كان هناك نصوص ثانوية يمكن جعلها بلون أصفر ذهبي */
.service-hero p, .project-hero p, .dashboard-hero p, .rights-hero p {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(28,0,61,0.18);
}

/* Carousel Control Icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Auto-Moving Banner Section */
.auto-banner-section {
    background: linear-gradient(135deg, #6A0DAD 0%, #1C003D 50%, #6A0DAD 100%);
    position: relative;
    overflow: hidden;
}

.auto-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 2;
}

/* Features Banner Container */
.features-banner-container {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-banner-track {
    display: flex;
    animation: scrollFeatures 30s linear infinite;
    width: max-content;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    margin: 0 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 200px;
    justify-content: center;
}

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

.feature-icon {
    font-size: 1.5rem;
    color: #ffc107;
    animation: iconGlow 2s ease-in-out infinite alternate;
}

.feature-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

@keyframes scrollFeatures {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes iconGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.8));
    }
}

/* Responsive adjustments for the banner */
@media (max-width: 768px) {
    .features-banner-container {
        padding: 1.5rem 0;
    }
    
    .feature-item {
        padding: 0.75rem 1.5rem;
        margin: 0 0.5rem;
        min-width: 160px;
        gap: 0.75rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    .features-banner-track {
        animation-duration: 20s;
    }
}

@media (max-width: 576px) {
    .feature-item {
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        min-width: 140px;
        gap: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1rem;
    }
    
    .feature-text {
        font-size: 0.8rem;
    }
    
    .features-banner-track {
        animation-duration: 15s;
    }
}

/* Partners Section Styles */
.partners-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(106,13,173,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.partners-container {
    position: relative;
    z-index: 2;
}

.partners-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.partner-logo-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.partner-logo-item:hover {
    text-decoration: none;
    color: inherit;
}

.partner-logo-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(106, 13, 173, 0.3), transparent, rgba(106, 13, 173, 0.3), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.partner-logo-item:hover::before {
    opacity: 1;
}

.partner-logo-item:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 15px 40px rgba(106, 13, 173, 0.3);
    border-color: #6A0DAD;
    z-index: 10;
}

.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
    filter: brightness(1);
    position: relative;
    z-index: 2;
}

.partner-logo-item:hover .partner-logo-img {
    transform: scale(1.1);
}

.partner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(106, 13, 173, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    opacity: 0;
}

.partner-logo-item:hover .partner-glow {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* Creative floating animation */
.partner-logo-item:nth-child(odd) {
    animation: float 3s ease-in-out infinite;
}

.partner-logo-item:nth-child(even) {
    animation: float 3s ease-in-out infinite reverse;
}

.partner-logo-item:nth-child(3n) {
    animation-delay: 0.5s;
}

.partner-logo-item:nth-child(3n+1) {
    animation-delay: 1s;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .partners-gallery {
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .partner-logo-item {
        width: 100px;
        height: 100px;
    }
    
    .partner-logo-img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 576px) {
    .partners-gallery {
        gap: 1.5rem;
    }
    
    .partner-logo-item {
        width: 80px;
        height: 80px;
    }
    
    .partner-logo-img {
        width: 100%;
        height: 100%;
    }
}
