:root {
    --primary-color: #ccff00;
    --bg-dark: #000000;
    --bg-secondary: #0a0a0a;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #1a1a1a;
    --accent-red: #ff006e;
    --accent-blue: #00d9ff;
    --accent-purple: #b537f2;
    --accent-orange: #ff6b35;
    --linkedin-color: #0077b5;
    --facebook-color: #1877f2;
    --instagram-color: #e4405f;
    --twitter-color: #000000;
    --youtube-color: #ff0000;
    --whatsapp-color: #25d366;
    --telegram-color: #0088cc;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
}

body[dir="rtl"] * {
    font-family: 'Cairo', sans-serif !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Phone Sidebar ========== */
.phone-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    animation: float 3s ease-in-out infinite;
}

.phone-number {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 40px rgba(204, 255, 0, 0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-60%);
    }
}

/* ========== Social Sidebar ========== */
.social-sidebar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px solid currentColor;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 20px currentColor;
}

.linkedin-link {
    border-color: var(--linkedin-color);
    color: var(--linkedin-color);
}

.linkedin-link:hover {
    background: var(--linkedin-color);
    color: white;
}

.facebook-link {
    border-color: var(--facebook-color);
    color: var(--facebook-color);
}

.facebook-link:hover {
    background: var(--facebook-color);
    color: white;
}

.instagram-link {
    border-color: var(--instagram-color);
    color: var(--instagram-color);
}

.instagram-link:hover {
    background: var(--instagram-color);
    color: white;
}

.twitter-link {
    border-color: var(--twitter-color);
    color: var(--twitter-color);
}

.twitter-link:hover {
    background: var(--twitter-color);
    color: white;
}

.youtube-link {
    border-color: var(--youtube-color);
    color: var(--youtube-color);
}

.youtube-link:hover {
    background: var(--youtube-color);
    color: white;
}

.whatsapp-link {
    border-color: var(--whatsapp-color);
    color: var(--whatsapp-color);
}

.whatsapp-link:hover {
    background: var(--whatsapp-color);
    color: white;
}

.telegram-link {
    border-color: var(--telegram-color);
    color: var(--telegram-color);
}

.telegram-link:hover {
    background: var(--telegram-color);
    color: white;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(204, 255, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color), #99cc00);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.lang-toggle {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.lang-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title-line {
    display: block;
    color: var(--text-light);
}

.typing-effect {
    color: var(--primary-color);
}

.cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    height: 500px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(204, 255, 0, 0.2);
}

.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23ccff00" opacity="0.1"/></svg>');
    background-size: 600px 120px;
    animation: wave 15s linear infinite;
    border-radius: 0 0 20px 20px;
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 600px 0;
    }
}

/* ========== About Section ========== */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-light);
    letter-spacing: -1px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.9;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== Services Section ========== */
.services {
    padding: 6rem 0;
    background: var(--bg-dark);
}

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

.service-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(204, 255, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== Portfolio Section ========== */
.portfolio {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.carousel-wrapper {
    position: relative;
    margin-top: 3rem;
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.portfolio-track {
    padding: 1rem;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 300px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.portfolio-overlay p {
    color: var(--text-gray);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.carousel-btn.prev {
    left: -30px;
}

.carousel-btn.next {
    right: -30px;
}

/* ========== Testimonials Section ========== */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.testimonials-track {
    padding: 1rem;
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(204, 255, 0, 0.1);
}

.stars {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-name {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========== Contact Section ========== */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.info-item h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
}

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

.contact-form input,
.contact-form textarea {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-gray);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-dark);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        height: 300px;
    }

    .carousel-item {
        flex: 0 0 calc(100% - 1rem);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .phone-sidebar {
        display: none;
    }

    .social-sidebar {
        right: 1rem;
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .social-sidebar {
        gap: 0.8rem;
    }
}

/* ========== RTL Support for Sidebars ========== */
body[dir="rtl"] .phone-sidebar {
    left: auto;
    right: 2rem;
}

body[dir="rtl"] .social-sidebar {
    right: auto;
    left: 2rem;
}

body[dir="rtl"] .phone-number {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* RTL Responsive */
@media (max-width: 768px) {
    body[dir="rtl"] .phone-sidebar {
        right: 1rem;
    }
    
    body[dir="rtl"] .social-sidebar {
        left: 1rem;
    }
}
