:root {
    /* Bio-Tech Palette */
    --color-bg: #0f0518;
    --color-bg-alt: #160a25;
    --color-accent-cyan: #00f3ff;
    --color-accent-purple: #bd00ff;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;

    /* Effects */
    --glass-bg: rgba(15, 5, 24, 0.7);
    --glass-border: rgba(0, 243, 255, 0.2);
    --neon-glow: 0 0 15px rgba(0, 243, 255, 0.4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Neural Network Background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #1a0b2e 0%, #05020a 100%);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Grid Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Navigation */
header {
    background: rgba(15, 5, 24, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #fff, var(--color-accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    text-shadow: 0 0 8px var(--color-accent-cyan);
}

/* Hero Section (Parallax) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    padding-left: 1rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-accent-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: #d0d0d0;
    max-width: 700px;
    margin-bottom: 3rem;
    border-left: 3px solid var(--color-accent-purple);
    padding-left: 20px;
}

/* Premium Buttons */
.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.4s;
}

.btn-neon:hover {
    background: var(--color-accent-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent-cyan);
    margin: 1rem auto 0;
    box-shadow: 0 0 10px var(--color-accent-cyan);
}

/* Why OSSENTIA */
.why-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent-cyan);
    transition: 0.3s;
}

.why-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.why-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.why-box p {
    color: #aaa;
    font-size: 1rem;
}

/* Founder Message (Quote) */
.founder-message {
    background: linear-gradient(to right, rgba(189, 0, 255, 0.1), transparent);
    border-left: 5px solid var(--color-accent-purple);
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.quote-text {
    font-size: 2rem;
    font-family: 'Outfit', serif;
    font-style: italic;
    color: white;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.quote-author {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-accent-cyan);
    font-weight: 700;
}

/* Sectors Grid */
.sector-card {
    background: var(--color-bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    text-align: center;
    border-radius: 12px;
    transition: 0.4s;
}

.sector-card:hover {
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
    transform: translateY(-5px);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-cyan);
}

.sector-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.sector-card p {
    color: #888;
    font-size: 0.95rem;
}

/* Founder Premium Profile */
.founder-hero {
    display: flex;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.founder-visual {
    flex: 1;
    position: relative;
    min-height: 500px;
    /* Increased height for full body/portrait */
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
    /* Subtle adjustment to blend with dark theme */
}

.founder-img:hover {
    transform: scale(1.02);
    filter: brightness(1) contrast(1);
}

.founder-content {
    flex: 1.2;
}

.founder-name {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.founder-title {
    font-size: 1.5rem;
    color: var(--color-accent-purple);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.founder-bio p {
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

.credentials-list {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.credential-item {
    border-left: 2px solid var(--color-accent-cyan);
    padding-left: 1rem;
}

.credential-item strong {
    display: block;
    font-size: 1.2rem;
    color: white;
}

.credential-item span {
    color: #888;
    font-size: 0.9rem;
}

/* Fade & Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Salla Button on Services */
.btn-salla {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

[lang="ar"] {
    display: none !important;
}

/* Objectives Animation */
#skull-trigger {
    position: relative;
    z-index: 10;
}

#skull-trigger.active img {
    animation: skullPulse 3s infinite ease-in-out;
    filter: drop-shadow(0 0 15px var(--color-accent-cyan));
}

@keyframes skullPulse {

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

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

.objective-item {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Staggered transition delays via JS or nth-child */
.objective-item.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.objective-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--color-accent-cyan);
    transition: width 0.5s ease-out 0.2s;
    box-shadow: 0 0 5px var(--color-accent-cyan);
}

.objective-item.visible::before {
    width: 15px;
}

/* =========================================
   MOBILE RESPONSIVENESS & APP-LIKE FEEL
   ========================================= */

/* Mobile Menu Toggle (Hidden by default on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-accent-cyan);
    border-radius: 5px;
    transition: 0.3s;
}

/* Tablet & Mobile Styles */
@media screen and (max-width: 768px) {

    /* 1. Navigation ("App-Like" Overlay) */
    .menu-toggle {
        display: flex;
        z-index: 2000;
        margin-left: auto;
        /* Push to right if needed */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        /* Slide out drawer */
        max-width: 300px;
        background: rgba(15, 5, 24, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        /* Hidden by default */
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1500;
        gap: 3rem;
    }

    .nav-links.active {
        transform: translateX(0);
        /* Slide in */
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hamburger Animation when Active */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

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

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


    /* 2. Hero Section */
    .hero {
        padding-top: 100px;
        /* More space for fixed header */
        align-items: center;
        text-align: center;
    }

    .hero-content {
        padding: 0 1rem;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Scaled down for mobile */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        border-left: none;
        /* Remove side border for center layout */
        border-top: 2px solid var(--color-accent-purple);
        /* Top border instead */
        padding-left: 0;
        padding-top: 1rem;
        margin: 1rem auto 2rem auto;
        text-align: center;
    }

    .container.hero-content img {
        height: 80px !important;
        /* Adapt logo size */
    }


    /* 3. General Layouts & Grids */
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
        /* Force single column */
    }

    .container {
        padding: 0 1.5rem;
    }

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

    /* 4. Founder Page Mobile */
    .founder-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .founder-content {
        order: 2;
    }

    .founder-visual {
        order: 1;
        min-height: 350px;
        width: 100%;
    }

    .founder-img {
        max-width: 90%;
        margin: 0 auto;
    }

    .founder-name {
        font-size: 2.2rem;
    }

    .founder-title {
        font-size: 1rem;
    }

    .credentials-list {
        justify-content: center;
        gap: 1.5rem;
    }

    .credential-item {
        text-align: left;
        width: 100%;
        border-left: 3px solid var(--color-accent-cyan);
        padding-left: 1rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem;
        border-radius: 0 8px 8px 0;
    }

    /* 5. App-like Touch Targets */
    .container.hero-content img {
        height: auto !important;
        max-width: 90%;
        width: 300px;
    }

    /* 5. App-like Touch Targets */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-neon {
        width: 100%;
        /* Full width buttons on mobile */
        padding: 1rem;
        justify-content: center;
    }

    /* Fixed Background / Parallax Fix for Mobile */
    .parallax {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover;
    }

    /* Prevent horizontal overflow */
    img,
    video,
    canvas,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Optimize Header for Mobile */
    header .container nav {
        padding: 0 0.5rem;
    }
}