@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Orbitron:wght@700&family=Pixelify+Sans&family=Press+Start+2P&display=swap');

:root {
    --background: #000000;
    --secondary-background: #000000;
    --neon-purple: #a855f7;
    --soft-purple: #c084fc;
    --glow-purple: #c084fc;
    --white: #FFFFFF;
    --text-gray: #B7B7C7;
    --borders: rgba(168, 85, 247, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text-gray);
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    overflow-x: hidden;
}

a {
    color: var(--white);
    text-decoration: none;
}

ul {
    list-style: none;
}

.btn {
    display: none; /* replaced */
}
.sci-fi-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    font-size: 14px;
}

.sci-fi-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--neon-purple);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: -2;
    transition: all 0.3s ease;
}

.sci-fi-btn.outlined::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--background);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    z-index: -1;
    transition: all 0.3s ease;
}

.sci-fi-btn.filled::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: rgba(168, 85, 247, 0.15);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    z-index: -1;
    transition: background 0.3s ease;
}

.sci-fi-btn:hover {
    transform: translateY(-3px);
}
.sci-fi-btn:hover::before {
    box-shadow: 0 0 20px var(--glow-purple);
}
.sci-fi-btn.filled:hover::after {
    background: rgba(168, 85, 247, 0.4);
}

.nav-btn {
    padding: 10px 20px;
    font-size: 13px;
}
.nav-btn::before {
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nav-btn.outlined::after {
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.section-title {
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    font-size: 48px;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
}
/* ... (previous styles) */

/* ==========================================================================
/* Cosmic Starfield Canvas */
.space-starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Glowing Pill Navbar (Crisp Dark Glass Capsules)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.navbar-capsule {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1500px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}

.navbar-capsule::before {
    display: none;
}

/* Logo (Glowing Pill Button) */
.navbar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 28px;
    border-radius: 9999px;
    background: rgba(6, 2, 14, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(168, 85, 247, 0.75);
    border-top: 1.5px solid rgba(216, 180, 254, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.75), inset 0 0 15px rgba(168, 85, 247, 0.4);
    border-color: rgba(216, 180, 254, 1);
}

.navbar-logo .logo-text {
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    font-size: 20px;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* Navigation Links & iOS Liquid Glass Sliding Pill */
.nav-menu {
    position: relative;
    padding: 4px 8px;
    border-radius: 9999px;
    background: rgba(6, 2, 14, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.25);
}

.nav-active-pill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(168, 85, 247, 0.85);
    border-top: 1.5px solid rgba(216, 180, 254, 0.95);
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.55),
        inset 0 0 10px rgba(168, 85, 247, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-sizing: border-box;
    opacity: 0;
    transform-origin: center center;
    transition: opacity 0.3s ease;
}

.nav-active-pill.ready {
    opacity: 1;
}

.nav-active-pill .pill-dot {
    color: var(--neon-purple);
    font-size: 13px;
    line-height: 1;
    text-shadow: 0 0 6px var(--glow-purple);
    pointer-events: none;
    user-select: none;
}

/* Specular Shimmer across active pill */
.nav-active-pill::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    pointer-events: none;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 2;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border: 1.5px solid transparent;
    background: transparent;
    position: relative;
    z-index: 2;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

/* Secondary subtle glass hover highlight (does not move active pill) */
.nav-link:hover {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

/* Active Link Text (the glass pill slides beneath it) */
.nav-link.active {
    color: #ffffff;
    opacity: 1;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* Click scale spring feedback */
.nav-link:active {
    transform: scale(0.95);
}

/* Navbar Right (CTA & Mobile Toggle) */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 9999px;
    background: rgba(6, 2, 14, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(168, 85, 247, 0.75);
    border-top: 1.5px solid rgba(216, 180, 254, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.4);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-cta .dot {
    color: var(--neon-purple);
    font-size: 16px;
    line-height: 1;
    text-shadow: 0 0 8px var(--glow-purple);
}

.navbar-cta i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.75), inset 0 0 15px rgba(168, 85, 247, 0.4);
    border-color: rgba(216, 180, 254, 1);
}

/* Language Toggle Button */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(6, 2, 14, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(168, 85, 247, 0.75);
    border-top: 1.5px solid rgba(216, 180, 254, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.4);
    color: var(--white);
    font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    outline: none;
}

.lang-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.75), inset 0 0 15px rgba(168, 85, 247, 0.4);
    border-color: rgba(216, 180, 254, 1);
}

.lang-toggle-btn .lang-opt {
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.lang-toggle-btn .lang-opt.active {
    color: var(--white);
    text-shadow: 0 0 10px var(--glow-purple);
}

.lang-toggle-btn .lang-sep {
    color: rgba(168, 85, 247, 0.6);
    font-size: 10px;
}

/* RTL Layout & Typography Adjustments */
html[dir="rtl"] body {
    font-family: 'Alexandria', 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
    letter-spacing: 0;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4,
html[dir="rtl"] .subheading,
html[dir="rtl"] .section-heading {
    font-family: 'Alexandria', 'Cairo', sans-serif;
    line-height: 1.45;
}

html[dir="rtl"] .hero-content-left {
    text-align: right;
}

html[dir="rtl"] .about-content {
    text-align: right;
}

html[dir="rtl"] .section-header {
    text-align: right;
}

html[dir="rtl"] .contact-col-1 {
    text-align: right;
}

html[dir="rtl"] .contact-col-2 {
    text-align: right;
}

html[dir="rtl"] .stat-text {
    text-align: right;
}

html[dir="rtl"] .top-badge {
    direction: rtl;
}

html[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

html[dir="rtl"] .social-sidebar {
    left: auto;
    right: 25px;
}


.navbar-cta:hover i {
    transform: translateX(4px);
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 6, 22, 0.5);
    border: 1.5px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.mobile-toggle:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(216, 180, 254, 0.9);
}

/* Hero Section */
.hero-section {
    height: 900px;
    display: flex;
    align-items: center;
    padding-top: 90px;
    position: relative;
    overflow: hidden; /* Ensure blurred edges are contained */
}
.hero-section::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('hero.png') no-repeat right center/cover;
    background-attachment: fixed;
    z-index: -1;
}
.hero-section::after{ /* Overlay for cosmic gradients */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(8, 3, 18, 0.9) 30%, rgba(8, 3, 18, 0.2) 60%),
                linear-gradient(to top, rgba(8, 3, 18, 1) 5%, transparent 20%);
    z-index: 0;
    pointer-events: none;
}
.hero-container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.social-sidebar {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    padding: 0;
}

.social-sidebar a {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid rgba(168, 85, 247, 0.7);
    border-top: 1.5px solid rgba(216, 180, 254, 0.85);
    border-radius: 50%;
    background: rgba(10, 6, 22, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
}

.social-sidebar a:hover {
    color: var(--white);
    border-color: rgba(216, 180, 254, 1);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
    transform: scale(1.1);
}

.hero-content-left {
    max-width: 600px;
    margin-right: auto;
    margin-left: 15%;
}

.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border-radius: 9999px;
    background: rgba(10, 6, 22, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(168, 85, 247, 0.65);
    border-top: 1.5px solid rgba(216, 180, 254, 0.8);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35), inset 0 0 8px rgba(168, 85, 247, 0.2);
    margin-bottom: 24px;
}

.top-badge .dot {
    color: var(--neon-purple);
    font-size: 14px;
    text-shadow: 0 0 8px var(--glow-purple);
}

.top-badge span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.main-heading {
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    font-size: 75px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.main-heading .logo-o {
    color: var(--neon-purple);
}

.subheading {
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    font-size: 36px;
    color: var(--soft-purple);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.paragraph {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.hero-buttons .btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 30px !important;
    border-radius: 9999px !important;
    background: rgba(10, 6, 22, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.8) !important;
    border-top: 1.5px solid rgba(216, 180, 254, 0.9) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.55), inset 0 0 12px rgba(168, 85, 247, 0.3) !important;
    color: var(--white) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-buttons .btn::before,
.hero-buttons .btn::after {
    display: none !important;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.8), inset 0 0 15px rgba(168, 85, 247, 0.45) !important;
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: rgba(216, 180, 254, 1) !important;
}

.hero-buttons .btn i {
    font-size: 15px;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
}

.hero-content-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 100%;
}

.astronaut-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
}

