/* ===== CSS Variables ===== */
:root {
    --bg-dark: #2d2d2d;
    --bg-darker: #1a1a1a;
    --bg-card: rgba(45, 45, 45, 0.8);
    --orange-dark: #ff6b00;
    --orange: #ff8c00;
    --orange-light: #ffa500;
    --yellow: #ffc107;
    --red: #ff0000;
    --white: #ffffff;
    --gray: #888888;
    --gray-light: #aaaaaa;
    --border-color: rgba(255, 140, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #ff6b00 0%, #ff8c00 50%, #ffa500 100%);
    --gradient-secondary: linear-gradient(135deg, #ffa500 0%, #ffc107 100%);
    --shadow-orange: 0 10px 40px rgba(255, 107, 0, 0.3);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-darker);
    color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== Gradient Text ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--orange);
}

.btn-secondary:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--gray-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    pointer-events: none;
}

.chevron-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.chevron {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.chevron-1 {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
    clip-path: polygon(70% 0, 100% 50%, 70% 100%, 0 100%, 0 0);
    transform: translateX(0);
}

.chevron-2 {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    clip-path: polygon(70% 0, 100% 50%, 70% 100%, 0 100%, 0 0);
    transform: translateX(-60px);
}

.chevron-3 {
    background: linear-gradient(135deg, #ffa500 0%, #ffc107 100%);
    clip-path: polygon(70% 0, 100% 50%, 70% 100%, 0 100%, 0 0);
    transform: translateX(-120px);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-description {
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-main {
    width: 280px;
    height: 280px;
    position: relative;
}

.logo-circle {
    width: 100%;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(255, 107, 0, 0.3));
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--orange);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--gray-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--gray-light);
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
}

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

.service-card.featured {
    border-color: var(--orange);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.service-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--orange);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card > p {
    color: var(--gray-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--orange);
    font-size: 0.8rem;
}

/* ===== Brands Section ===== */
.brands {
    padding: 100px 0;
    background: var(--bg-dark);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
}

.brand-header {
    padding: 35px 25px;
    text-align: center;
}

.brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.brand-icon.tech-time {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: var(--white);
}

.brand-icon.auto-time {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: var(--white);
}

.brand-icon.web-time {
    background: linear-gradient(135deg, #ffa500, #ffc107);
    color: var(--white);
}

.brand-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.brand-header p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.brand-links {
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.brand-website {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 15px;
    transition: var(--transition);
}

.brand-website:hover {
    color: var(--yellow);
}

.brand-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: var(--transition);
}

.brand-social a:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Widget Section ===== */
.widget-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.widget-section .section-header {
    margin-bottom: 40px;
}

.widget-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-container iframe {
    border-radius: 12px;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.widget-cta {
    text-align: center;
    margin-top: 30px;
}

.widget-cta .btn {
    gap: 10px;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--gray-light);
    margin-bottom: 30px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 18px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--orange);
    background: rgba(255, 107, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.contact-details a {
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    direction: ltr;
    display: inline-block;
}

.contact-details a:hover {
    color: var(--orange);
}

.whatsapp-cta {
    margin-top: 20px;
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 107, 0, 0.05);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-dark);
}

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

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray-light);
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--orange);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 140, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Responsive Design - Tablet ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-logo {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .services-grid,
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ===== Responsive Design - Mobile ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.5;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-tag {
        font-size: 0.8rem;
    }

    .about,
    .services,
    .brands,
    .contact {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .services-grid,
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .about-stats {
        justify-content: center;
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-card {
        padding: 30px 20px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .widget-section {
        margin-top: 50px;
        padding-top: 40px;
    }

    .widget-container {
        padding: 15px;
        border-radius: 15px;
    }

    .widget-section .section-header {
        margin-bottom: 25px;
    }

    .widget-section .section-header h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-links a:hover {
        padding-right: 0;
    }
}

/* ===== Responsive Design - Small Mobile ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-logo span {
        font-size: 1rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .about-stats {
        flex-wrap: wrap;
    }

    .stat {
        min-width: 80px;
    }

    .service-icon,
    .brand-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .contact-card {
        padding: 15px;
    }

    .contact-details a {
        font-size: 1rem;
    }

    .brand-social a {
        width: 35px;
        height: 35px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .whatsapp-cta .btn {
        width: 100%;
    }
}

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

.service-card,
.brand-card,
.about-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}

/* ===== Selection ===== */
::selection {
    background: var(--orange);
    color: var(--white);
}

/* ===== Focus States for Accessibility ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

/* ===== Disable animations for reduced motion preference ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
