/* ===============================================
   CSS VARIABLES & THEME (CYBERPUNK OVERHAUL)
   =============================================== */
:root {
    /* Light Mode Theme */
    --color-background: #ffffff;
    --color-background-alt: #f0f4ff;
    --color-foreground: #0A0F1E;
    
    --color-primary: #00D4FF; /* Neon Cyan */
    --color-primary-foreground: #0A0F1E;
    
    --color-secondary: #39FF14; /* Lime Green */
    --color-secondary-foreground: #0A0F1E;
    
    --color-muted: #e2e8f0;
    --color-muted-foreground: #64748b;
    --color-border: #b2b0bf;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, #00D4FF 0%, #39FF14 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
    --gradient-glass-border: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.0));

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 15px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-glow-green: 0 0 15px rgba(57, 255, 20, 0.5), 0 0 30px rgba(57, 255, 20, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Spacing & Radius */
    --spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem;
    --spacing-lg: 1.5rem; --spacing-xl: 2rem; --spacing-2xl: 3rem; --spacing-3xl: 4rem;
    --radius-sm: 0.25rem; --radius-md: 0.375rem; --radius-lg: 0.5rem;
    --radius-xl: 0.75rem; --radius-2xl: 1rem; --radius-full: 9999px;
}

[data-theme="dark"] {
    --color-background: #0A0F1E;
    --color-background-alt: #0D1B2A;
    --color-foreground: #ffffff;
    
    --color-muted: #1A2642;
    --color-muted-foreground: #B2B0BF;
    --color-border: #1E2D4A;

    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.0));
    --gradient-glass-border: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
}