.floating-card {
    position: absolute;
    bottom: 50px;
    right: 28%;
    width: 320px;
    padding: 24px 24px;
    background: rgba(10, 6, 22, 0.55) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.7) !important;
    border-top: 1.5px solid rgba(216, 180, 254, 0.85) !important;
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(168, 85, 247, 0.2) !important;
    border-radius: 28px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}
.floating-card::before,
.floating-card::after {
    display: none !important;
}

.floating-card .card-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-card .card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-top: 1px solid rgba(216, 180, 254, 0.6);
    box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.floating-card .card-item:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.7);
    transform: translateX(-4px);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.4), inset 0 0 12px rgba(168, 85, 247, 0.25);
}

.floating-card .card-item i {
    font-size: 16px;
    color: var(--white);
    width: 20px;
    text-align: center;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
}

.floating-card .card-item span {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.cyber-progress {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 0 4px;
}

.cyber-progress span {
    flex: 1;
    height: 6px;
    background: rgba(168, 85, 247, 0.8);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.9);
    display: block;
}




/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: var(--secondary-background);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 450px;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    will-change: opacity;
    animation: statsPulse 4s ease-in-out infinite;
}

@keyframes statsPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

.stats-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 25px 40px;
    background: transparent;
}

.stats-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(168, 85, 247, 0.55);
    clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
    z-index: -2;
}

