/* ============================================
   CREATIVE IDEA - MODERN PROFESSIONAL DESIGN
   ============================================ */

/* ===== MODERN VARIABLES - CREATIVE PALETTE ===== */
:root {
    /* Primary Colors - Deep Blue */
    --primary-50: #e6f3ff;
    --primary-100: #cce7ff;
    --primary-200: #99cfff;
    --primary-300: #66b7ff;
    --primary-400: #339fff;
    --primary-500: #006cde;
    --primary-600: #0056b2;
    --primary-700: #004085;
    --primary-800: #002b59;
    --primary-900: #00152c;
    
    /* Secondary Colors - Turquoise */
    --secondary-50: #e6fffe;
    --secondary-100: #ccfffc;
    --secondary-200: #99fff9;
    --secondary-300: #66fff7;
    --secondary-400: #33fff4;
    --secondary-500: #00e1d5;
    --secondary-600: #00b4aa;
    --secondary-700: #008780;
    --secondary-800: #005a55;
    --secondary-900: #002d2b;
    
    /* Accent Colors - Pink/Red */
    --accent-50: #ffe6ef;
    --accent-100: #ffcce0;
    --accent-200: #ff99c1;
    --accent-300: #ff66a1;
    --accent-400: #ff3382;
    --accent-500: #f02356;
    --accent-600: #c01c45;
    --accent-700: #901534;
    --accent-800: #600e23;
    --accent-900: #300711;
    
    /* Main Colors */
    --primary-color: #006cde;
    --secondary-color: #00e1d5;
    --accent-color: #f02356;
    --dark-color: #111111;
    --light-color: #f9f9f9;
    
    /* Gradients - Creative & Modern */
    --primary-gradient: linear-gradient(135deg, #006cde 0%, #004085 100%);
    --secondary-gradient: linear-gradient(135deg, #00e1d5 0%, #008780 100%);
    --accent-gradient: linear-gradient(135deg, #f02356 0%, #901534 100%);
    --hero-gradient: linear-gradient(135deg, #002b59 0%, #006cde 50%, #00e1d5 100%);
    --creative-gradient: linear-gradient(135deg, #006cde 0%, #00e1d5 50%, #f02356 100%);
    
    /* Typography */
    --font-primary: 'Cairo', 'Poppins', sans-serif;
    --font-secondary: 'Tajawal', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 15px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== GLOBAL RESETS & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.8;
    overflow-x: hidden;
    background: #fff;
}

/* ===== MODERN NAVIGATION - CREATIVE DESIGN ===== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 108, 222, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 30px rgba(0, 108, 222, 0.12);
    border-bottom: 2px solid var(--primary-100);
}

.modern-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0;
}

.modern-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.modern-logo:hover img {
    transform: scale(1.05);
}

.modern-logo-text {
    font-size: 26px;
    font-weight: 900;
    background: var(--creative-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1;
}

.modern-menu {
    display: flex;
    gap: 45px;
    list-style: none;
    align-items: center;
}

.modern-menu li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
}

.modern-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--creative-gradient);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modern-menu li a:hover::before,
.modern-menu li a.active::before {
    width: 100%;
}

.modern-menu li a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-50);
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0;
}

.modern-menu li a:hover::after {
    width: 120%;
    height: 200%;
    opacity: 1;
}

/* ===== HERO SECTION - CINEMATIC ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--hero-gradient);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--creative-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 108, 222, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 225, 213, 0.6);
    background: var(--secondary-gradient);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* ===== SERVICES SECTION - MODERN CARDS ===== */
.services-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

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

.section-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 30px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 36px;
    color: white;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}

.service-link:hover {
    gap: 15px;
}

/* ===== PORTFOLIO SECTION - GALLERY ===== */
.portfolio-section {
    padding: var(--section-padding);
    background: var(--dark-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-item {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 113, 226, 0.95) 0%, rgba(13, 91, 181, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    padding: 40px;
}

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

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

.portfolio-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.portfolio-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.portfolio-description {
    font-size: 16px;
    text-align: center;
    opacity: 0.95;
}

/* ===== STATISTICS SECTION ===== */
.stats-section {
    padding: var(--section-padding);
    background: var(--primary-gradient);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.stat-number {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 300;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: var(--section-padding);
    background: #f8f9fa;
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: #666;
}

/* ===== CONTACT SECTION - MODERN ===== */
.contact-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #084a94 0%, #0d5bb5 50%, #1071e2 100%);
    color: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 36px;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .modern-nav {
        padding: 15px 20px;
    }
    
    .modern-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .modern-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .service-link:hover {
    gap: 15px;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}
