/* ===== Global Styles & Variables ===== */
:root {
    /* Palette */
    --primary: #2563eb;
    /* Royal Blue */
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary: #7c3aed;
    /* Violet */
    --accent: #f43f5e;
    /* Rose */

    --dark: #0f172a;
    /* Slate 900 */
    --dark-light: #1e293b;
    /* Slate 800 */
    --gray: #64748b;
    /* Slate 500 */
    --light-gray: #f1f5f9;
    /* Slate 100 */
    --light: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-hover: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
    --gradient-text: linear-gradient(135deg, #2563eb 0%, #d946ef 100%);

    /* UI Elements */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --backdrop: blur(12px);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    position: relative;
    padding-bottom: 20px;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary,
.btn:not(.btn-outline):not(.btn-white) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn:not(.btn-outline):not(.btn-white):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--light);
    transform: translateY(-3px);
}

.btn::before {
    display: none;
}

/* Override old styles */

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop);
    -webkit-backdrop-filter: var(--backdrop);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo img {
    height: 45px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-weight: 600;
    color: var(--dark-light);
    position: relative;
    padding: 5px 0;
    display: block;
    font-size: 1.05rem;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--gray);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 16px 40px;
}

.btn-hero-outline {
    background: white;
    border: 2px solid white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-hero-outline:hover {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}


/* ===== About Section ===== */
.about {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: auto;
    max-height: 600px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    align-items: flex-start;
}

.feature-item:hover {
    transform: translateX(-10px);
    background: white;
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin: 0;
    box-shadow: var(--shadow);
}

.feature-text h4 {
    margin-top: 5px;
}

/* ===== Stats Section ===== */
.stats {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0 L100 100" stroke="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.stat-item::after {
    display: none;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-light);
    margin-bottom: 10px;
    font-family: 'Tajawal', sans-serif;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.stat-text {
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 500;
}

/* ===== Cards (Apps, Websites, Services) ===== */
.apps-section,
.websites-section,
.services {
    padding: 100px 0;
    background-color: var(--light);
}

.websites-section {
    background-color: white;
}

.apps-grid,
.websites-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.app-card,
.service-card,
.website-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-card:hover,
.service-card:hover,
.website-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

/* Hover Gradient Border Effect */
.app-card::before,
.service-card::before,
.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 2;
}

.app-card:hover::before,
.service-card:hover::before,
.website-card:hover::before {
    transform: scaleX(1);
}

.app-logo,
.service-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card:hover .app-logo,
.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(180deg);
}

.app-card h3,
.service-card h3,
.website-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.app-card p,
.service-card p,
.website-card p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

/* Website Card Specifics */
.website-card {
    padding: 0;
    align-items: stretch;
    text-align: right;
}

.website-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.website-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.website-card:hover .website-image img {
    transform: scale(1.1);
}

.website-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.website-features,
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0;
}

.website-features span {
    padding: 6px 14px;
    background: var(--light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.service-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--dark);
}

.service-features i {
    color: var(--secondary);
}

