@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amarante&display=swap');

:root {
    --primary: #202020;
    /* Premium Matte Gray Base */
    --primary-light: #FFFFFF;
    /* Crisp White */
    --accent: #A3A3A3;
    /* Platinum Silver */
    --accent-glow: rgba(255, 255, 255, 0.05);
    --bg: #202020;
    /* Matte Gray */
    --bg-alt: #1A1A1A;
    /* Deep Matte Charcoal */
    --text: #FFFFFF;
    /* High contrast crisp white */
    --text-muted: #8E8E93;
    /* Elegant slate gray */
    --border: transparent;
    /* Extremely transparent gray boundaries */
    --border-hover: transparent;
    --card: rgba(255, 255, 255, 0.03);
    /* Elegant charcoal backing */
    --card-shadow: none;
    /* SHADOWS REMOVED */
    --card-hover-shadow: none;
    /* SHADOWS REMOVED */
    --card-hover: rgba(255, 255, 255, 0.05);
}

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

input,
textarea,
button,
select {
    font-family: 'Nunito', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    line-height: 1.6;
}

/* cybernetic grid background texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

#particle-canvas {
    display: none !important;
}

.glow-bg-1,
.glow-bg-2,
.glow-bg-3 {
    display: none;
}

.reveal {
    opacity: 0;
    filter: blur(4px);
    transform: perspective(1000px) rotateX(10deg) translateY(25px) scale(0.96);
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
    transform-origin: top center;
}

.reveal.revealed {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

/* Staggered slide-up animations specifically for grid cards */
.about-card.reveal,
.service-card.reveal,
.showcase-app-card.reveal,
.timeline-content.reveal,
.ecosystem-card.reveal {
    opacity: 0;
    filter: blur(4px);
    transform: perspective(1000px) rotateX(12deg) translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
    transform-origin: top center;
}

.about-card.reveal.revealed,
.service-card.reveal.revealed,
.showcase-app-card.reveal.revealed,
.timeline-content.reveal.revealed,
.ecosystem-card.reveal.revealed {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

.ecosystem-card:nth-child(1) {
    transition-delay: 0s;
}

.ecosystem-card:nth-child(2) {
    transition-delay: 0.15s;
}

.ecosystem-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Staggered Delay offsets for grids and cards */
.about-card:nth-child(1) {
    transition-delay: 0s;
}

.about-card:nth-child(2) {
    transition-delay: 0.15s;
}

.about-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(1) {
    transition-delay: 0s;
}

.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card:nth-child(5) {
    transition-delay: 0.4s;
}

.showcase-app-card:nth-child(1) {
    transition-delay: 0s;
}

.showcase-app-card:nth-child(2) {
    transition-delay: 0.15s;
}

.showcase-app-card:nth-child(3) {
    transition-delay: 0.3s;
}

.showcase-app-card:nth-child(4) {
    transition-delay: 0.45s;
}

.load-reveal {
    opacity: 1;
}

/* ─── NAVBAR ─── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border: none;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 14px 48px;
    background: rgba(18, 18, 20, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    width: fit-content;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.logo img {
    height: 33px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo span {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    position: relative;
    padding: 6px 2px;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active:not(.nav-cta-btn) {
    color: #ffffff !important;
    font-weight: 700;
}

.nav-links a.active:not(.nav-cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(105, 37, 235, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-radius: 8px;
    /* Köşeler azaltıldı */
    top: 100%;
    left: -10px;
    border: 1px solid rgba(105, 37, 235, 0.1);
    padding: 10px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDrop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDrop {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

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

.dropdown-content a {
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    /* İç öğe köşeleri de azaltıldı */
    margin-bottom: 4px;
}

.dropdown-content a:last-child {
    margin-bottom: 0;
}

.dropdown-content a:hover {
    background-color: rgba(105, 37, 235, 0.06);
    color: var(--primary);
    transform: translateX(4px);
}

.cta-button {
    background: var(--primary);
    border: none;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 800 !important;
    font-size: 13px;
    text-transform: uppercase;
}

.cta-button:hover {
    background: var(--primary-light);
}

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

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 0;
}

/* ─── SECTION TAG ─── */
.tag-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 20px;
    text-align: center;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    z-index: 1;
    background: #202020;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(32, 32, 32, 0.4) 0%, rgba(32, 32, 32, 0.9) 100%);
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.4);
}

.hero-content {
    max-width: 900px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10;
    pointer-events: none;
}

body.page-scrolled .scroll-prompt {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, 15px) !important;
}

.scroll-prompt:hover {
    opacity: 1;
}

.scroll-prompt span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.scroll-prompt .scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-prompt .scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #fff;
    animation: scrollLineAnim 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollLineAnim {
    0% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(60px);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: normal;
    margin-bottom: 24px;
    color: var(--text);
    text-transform: none;
}