[data-theme="dark"] .logo-img {
    mix-blend-mode: lighten;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6, .nav-link, .btn {
    font-family: 'Orbitron', sans-serif;
}

::selection {
    background-color: rgba(0, 212, 255, 0.3);
    color: var(--color-foreground);
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 1s;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: rgba(127, 201, 53, 0.9);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    color: var(--color-foreground);
    border: 1px solid rgba(36, 57, 115, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-ghost:hover {
    color: rgba(127, 201, 53, 0.8);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    height: 3rem;
    border-radius: var(--radius-full);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

/* ===============================================
   NAVBAR
   =============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition-normal);
    background-color: transparent;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: #0d1b2a66;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-left: -1.5rem;
}

.logo-wrapper {
    position: relative;
    width: 12rem;
    height: 4rem;
    transition: transform var(--transition-normal);
}

.logo-link:hover .logo-wrapper {
    transform: scale(1.05);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted-foreground);
    text-decoration: none;
    transition: all var(--transition-normal);
}

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

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--color-foreground);
    cursor: pointer;
}

.menu-icon,
.close-icon {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    background-color: var(--color-background);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--color-border);
    animation: slideDown var(--transition-normal) ease-out;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-foreground);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

/* ===============================================
   MAIN CONTENT
   =============================================== */
.main-content {
    flex: 1;
    padding-top: 7rem;
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.top {
    background-image: url("/assets/hero-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.top-overlay {
    position: absolute;
    /* height: 119%; */
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(247, 255, 247, 0.9) 0%,
            rgba(247, 255, 247, 0.767) 50%,
            rgba(247, 255, 247, 0.9) 100%);
    transition: background var(--transition-normal);
}

[data-theme="dark"] .top-overlay {
    background: linear-gradient(to bottom,
            rgba(10, 15, 30, 0.95) 0%,
            rgba(10, 15, 30, 0.85) 50%,
            rgba(10, 15, 30, 0.95) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(120px);
}

.blob-1 {
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background-color: rgba(127, 201, 53, 0.1);
    opacity: 0.5;
}

.blob-2 {
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background-color: rgba(36, 57, 115, 0.05);
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(127, 201, 53, 0.2);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.pulse-container {
    position: relative;
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
}

.pulse-ring {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: var(--color-primary);
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot {
    position: relative;
    display: inline-flex;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.hero-title {
    max-width: 64rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-foreground);
    text-wrap: balance;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.hero-gradient-text {
    display: inline-block;
    padding-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    display: inline-block;
    color: var(--color-foreground);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

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

.hero-description {
    margin-top: 1.5rem;
    max-width: 42rem;
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    text-wrap: balance;
    font-weight: 500;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-tech {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    color: rgba(100, 116, 139, 0.7);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.tech-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.tech-icon-primary {
    color: var(--color-primary);
}

.tech-icon-secondary {
    color: var(--color-secondary);
}

.tech-icon-cyan {
    color: #06b6d4;
}

.tech-label {
    font-size: 0.875rem;
}

/* ===============================================
   SERVICES SECTION
   =============================================== */
.services {
    padding: 6rem 0;
    /* background-color: rgba(226, 232, 240, 0.5); */
    background-color: #405b7f0d;
    position: relative;
    overflow: hidden;
}

.services-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    gap: 1.5rem;
}

.services-header-content {
    max-width: 42rem;
}

.services-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    
}

.services-description {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    position: relative;
    padding: 0;
    border-radius: var(--radius-2xl);
    background-color: transparent;
    border: none;
    box-shadow: none;
    perspective: 1000px;
    height: 100%;
    min-height: 320px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.service-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    text-align: left;
}

[dir="rtl"] .service-card-back {
    align-items: flex-start;
    text-align: right;
}

.service-card-back .service-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    margin-top: 1rem;
}

[data-theme="dark"] .service-card-front,
[data-theme="dark"] .service-card-back {
    background-color: var(--color-background-alt);
}

.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(127, 201, 53, 0.2);
    box-shadow: var(--shadow-xl);
}

.service-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover .service-overlay {
    opacity: 0.05;
}



.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    /* color: white; */
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;

}

.service-description {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-0.5rem);
    transition: all var(--transition-normal);
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
}

.service-link-icon {
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.25rem;
}

/* ===============================================
   ABOUT US SECTION
   =============================================== */
.about {
    padding: 6rem 0;
    background-color: var(--color-background);
}

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

.about-text {
    order: 2;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(127, 201, 53, 0.05) 0%, rgba(36, 57, 115, 0.05) 100%);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    font-weight: 500;
}

.about-image {
    order: 1;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.15;
    }
}

.about-icon {
    position: relative;
    width: 60%;
    height: 60%;
    color: var(--color-primary);
    z-index: 1;
}

/* ===============================================
   PROJECTS SECTION
   =============================================== */
.projects {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
 
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.1) 0%, transparent 40%);
}

[data-theme="dark"] .projects {
   
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.1) 0%, transparent 40%);
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background: var(--gradient-primary);
    filter: blur(80px);
    transform: scale(1.15) translateY(10%);
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.projects-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.projects-description {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
}

.projects-carousel-wrapper {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
}

.projects-carousel-stage {
    position: relative;
    padding: 0.5rem 3.25rem 0;
}

.projects-swiper {
    width: 100%;
    position: relative;
    padding-bottom: 2.75rem;
    padding-top: 0.35rem;
    overflow: hidden;
}

.projects-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.project-slide {
    width: 100%;
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.project-slide--showcase {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 255, 247, 0.75) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(178, 176, 191, 0.4);
    box-shadow:
        0 4px 24px rgba(36, 57, 115, 0.08),
        0 0 0 1px rgba(127, 201, 53, 0.12);
}

.project-slide--showcase:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(36, 57, 115, 0.12),
        0 0 0 1px rgba(127, 201, 53, 0.25);
    border-color: rgba(127, 201, 53, 0.35);
}