.stats-container::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #04020B;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    z-index: -1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.stat-icon-wrapper {
    width: 65px;
    height: 65px;
    display: grid;
    place-content: center;
    position: relative;
    background: transparent;
}
.stat-icon-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--neon-purple);
    clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
    z-index: -2;
}
.stat-icon-wrapper::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #000000;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    z-index: -1;
}

.stat-icon-wrapper i {
    font-size: 26px;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text h3 {
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    font-size: 30px;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-text p {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.section-label {
    color: var(--soft-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 8px var(--soft-purple);
}

.section-heading {
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.about-content > p {
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.feature-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.feature-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-content: center;
    position: relative;
    background: transparent;
    flex-shrink: 0;
}
.feature-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--neon-purple);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    z-index: -2;
}
.feature-icon::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #000000;
    clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
    z-index: -1;
}

.feature-icon i {
    font-size: 18px;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

.feature-text h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

.about-image {
    flex: 0.8;
    position: relative;
    padding: 15px;
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.sci-fi-border-box-large {
    position: relative;
    padding: 50px;
    background: transparent;
    z-index: 1;
}
.sci-fi-border-box-large::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--neon-purple);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    z-index: -2;
}
.sci-fi-border-box-large::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #000000;
    clip-path: polygon(29px 0, 100% 0, 100% calc(100% - 29px), calc(100% - 29px) 100%, 0 100%, 0 29px);
    z-index: -1;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--secondary-background);
}

.services-header {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto 40px auto;
}

.section-header {
    margin-bottom: 0;
}

