:root {
    --primary-color: #195bef;
    --secondary-color: #2575fc;
    --accent-color: #ffd700;
    --text-color: #333333;
    --bg-light: #fdfbfb;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --font-main: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(-45deg, #fdfbfb, #ebedee, #f0f2f5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(25, 91, 239, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Header height */
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideRight 1s ease-out;
}

.small-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(25, 91, 239, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(25, 91, 239, 0.2);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #222;
}

.highlight {
    color: var(--secondary-color);
    background: linear-gradient(to left, var(--secondary-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 10px 20px rgba(25, 91, 239, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(25, 91, 239, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

/* Hero Image & Animations */
.hero-image {
    position: relative;
    animation: slideLeft 1.2s ease-out;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: lighten;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    bottom: -30px;
    left: -30px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    top: 50%;
    right: 50%;
    animation-delay: 4s;
}

/* Animations */
@keyframes slideRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 968px) {
    .main-title { font-size: 2.5rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-content { order: 2; }
    .hero-image { order: 1; margin: 24px auto; max-width: 80%; }
    .image-wrapper { transform: none; }
    .header-container { gap: 1rem; }
    .description { margin-left: auto; margin-right: auto; }
    .cta-group { justify-content: center; }
}

@media (max-width: 480px) {
    .main-title { font-size: 2rem; }
    .btn { width: 100%; text-align: center; }
    .cta-group { flex-direction: column; }
}

/* Services Section */
.services {
    padding: 5rem 0;
    position: relative;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(50%); /* For RTL centering fix if needed, or just standard center */
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

@media(max-width: 500px){
    .section-title{
        left: auto;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.service-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0; /* For animation */
    transform: translateY(30px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(25, 91, 239, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

/* Launch Message Section */
.launch-message {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.launch-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.launch-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.launch-content p {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    animation: pulseText 3s infinite ease-in-out;
}

.launch-decoration {
    width: 100px;
    height: 4px;
    background: #fff;
    margin: 2rem auto 0;
    border-radius: 2px;
    position: relative;
}

.launch-decoration::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: moveLine 2s infinite ease-in-out alternate;
}

@keyframes pulseText {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes moveLine {
    0% { left: 0; }
    100% { left: 100%; }
}

@media (max-width: 768px) {
    .launch-content p { font-size: 1.8rem; }
}

/* Decor for cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(25, 91, 239, 0.2), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}