.hero .hero-title {
    font-size: clamp(34px, 4.2vw, 58px);
    color: #fff;
    line-height: 1.18;
    letter-spacing: normal;
}

.text-gradient {
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.hero .text-gradient {
    color: #fff;
}

.gradient-text {
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 760px;
}

.hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 0;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(105, 37, 235, 0.2);
}

.hero .btn-primary {
    background: #fff;
    color: var(--primary);
}

.hero .btn-primary:hover {
    background: #f1f5f9;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 30 px;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text);
}

.hero .stat-number {
    color: #fff;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-muted);
    display: inline;
}

.hero .stat-suffix {
    color: rgba(255, 255, 255, 0.7);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero 3D */
.hero-3d-wrapper {
    position: absolute;
    inset: 0;
    /* Kartın tamamını kaplar */
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

#hero-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-3d-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(124, 58, 237, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ─── SECTION COMMON ─── */
.about-section,
.services-section,
.contact-section {
    padding: 110px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.contact-header .section-tag {
    margin: 0 auto 24px auto;
    display: block;
    text-align: center;
}

/* ─── ABOUT CARDS ─── */
.about-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(.2, .8, .2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transition: width 0.3s ease;
}

.about-card:hover::before {
    width: 100%;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--card-hover);
    box-shadow: var(--card-hover-shadow);
}

.about-card .service-icon {
    font-size: 36px;
    margin-bottom: 24px;
    display: block;
    color: var(--primary-light);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

/* Unique animations for About icons */
.about-card:nth-child(1) .service-icon {
    animation: missionDart 4s ease-in-out infinite;
}

.about-card:nth-child(2) .service-icon {
    animation: visionBlink 4s ease-in-out infinite;
}

.about-card:nth-child(3) .service-icon {
    animation: valuesHeartbeat 2.5s ease-in-out infinite;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-light);
    text-transform: uppercase;
}

.about-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .about-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .about-cards-container {
        grid-template-columns: 1fr;
    }
}

/* ─── SERVICES SPLIT LAYOUT ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    width: 100%;
}


.services-carousel-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.services-carousel-container::-webkit-scrollbar {
    display: none;
}

.services-carousel-track {
    display: flex;
    gap: 32px;
    padding-left: 2px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    width: 380px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(.2, .8, .2, 1);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    background: var(--card-hover);
}

.service-icon {
    font-size: 28px;
    color: var(--primary-light);
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.service-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-light);
    margin: 0;
    text-transform: uppercase;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .services-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-visual {
        aspect-ratio: 16 / 9;
    }
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── LOGO TICKER SECTION ─── */
.showcase-section {
    padding: 60px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.logo-ticker-wrapper {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-ticker-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scrollLogoTicker 40s linear infinite;
    align-items: center;
}

.logo-ticker-item {
    flex: 0 0 auto;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
}

.logo-ticker-item:hover {
    filter: grayscale(0) opacity(1);
}

@keyframes scrollLogoTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-ticker-wrapper:hover .logo-ticker-track {
    animation-play-state: paused;
}

.logo-ticker-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}


.view-all-projects-minimal {
    text-align: center;
    margin-top: 30px;
}

.view-all-projects-minimal a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.view-all-projects-minimal a:hover {
    color: #fff;
}

/* App Specific Showcase Styles */
.showcase-app {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.app-preview {
    width: 100%;
    height: 240px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.app-preview i {
    font-size: 80px;
    color: #107c41;
    /* Excel green */
    filter: drop-shadow(0 0 20px rgba(16, 124, 65, 0.3));
    transition: transform 0.5s ease;
}

.showcase-item:hover .app-preview i {
    transform: scale(1.1) rotate(5deg);
}

.app-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(105, 37, 235, 0.3);
    z-index: 10;
    text-transform: uppercase;
}

/* Projects Page Layout Upgrade */
.projects-header {
    text-align: center;
    padding: 140px 20px 60px;
    position: relative;
    z-index: 5;
    background: radial-gradient(circle at 50% 50%, rgba(105, 37, 235, 0.03) 0%, transparent 70%);
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(105, 37, 235, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -1;
}

.filter-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
    padding: 6px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--primary);
    background: rgba(105, 37, 235, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(105, 37, 235, 0.3);
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Center the container since it's now inline-flex */
.container {
    text-align: center;
}

.projects-grid {
    text-align: left;
    /* Reset grid alignment */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

/* Premium Project Card Upgrade */
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(105, 37, 235, 0.1);
}

.project-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   ASELSAN-INSPIRED SERVICE PAGES CSS 
========================================= */

/* Aselsan Hero Section */
.aselsan-hero {
    padding: 160px 5% 80px;
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.aselsan-content {
    flex: 0 0 45%;
}

.aselsan-tag {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    display: inline-block;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.aselsan-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.aselsan-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.aselsan-media {
    flex: 0 0 50%;
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
}

.aselsan-offset-frame {
    position: absolute;
    top: -20px;
    right: -20px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid rgba(71, 14, 178, 0.4);
    z-index: 0;
    pointer-events: none;
}

.aselsan-offset-solid {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: var(--primary);
    z-index: 0;
    pointer-events: none;
}

.aselsan-image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.aselsan-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.1);
}

.aselsan-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: transparent;
    border: 1px solid rgba(71, 14, 178, 0.5);
    color: var(--text);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aselsan-ghost-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.aselsan-ghost-btn:hover {
    border-color: var(--primary);
    color: #fff;
}

.aselsan-ghost-btn:hover::before {
    left: 0;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 5%;
    margin-bottom: 100px;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Capabilities Grid */
.capabilities-section {
    max-width: 1400px;
    margin: 0 auto 120px;
    padding: 0 5%;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
}

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

.cap-card {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cap-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.cap-card:hover img {
    opacity: 0.4;
    transform: scale(1.05);
}

.cap-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0.8) 60%, transparent);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.cap-card:hover .cap-content {
    transform: translateY(0);
}

.cap-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cap-content p {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0.1s;
}

.cap-card:hover .cap-content p {
    opacity: 1;
}

/* Detailed Tech Overview */
.tech-overview {
    background: var(--bg-alt);
    padding: 120px 5%;
    margin-bottom: 120px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
}

.tech-left {
    flex: 1;
}

.tech-left h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--text);
}

.tech-left p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tech-right {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tech-box {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.tech-box:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(71, 14, 178, 0.08);
    transform: translateY(-5px);
}

.tech-box i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.tech-box h4 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

/* Aselsan Project Cards */
.projects-section {
    max-width: 1400px;
    margin: 0 auto 120px;
    padding: 0 5%;
}

.aselsan-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.aselsan-project-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid rgba(71, 14, 178, 0.15);
    border-radius: 0;
    /* Sharp, corporate edges */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.aselsan-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 10;
}

.aselsan-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(71, 14, 178, 0.4);
}

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