.services-grid {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.service-card {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: 14px;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(168, 85, 247, 0.35);
}

.service-card .card-bg {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: 2;
    background: rgba(10, 10, 18, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 11px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    text-align: center;
    outline: 1.5px solid rgba(168, 85, 247, 0.35);
    transition: all 0.3s ease;
}

.service-card:hover .card-bg {
    background: rgba(12, 10, 24, 0.75);
    outline-color: rgba(192, 132, 252, 0.9);
}

.service-card .blob {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #6366f1 100%);
    opacity: 0.9;
    filter: blur(14px);
    animation: blob-bounce 5s infinite ease;
    transition: all 0.4s ease;
}

.service-card:hover .blob {
    width: 170px;
    height: 170px;
    filter: blur(10px);
    animation-duration: 3s;
    background: linear-gradient(135deg, #c084fc 0%, #f43f5e 50%, #8b5cf6 100%);
}

@keyframes blob-bounce {
    0% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
    25% {
        transform: translate(-100%, -100%) translate3d(100%, 0, 0);
    }
    50% {
        transform: translate(-100%, -100%) translate3d(100%, 100%, 0);
    }
    75% {
        transform: translate(-100%, -100%) translate3d(0, 100%, 0);
    }
    100% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
}

.service-card i {
    font-size: 34px;
    color: var(--neon-purple);
    margin-bottom: 14px;
    text-shadow: 0 0 15px var(--glow-purple);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, text-shadow 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2) translateY(-3px);
    color: #ffffff;
    text-shadow: 0 0 20px #c084fc, 0 0 35px #a855f7;
}

.service-card h3 {
    color: var(--white);
    font-size: 13px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-card:hover h3 {
    color: #f3e8ff;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
}

.service-card p {
    color: var(--text-gray);
    font-size: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #ffffff;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
}

.projects-header {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
}

.filter-btn {
    padding: 8px 15px;
    font-size: 11px;
}

.projects-grid {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(4, 2, 11, 0.95), transparent);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.project-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.project-info p {
    color: var(--text-gray);
    font-size: 11px;
}

.project-info i {
    color: var(--neon-purple);
    font-size: 16px;
    cursor: pointer;
}

.project-info i:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--glow-purple);
}

.btn-view-all {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


/* Contact Section */
.contact-section {
    padding: 100px 0 0;
    background-color: var(--secondary-background);
    background-image: url('backgraund.jpeg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

.contact-container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    padding-left: 30%; /* Push text to the right to avoid astronaut */
}

.contact-col-1 h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-col-1 p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-gray);
    font-size: 14px;
}

.contact-col-2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-item i {
    color: var(--neon-purple);
    font-size: 20px;
    margin-top: 3px;
    text-shadow: 0 0 10px var(--glow-purple);
}

.contact-info-item h4 {
    color: var(--white);
    font-size: 12px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-info-item p {
    color: var(--text-gray);
    font-size: 14px;
}

.contact-col-3 {
    padding: 30px;
    background: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 5px;
    color: var(--white);
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.2);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
    padding: 15px 0;
    font-size: 14px;
    margin-top: 10px;
}


/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    margin-top: 80px;
}

.footer-container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-family: 'Pixelify Sans', 'Press Start 2P', sans-serif;
    font-size: 24px;
    color: var(--white);
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 12px;
    border-left: 1px solid rgba(168, 85, 247, 0.4);
    padding-left: 15px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 18px;
    color: var(--text-gray);
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .hero-content-left { margin-left: 5%; }
    .about-container, .contact-container { gap: 40px; }
}

