:root {
    --primary: #0a0e17;
    --secondary: #1a1f2e;
    --accent: #00c6ff;
    --accent-glow: rgba(0, 198, 255, 0.6);
    --accent-secondary: #ff2d75;
    --accent-secondary-glow: rgba(255, 45, 117, 0.6);
    --light: #e6f1ff;
    --dark: #0a0a0a;
    --success: #00ff9d;
    --warning: #ffcc00;
    --danger: #ff0055;
    --transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 198, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, rgba(255, 45, 117, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 157, 0.05) 0%, transparent 20%);
    z-index: -2;
    pointer-events: none;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.arabic-font {
    font-family: 'Tajawal', sans-serif;
}

.tech-font {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 100px 0;
    position: relative;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(20px); }
    50% { transform: translateY(0) translateX(40px); }
    75% { transform: translateY(20px) translateX(20px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Header & Navigation */
header {
    background-color: rgba(10, 14, 23, 0.95);
    padding: 25px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 198, 255, 0.2);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: var(--transition-fast);
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-icon {
    color: var(--accent);
    margin-right: 15px;
    font-size: 2.2rem;
    text-shadow: 0 0 15px var(--accent-glow);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px var(--accent-glow); }
    100% { text-shadow: 0 0 20px var(--accent-glow), 0 0 30px var(--accent-glow); }
}

.logo-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-arabic {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: -5px;
}

.logo-english {
    font-size: 1.8rem;
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
    height: fit-content;
}

nav ul li {
    margin-left: 40px;
    position: relative;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: var(--transition-fast);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: var(--transition-fast);
}

nav ul li a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

nav ul li a:hover::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero {
    padding: 200px 0 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.startup-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
    animation: badgePulse 3s infinite alternate;
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3); }
    100% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0, 198, 255, 0.5); }
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(0, 198, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(0, 198, 255, 0.8), 0 0 30px rgba(0, 198, 255, 0.6); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    color: var(--accent);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    animation: underlineSlide 2s infinite alternate;
}

@keyframes underlineSlide {
    0% { width: 0; left: 0; }
    100% { width: 100%; left: 0; }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 198, 255, 0.5);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.2);
}

.cta-button.secondary:hover {
    background: rgba(0, 198, 255, 0.1);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* About Startup Section */
.about-startup {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.startup-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.highlight-card {
    background: rgba(10, 14, 23, 0.6);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 198, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 198, 255, 0.2);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    text-shadow: 0 0 15px var(--accent-glow);
}

.highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

/* Services Section */
.services-section {
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--light);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-title h2 .highlight {
    color: var(--accent);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 5px;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.8), rgba(10, 14, 23, 0.9));
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 198, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 198, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 198, 255, 0.2), 0 0 30px rgba(0, 198, 255, 0.1);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    position: relative;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
}

.service-card p {
    color: rgba(230, 241, 255, 0.8);
    margin-bottom: 25px;
}

.service-learn-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.service-learn-more:hover {
    text-shadow: 0 0 10px var(--accent-glow);
    transform: translateX(5px);
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.95), rgba(0, 198, 255, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(30px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1) rotate(2deg);
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(0, 198, 255, 0.2);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

/* Contact Section - Updated for Remote Startup */
.contact-section {
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(10, 14, 23, 0.5);
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(10, 14, 23, 0.8);
    transform: translateX(10px);
    border-left-color: var(--accent-secondary);
}

.contact-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.remote-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 1px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    color: var(--primary);
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
    transition: var(--transition);
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 198, 255, 0.3);
}

.submit-btn:hover::before {
    width: 100%;
}

/* Team Section - For Remote Team */
.team-section {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background: rgba(10, 14, 23, 0.6);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 198, 255, 0.2);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 198, 255, 0.2);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.member-location {
    display: inline-block;
    background: rgba(0, 198, 255, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--primary);
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 70px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light);
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(230, 241, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(26, 31, 46, 0.8);
    color: var(--accent);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
    border: 1px solid rgba(0, 198, 255, 0.2);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 198, 255, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 198, 255, 0.1);
    color: rgba(230, 241, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 3D Effects and Advanced Animations */
.floating-element {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary), var(--accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(10px);
}

.glow-effect:hover::after {
    opacity: 0.7;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        background: rgba(10, 14, 23, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        transition: var(--transition);
        z-index: 1000;
        backdrop-filter: blur(10px);
        border-left: 1px solid rgba(0, 198, 255, 0.2);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 0 0 30px 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .section-title h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 180px 0 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .service-card {
        padding: 40px 25px;
    }
}