/* ===============================================
   CSS VARIABLES & THEME
   =============================================== */
:root {
    /* Colors - matching Next.js theme */
    --color-background: #f7fff7;
    --color-foreground: #243973;
    --color-primary: #7fc935;
    --color-primary-foreground: #020617;
    --color-secondary: #243973;
    --color-secondary-foreground: #f7fff7;
    --color-muted: #e2e8f0;
    --color-muted-foreground: #64748b;
    --color-accent: #21630d;
    --color-border: #b2b0bf;

    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-primary: linear-gradient(90deg, #7fc935 0%, #2563eb 50%, #243973 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* 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-primary: 0 10px 25px -5px rgba(127, 201, 53, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ===============================================
   RESET & BASE STYLES
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 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;
}

::selection {
    background-color: rgba(127, 201, 53, 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(247, 255, 247, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(178, 176, 191, 0.2);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

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

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

.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: rgba(247, 255, 247, 0.95);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(178, 176, 191, 0.1);
    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: rgba(36, 57, 115, 0.8);
    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;
    /* background-color: var(--color-background); */
}

.hero-bg {
    /* position: absolute;
    inset: 0;
    z-index: 0;
    user-select: none; */
}

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

}

/* .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mix-blend-mode: multiply;
} */

.top-overlay {
    position: absolute;
    /* width: 100%; */
    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%);
}

.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: block;
    padding-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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);
    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: 2rem;
    border-radius: var(--radius-2xl);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.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;
}

.gradient-blue {
    background: var(--gradient-blue);
}

.gradient-purple {
    background: var(--gradient-purple);
}

.gradient-green {
    background: var(--gradient-green);
}

.gradient-orange {
    background: var(--gradient-orange);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.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-color: var(--color-background);
    /* Layered mint + navy tints using primary / secondary RGB values */
    background-image:
        radial-gradient(ellipse 120% 75% at 50% -25%, rgba(127, 201, 53, 0.22), transparent 55%),
        radial-gradient(ellipse 55% 50% at 100% 40%, rgba(36, 57, 115, 0.11), transparent 52%),
        radial-gradient(ellipse 50% 45% at 0% 70%, rgba(127, 201, 53, 0.09), transparent 48%),
        linear-gradient(165deg,
            #eaf6ea 0%,
            var(--color-background) 44%,
            #e8edf5 100%);
}

/* Soft identity strip — reinforces green → navy brand gradient without overpowering slides */
.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: presentation carousel */
.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: var(--color-foreground);
    line-height: 1.2;
}

.projects .project-slide--showcase .project-subtitle {
    font-size: 1.05rem;
    color: var(--color-muted-foreground);
    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;
}

/* Flip swiper arrow directions for RTL */
[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);
}

/* Nav arrows — half outside the stage, vertically centered on slides only */
.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%);
}

/* Make entire slide clickable and cleaner */
.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-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;
    gap: 1rem;
}

.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 Application Form - Wider and Centered */
.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;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background-color: var(--color-background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    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;
    /* increase size here */
}

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

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

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

    /* Container padding for very small screens */
    .container {
        padding: 0 1rem;
    }

    /* Hero section mobile optimizations */
    .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 */
    .contact-hero {
        padding: 6rem 0 3rem;
    }

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

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

    /* Services section */
    .services {
        padding: 3rem 0;
    }

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

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

    /* About section */
    .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 section */
    .projects {
        padding: 3rem 0;
    }

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

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

    /* Contact form */
    .contact-section {
        padding: 2rem 0 4rem;
    }

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

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

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

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

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

    /* Logo */
    .logo-wrapper {
        width: 10rem;
        height: 3rem;
    }
}

/* 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) {

    /* Navigation */
    .nav-desktop {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

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

    /* Hero section */
    .hero {
        min-height: 90vh;
    }

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

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

    .hero-tech {
        gap: 5rem;
    }

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

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

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

    /* Services */
    .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 */
    .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 */
    .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 */
    .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 */
    .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(4, 1fr);
    }

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

    .contact-wrapper {
        gap: 5rem;
    }
}

/* 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) {

    /* Stack elements vertically on mobile */
    .hero-buttons {
        width: 100%;
    }

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

    /* Mobile-friendly spacing */
    .main-content {
        padding-top: 5rem;
    }

    /* Ensure cards are readable on mobile */
    .service-card,
    .project-card {
        padding: 1.5rem;
    }

    /* Mobile form improvements */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Mobile-friendly contact details */
    .contact-detail-item {
        padding: 1rem;
    }

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

    /* Adjust project tech badges for mobile */
    .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;
}

[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);
}

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

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

/* Hero section adjustments */
[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;
}

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

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

/* Contact page adjustments */
[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;
}

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

/* Mobile menu adjustments */
[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;
    /* Firefox */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.team-slider-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.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;
    }
}