.aselsan-project-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.aselsan-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: grayscale(10%) contrast(1.05);
}

.aselsan-project-card:hover .aselsan-project-img img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.aselsan-project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.aselsan-project-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aselsan-project-content h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.aselsan-project-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    flex: 1;
}

.aselsan-project-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.3s ease;
}

.aselsan-project-link i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.aselsan-project-card:hover .aselsan-project-link {
    color: var(--primary);
}

.aselsan-project-card:hover .aselsan-project-link i {
    transform: translateX(6px);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #3a0ca3 100%);
    padding: 100px 5%;
    text-align: center;
}

.cta-banner h2 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.cta-banner-btn {
    display: inline-block;
    padding: 20px 48px;
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border-radius: 4px;
}

.cta-banner-btn:hover {
    transform: translateY(-5px);
}

@media (max-width: 1024px) {

    .aselsan-hero,
    .tech-container {
        flex-direction: column;
        gap: 60px;
    }

    .cap-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
    }
}

.project-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-img-wrapper::after {
    opacity: 1;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e, #0a0a0a);
}

.project-card .app-preview i {
    font-size: 80px;
    filter: drop-shadow(0 0 30px rgba(105, 37, 235, 0.3));
    color: var(--primary);
}

.project-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.project-card h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
}

.project-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: flex-end;
    /* Aligns the button to the right */
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    /* Allows tags to wrap if there are many */
    gap: 8px;
    margin-bottom: 20px;
    /* Space between tags and the bottom meta section */
}

