/* ===== RESEARCH & DEVELOPMENT PAGE STYLES ===== */

/* Base Styles */
* {
    box-sizing: border-box;
}
/* ===== GENODENT BRAND COLORS ===== */
:root {
    /* Primary Brand Colors */
    --genodent-primary: #009245;        /* Shamrock Green */
    --genodent-secondary: #4F4F4F;      /* Dark Gray */
    
    /* Color Variations */
    --genodent-primary-light: #00b854;
    --genodent-primary-dark: #007a38;
    --genodent-secondary-light: #6a6a6a;
    --genodent-secondary-dark: #3a3a3a;
    
    /* Gradients */
    --genodent-gradient-primary: linear-gradient(135deg, #009245 0%, #00b854 100%);
    --genodent-gradient-secondary: linear-gradient(135deg, #4F4F4F 0%, #6a6a6a 100%);
    --genodent-gradient-mixed: linear-gradient(135deg, #009245 0%, #4F4F4F 100%);
    
    /* Shadow Colors */
    --genodent-shadow-primary: rgba(0, 146, 69, 0.15);
    --genodent-shadow-secondary: rgba(79, 79, 79, 0.15);
}

/* Base Styles */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
}

/* ===== HERO SECTION ===== */
.hero-bg-image-section {
    position: relative;
    min-height: 90vh;
    padding-top: 80px;
    width: 100%;
    /* صور بديلة متعددة مع ضمان الظهور */
    background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?auto=format&fit=crop&w=1950&q=80') center center/cover no-repeat;
    background-image: 
        url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?auto=format&fit=crop&w=1950&q=80'),
        url('https://images.unsplash.com/photo-1559757175-0eb30cd8c063?auto=format&fit=crop&w=1950&q=80'),
        url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1950&q=80'),
        linear-gradient(135deg, #009245 0%, #4F4F4F 100%);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    overflow: hidden;
    /* خلفية احتياطية مضمونة */
    background-color: #009245 !important;
    transition: background-position 0.3s cubic-bezier(.4,1,.7,1);
}

/* Force Background Images to Load on All Devices */
@media (max-width: 768px) {
    .hero-bg-image-section {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,146,69,0.9) 0%, rgba(79,79,79,0.8) 100%);
    opacity: 0.85;
    z-index: 1;
}

.hero-bg-image-section .container {
    position: relative;
    z-index: 2;
}

.hero-bg-title {
    color: #fff;
    font-size: 2.7rem;
    font-weight: 900;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.hero-bg-desc {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-bg-btn {
    display: inline-block;
    padding: 13px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 8px;
}

.hero-bg-btn.main-btn {
    background: #fff;
    color: #13c5c1;
    border: none;
}

/* Hover effect removed for hero main button */

.hero-bg-btn.ghost-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* Hover effect removed for hero ghost button */

/* Responsive Design */
@media (max-width: 991px) {
    .hero-bg-title {
        font-size: 2rem;
        text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
    .hero-bg-desc {
        font-size: 1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .hero-bg-image-section {
        min-height: 85vh;
        padding-top: 70px;
    }
}

@media (max-width: 600px) {
    .hero-bg-title {
        font-size: 1.3rem;
        text-shadow: 0 3px 15px rgba(0,0,0,0.4);
    }
    .hero-bg-btn { 
        padding: 10px 18px; 
        font-size: 1rem; 
    }
    .hero-bg-image-section {
        min-height: 80vh;
        padding-top: 60px;
    }
}

/* ===== VISION SECTION ===== */
.rd-vision-section {
    background: linear-gradient(135deg, rgba(0, 146, 69, 0.02) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(0, 146, 69, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.rd-section-wrapper {
    position: relative;
}

.rd-shape-1, .rd-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 146, 69, 0.08), rgba(79, 79, 79, 0.06));
    z-index: 1;
}

.rd-shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.rd-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

.rd-pattern {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(0,146,69,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: 1;
}

.rd-vision-image-container {
    position: relative;
}

.rd-vision-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.rd-vision-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: var(--genodent-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px var(--genodent-shadow-primary);
}

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

.rd-vision-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 30px;
}

.rd-vision-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.rd-stat-item {
    text-align: center;
}

.rd-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--genodent-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rd-stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* ===== RESEARCH AREAS SECTION ===== */
.rd-areas-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.rd-area-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.rd-area-icon {
    width: 80px;
    height: 80px;
    background: var(--genodent-gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px var(--genodent-shadow-primary);
}

.rd-area-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.rd-area-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rd-area-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rd-feature-tag {
    background: rgba(0, 146, 69, 0.1);
    color: var(--genodent-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== PROJECTS TIMELINE ===== */
.rd-projects-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.rd-projects-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.rd-project-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.rd-project-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 80px;
    width: 2px;
    height: calc(100% + 40px);
    background: var(--genodent-gradient-primary);
    opacity: 0.3;
}

.rd-project-item:last-child::before {
    display: none;
}

.rd-project-number {
    width: 70px;
    height: 70px;
    background: var(--genodent-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 20px var(--genodent-shadow-primary);
}

.rd-project-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.rd-project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.rd-project-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rd-project-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.in-progress {
    background: rgba(0, 146, 69, 0.1);
    color: var(--genodent-primary);
}

.status-badge.testing {
    background: rgba(79, 79, 79, 0.1);
    color: var(--genodent-secondary);
}

.status-badge.planning {
    background: rgba(0, 146, 69, 0.05);
    color: var(--genodent-primary-dark);
}

.status-progress {
    font-weight: 700;
    color: var(--genodent-primary);
    position: relative;
}

.status-progress::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    background: var(--genodent-gradient-primary);
    width: var(--progress, 0%);
    transition: width 1s ease;
}

/* ===== PARTNERSHIPS SECTION ===== */
.rd-partnerships-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.rd-partnerships-wrapper {
    position: relative;
}

.rd-partnership-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hover effect removed for research development partnership cards */

.rd-partnership-icon {
    width: 90px;
    height: 90px;
    background: var(--genodent-gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px var(--genodent-shadow-primary);
}

.rd-partnership-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.rd-partnership-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rd-partnership-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rd-partnership-list li {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.rd-partnership-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--genodent-primary);
    font-weight: bold;
}

/* ===== INNOVATION PLATFORM SECTION ===== */
.rd-innovation-platform-section {
    background: linear-gradient(135deg, rgba(0, 146, 69, 0.02) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(79, 79, 79, 0.02) 100%);
}

.rd-platform-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 30px;
}

.rd-platform-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rd-platform-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e293b;
    font-weight: 500;
}

.rd-platform-feature i {
    width: 40px;
    height: 40px;
    background: var(--genodent-gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.rd-platform-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.rd-innovation-circle {
    position: relative;
    width: 300px;
    height: 300px;
}

.rd-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--genodent-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px var(--genodent-shadow-primary);
    z-index: 3;
}

.rd-orbit {
    position: absolute;
    border: 2px dashed var(--genodent-primary);
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
    opacity: 0.4;
}

.rd-orbit-1 {
    width: 180px;
    height: 180px;
    top: 60px;
    left: 60px;
    border-color: var(--genodent-primary);
    opacity: 0.5;
}

.rd-orbit-2 {
    width: 240px;
    height: 240px;
    top: 30px;
    left: 30px;
    animation-duration: 30s;
    animation-direction: reverse;
    border-color: var(--genodent-secondary);
    opacity: 0.4;
}

.rd-orbit-3 {
    width: 300px;
    height: 300px;
    top: 0;
    left: 0;
    animation-duration: 40s;
    border-color: var(--genodent-primary-light);
    opacity: 0.35;
}

.rd-orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 146, 69, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--genodent-primary);
    font-size: 1.2rem;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px var(--genodent-shadow-primary);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 146, 69, 0.1);
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== CONTACT SECTION ===== */
.rd-contact-section {
    background: var(--genodent-gradient-mixed);
    color: white;
}

.rd-contact-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rd-contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.rd-contact-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.rd-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rd-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.rd-contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-contact-cta {
    text-align: right;
}

.rd-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Hover effect removed for R&D contact button */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .rd-hero-title {
        font-size: 2.5rem;
    }
    
    .rd-hero-desc {
        font-size: 1.1rem;
    }
    
    .rd-hero-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .rd-vision-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .rd-stat-number {
        font-size: 2rem;
    }
    
    .rd-area-card {
        padding: 25px 20px;
    }
    
    .rd-area-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .rd-project-item {
        flex-direction: column;
        text-align: center;
    }
    
    .rd-project-number {
        align-self: center;
    }
    
    .rd-partnership-card {
        padding: 30px 20px;
    }
    
    .rd-platform-visual {
        height: 300px;
    }
    
    .rd-innovation-circle {
        width: 250px;
        height: 250px;
    }
    
    .rd-orbit-1 {
        width: 150px;
        height: 150px;
        top: 50px;
        left: 50px;
    }
    
    .rd-orbit-2 {
        width: 200px;
        height: 200px;
        top: 25px;
        left: 25px;
    }
    
    .rd-orbit-3 {
        width: 250px;
        height: 250px;
    }
    
    .rd-contact-wrapper {
        padding: 30px 20px;
    }
    
    .rd-contact-title {
        font-size: 2rem;
    }
    
    .rd-contact-cta {
        text-align: center;
        margin-top: 30px;
    }
}
