* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-reverse: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    transition: opacity 0.5s ease;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, opacity 0.1s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent);
}

@media (hover: none) {
    .custom-cursor {
        display: none;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-overlay {
    display: none;
}

.cta-btn {
    padding: 0.8rem 2rem;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1003;
    padding: 10px;
    margin-right: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--light);
    transition: 0.3s;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.3;
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-reverse);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.2;
    bottom: -100px;
    left: -100px;
    animation: pulse 8s ease-in-out infinite reverse;
}

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

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.-bottom: 1.5rem;
2;
    margin}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.secondary-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    opacity: 0.3;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

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

.section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto;
}

.features {
    background: linear-gradient(180deg, var(--dark) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    opacity: 0.7;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: 0.4s;
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: 0.4s;
}

.service-card:hover .service-icon {
    background: var(--gradient);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    opacity: 0.7;
}

.works {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, var(--dark) 100%);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.work-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: 0.4s;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.work-overlay p {
    opacity: 0.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    opacity: 0.7;
    margin-top: 0.5rem;
}

.contact {
    background: linear-gradient(180deg, var(--dark) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

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

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

.contact-form .cta-btn {
    align-self: center;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
}

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

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@media (max-width: 768px) {
    nav {
        padding: 1rem 5% !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active.show {
        right: 0;
    }
    
    .nav-links.active::before {
        content: 'القائمة';
        font-size: 1.3rem;
        font-weight: 700;
        color: #818cf8;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links li {
        list-style: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 1rem 0.5rem;
        color: #e2e8f0;
        text-decoration: none;
        transition: all 0.2s ease;
        border-radius: 8px;
        animation: slideIn 0.3s ease forwards;
        opacity: 0;
    }
    
    .nav-links.active.show li:nth-child(1) a { animation-delay: 0.05s; }
    .nav-links.active.show li:nth-child(2) a { animation-delay: 0.1s; }
    .nav-links.active.show li:nth-child(3) a { animation-delay: 0.15s; }
    .nav-links.active.show li:nth-child(4) a { animation-delay: 0.2s; }
    .nav-links.active.show li:nth-child(5) a { animation-delay: 0.25s; }
    .nav-links.active.show li:nth-child(6) a { animation-delay: 0.3s; }
    .nav-links.active.show li:nth-child(7) a { animation-delay: 0.35s; }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.15);
        color: #818cf8;
        padding-right: 1rem;
    }
    
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        padding: 8px;
        gap: 5px;
        z-index: 1002;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2px;
        background: #fff;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-maker-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .logo-maker-grid .logo-preview,
    .logo-maker-grid .logo-settings {
        padding: 1rem !important;
    }
    
    .logo-maker-grid .logo-preview {
        order: 1;
    }
    
    .logo-maker-grid .logo-settings {
        order: 2;
    }
    
    #logo-maker #logoPreview {
        min-height: 180px !important;
        padding: 1rem !important;
    }
    
    #logo-maker #logoDisplay {
        flex-direction: column !important;
        text-align: center;
        gap: 10px !important;
    }
    
    #logo-maker #logoDisplay i {
        font-size: 36px !important;
    }
    
    #logo-maker #logoDisplay span {
        font-size: 20px !important;
    }
    
    #logo-maker .form-group {
        margin-bottom: 0.8rem;
    }
    
    #logo-maker .form-group label {
        font-size: 0.9rem;
    }
    
    #logo-maker input[type="text"],
    #logo-maker select {
        padding: 0.6rem !important;
        font-size: 0.9rem;
    }
    
    #logo-maker .color-btn {
        width: 35px !important;
        height: 35px !important;
    }
    
    #logo-maker #iconGrid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-height: 120px !important;
    }
    
    #logo-maker #iconGrid i {
        font-size: 20px !important;
    }
    
    #logo-maker button {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    #logo-maker input[type="range"] {
        height: 6px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .domain-results {
        grid-template-columns: 1fr;
    }
    
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