.project-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(105, 37, 235, 0.05);
    border: 1px solid rgba(105, 37, 235, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.project-card .btn-premium-link {
    margin-top: 0;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Detail Page Styles */
.detail-hero {
    padding: 120px 0 60px 0;
    text-align: center;
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

@media (max-width: 992px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
}

.detail-image {
    width: 100%;
    border-radius: 0;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.detail-app-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--card);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.detail-info h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.detail-info p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tech-tag {
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ─── PREMIUM LINK ─── */
.btn-premium-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(105, 37, 235, 0.08);
    border: 1px solid rgba(105, 37, 235, 0.2);
    border-radius: 12px;
    width: fit-content;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.btn-premium-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(105, 37, 235, 0.2);
}

.btn-premium-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-premium-link:hover i {
    transform: translate(2px, -2px);
}

/* ─── CONTACT ─── */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px;
    box-shadow: var(--card-shadow);
}

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

.form-group label {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 51, 141, 0.1);
}

/* ─── LANG BTN ─── */
.lang-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.lang-btn i {
    font-size: 13px;
    color: var(--muted);
    transition: all 0.3s ease;
}

.lang-btn:hover i {
    color: #fff;
    transform: rotate(15deg);
}

/* ─── FOOTER ─── */
.footer {
    padding: 80px 20px 40px 20px;
    background: var(--primary);
    color: #fff;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col .logo {
    margin-bottom: 16px;
    font-size: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.25s ease;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* ─── MARQUEE ─── */
.marquee-section {
    padding: 20px 0 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 32px;
}

.marquee-subtitle {
    text-align: center;
    font-size: 11px;
    border: 1px solid var(--border);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 700;
    margin-left: 50%;
    transform: translateX(-50%);
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 24px;
    background: var(--card);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    height: 110px;
    width: max-content;
    gap: 72px;
    padding-right: 72px;
    animation: scroll 45s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: opacity 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.marquee-item:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1.2);
}

.marquee-item img {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.marquee-item:hover img {
    transform: scale(1.12);
}

.marquee-item span {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

@keyframes scroll {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width:1250px) {

    .hero,
    .marquee-section,
    .showcase-section {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width:1024px) {
    .navbar {
        background: rgba(28, 28, 28, 0.95);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .hero {
        flex-direction: column;
        padding: 60px 40px 80px;
        min-height: auto;
        text-align: center;
        overflow: hidden;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-3d-wrapper {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
    }

    .showcase-item {
        flex: 0 0 340px;
        padding: 24px;
    }

    .showcase-item img {
        height: 180px;
    }

    .showcase-item h2 {
        font-size: 22px;
    }

}

@media (max-width:768px) {
    .navbar {
        margin: 0;
        padding: 14px 22px;
        border-radius: 0;
        top: 0;
        left: 0;
        right: 0;
        border: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(18, 18, 20, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 95px 24px 50px;
        gap: 20px;
        transition: 0.35s cubic-bezier(.2, .8, .2, 1);
        z-index: 1000;
        display: flex;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        padding: 8px 16px;
    }

    .nav-links a.nav-cta-btn {
        margin-top: 6px;
        padding: 10px 24px !important;
        font-size: 15px;
    }

    .mobile-menu-active {
        overflow: hidden;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        margin: 0;
        padding: 90px 20px 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 28px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
    }

    .contact-header .hero-title br {
        display: none !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.6 !important;
        padding: 0 10px;
        margin: 14px auto 24px auto;
    }

    .scroll-prompt {
        display: none !important;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 24px auto 0 auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 14px 20px;
        font-size: 13px;
    }

    .hero-3d-wrapper {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 26px;
    }

    .footer-container,
    .contact-container,
    .services-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-section,
    .services-section,
    .projects-section,
    .live-showcase-section,
    .contact-section {
        padding: 60px 16px;
    }

    /* Services section on mobile: Perfectly centered title & full-width vertical cards */
    .services-section .contact-header {
        text-align: center !important;
        margin-bottom: 32px !important;
        width: 100% !important;
        padding: 0 8px;
    }

    .services-section .contact-header .hero-title {
        font-size: 26px !important;
        text-align: center !important;
        margin: 0 auto 12px auto !important;
        line-height: 1.25 !important;
    }

    .services-section .contact-header .hero-subtitle {
        font-size: 14px !important;
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        line-height: 1.6 !important;
    }

    .services-carousel-container {
        padding: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .services-carousel-track {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .service-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 26px 20px !important;
        box-sizing: border-box !important;
        flex-shrink: 1 !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.035) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .service-card:hover {
        transform: none !important;
    }

    .service-card .card-num {
        font-size: 30px !important;
        margin-bottom: 12px !important;
        color: #ffffff !important;
        opacity: 0.3 !important;
    }

    .service-card h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        color: #ffffff !important;
    }

    .service-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: var(--text-muted) !important;
    }

    /* Projects placeholder on mobile */
    .projects-empty-card {
        padding: 36px 18px !important;
        margin-left: auto;
        margin-right: auto;
        width: 95%;
    }

    .projects-empty-card h3 {
        font-size: 18px !important;
    }

    .projects-empty-card p {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    /* Showcase tabs on mobile */
    .showcase-tabs-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 6px 16px !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        margin: 20px 0 !important;
        width: 100% !important;
    }

    .showcase-tabs-container::-webkit-scrollbar {
        display: none !important;
    }

    .showcase-nav-tab {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    .device-screen-container {
        height: 520px !important;
        min-height: 380px !important;
    }

    .device-top-bar {
        padding: 10px 14px;
    }

    .window-address-bar {
        max-width: 220px;
        font-size: 11px;
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: 24px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .hero-3d-wrapper {
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
    }

    .showcase-section,
    .marquee-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .service-card {
        padding: 28px 18px;
        border-radius: 16px;
    }
}

@media (max-width:400px) {
    .logo span {
        display: none;
    }
}

@media (max-width:320px) {
    .hero-title {
        font-size: 26px;
    }

    .navbar .logo {
        font-size: 15px;
    }

    .logo img {
        height: 22px;
    }
}

/* ─── GITHUB BADGE ─── */
/* ─── GITHUB BADGE ─── */
.github-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 99 !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: default !important;
}

.github-badge i {
    font-size: 18px !important;
    min-width: 18px !important;
    transform: translate(-1px, 1px);
}

.github-badge span {
    opacity: 0 !important;
    max-width: 0 !important;
    margin-left: 0 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.github-badge:hover {
    width: 145px !important;
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5) !important;
}

.github-badge:hover span {
    opacity: 1 !important;
    max-width: 100px !important;
    margin-left: 8px !important;
}

/*  COMING SOON BADGE  */
.coming-soon-badge {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 99 !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: default !important;
}

.coming-soon-badge i {
    font-size: 18px !important;
    min-width: 18px !important;
    transform: translate(1px, 1px);
}

.coming-soon-badge span {
    opacity: 0 !important;
    max-width: 0 !important;
    margin-left: 0 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.coming-soon-badge:hover {
    width: 145px !important;
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5) !important;
}

.coming-soon-badge:hover span {
    opacity: 1 !important;
    max-width: 100px !important;
    margin-left: 8px !important;
}

/* ==========================================================================
   MINIMALIST MONOCHROME OVERRIDES (NO BLUE TONES & NO BOX SHADOWS)
   ========================================================================== */

/* Remove all shadows globally */
* {
    box-shadow: none !important;
}

/* Ensure buttons use premium glass-pill styling */
.btn-primary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 100px !important;
    padding: 16px 36px !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: #FFFFFF !important;
    color: #202020 !important;
    border-color: #FFFFFF !important;
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #fff !important;
}

.cta-button {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.cta-button:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
}

.project-tag,
.tech-tag {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Remove all blue/purple gradients from banners */
.cta-banner {
    background: #1A1A1A !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner-btn {
    background: #fff !important;
    color: #202020 !important;
}

/* Grayscale overlays for tickers and project logos */
.logo-ticker-item img {
    filter: grayscale(100%) brightness(2) contrast(1) !important;
}

.app-preview i,
.project-card .app-preview i {
    color: #fff !important;
    filter: grayscale(1) brightness(2) !important;
}

.about-card::before {
    background: #ffffff !important;
}

/* Overrides for detail blocks and links */
.btn-premium-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.btn-premium-link:hover {
    background: #fff !important;
    color: #202020 !important;
    border-color: #fff !important;
}

/* Input form focusing */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ==========================================================================
   MINIMALIST SOLID-COLOR & HOVER-TRANSFORM OVERRIDES
   ========================================================================== */

/* Globally hide the hero badge */
.hero-badge {
    display: none !important;
}

/* Disable all scroll/hover transforms globally */
.logo:hover,
.about-card:hover,
.service-card:hover,
.feature-box:hover,
.project-card:hover,
.aselsan-project-card:hover,
.lang-btn:hover {
    transform: none !important;
}

/* Replace all color gradients with solid premium colors */
.hero-bg::after {
    background: rgba(32, 32, 32, 0.65) !important;
}

.about-page-header {
    background: #1A1A1A !important;
}

.about-intro-section {
    background: #202020 !important;
}

.about-intro-image-wrapper::after {
    background: #1A1A1A !important;
    filter: none !important;
}

.showcase-app {
    background: var(--card) !important;
}

.project-img-wrapper::after {
    background: rgba(0, 0, 0, 0.3) !important;
}

.project-card .app-preview {
    background: #1A1A1A !important;
}

.projects-header {
    background: #202020 !important;
}

/* Ensure grabbed carousel has active states */
.services-carousel-container:active {
    cursor: grabbing !important;
}

/* ==========================================================================
   EDITORIAL SERIF TYPOGRAPHY (FOR HEADINGS)
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.service-title,
.feature-title,
.ceo-name,
.about-card h3,
.service-card h3,
.cap-content h3,
.tech-left h2,
.cta-banner h2,
.detail-info h2,
.content-slide .slide-text h3 {
    font-family: 'Amarante', serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.25 !important;
}

/* ─── NARRATIVE HORIZONTAL SHOWCASE ─── */
.showcase-horizontal-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: auto;
    padding: 20px 0;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

.showcase-horizontal-wrapper::-webkit-scrollbar {
    display: none;
}

.showcase-horizontal-track {
    display: flex;
    gap: 32px;
    width: max-content;
    padding-bottom: 20px;
}

.showcase-app-card {
    width: 380px;
    background: var(--card);
    border: none !important;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.showcase-app-card:hover {
    background: var(--card-hover);
}

.showcase-app-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-alt);
}

.showcase-app-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(1.05);
}

.showcase-app-card:hover .showcase-app-img img {
    filter: grayscale(0%) contrast(1);
}

.showcase-app-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.showcase-app-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.showcase-app-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── 42CODE DIGITAL ECOSYSTEM SECTION ─── */
.ecosystem-section {
    padding: 110px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ecosystem-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.ecosystem-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ecosystem-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.ecosystem-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ecosystem-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.ecosystem-icon-box i {
    color: #ffffff !important;
    font-size: 22px !important;
    display: block;
    line-height: 1;
}

.ecosystem-icon-box svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s ease;
}

.ecosystem-card:hover .ecosystem-icon-box {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ecosystem-card:hover .ecosystem-icon-box svg {
    transform: scale(1.1);
}

.ecosystem-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ecosystem-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.ecosystem-card-body p {
    font-size: 14px;
    color: #a3a3a3;
    line-height: 1.65;
    margin-bottom: 32px;
}

.ecosystem-card-footer {
    margin-top: auto;
}

.ecosystem-card-footer .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 13px;
    border-radius: 8px;
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.ecosystem-card-footer .btn-primary:hover {
    background: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
    color: #000000 !important;
}

.ecosystem-card-footer .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 13px;
    border-radius: 8px;
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.ecosystem-card-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

@media (max-width: 992px) {
    .ecosystem-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .ecosystem-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── DYNAMIC VERTICAL TIMELINE ─── */
.timeline-section {
    padding: 120px 0;
    background: var(--bg);
    position: relative;
}

.timeline-wrapper {
    max-width: 900px;
    margin: 80px auto 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 60px;
    position: relative;
    width: 50%;
}

.timeline-item.right {
    align-self: flex-end;
    justify-content: flex-start;
}

.timeline-item.left {
    align-self: flex-start;
    left: 0;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    z-index: 10;
}

.timeline-item.left .timeline-dot {
    right: -5px;
}

.timeline-item.right .timeline-dot {
    left: -5px;
}

.timeline-content {
    width: 85%;
    padding: 30px;
    background: var(--card);
    border-radius: 16px;
    position: relative;
    transition: background 0.3s ease;
}

.timeline-content:hover {
    background: var(--card-hover);
}

.timeline-year {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        justify-content: flex-start;
        padding-left: 45px;
        padding-bottom: 40px;
    }

    .timeline-dot {
        left: 15px !important;
    }

    .timeline-content {
        width: 100%;
    }
}

/* ─── EDITORIAL CARD NUMBERS & AMBIENT DRIVING GLOWS ─── */
.card-num {
    font-family: 'Amarante', serif !important;
    font-size: 40px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.25;
    margin-bottom: 24px;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card:hover .card-num,
.service-card:hover .card-num {
    opacity: 0.6;
    color: #fff;
}

.ambient-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(100px);
    pointer-events: none;
}

.glow-1 {
    width: 700px;
    height: 700px;
    top: -250px;
    left: -200px;
    animation: floatGlow1 22s infinite alternate ease-in-out;
}

.glow-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    animation: floatGlow2 28s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(140px, 90px) scale(1.15);
    }
}

@keyframes floatGlow2 {
    0% {
        transform: translate(0, 0) scale(1.15);
    }

    100% {
        transform: translate(-120px, -140px) scale(0.9);
    }
}

/* ─── BULLETPROOF CENTERING OVERRIDES ─── */
.hero-content .hero-title,
.contact-header .hero-title {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 1600px) {
    .showcase-horizontal-wrapper {
        display: flex;
        justify-content: center;
    }

    .showcase-horizontal-track {
        margin: 0 auto;
    }
}

/* ─── GLOBAL SCROLLBAR SUPPRESSION OVERRIDES ─── */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html,
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: scroll;
    /* Keeps scrolling active natively */
}

/* ─── ENTERPRISE HIGH-TECH BUTTON HOVER SYSTEM (NO WARP / SKEW) ─── */
.btn-primary,
.btn-secondary,
.cta-button,
.nav-btn-register,
.nav-btn-login {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover,
.cta-button:hover,
.nav-btn-register:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px -4px rgba(255, 255, 255, 0.15) !important;
}

.btn-secondary:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5) !important;
}

/* Precise icon micro-interaction (straight translation, no skew) */
.btn-primary i,
.btn-secondary i,
.cta-button i,
.nav-btn-register i,
.nav-btn-login i {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover i,
.cta-button:hover i,
.nav-btn-register:hover i {
    transform: translateX(4px) !important;
}

/* ─── ENTERPRISE NAVBAR AUTH & USER DROPDOWN ─── */
.nav-auth-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Guest State: Separate Login & Register */
.nav-auth-guest {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn-login {
    color: #e2e8f0 !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.nav-btn-login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.nav-btn-register {
    background: #ffffff;
    color: #1a1a1a !important;
    border: 1px solid #ffffff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.nav-btn-register:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #000000 !important;
    transform: translateY(-1px) !important;
}

/* Logged-In User Chip */
.nav-auth-user {
    position: relative;
}

.nav-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 14px 5px 6px;
    border-radius: 28px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f1f5f9;
}

.nav-user-chip:hover,
.nav-user-chip.active {
    background: #333333;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.user-avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: visible;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a1a;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: block;
}

.user-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    background: #10b981;
    border: 2px solid #202020;
    border-radius: 50%;
}

.nav-user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.nav-user-wallet {
    font-size: 11px;
    font-weight: 600;
    color: #a3a3a3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-user-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease;
    margin-left: 2px;
}

.nav-user-chip.active .nav-user-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

/* User Dropdown Menu Card */
.nav-user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.nav-user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}