.project-visual {
    width: 100%;
    min-height: clamp(200px, 36vw, 340px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-visual--photo {
    padding: 1.25rem;
    background: linear-gradient(165deg, rgba(16, 185, 129, 0.12) 0%, rgba(36, 57, 115, 0.06) 100%);
}

.project-visual-img {
    max-width: 100%;
    max-height: min(300px, 48vh);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 40px rgba(36, 57, 115, 0.18);
    transition: transform var(--transition-normal);
}

.project-slide--showcase:hover .project-visual-img {
    transform: scale(1.045);
}

.project-visual svg {
    width: 88px;
    height: 88px;
    color: white;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
    transition: transform var(--transition-normal);
}

.project-slide--showcase:hover .project-visual svg {
    transform: scale(1.08);
}

.project-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.project-info--showcase {
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.75rem 2rem;
}

.projects .project-slide--showcase .project-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.9rem;
    border-radius: var(--radius-full);
    background-color: rgba(127, 201, 53, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(127, 201, 53, 0.22);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.projects .project-slide--showcase .project-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: black;
    line-height: 1.2;
}

.projects .project-slide--showcase .project-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 500;
}

.projects-slider-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.projects-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-primary);
}

.projects-read-more-btn:hover {
    transform: translateY(-2px);
}

[dir="rtl"] .projects-read-more-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .projects-prev::after {
    content: 'next' !important;
}

[dir="rtl"] .projects-next::after {
    content: 'prev' !important;
}

[dir="rtl"] .projects-read-more-btn .btn-icon {
    transform: scaleX(-1);
}

.projects-prev,
.projects-next {
    color: var(--color-secondary) !important;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(178, 176, 191, 0.35);
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: background var(--transition-normal), box-shadow var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
    position: absolute;
    top: 42%;
    z-index: 10;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.projects-carousel-stage .projects-prev {
    left: 0;
    transform: translate(-55%, -50%);
}

.projects-carousel-stage .projects-next {
    right: 0;
    transform: translate(55%, -50%);
}

[dir="rtl"] .projects-carousel-stage .projects-prev {
    left: auto;
    right: 0;
    transform: translate(55%, -50%);
}

[dir="rtl"] .projects-carousel-stage .projects-next {
    right: auto;
    left: 0;
    transform: translate(-55%, -50%);
}

.project-modal-trigger {
    cursor: pointer;
}

.project-modal-trigger .project-slide:hover {
    border-color: var(--color-primary);
}

.projects-prev:hover,
.projects-next:hover {
    background: var(--color-primary);
    color: var(--color-primary-foreground) !important;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(127, 201, 53, 0.35);
}

.projects-prev::after,
.projects-next::after {
    font-size: 1.15rem !important;
    font-weight: 800;
}

.projects-swiper .swiper-pagination {
    bottom: 0.25rem;
}

.projects-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.35;
    transition: opacity var(--transition-normal), transform var(--transition-normal), background-color var(--transition-normal);
    background: var(--color-secondary);
}

.projects-swiper .swiper-pagination-bullet-active {
    background-color: var(--color-primary) !important;
    opacity: 1;
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .projects-carousel-stage {
        padding: 0.35rem 2.5rem 0;
    }

    .projects-prev,
    .projects-next {
        width: 2.65rem !important;
        height: 2.65rem !important;
        min-width: 2.65rem;
        min-height: 2.65rem;
    }

    .projects-carousel-stage .projects-prev {
        transform: translate(-40%, -50%);
    }

    .projects-carousel-stage .projects-next {
        transform: translate(40%, -50%);
    }

    [dir="rtl"] .projects-carousel-stage .projects-prev {
        transform: translate(40%, -50%);
    }

    [dir="rtl"] .projects-carousel-stage .projects-next {
        transform: translate(-40%, -50%);
    }
}

@media (max-width: 480px) {
    .projects-carousel-stage {
        padding: 0.25rem 2rem 0;
    }
}

.project-card {
    background-color: var(--color-background);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    /* color: white; */
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    background-color: rgba(127, 201, 53, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(127, 201, 53, 0.2);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background-color: var(--color-muted);
    color: var(--color-foreground);
    border: 1px solid var(--color-border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-top: auto;
}

.project-link:hover {
    gap: 0.75rem;
    color: var(--color-accent);
}

.project-link-icon {
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition-normal);
}

.project-link:hover .project-link-icon {
    transform: translate(2px, -2px);
}

/* ===============================================
   CONTACT PAGE
   =============================================== */
.contact-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(127, 201, 53, 0.05) 0%, rgba(36, 57, 115, 0.05) 100%);
    text-align: center;
}

