/* ===================================
   General Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.brand-text {
    color: #fff;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-section h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease 0.6s both;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
}

.feature-box {
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.feature-box h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-box p {
    color: #666;
}

/* Unified Icon Design - موحد بلون هوية الموقع */
.unified-box {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.unified-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.unified-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.unified-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
    transform: scale(1.2);
}

.unified-box:hover .unified-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.unified-box:hover .unified-icon-wrapper::before {
    opacity: 0.3;
    transform: scale(1.4);
}

.unified-icon {
    font-size: 3rem;
    color: #fff;
    z-index: 1;
    position: relative;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.unified-box:hover .unified-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.unified-box h4 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.unified-box:hover h4 {
    color: #667eea;
}

.unified-box p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Quality Box with Image */
.quality-box {
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.quality-box:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.quality-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.quality-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.quality-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quality-icon-container {
    position: relative;
    display: inline-block;
}

.quality-icon {
    font-size: 5rem;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        2px 2px 8px rgba(0,0,0,0.5);
    animation: gemRotate 3s ease-in-out infinite, gemGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.5));
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.quality-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

.quality-box:hover .quality-image {
    transform: scale(1.15);
    filter: brightness(1);
}

.quality-box:hover .quality-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

.quality-box:hover .quality-icon {
    transform: scale(1.2) rotateY(360deg);
    color: #fff;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 35px rgba(255, 215, 0, 0.6),
        2px 2px 8px rgba(0,0,0,0.5);
    transition: all 0.6s ease;
}

.quality-box:hover .quality-icon-glow {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    animation: glowPulse 1s ease-in-out infinite;
}

.quality-box h4 {
    padding: 1.5rem 2rem 0.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.quality-box p {
    padding: 0 2rem 2rem;
    margin: 0;
    color: #666;
    line-height: 1.8;
}

@keyframes gemRotate {
    0%, 100% {
        transform: rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateY(90deg) rotateZ(5deg);
    }
    50% {
        transform: rotateY(180deg) rotateZ(0deg);
    }
    75% {
        transform: rotateY(270deg) rotateZ(-5deg);
    }
}

@keyframes gemGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4),
            2px 2px 8px rgba(0,0,0,0.5);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 35px rgba(255, 215, 0, 0.6),
            2px 2px 8px rgba(0,0,0,0.5);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive adjustments for unified boxes */
@media (max-width: 768px) {
    .unified-box {
        padding: 2rem 1.5rem;
    }
    
    .unified-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 1.2rem;
    }
    
    .unified-icon {
        font-size: 2.5rem;
    }
    
    .unified-box h4 {
        font-size: 1.1rem;
    }
    
    .unified-box p {
        font-size: 0.95rem;
    }
}

/* Responsive adjustments for quality box (legacy - kept for compatibility) */
@media (max-width: 768px) {
    .quality-image-wrapper {
        height: 180px;
    }
    
    .quality-icon {
        font-size: 3.5rem;
    }
    
    .quality-icon-glow {
        width: 90px;
        height: 90px;
    }
    
    .quality-box:hover .quality-icon-glow {
        width: 110px;
        height: 110px;
    }
    
    .quality-box h4 {
        padding: 1.2rem 1.5rem 0.5rem;
        font-size: 1.1rem;
    }
    
    .quality-box p {
        padding: 0 1.5rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===================================
   Vision & Mission Section
   =================================== */
.vision-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.vision-card h3 {
    color: #333;
    font-weight: 700;
    font-size: 1.8rem;
}

.vision-card p {
    color: #666;
    line-height: 2;
    text-align: right;
}

.goals-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.goals-list li {
    padding: 0.8rem 0;
    padding-right: 2rem;
    position: relative;
    color: #666;
    line-height: 1.8;
}

.goals-list li::before {
    content: '\f26e';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 0;
    color: #667eea;
    font-size: 1.2rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-info {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.contact-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    margin: 0;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===================================
   Footer
   =================================== */
footer {
    background: #1a1a1a !important;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    color: #667eea;
    transform: translateY(-3px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .about-content {
        padding: 2rem 1.5rem;
    }
    
    .vision-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-info {
        padding: 2rem 1.5rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .brand-text {
        display: none;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* ===================================
   Animations
   =================================== */
.animate-fade-in {
    animation: fadeInUp 1s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

