/* General Styling */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--bg-primary);
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* Hero Section */
.about-hero {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* About Cards Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.about-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: rgba(167, 243, 0, 0.3);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(167, 243, 0, 0.1), rgba(167, 243, 0, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 2px solid rgba(167, 243, 0, 0.2);
}

.card-icon i {
    font-size: 2em;
    color: var(--primary-color);
}

.about-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(167, 243, 0, 0.3);
}

.about-card h3 {
    font-size: 1.7em;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.about-card p {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Values Section */
.values-section {
    text-align: center;
    margin-bottom: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.values-section h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    padding: 30px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 243, 0, 0.2);
    background: var(--bg-tertiary);
}

.value-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

.value-item h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.value-item p {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 50px;
    background: rgba(20, 30, 20, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(167, 243, 0, 0.2);
    max-width: 900px;
    margin: 80px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-color);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(167, 243, 0, 0.3);
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(167, 243, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 2.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 80px 16px 40px;
    }

    .about-hero h1 {
        font-size: 2.2em;
        color: var(--text-primary);
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .about-hero {
        margin-bottom: 50px;
    }

    .about-grid {
        margin-bottom: 60px;
    }

    .about-card {
        padding: 32px 24px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.7em;
    }

    .about-card h3 {
        font-size: 1.4em;
    }

    .values-section h2 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-item {
        padding: 24px 16px;
    }

    .cta-section {
        padding: 50px 24px;
    }

    .cta-section h2 {
        font-size: 2em;
    }

    .cta-section p {
        font-size: 1em;
    }

    .cta-button {
        padding: 16px 36px;
        font-size: 1em;
    }
}

/* CONTACT PAGE SPECIFIC STYLES */

/* About Hero Section - First */
.about-hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Info Cards Grid (Mission, Vision, Story) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(167, 243, 0, 0.15), rgba(167, 243, 0, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-card:hover .icon-box {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(167, 243, 0, 0.3);
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.info-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Values Section */
.values-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.values-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(167, 243, 0, 0.15), rgba(167, 243, 0, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(167, 243, 0, 0.3);
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 700;
}

.logo-section {
    text-align: center;
    margin-bottom: 50px;
}

.contact-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(167, 243, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(167, 243, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Professional Contact Card */
.professional-contact-card {
    max-width: 900px;
    margin: 40px auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.professional-contact-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Contact Block */
.contact-block {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.contact-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-block-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(167, 243, 0, 0.15), rgba(167, 243, 0, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-block-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

/* Contact Items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    padding: 8px 0;
}

.contact-value:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

.contact-value i {
    font-size: 1rem;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Professional Social Links */
.social-links-professional {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.social-link-pro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link-pro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #1877f2;
    background: var(--card-bg);
}

.social-link-pro i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-link-pro.facebook i {
    color: #1877f2;
}

.social-link-pro span {
    font-size: 0.95rem;
}


/* Developers Section */
.developers-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.developers-section h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.developer-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid var(--border-color, rgba(0, 0, 0, 0.08));
    position: relative;
    overflow: hidden;
}

.developer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.developer-card:hover::before {
    transform: scaleX(1);
}

.developer-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.developer-image {
    margin-bottom: 25px;
    position: relative;
}

.developer-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s;
}

.developer-card:hover .developer-image img {
    transform: scale(1.05);
}

.developer-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.developer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.developer-role {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px !important;
}

.developer-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.developer-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.developer-stats .stat {
    background: var(--bg-tertiary, rgba(102, 126, 234, 0.1));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color, rgba(102, 126, 234, 0.2));
}

.developer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.dev-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.dev-social-link.facebook {
    background: #1877f2;
}

.dev-social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.dev-social-link.github {
    background: #333;
}

.dev-social-link:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Contact Page */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 60px 20px 40px;
    }

    .about-hero-section h1 {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .info-card {
        padding: 30px 25px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

    .icon-box i {
        font-size: 1.5rem;
    }

    .info-card h3 {
        font-size: 1.3rem;
    }

    .values-section h2 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-logo {
        width: 120px;
    }

    .professional-contact-card {
        padding: 40px 30px;
    }

    .social-links-professional {
        flex-wrap: wrap;
    }

    .developers-grid {
        grid-template-columns: 1fr;
    }

    .developers-section h2 {
        font-size: 2rem;
    }

    .team-intro {
        font-size: 1rem;
    }

    .cta-section {
        padding: 50px 30px;
        margin: 60px auto;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-hero-section h1 {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1rem;
    }

    .info-card {
        padding: 25px 20px;
    }

    .icon-box {
        width: 45px;
        height: 45px;
    }

    .icon-box i {
        font-size: 1.3rem;
    }

    .info-card h3 {
        font-size: 1.2rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
    }

    .value-icon i {
        font-size: 1.7rem;
    }

    .value-card h4 {
        font-size: 1.1rem;
    }

    .contact-logo {
        width: 100px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .professional-contact-card {
        padding: 30px 20px;
    }

    .contact-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.3rem;
    }

    .contact-block-header h3 {
        font-size: 1.3rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .social-link-pro {
        padding: 9px 20px;
        font-size: 0.9rem;
    }

    .social-link-pro i {
        font-size: 1rem;
    }

    .social-link-pro span {
        font-size: 0.9rem;
    }

    .developer-card {
        padding: 30px 20px;
    }

    .developer-image img {
        width: 150px;
        height: 150px;
    }

    .developer-info h3 {
        font-size: 1.5rem;
    }

    .developer-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .developer-stats {
        gap: 10px;
    }

    .developer-stats .stat {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .developers-section h2 {
        font-size: 1.7rem;
    }

    .cta-section {
        padding: 40px 25px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}