.contact-hero-content {
    max-width: 48rem;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

.contact-hero-description {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    line-height: 1.7;
}

.contact-section {
    padding: 4rem 0 6rem;
    background-color: var(--color-background)
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    order: 2;
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.contact-info-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-muted-foreground);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background-color: rgba(127, 201, 53, 0.03);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.contact-detail-item:hover {
    background-color: rgba(127, 201, 53, 0.08);
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.contact-detail-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.contact-detail-content {
    text-align: start;
}

.contact-detail-text {
    font-size: 0.9375rem;
    color: var(--color-muted-foreground);
}

.contact-social {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.contact-social-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.contact-social-links {
    display: flex;
     justify-content: center;
    gap: 2rem;
}

.contact-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background-color: var(--color-muted);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted-foreground);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.contact-social-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form-container {
    order: 1;
    background-color: var(--color-background);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.careers-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.careers-form-wrapper .contact-form-container {
    width: 100%;
    max-width: 1000px;
}


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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-foreground);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: inherit;
    transition: all var(--transition-normal);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(127, 201, 53, 0.1);
}

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

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    cursor: pointer;
    user-select: none;
}

.form-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-foreground);
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-primary);
}

.form-submit:hover {
    background-color: rgba(127, 201, 53, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-submit:active {
    transform: translateY(0);
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    color: white;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-foreground);
}

.success-message {
    font-size: 1rem;
    color: var(--color-muted-foreground);
    margin-bottom: 2rem;
}

.stars {
    color: #FFC107;
    margin-bottom: 1rem;
    
}


/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background-color: var(--color-background);
    border-top: 1px solid rgba(127, 127, 127, 0.21);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.footer-logo-text img {
    height: 90px;
}

.footer-tagline {
    color: var(--color-muted-foreground);
    max-width: 28rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--color-muted-foreground);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-link {
    color: var(--color-muted-foreground);
    transition: color var(--transition-normal);
}

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

.footer-social-link i {
    font-size: 1.5rem;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Mobile-first base styles are already applied above */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {

    .container {
        padding: 0 1rem;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .hero-tech {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 3rem;
    }

    .contact-hero {
        padding: 6rem 0 3rem;
    }

    .contact-hero-title {
        font-size: 2rem;
    }

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

    .services {
        padding: 3rem 0;
    }

    .services-title {
        font-size: 1.75rem;
    }

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

    .about {
        padding: 3rem 0;
    }

    .about-title {
        font-size: 1.75rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .projects {
        padding: 3rem 0;
    }

    .projects-title {
        font-size: 1.75rem;
    }

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

    .contact-section {
        padding: 2rem 0 4rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

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

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo-text img {
        height: 60px;
    }

    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }

    .logo-wrapper {
        width: 10rem;
        height: 3rem;
        margin-left: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
    }

    .hero-tech {
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .services-title,
    .projects-title {
        font-size: 2rem;
    }

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

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .nav-desktop {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

    .logo-wrapper {
        width: 16rem;
        height: 6rem;
    }

    .hero {
        min-height: 90vh;
    }

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

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

    .hero-tech {
        gap: 5rem;
    }

    .contact-hero {
        padding: 8rem 0 4rem;
    }

    .contact-hero-title {
        font-size: 3rem;
    }

    .contact-hero-description {
        font-size: 1.25rem;
    }

    .services {
        padding: 6rem 0;
    }

    .services-header {
        flex-direction: row;
        align-items: flex-end;
    }

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

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

    .about {
        padding: 6rem 0;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
    }

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

    .about-description {
        font-size: 1.125rem;
    }

    .projects {
        padding: 6rem 0;
    }

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

    .projects-description {
        font-size: 1.125rem;
    }

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

    .contact-section {
        padding: 4rem 0 6rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .contact-info {
        order: 1;
    }

    .contact-form-container {
        order: 2;
        padding: 2.5rem;
    }

    .contact-info-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-logo-text img {
        height: 90px;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .services-title,
    .projects-title {
        font-size: 3rem;
    }

    /* .services-grid {
        grid-template-columns: repeat(5, 1fr);
    } */

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        gap: 5rem;
    }
    /* =========================
   SERVICES GRID FIX
   ========================= */


    .services .container {
        max-width: 1500px; /* gives more room than 1280px */
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(220px, 1fr));
        gap: 2rem; /* more space between cards */
        align-items: stretch;
    }

    .service-card {
        min-height: 360px; /* extra room for flip content */
        overflow: visible;
    }

    .service-card-front,
    .service-card-back {
        padding: 2rem 1.5rem;
    }

    .service-title {
        font-size: 1.15rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .service-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .tech-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
        justify-content: flex-start;
    }
}


/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Responsive utilities for all screen sizes */
@media (max-width: 767px) {

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding-top: 5rem;
    }

    .service-card,
    .project-card {
        padding: 1.5rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
    }

    .contact-detail-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .project-tech {
        gap: 0.375rem;
    }

    .tech-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.625rem;
    }
}

/* ===============================================
   RTL SUPPORT (Arabic)
   =============================================== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] .logo-link {
    flex-direction: row-reverse;
    margin-left: 0;
    margin-right: -2.5rem;
}

[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-icon {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .service-link {
    transform: translateX(0.5rem);
}

[dir="rtl"] .service-card:hover .service-link {
    transform: translateX(0);
}

[dir="rtl"] .service-link-icon {
    margin-left: 0;
    margin-right: 0.25rem;
    transform: rotate(180deg);
}

[dir="rtl"] .navbar-container {
    flex-direction: row;
}

[dir="rtl"] .lang-switch {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

[dir="rtl"] .hero-buttons {
    flex-direction: column;
}

@media (min-width: 576px) {
    [dir="rtl"] .hero-buttons {
        flex-direction: row-reverse;
    }
}

[dir="rtl"] .tech-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-logo-text {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .footer-social {
    flex-direction: row;
}

[dir="rtl"] .contact-detail-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .form-submit {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-submit svg {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] blockquote {
    border-left: none !important;
    border-right-width: 4px;
    border-right-style: solid;
    padding-left: 0 !important;
    padding-right: 1.5rem !important;
}

[dir="rtl"] .mobile-menu-content {
    align-items: flex-start;
}

/* ===============================================
   TEAM SLIDER
   =============================================== */
.team-slider-wrapper {
    position: relative;
    width: 100%;
}

.team-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.team-slider-track::-webkit-scrollbar {
    display: none;
}

.team-slider-card {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: start;
    min-width: 250px;
}

@media (min-width: 640px) {
    .team-slider-card {
        flex: 0 0 calc(50% - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .team-slider-card {
        flex: 0 0 calc(33.333% - 1.5rem);
    }
}

.team-slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border-color: var(--color-primary);
}

/* ===============================================
   PROJECT IMAGE MODAL
   =============================================== */
.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.project-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.project-modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.project-modal-close:hover,
.project-modal-close:focus {
    color: var(--color-primary);
    text-decoration: none;
}

button.project-modal-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    color: var(--color-primary);
    padding: 0;
    text-align: inherit;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===============================================
   TOAST NOTIFICATIONS
   =============================================== */
.qtech-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

[dir="rtl"] .qtech-toast-container {
    right: auto;
    left: 1.5rem;
}

.qtech-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 320px;
    max-width: 440px;
    padding: 1.125rem 1.25rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

[dir="rtl"] .qtech-toast {
    transform: translateX(-120%);
}

.qtech-toast.qtech-toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.qtech-toast.qtech-toast--exit {
    transform: translateX(120%);
    opacity: 0;
}

[dir="rtl"] .qtech-toast.qtech-toast--exit {
    transform: translateX(-120%);
}

/* Toast accent bar */
.qtech-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

[dir="rtl"] .qtech-toast::before {
    left: auto;
    right: 0;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

/* Toast icon */
.qtech-toast-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qtech-toast-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2.5;
}

/* Toast content */
.qtech-toast-content {
    flex: 1;
    min-width: 0;
}

.qtech-toast-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.qtech-toast-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
    line-height: 1.5;
}

[dir="rtl"] .qtech-toast-title,
[dir="rtl"] .qtech-toast-message {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Toast close button */
.qtech-toast-close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-top: -0.125rem;
}

.qtech-toast-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-foreground);
}

.qtech-toast-close svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Progress bar */
.qtech-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    transform-origin: left;
    animation: qtechToastProgress linear forwards;
}

[dir="rtl"] .qtech-toast-progress {
    transform-origin: right;
}

@keyframes qtechToastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* ---- Toast type variants ---- */

/* Success */
.qtech-toast--success::before {
    background: var(--color-primary);
}

.qtech-toast--success .qtech-toast-icon {
    background: rgba(127, 201, 53, 0.12);
    color: var(--color-primary);
}

.qtech-toast--success .qtech-toast-icon svg {
    stroke: var(--color-primary);
}

.qtech-toast--success .qtech-toast-progress {
    background: var(--color-primary);
}

/* Error */
.qtech-toast--error::before {
    background: #ef4444;
}

.qtech-toast--error .qtech-toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.qtech-toast--error .qtech-toast-icon svg {
    stroke: #ef4444;
}

.qtech-toast--error .qtech-toast-progress {
    background: #ef4444;
}

/* Warning */
.qtech-toast--warning::before {
    background: #f59e0b;
}

.qtech-toast--warning .qtech-toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.qtech-toast--warning .qtech-toast-icon svg {
    stroke: #f59e0b;
}

.qtech-toast--warning .qtech-toast-progress {
    background: #f59e0b;
}

/* Info */
.qtech-toast--info::before {
    background: var(--color-secondary);
}

.qtech-toast--info .qtech-toast-icon {
    background: rgba(36, 57, 115, 0.1);
    color: var(--color-secondary);
}

.qtech-toast--info .qtech-toast-icon svg {
    stroke: var(--color-secondary);
}

.qtech-toast--info .qtech-toast-progress {
    background: var(--color-secondary);
}

/* Mobile responsive */
@media (max-width: 575px) {
    .qtech-toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    [dir="rtl"] .qtech-toast-container {
        right: 1rem;
        left: 1rem;
    }

    .qtech-toast {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
}

/* ===============================================
   PROJECT IMAGE MODAL
   =============================================== */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(36, 57, 115, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--color-background);
    border-radius: var(--radius-2xl);
    padding: 1rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(127, 201, 53, 0.15);
    animation: modalScaleIn 0.35s ease-out forwards;
    border: 1px solid rgba(127, 201, 53, 0.2);
}

.project-modal-content img {
    width: 50%;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
    object-fit: contain;
    max-height: 80vh;
}

.project-modal-body .project-modal-hero-img {
    display: none;
    margin-bottom: 1rem;
}

.project-modal-body .project-modal-hero-img--visible {
    display: block;
}

.project-modal-link--hidden {
    display: none !important;
}

.project-modal-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    color: var(--color-secondary-foreground);
    border: 2px solid rgba(127, 201, 53, 0.3);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    line-height: 1;
    box-shadow: var(--shadow-lg);
}

