/* تنبيهات النموذج */
.alert-message {
    position: relative;
    padding: 15px 40px 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
}

.alert-message.success {
    background-color: #10b981;
    border-right: 4px solid #059669;
}

.alert-message.error {
    background-color: #ef4444;
    border-right: 4px solid #dc2626;
}

.alert-message .close-alert {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.alert-message .close-alert:hover {
    opacity: 0.8;
}

/* How We Work Section - Interactive Path */
.how-we-work {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.how-we-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 101, 132, 0.1) 0%, transparent 30%);
    z-index: 1;
}

.how-we-work .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.how-we-work .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.how-we-work .section-title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.how-we-work .section-subtitle {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.how-we-work .work-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 50px 0;
    margin: 0 50px;
}

/* Path Line */
.how-we-work .path-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 1;
}

.how-we-work .path-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6c63ff, #8a85ff);
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
    backface-visibility: hidden;
}

.how-we-work .work-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 10px;
    cursor: pointer;
    will-change: transform, opacity;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.how-we-work .step-connector {
    position: absolute;
    top: 25px;
    left: -50%;
    right: 50%;
    height: 3px;
    background: #334155;
    z-index: 0;
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
    backface-visibility: hidden;
}

.how-we-work .work-step:first-child .step-connector {
    display: none;
}

.how-we-work .step-connector.active {
    background: linear-gradient(90deg, #10b981, #34d399);
    transform: scaleX(1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-we-work .step-number {
    width: 50px;
    height: 50px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    border: 2px solid #334155;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow, background;
}

.how-we-work .step-content {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, background, box-shadow;
    transform: translateZ(0);
}

.how-we-work .work-step.active .step-content {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-3px);
}

.how-we-work .work-step.completed .step-content {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.how-we-work .step-content h3 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.how-we-work .step-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.how-we-work .work-step:hover .step-number {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.2);
}

.how-we-work .work-step.active .step-number {
    background: linear-gradient(135deg, #6c63ff, #8a85ff);
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.3);
}

.how-we-work .work-step.completed .step-number {
    background: linear-gradient(135deg, #10b981, #34d399);
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .how-we-work {
        padding: 60px 0;
    }
    
    .how-we-work .section-title {
        font-size: 1.8rem;
    }
    
    .how-we-work .work-steps {
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        margin: 0 20px;
    }
    
    .how-we-work .work-step {
        width: 100%;
        max-width: 380px;
        margin-bottom: 30px;
        padding: 0 5px;
    }
    
    .how-we-work .step-connector {
        width: 3px;
        height: 30px;
        left: 50%;
        top: -30px;
        right: auto;
        bottom: auto;
        transform-origin: top;
        transform: scaleY(0);
    }
    
    .how-we-work .step-connector.active {
        transform: scaleY(1);
    }
    
    .path-line {
        width: 3px;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);
    }
    
    .how-we-work .path-line-fill {
        width: 4px;
        height: 0;
    }
    
    .how-we-work .work-step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
        display: flex;
        align-items: center;
    }
    
    .how-we-work .work-step:last-child {
        margin-bottom: 0;
    }
    
    .how-we-work .step-connector {
        display: none;
    }
    
    .how-we-work .step-number {
        margin: 0 20px 0 0;
        flex-shrink: 0;
    }
    
    .how-we-work .step-content {
        text-align: right;
        padding: 20px;
        width: 100%;
    }
    
    .how-we-work .step-content h3 {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .how-we-work .section-title {
        font-size: 1.8rem;
    }
    
    .how-we-work .section-subtitle {
        font-size: 1rem;
    }
    
    .how-we-work .work-step {
        max-width: 100%;
    }
    
    .how-we-work .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Global Styles */
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    text-align: center;
    animation: bounce 2s infinite;
}

.loading-logo img {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #f0f0f0;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6c63ff, #4a45b1);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

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

:root {
    --primary-color: #6c63ff;
    --secondary-color: #4a45b1;
    --dark-color: #333;
    --light-color: #f4f4f9;
    --text-color: #333;
    --white: #fff;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
}

.logo .nav-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo a:hover .nav-logo {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.logo span {
    color: var(--primary-color);
    position: relative;
    top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: calc(100% - 40px);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7ff 0%, #f9f9f9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgzMCkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgxMDgsIDk5LCAyNTUsIDAuMSkiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');
    opacity: 0.5;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.4s forwards;
}

.hero-3d {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Logo Styling */
.logo-3d-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.logo-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.logo-3d-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: white;
    backface-visibility: visible;
}

.logo-3d-front {
    transform: translateZ(100px);
}

.logo-3d-back {
    transform: rotateY(180deg) translateZ(100px);
}

.logo-3d-right {
    transform: rotateY(90deg) translateZ(100px);
}

.logo-3d-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.logo-3d-top {
    transform: rotateX(90deg) translateZ(100px);
}

.logo-3d-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.logo-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* Pause animation on hover */
.logo-3d-container:hover .logo-3d {
    animation-play-state: paused;
}

/* Scroll down arrow has been removed */

/* Services Section */
.services {
    background-color: var(--light-color);
    padding: 100px 0;
}

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

.section-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-top: 15px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .services {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 100%;
    }
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    transition: var(--transition);
}

.service-card p {
    color: var(--text-light);
    transition: var(--transition);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    color: white;
}

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

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    transform: translateY(30px);
    transition: var(--transition);
    opacity: 0.9;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* About Section */
.about {
    background-color: #f9f9f9;
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 10px;
    flex: 1;
    min-width: 150px;
    transition: var(--transition);
}

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

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-light);
    margin: 0;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.partner-logo {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 120px;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 15px;
    }
    
    .partner-logo {
        min-width: 45%;
        height: 100px;
        padding: 15px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 15px;
    margin-top: 5px;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--dark-color);
    margin-left: 10px;
    transition: var(--transition);
    text-decoration: none;
}

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

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Subscription Section */
.subscription-section {
    padding: 80px 0;
    background: #f5f9ff;
}

.subscription-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.subscription-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.subscription-form .form-group {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 20px;
}

.subscription-form .form-group.full-width {
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
}

.subscription-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.subscription-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.subscription-form .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.subscription-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 20px;
    text-align: center;
}

