/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0038a8 0%, #ce1126 50%, #fcd116 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><polygon fill="rgba(255,255,255,0.1)" points="0,10 20,5 40,12 60,3 80,8 100,6 100,20 0,20"/></svg>');
    animation: wave 15s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 1.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.flag-container {
    position: relative;
    width: 50px;
    height: 35px;
}

.flag-icon {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background: linear-gradient(to bottom, 
        #0038a8 0%, #0038a8 50%, 
        #ce1126 50%, #ce1126 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.flag-triangle {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 17.5px solid white;
    border-bottom: 17.5px solid white;
    border-right: 20px solid transparent;
}

.flag-star {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #fcd116;
    font-size: 8px;
}

.certification {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 5px;
    backdrop-filter: blur(10px);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 56, 168, 0.85), rgba(206, 17, 38, 0.85)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="boracay" patternUnits="userSpaceOnUse" width="200" height="200"><rect fill="%2387ceeb" width="200" height="200"/><circle cx="100" cy="100" r="30" fill="%23ffffff" opacity="0.8"/><circle cx="50" cy="60" r="15" fill="%23ffd700" opacity="0.6"/><circle cx="150" cy="140" r="20" fill="%23ffffff" opacity="0.5"/><polygon points="180,180 190,160 200,180 190,200" fill="%23228b22" opacity="0.7"/></pattern></defs><rect fill="url(%23boracay)" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(252,209,22,0.6)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.4)"/><circle cx="40" cy="70" r="1" fill="rgba(252,209,22,0.5)"/><circle cx="90" cy="80" r="2.5" fill="rgba(255,255,255,0.3)"/><polygon points="60,30 65,20 70,30 65,40" fill="rgba(252,209,22,0.4)"/></svg>');
    animation: sparkle 20s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    75% { transform: translateY(-10px) rotate(270deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.certification-badge {
    background: rgba(252, 209, 22, 0.9);
    color: #0038a8;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: slideInDown 1s ease-out;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.3s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-feature {
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon fill="rgba(0,56,168,0.05)" points="50,10 90,90 10,90"/><circle cx="50" cy="30" r="5" fill="rgba(252,209,22,0.3)"/></svg>');
    opacity: 0.7;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    background: linear-gradient(45deg, #0038a8, #ce1126, #fcd116);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    position: relative;
    font-weight: bold;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(45deg, #0038a8, #ce1126, #fcd116);
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, #0038a8, #ce1126, #fcd116);
    transition: left 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 30px;
    background: linear-gradient(to right, #0038a8 33%, #ce1126 33%, #ce1126 66%, #fcd116 66%);
    border-radius: 4px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover::after {
    opacity: 0.3;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 56, 168, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 56, 168, 0.1), rgba(206, 17, 38, 0.1));
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, rgba(0, 56, 168, 0.2), rgba(252, 209, 22, 0.2));
}

.service-title {
    font-size: 1.6rem;
    color: #0038a8;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-description {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-price {
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #fcd116, #ffeb3b);
    color: #0038a8;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

/* Pricing Section */
.pricing {
    background: linear-gradient(135deg, #0038a8 0%, #ce1126 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="20" fill="rgba(252,209,22,0.1)"/><circle cx="150" cy="150" r="25" fill="rgba(255,255,255,0.05)"/><polygon points="180,20 190,10 200,20 190,30" fill="rgba(252,209,22,0.15)"/></svg>');
}

.pricing-note {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 30px;
}

.pricing-note h3 {
    color: #fcd116;
    margin-bottom: 10px;
}

/* Features Section */
.features {
    background: white;
    padding: 80px 0;
    position: relative;
}

.features::before {
    content: '🇵🇭';
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 100px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 35px 25px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 56, 168, 0.2);
    box-shadow: 0 20px 40px rgba(0, 56, 168, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #0038a8, #ce1126);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #fcd116;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.feature-title {
    font-size: 1.3rem;
    color: #0038a8;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 56, 168, 0.9), rgba(206, 17, 38, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><radialGradient id="sun" cx="50%" cy="30%"><stop offset="0%" stop-color="%23ffd700"/><stop offset="100%" stop-color="%23ffeb3b"/></radialGradient></defs><rect fill="%2387ceeb" width="1200" height="400"/><circle cx="900" cy="80" r="50" fill="url(%23sun)"/><ellipse cx="600" cy="350" rx="300" ry="50" fill="%23f5deb3" opacity="0.8"/><ellipse cx="300" cy="380" rx="200" ry="30" fill="%23f5deb3" opacity="0.6"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: 2px solid #25d366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #128c7e, #25d366);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #fcd116, #ffeb3b);
    color: #0038a8;
    border: 2px solid #fcd116;
    box-shadow: 0 5px 15px rgba(252, 209, 22, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ffeb3b, #fcd116);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(252, 209, 22, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ccc;
    padding: 60px 0 25px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #0038a8, #ce1126, #fcd116);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fcd116;
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ce1126;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #fcd116;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 25px;
    text-align: center;
    color: #888;
    position: relative;
}

.footer-bottom::before {
    content: '🇵🇭';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    background: #2d2d2d;
    padding: 0 10px;
    font-size: 20px;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0038a8, #ce1126, #fcd116);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes slideInDown {
    from { 
        opacity: 0; 
        transform: translateY(-100px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(100px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero {
        padding: 80px 0;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services {
        padding: 60px 0;
    }

    .service-card {
        padding: 30px 20px;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .loading-overlay,
    .whatsapp-btn,
    .btn {
        display: none;
    }
    
    .hero {
        background-attachment: scroll;
    }
}