/* Global Styles */
:root {
    --primary-color: #2A9D8F;
    --secondary-color: #264653;
    --accent-color: #E9C46A;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Header/Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1) 0%, rgba(38, 70, 83, 0.2) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 80%;
    height: 80%;
    background-image: url('/api/placeholder/800/600');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-left: 15px;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Figma Showcase Section */
.figma-showcase {
    background-color: var(--light-color);
    padding: 5rem 0;
}

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

.figma-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: center;
    padding-bottom: 1.5rem;
    cursor: pointer;
}

.figma-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.figma-image {
    position: relative;
    overflow: hidden;
    padding-top: 200%; /* 2:1 aspect ratio */
}

.figma-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 107%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.figma-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 157, 143, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.figma-item:hover .figma-overlay {
    opacity: 1;
}

.figma-item:hover .figma-image img {
    transform: scale(1.05);
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.figma-item h3 {
    padding: 1.5rem 1rem 0.5rem;
    margin: 0;
    color: var(--secondary-color);
}

.figma-item p {
    padding: 0 1.5rem;
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Simulation Controls */
.simulation-controls {
    text-align: center;
    margin-top: 2rem;
    position: relative;
}

#startSimulation {
    background: linear-gradient(45deg, var(--primary-color), #80D0C7);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

#startSimulation:hover {
    background: linear-gradient(45deg, var(--secondary-color), #3A7D93);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.4);
}

#startSimulation i {
    margin-left: 0.5rem;
}

.simulation-progress {
    max-width: 400px;
    margin: 1rem auto;
    background-color: rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #80D0C7);
    width: 0;
    transition: width 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.progress-text {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Modal Styles */
.figma-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: hidden;
    padding: 2rem;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 90vh;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-image-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: var(--light-color);
}

#modalImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.modal-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.1rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Animation for step transitions */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.figma-item.active {
    animation: fadeInScale 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Animation for modal image transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quote {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-style: italic;
    margin: 2rem 0;
    padding: 1rem;
    border-right: 3px solid var(--primary-color);
    background-color: rgba(42, 157, 143, 0.05);
}

/* Features Section */
.features {
    background-color: rgba(42, 157, 143, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Demo Section */
.demo {
    text-align: center;
}

.video-container {
    margin: 3rem auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* تعديل حجم الفيديو ليناسب الهاتف المحمول */
.video-container.mobile-size {
    max-width: 320px;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    border: 8px solid var(--secondary-color);
    position: relative;
}

.video-container.mobile-size::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 15px 15px 0 0;
    z-index: 2;
}

.video-container.mobile-size::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
}

.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: var(--light-color);
}

.video-container.mobile-size .video-placeholder {
    padding-bottom: 177.78%; /* نسبة 16:9 مقلوبة للهاتف المحمول (9:16) */
    border-radius: 12px;
    overflow: hidden;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container.mobile-size .video-placeholder img {
    object-fit: contain;
    background-color: #fff;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.play-btn::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #fff;
    margin-left: 7px;
}

/* Custom Video Controls */
.video-placeholder video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.video-placeholder video::-webkit-media-controls-play-button {
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Team Section */
.team-members {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.team-member {
    flex: 0 0 calc(50% - 3rem);
    max-width: 450px;
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.team-member::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.team-member::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05) 0%, rgba(38, 70, 83, 0.02) 100%);
    z-index: -1;
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(42, 157, 143, 0.2);
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    font-weight: bold;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.25);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-photo img {
    width: 69%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(42, 157, 143, 0.35);
}

.team-member h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.team-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(42, 157, 143, 0.08);
    border-radius: 30px;
}

.team-title::after {
    content: none;
}

.team-bio {
    text-align: right;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    background-color: rgba(248, 249, 250, 0.7);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.team-bio p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1rem;
    color: #444;
}

.team-bio p:last-child {
    margin-bottom: 0;
}

.achievements-list {
    text-align: right;
    list-style-type: none;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.achievements-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-right: 2rem;
    line-height: 1.6;
    color: #444;
}

.achievements-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.achievements-list li:last-child {
    margin-bottom: 0;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.3);
}

/* Call to Action Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscription-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    width: 100%;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .team-member {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links, .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
} 