[dir="rtl"] .project-modal-close {
    right: auto;
    left: -0.75rem;
}

.project-modal-close:hover {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    transform: rotate(90deg) scale(1.1);
}

/* project-modal-trigger button reset */
button.project-modal-trigger {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 768px) {
    .project-modal {
        padding: 1rem;
    }

    .project-modal-content {
        padding: 0.5rem;
    }

    .project-modal-close {
        top: -0.5rem;
        right: -0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    [dir="rtl"] .project-modal-close {
        right: auto;
        left: -0.5rem;
    }
}

/* ===============================================
   CYBERPUNK OVERHAUL STYLES
   =============================================== */

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--color-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-normal);
}
.theme-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Glass Panels */
.glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-foreground);
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: all var(--transition-normal);
}
.btn-glow:hover::before {
    left: 0;
}
.btn-glow:hover {
    box-shadow: var(--shadow-glow);
    color: var(--color-primary-foreground);
    border-color: transparent;
}

.btn-glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid #4E9B3476;
    color: var(--color-foreground);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: var(--shadow-glow);
}

/* Hero Particles & Typewriter */
#tsparticles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.6;
}
.cursor {
    display: inline-block;
    width: 10px;
    background-color: var(--color-primary);
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 3D Flip Cards for Services */
.services-grid {
    perspective: 1000px;
}
.service-card {
    background: transparent;
    border: none;
    box-shadow: none;
    perspective: 1000px;
    height: 350px;
}
.service-card:hover {
    transform: none;
    box-shadow: none;
}
.service-card-inner {
    position: relative;
    width: 100%; height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}
.service-card-front, .service-card-back {
    position: absolute;
    width: 100%; height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--gradient-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
}
.service-card-front {
    z-index: 2;
}
.service-card-back {
    transform: rotateY(180deg);
    border-color: var(--color-primary);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2);
}
.service-card:hover .service-card-back {
    box-shadow: var(--shadow-glow);
}
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    color: var(--color-primary);
}