.user-menu-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #151515;
}

.user-menu-details {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-email {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-badge {
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-menu-wallet-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-card-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.8px;
}

.wallet-card-amount {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.wallet-card-link {
    font-size: 11px;
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-top: 2px;
    transition: color 0.2s;
}

.wallet-card-link:hover {
    color: #ffffff;
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}

.user-menu-item i {
    font-size: 14px;
    color: #94a3b8;
    width: 18px;
    text-align: center;
    transition: color 0.2s;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(3px);
}

.user-menu-item:hover i {
    color: #ffffff;
}

.menu-item-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.menu-item-badge.cart-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-menu-item.logout-btn {
    color: #f87171;
}

.user-menu-item.logout-btn i {
    color: #f87171;
}

.user-menu-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.user-menu-item.logout-btn:hover i {
    color: #ef4444;
}

/* ─── FUTURISTIC RADIAL LIQUID SPOTLIGHT & 3D TILT ─── */
.about-card,
.service-card,
.showcase-app-card,
.timeline-content,
.ecosystem-card {
    position: relative !important;
    overflow: hidden !important;
    transform-style: preserve-3d !important;
}

/* Create the liquid laser spotlight overlay behind text */
.about-card::after,
.service-card::after,
.showcase-app-card::after,
.timeline-content::after,
.ecosystem-card::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(300px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(255, 255, 255, 0.08),
            transparent 80%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.about-card:hover::after,
.service-card:hover::after,
.showcase-app-card:hover::after,
.timeline-content:hover::after,
.ecosystem-card:hover::after {
    opacity: 1 !important;
}

/* Force child elements above the spotlight overlay */
.about-card>*,
.service-card>*,
.showcase-app-card>*,
.timeline-content>*,
.ecosystem-card>* {
    position: relative !important;
    z-index: 2 !important;
}

/* ─── ULTRA-PREMIUM FULLSCREEN PROJECTS MODAL ─── */
.fullscreen-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.fullscreen-modal.active {
    display: block !important;
    opacity: 1 !important;
}

.modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 1 !important;
}

.modal-container {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    overflow-y: auto !important;
    padding: 60px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.modal-container::-webkit-scrollbar {
    display: none !important;
}

.modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto 60px auto !important;
    flex-shrink: 0 !important;
}

.modal-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--text-muted) !important;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1) !important;
}

