/* ====== RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0b1a;
    color: #eee;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== TYPOGRAPHY ====== */
.section-title {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.section-title span {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====== NAVBAR ====== */
header {
    background: rgba(11, 11, 26, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.logo span {
    color: #00d4ff;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #00d4ff;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
}

/* ====== HERO ====== */
.hero {
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 30%, #1a1a3e, #0b0b1a 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-text h1 span {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: #aaa;
    margin: 1.5rem 0 2.2rem;
    max-width: 520px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    color: #fff;
    padding: 14px 42px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: 0.4s;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.15);
}

/* ====== SERVICES ====== */
.services {
    padding: 80px 0;
    background: #0f0f24;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.35s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
}

.service-card i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.service-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* ====== ABOUT ====== */
.about {
    padding: 80px 0;
    background: #0b0b1a;
}

.about-desc {
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
}

.about-item {
    background: rgba(255,255,255,0.05);
    padding: 14px 18px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    font-weight: 500;
    color: #ddd;
    transition: 0.3s;
}

.about-item i {
    color: #00d4ff;
    margin-left: 10px;
}

.about-item:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.08);
}

/* ====== TEAM ====== */
.team {
    padding: 80px 0;
    background: #0f0f24;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.team-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    max-width: 220px;
    transition: 0.35s;
}

.team-card:hover {
    transform: scale(1.04);
    border-color: #7b2ffc;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    color: #fff;
}

.team-card h3 {
    font-size: 1.4rem;
    color: #fff;
}

.team-card p {
    color: #aaa;
    font-size: 0.95rem;
}

.team-slogan {
    text-align: center;
    font-size: 1.15rem;
    color: #ccc;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ====== CONTACT ====== */
.contact {
    padding: 80px 0;
    background: #0b0b1a;
    text-align: center;
}

.contact p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 0.4rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    padding: 14px 32px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s;
}

.contact-btn:hover {
    background: #00d4ff;
    color: #0b0b1a;
}

.contact-btn.whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.footer-tag {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* ====== FOOTER ====== */
footer {
    background: #060612;
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
}

footer p {
    color: #666;
    font-size: 0.95rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-text h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: rgba(11, 11, 26, 0.98);
        padding: 2rem;
        border-radius: 16px;
        position: absolute;
        top: 70px;
        right: 20px;
        left: 20px;
        border: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-text h1 {
        font-size: 2.1rem;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
}
/* ====== PORTFOLIO ====== */
.portfolio {
    padding: 80px 0;
    background: #0f0f24;
}

.portfolio-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.4s;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.08);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 26, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.portfolio-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.portfolio-info p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.portfolio-tech {
    display: inline-block;
    font-size: 0.75rem;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-image {
        height: 180px;
    }
}
/* ====== WHATSAPP FLOATING BUTTON ====== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* عربي */
    background: #25d366;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* أداة التوضيح (tooltip) */
.whatsapp-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    right: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.85);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* نبضات الأيقونة */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* أيقونة داخل الزر */
.whatsapp-float i {
    animation: whatsapp-bounce 2s infinite;
}

@keyframes whatsapp-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 2rem;
        bottom: 20px;
        left: 20px;
    }
    .whatsapp-tooltip {
        display: none; /* إخفاء التولتيب في الموبايل */
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 15px;
        left: 15px;
    }
}