/* Tech Stack Marquee */
.tech-marquee-section {
    padding: 4rem 0;
    overflow: hidden;
    /* background: var(--color-background-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border); */
}
.marquee-wrapper {
    display: flex;
    width: 200%;
    animation: scroll 30s linear infinite;
}
.marquee-wrapper-reverse {
    animation: scroll-reverse 30s linear infinite;
    margin-top: 2rem;
}
.marquee-content {
    display: flex;
    justify-content: space-around;
    width: 50%;
}
.tech-logo {
    height: 50px;
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
}
.tech-logo:hover {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px var(--color-primary));
    transform: scale(1.1);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Bento Grid Portfolio */
.projects-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
    margin-top: 3rem;
}
.bento-item {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-background-alt);
    border: 1px solid var(--color-border);
}
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bento-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.9), rgba(10, 15, 30, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.bento-item:hover .bento-overlay {
    opacity: 1;
}
.bento-item:hover img {
    transform: scale(1.05);
}
.bento-overlay .project-tag {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 212, 255, 0.2);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}
.bento-overlay .project-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.bento-overlay .project-subtitle {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
}
@media (max-width: 992px) {
    .projects-bento { grid-template-columns: repeat(2, 1fr); }
    .bento-item[style*="span 3"] { grid-column: span 2 !important; }
}
@media (max-width: 768px) {
    .projects-bento { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .bento-item { grid-column: span 1 !important; }
}

/* Floating Label Inputs */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}
.form-input, .form-select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    padding: 0.5rem 0;
    color: var(--color-foreground);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 0;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 10px 10px -10px rgba(0, 212, 255, 0.5);
}
.form-label {
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--color-muted-foreground);
    transition: all 0.3s ease;
    pointer-events: none;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -1.5rem;
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* Contact Background SVG */
.contact-hero {
    position: relative;
    overflow: hidden;
}
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300d4ff' fill-opacity='0.1' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,165.3C672,160,768,96,864,96C960,96,1056,160,1152,176C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    z-index: -1;
    animation: wave 10s ease-in-out infinite alternate;
}
@keyframes wave {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(1.2); }
}

/* Navbar active indicator */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--color-primary);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Custom Cursor */
.custom-cursor-dot,
.custom-cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.custom-cursor-dot {
    width: 8px; height: 8px;
    background-color: var(--color-primary);
}
.custom-cursor-outline {
    width: 40px; height: 40px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    transition: width 0.2s, height 0.2s;
}
body:hover .custom-cursor-outline {
    width: 50px; height: 50px;
}