.modal-close-btn:hover {
    color: #fff !important;
    transform: scale(1.06) !important;
}

.modal-close-btn .close-text {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.modal-close-btn .close-icon {
    font-size: 20px !important;
}

.modal-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 48px !important;
    flex-grow: 1 !important;
}

.modal-projects-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
    width: 100% !important;
    padding-bottom: 80px !important;
}

.modal-card {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 991px) {
    .modal-projects-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── 42Code.NET MODERN LOGO & HEADER STYLES ─── */
.logo {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1;
    width: fit-content;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo-text,
.logo-brand {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: none;
    display: inline-flex;
    align-items: baseline;
    font-family: inherit;
}

.logo-dot,
.logo-accent {
    color: #ffffff;
    font-weight: 800;
}

/* Nav CTA Button */
.nav-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
}

.nav-cta-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.nav-cta-btn i {
    font-size: 12px;
}

/* Hide obsolete user chip if present */
.nav-auth-wrapper,
.nav-user-chip,
.nav-auth-user,
.nav-auth-guest {
    display: none !important;
}

/* ─── LIVE WEB & SOFTWARE IFRAME SHOWCASE COMPONENT ─── */
.live-showcase-section {
    padding: 90px 0;
    position: relative;
}

.showcase-tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 35px auto 25px auto;
    max-width: 1100px;
    padding: 0 20px;
}