.btn-submit {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

@media (max-width: 768px) {
    .subscription-form .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .subscription-form-container {
        padding: 25px 20px;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-3d {
        margin-top: 50px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: #f9f9ff;
    position: relative;
    overflow: hidden;
}

.team-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.team-track {
    display: flex;
    transition: transform 0.5s ease;
    padding: 20px 0;
    width: 100%;
}

.team-slide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 270px;
}

.member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    margin-top: 30px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 30px 20px;
    text-align: center;
}

.member-info h3 {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.member-info p {
    margin: 0;
    color: #6e8efb;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Social Icons */
.social-links {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%) scale(0.8);
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    padding: 0 20px;
}

.team-member:hover .social-links {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e8efb;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #6e8efb;
    color: #fff;
    transform: translateY(-3px);
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e8efb;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #6e8efb;
    color: #fff;
}

.prev-btn {
    right: -25px;
}

.next-btn {
    left: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #6e8efb;
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .team-slide {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-member {
        max-width: 300px;
    }
}

@media (max-width: 991px) {
    .team-slide {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-member {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .team-slide {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .team-member {
        max-width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        right: -20px;
    }
    
    .next-btn {
        left: -20px;
    }
}

/* Team Page Styles */
.team-hero {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 60px;
    opacity: 1;
    animation: fadeIn 0.8s ease-in-out;
}

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

.team-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.team-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px auto 0;
    max-width: 1200px;
    padding: 0 20px;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.member-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover .social-links {
    opacity: 1;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e8efb;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #fff;
    color: #6e8efb;
    transform: translateY(-3px);
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h3 {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.member-info .position {
    color: #6e8efb;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    font-size: 1rem;
}

.member-info .bio {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.cta-section {
    background: #f8f9ff;
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.cta-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 700;
}

.cta-section p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-hero {
        padding: 80px 0;
    }
    
    .team-hero h1 {
        font-size: 2.5rem;
    }
    
    .team-members {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 30px auto 0;
    }
    
    .member-image {
        height: 350px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .team-hero h1 {
        font-size: 2rem;
    }
    
    .team-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .member-image {
        height: 300px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        padding: 0 20px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