@media (max-width: 992px) {
    .navbar {
        top: 16px;
    }
    .navbar-capsule {
        gap: 16px;
        padding: 6px 10px 6px 12px;
    }
    .nav-link {
        padding: 6px 12px;
        font-size: 11px;
        letter-spacing: 1px;
    }
    .navbar-cta {
        padding: 7px 18px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    body { padding-bottom: 0; }
    
    .navbar { 
        top: 12px; 
        bottom: auto; 
        left: 0; 
        width: 100%; 
        height: auto; 
        border: none; 
        border-radius: 0; 
        background: transparent; 
        backdrop-filter: none; 
        box-shadow: none; 
        padding: 0 16px;
    }
    .navbar-capsule { 
        width: 100%; 
        max-width: 500px; 
        padding: 8px 14px; 
        position: relative; 
        justify-content: space-between; 
        gap: 0;
    }
    .mobile-toggle { 
        display: flex; 
    }
    .navbar-cta { 
        display: none; 
    }
    .nav-menu { 
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(18, 12, 35, 0.85) 50%, rgba(10, 6, 22, 0.92) 100%);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-top: 1.5px solid rgba(255, 255, 255, 0.45);
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.35);
        padding: 16px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(0.96);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: block;
    }
    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    .nav-menu ul { 
        display: flex; 
        flex-direction: column; 
        gap: 8px; 
        width: 100%; 
        padding: 0; 
    }
    .nav-menu li { margin: 0; width: 100%; }
    .nav-link { 
        display: flex; 
        width: 100%; 
        justify-content: center; 
        padding: 10px 14px; 
        font-size: 12px; 
    }
    .nav-menu a::before { display: none; }
    
    /* Hero */
    .hero-section { height: auto; min-height: 100vh; padding: 60px 0 80px; flex-direction: row; align-items: center; justify-content: flex-start; }
    .hero-section::before { background: url('hero-mobile.png') no-repeat center/cover; }
    .hero-container { flex-direction: row; text-align: left; width: 100%; padding: 0; justify-content: space-between; }
    .hero-content-left { margin-left: 15%; max-width: 65%; }
    .top-badge { margin: 0 0 15px 0; display: inline-block; padding: 5px 10px; }
    .top-badge span { font-size: 9px; }
    .main-heading { font-size: 28px; }
    .subheading { font-size: 15px; margin-bottom: 15px; }
    .paragraph { font-size: 12px; margin: 0 0 20px 0; }
    .hero-buttons { justify-content: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .hero-buttons .btn { padding: 8px 12px; font-size: 10px; width: auto; }
    .floating-card { position: absolute; bottom: 80px; right: 2%; margin: 0; width: auto; max-width: 140px; padding: 10px; transform: scale(0.8); }
    .floating-card span { font-size: 9px; }
    
    /* Social Sidebar */
    .social-sidebar { position: absolute; left: 5px; top: 35%; transform: translateY(-50%); flex-direction: column; justify-content: flex-start; gap: 15px; padding: 0; margin-top: 0; order: unset; border: none; }
    .social-sidebar a { width: 30px; height: 30px; font-size: 14px; }
    
    /* Stats */
    .stats-container { grid-template-columns: repeat(4, 1fr); padding: 10px 5px; gap: 5px; }
    .stat-item { flex-direction: column; text-align: center; gap: 5px; }
    .stat-icon-wrapper { width: 30px; height: 30px; margin: 0 auto; }
    .stat-icon-wrapper::before { clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
    .stat-icon-wrapper::after { clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
    .stat-icon-wrapper i { font-size: 12px; }
    .stat-text h3 { font-size: 12px; margin-bottom: 2px; }
    .stat-text p { font-size: 6px; letter-spacing: 0.5px; }
    
    /* About */
    .about-container { flex-direction: column; padding: 25px 15px; text-align: center; gap: 25px; }
    .section-heading { font-size: 28px; }
    .about-content > p { font-size: 14px; margin: 0 auto 20px; }
    .feature-blocks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .feature-block { padding: 15px; }
    .feature-block i { font-size: 20px; margin-bottom: 10px; }
    .feature-block h4 { font-size: 14px; }
    .feature-block p { font-size: 11px; }
    
    /* Services */
    .section-title { font-size: 28px; margin-bottom: 30px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .service-card { padding: 20px 10px; }
    .service-card i { font-size: 28px; margin-bottom: 15px; }
    .service-card h3 { font-size: 14px; }
    
    /* Projects */
    .projects-header { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
    .filter-buttons { flex-wrap: wrap; gap: 5px; margin-bottom: 0; }
    .filter-btn { padding: 8px 15px; font-size: 11px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .project-card { border-radius: 10px; height: 200px; }
    .project-info { padding: 15px; }
    .project-info h3 { font-size: 14px; }
    .project-info p { font-size: 10px; }
    .btn-view-all { padding: 12px 25px; font-size: 12px; }
    
    /* Contact */
    .contact-container { padding-left: 0; grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .contact-col-1 h2 { font-size: 28px; }
    .contact-col-1 p { font-size: 14px; margin: 0 auto 25px; }
    .contact-col-2 { align-items: center; padding-left: 0; }
    .contact-col-3 { padding: 20px 15px; width: 100%; }
    .form-row { flex-direction: column; }
    .contact-form { gap: 15px; }
    .contact-form input, .contact-form textarea { padding: 12px 15px; font-size: 14px; }
    
    /* Footer */
    .footer-container { flex-direction: column; gap: 20px; text-align: center; margin-bottom: 0; }
    .footer-left { flex-direction: column; gap: 10px; }
    .footer-copyright { border-left: none; padding-left: 0; }
    .footer-social { justify-content: center; gap: 15px; }
    .footer-social a { margin: 0; font-size: 20px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .feature-blocks { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
}