.showcase-nav-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.showcase-nav-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.showcase-nav-tab.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    box-shadow: none;
}

.showcase-nav-tab .tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #71717a;
}

.showcase-nav-tab.active .tab-dot {
    background: #000000;
    box-shadow: none;
}

/* Device Mockup Window */
.device-mockup-wrapper {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.device-window {
    width: 100%;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-top-bar {
    background: #202024;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.window-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.red {
    background: #ff5f56;
}

.window-dot.yellow {
    background: #ffbd2e;
}

.window-dot.green {
    background: #27c93f;
}

.window-address-bar {
    flex: 1;
    max-width: 580px;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #e2e8f0;
}

.window-address-bar i {
    color: #10b981;
    font-size: 12px;
}

.window-address-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
    font-size: 12px;
    color: #94a3b8;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-btn:hover,
.device-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.window-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.window-action-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Device Screen & Container */
.device-screen-container {
    background: #09090b;
    width: 100%;
    min-height: 600px;
    height: 72vh;
    max-height: 820px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-screen-container.view-desktop {
    width: 100%;
}

.device-screen-container.view-tablet {
    width: 768px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.device-screen-container.view-mobile {
    width: 390px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.device-screen-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
    display: block;
}

/* Loader Animation */
.device-frame-loader {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 10;
    color: #ffffff;
}

.spinner-glow {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@media (max-width: 768px) {
    .device-screen-container {
        height: 500px;
        min-height: 420px;
    }

    .window-controls .device-btn {
        display: none;
    }

    .window-address-bar {
        max-width: 100%;
    }
}

/* === NAV ACTIVE STATE INDICATORS === */
.nav-links a {
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff !important;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.nav-links a.nav-cta-btn.active::after {
    display: none !important;
}

.nav-links a.nav-cta-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

@media (max-width: 992px) {
    .nav-links a.active::after {
        display: none !important;
    }

    .nav-links a.active {
        color: #ffffff !important;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    }
}

/* ─── NAV CTA BUTTON ─── */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px !important;
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    transition: all 0.25s ease !important;
}

.nav-cta-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-1px);
}

/* ─── LANGUAGE SELECTOR DROPDOWN ─── */
.lang-selector-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-current-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 7px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-current-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-current-btn i.fa-globe {
    font-size: 13px;
    color: #94a3b8;
}

.lang-current-btn .lang-chevron {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.lang-selector-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 1002;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lang-selector-dropdown.open .lang-dropdown-menu {
    display: flex;
    animation: langFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.lang-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}

.lang-opt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.lang-opt.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
}

.lang-flag {
    font-size: 15px;
    line-height: 1;
}

.lang-name {
    flex: 1;
}

.lang-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ─── DEDICATED SOFTWARE & CORE PROJECTS SECTION ─── */
.projects-section {
    padding: 100px 0;
    position: relative;
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.project-tech-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.project-tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.35s ease;
}

.project-tech-card:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-6px);
}

.project-tech-card:hover::before {
    width: 100%;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
}

.project-badge-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-tech-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.project-tech-card p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tag-item {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: auto;
}

.project-ext-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.project-ext-btn:hover {
    color: #e2e8f0;
    transform: translateX(3px);
}

.project-ext-btn i {
    font-size: 12px;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── PROJECTS EMPTY PLACEHOLDER STATE ─── */
.projects-empty-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 60px 32px;
    text-align: center;
    max-width: 720px;
    margin: 40px auto 0 auto;
    transition: all 0.3s ease;
}

.projects-empty-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.035);
}

.empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
}

.projects-empty-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.projects-empty-card p {
    font-size: 15px;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto 24px auto;
    line-height: 1.7;
}

/* ─── 42PLAY.NET MOBILE GAMES CARD ─── */
.projects-mobile-card {
    max-width: 720px;
    margin: 28px auto 0 auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 36px 40px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.projects-mobile-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.projects-mobile-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mobile-card-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mobile-card-icon-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.projects-mobile-card:hover .mobile-card-icon-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.06) rotate(-3deg);
}

.mobile-card-content {
    flex: 1;
}

.mobile-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a3a3a3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.mobile-card-content h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mobile-card-content p {
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-mobile-visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #202020;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 0;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
}

.btn-mobile-visit:hover {
    background: #e5e5e5;
    color: #202020;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-mobile-visit i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.btn-mobile-visit:hover i {
    transform: translate(2px, -2px);
}

@media (max-width: 640px) {
    .projects-mobile-card {
        padding: 28px 22px;
    }

    .mobile-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .mobile-card-tag {
        margin: 0 auto 14px auto;
    }

    .btn-mobile-visit {
        margin: 0 auto;
    }
}