/* Featured Service */
.service-card.featured {
    background: var(--gradient-primary);
    color: white;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-features li,
.service-card.featured .service-icon {
    color: white;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card.featured .service-features i {
    color: white;
}

.service-card.featured .btn {
    background: white;
    color: var(--primary);
}

.service-card.featured .btn:hover {
    background: var(--light);
}

/* ===== Team Section ===== */
.team {
    padding: 100px 0;
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.member-image {
    height: 320px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 30px;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.member-info .position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.member-info .bio {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background-color: var(--light);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') center/cover;
    opacity: 0.03;
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details div {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--light);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-details div:hover i {
    background: var(--primary);
    color: white;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ===== Footer ===== */
footer {
    background: var(--dark);
    color: white;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.4rem;
    padding-bottom: 15px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.newsletter-form {
    position: relative;
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px 20px;
    padding-left: 60px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form button {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--accent);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 25px;
    font-size: 0.9rem;
}

.copyright {
    padding: 30px 0;
    text-align: center;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    margin: 0;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark);
    transform: translateY(-5px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== Responsive Design ===== */
/* ===== Responsive Design & Mobile Optimization ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero {
        padding: 150px 0 100px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .about-image {
        max-height: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Global Adjustments */
    .container {
        padding: 0 20px;
    }

    .section-padding,
    .hero,
    .about,
    .stats,
    .apps-section,
    .websites-section,
    .services,
    .team,
    .contact {
        padding: 60px 0;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    h2,
    .section-title h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    /* Header & Navigation */
    header {
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-sm);
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        position: relative;
    }

    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        color: var(--primary);
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        position: fixed;
        top: 75px;
        /* Height of header */
        left: 0;
        height: calc(100vh - 75px);
        padding: 40px 20px;
        box-shadow: none;
        border-top: 1px solid var(--light-gray);
        overflow-y: auto;
        animation: slideLeft 0.3s ease forwards;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }

    /* Staggered animation for list items */
    .nav-links li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-links li:nth-child(7) {
        animation-delay: 0.7s;
    }

    .nav-links li a {
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.1rem;
    }

    .nav-links li a::after {
        display: none;
    }

    /* Remove underline effect on mobile */
    .nav-links li a::before {
        content: '\f104';
        /* FontAwesome Left Arrow */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: var(--gray);
        transition: var(--transition);
        transform: rotate(180deg);
    }

    .nav-links li a:hover::before {
        color: var(--primary);
        transform: rotate(180deg) translateX(-5px);
    }

    /* Hero */
    .hero-content {
        padding-top: 20px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    /* Cards */
    .card-grid,
    .apps-grid,
    .websites-grid,
    .services-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 30px;
        padding: 0 10px;
    }

    .app-card,
    .service-card,
    .website-card {
        padding: 30px 20px;
    }

    /* Website Card Mobile */
    .website-card {
        text-align: center;
    }

    .website-content {
        align-items: center;
    }

    .website-features {
        justify-content: center;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    /* Contact */
    .contact-container {
        padding: 30px 20px;
        gap: 40px;
    }

    .contact-form {
        padding: 0;
        box-shadow: none;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .copyright {
        flex-direction: column;
        gap: 15px;
    }

    /* Utilities */
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Make stat numbers slightly smaller on very small screens */
    .stat-number {
        font-size: 3.5rem;
    }
}

/* Enhancements for Touch Devices */
@media (hover: none) {
    .btn:active {
        transform: scale(0.98);
    }

    .app-card:active,
    .service-card:active {
        transform: scale(0.98);
    }
}

/* Keyframes */
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Language Switcher & LTR Support ===== */
html[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

html[dir="ltr"] .section-title h2::after {
    left: 0;
    right: auto;
}

html[dir="ltr"] .logo {
    flex-direction: row-reverse;
}

html[dir="ltr"] .nav-links li a::after {
    left: 0;
    right: auto;
}

html[dir="ltr"] .nav-links li a::before {
    transform: rotate(0);
}

html[dir="ltr"] .nav-links li a:hover::before {
    transform: translateX(5px);
}

html[dir="ltr"] .app-card,
html[dir="ltr"] .service-card,
html[dir="ltr"] .website-card,
html[dir="ltr"] .feature-item {
    text-align: left;
}

html[dir="ltr"] .website-features {
    justify-content: flex-start;
}

html[dir="ltr"] .feature-icon {
    margin-right: 20px;
    margin-left: 0;
}

html[dir="ltr"] .footer-column h3::after {
    left: 0;
    right: auto;
}

html[dir="ltr"] .newsletter-form input {
    padding-left: 20px;
    padding-right: 60px;
}

html[dir="ltr"] .newsletter-form button {
    right: 5px;
    left: auto;
}

html[dir="ltr"] .back-to-top {
    right: 30px;
    left: auto;
}

html[dir="ltr"] .hero::before {
    left: -20%;
    right: auto;
}

html[dir="ltr"] .hero::after {
    right: -10%;
    left: auto;
}

/* Language Button */
.lang-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .navbar .lang-btn {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    html[dir="ltr"] .navbar .lang-btn {
        right: 20px;
        left: auto;
    }
}