:root {
    /* Color Palette */
    --main-color: #5e35b1;
    --secondary-color: #9575cd;
    --alternative-color: #b39ddb;
    --electric-blue: #441994; /* Updated to RGB 68, 25, 148 */
    --dark-bg: #121212;
    --darker-bg: #000000;
    --light-bg: #ffffff;
    --text-light: #ffffff;
    --text-dark: #121212;
    --hover-color: rgba(94, 53, 177, 0.1);
    --active-color: rgba(94, 53, 177, 0.2);
    
    /* Transitions */
    --transition-speed: 0.3s;
    --transition-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
.light-theme {
    --bg-color: var(--light-bg);
    --text-color: var(--text-dark);
    --card-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --blob-opacity: 0.5;
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Dark Theme */
.dark-theme {
    --bg-color: var(--dark-bg);
    --text-color: var(--text-light);
    --card-bg: rgba(18, 18, 18, 0.8);
    --nav-bg: rgba(18, 18, 18, 0.9);
    --blob-opacity: 0.3;
    --hover-color: rgba(179, 157, 219, 0.2);
    --active-color: rgba(179, 157, 219, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Theme Toggle Icon Animations */
.rotate-out {
    animation: rotateOut 0.3s forwards;
}

.rotate-in {
    animation: rotateIn 0.3s forwards;
}

.hidden {
    display: none;
}

@keyframes rotateOut {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes rotateIn {
    0% {
        transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 1;
    }
}
/* Default styles are now handled by the automatic theme detection in JavaScript */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Enable Inter var features */
@supports (font-variation-settings: normal) {
    html { 
        font-family: 'Inter var', sans-serif; 
        font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    }
}

/* Fallback for browsers that don't support variable fonts */
@supports not (font-variation-settings: normal) {
    html {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
}

body {
    font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-speed) var(--transition-function),
                color var(--transition-speed) var(--transition-function);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-function);
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Add padding to top sections to account for fixed navigation */
section:first-of-type {
    padding-top: 120px;
}

/* Ensure sections are properly stacked */
section:not(:first-child) {
    margin-top: 0;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: var(--blob-opacity);
    transition: opacity var(--transition-speed) var(--transition-function);
}

.blob-1 {
    width: 600px;
    height: 600px;
    background-color: var(--main-color);
    top: -300px;
    left: -200px;
    animation: blob-move-1 25s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background-color: var(--secondary-color);
    bottom: -200px;
    right: -100px;
    animation: blob-move-2 20s infinite alternate ease-in-out;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background-color: var(--alternative-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blob-move-3 30s infinite alternate ease-in-out;
}

@keyframes blob-move-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

@keyframes blob-move-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-100px, -100px) scale(1.1);
    }
}

@keyframes blob-move-3 {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-40%, -60%) scale(1.3);
    }
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    /* Absolute position allows the nav to scroll away with the page */
}

/* Nav Container */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.logo img {
    height: 120px;
    width: auto;
    transition: transform 0.5s var(--transition-function);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.menu-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s var(--transition-function);
}

.logo-link {
    padding: 0;
    display: flex;
    align-items: center;
}

.logo-link:hover .menu-logo {
    transform: scale(1.1);
}

.nav-links a {
    color: var(--text-light); /* Always use light text for better visibility on the purple gradient background */
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Subtle shadow for better readability */
}

.nav-links a:not(.logo-link):before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    transition: width var(--transition-speed) var(--transition-function);
}

.nav-links a:not(.logo-link):hover:before,
.nav-links a.active:before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .icon {
    width: 24px;
    height: 24px;
    color: var(--text-light); /* Making hamburger white for better visibility on hero gradient */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); /* Adding subtle shadow for better contrast */
    transition: all 0.3s ease;
}

.theme-toggle-container {
    position: relative;
    z-index: 200;
    margin-left: auto;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-light); /* Using light text for better visibility on hero gradient */
    cursor: pointer;
    opacity: 0.8; /* Slightly increased opacity */
    transition: opacity var(--transition-speed) var(--transition-function), transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); /* Adding subtle shadow for better contrast */
}

.theme-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: var(--hover-color);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn .icon {
    width: 20px;
    height: 20px;
    color: var(--text-light); /* Making icon white for better visibility */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); /* Shadow for better visibility */
}

/* Theme toggle styles are now simplified with direct toggle */

/* Scroll Animation Styles */
.scroll-container {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    overflow: visible; /* Allow content to be visible without hidden overflow */
}

.animation-element {
    will-change: transform, opacity;
    /* Removed transition here as GSAP will handle animations */
}

.fixed-wrapper {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: auto; /* Allow interaction */
}

/* Allow interaction with actual content */
.about-content {
    pointer-events: auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
    z-index: 1; /* Ensure hero is above about section */
    background: linear-gradient(135deg, var(--main-color), var(--alternative-color), var(--electric-blue));
    background-size: 300% 300%;
    animation: gradientBackground 15s ease-in-out infinite;
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Background blob styles */
.background-blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--main-color), var(--alternative-color), var(--electric-blue));
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
    transform-origin: center;
    will-change: transform, opacity, filter;
    animation: blobFloat 20s ease-in-out infinite alternate;
}

@keyframes blobFloat {
    0% {
        transform: translate(0%, 0%) scale(1);
    }
    33% {
        transform: translate(3%, -3%) scale(1.05);
    }
    66% {
        transform: translate(-2%, 2%) scale(0.95);
    }
    100% {
        transform: translate(1%, -1%) scale(1.02);
    }
}

.hero-content {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100vh; /* Full viewport height */
    position: relative;
    overflow: visible;
    padding: 0;
    align-items: center;
    justify-items: center;
}

.company-name {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px; /* Reduced margin to bring tagline closer */
    background: linear-gradient(135deg, var(--main-color), var(--alternative-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    width: auto; /* Let it size naturally */
    position: relative;
    z-index: 2; /* Above the hero overlay */
    display: inline-block; /* Better control over text width */
    will-change: transform, opacity;
}

.dot-ai {
    color: var(--secondary-color);
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 1 / span 2;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tagline {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 4.5px; /* Reduced by 1px as requested */
    margin-top: -7px; /* Added 3px more space from the company name */
    text-align: center;
    display: inline-block;
    width: 100%; /* Match the width of the title container */
}

/* About Section */
.about {
    min-height: 100vh;
    z-index: 2;
    background-color: var(--bg-color); /* Add background color instead of transparent */
    display: block;
    padding-top: 120px; /* For fixed navigation */
    position: relative;
    margin-top: 0; /* Ensure there's no extra margin */
}

/* Hero overlay removed as it was disrupting design */
.hero-overlay {
    display: none; /* Hide the element completely */
}

/* Transition layer for the reveal effect */
/* Fallback style for the about section when JavaScript fails to load */
.fallback-animation {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* About heading and paragraph styles */
.about-content h2 {
    color: var(--main-color);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Cross-browser transition layer styles */
.transition-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--main-color), var(--alternative-color));
    transform-origin: center;
    z-index: 1; /* Between hero and about content */
    pointer-events: none;
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: 0 0 100px rgba(89, 43, 157, 0.7);
}

.about-content {
    max-width: 500px;
    padding: 20px 20px 0 20px; /* Reduced padding at bottom */
    margin: 0;
    text-align: left;
    background-color: transparent;
    color: var(--text-color);
    position: absolute;
    z-index: 3;
    opacity: 0; /* Initially hidden - for animation */
    transform: translateX(-50px); /* Starting position for animation */
    top: 20%; /* Positioning much closer to the title */
    left: 15%;
    grid-column: unset;
    grid-row: unset;
    pointer-events: auto;
    will-change: transform, opacity;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Ensure visibility */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* PyCRM Section */
.pycrm {
    position: relative;
}

.pycrm-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.pycrm-text {
    flex: 1;
    min-width: 300px;
}

.pycrm-image {
    flex: 1;
    min-width: 300px;
}

.pycrm h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pycrm-features {
    margin-top: 30px;
}

.teams {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.teams span {
    padding: 8px 15px;
    background-color: rgba(var(--main-color-rgb), 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

.coming-soon {
    margin-top: 30px;
    display: inline-block;
}

.coming-soon span {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(var(--main-color-rgb), 0.3);
}

.image-placeholder {
    width: 100%;
    height: 480px; /* Increased height */
    background-color: var(--darker-bg);
    background: linear-gradient(135deg, var(--darker-bg), rgba(var(--electric-blue-rgb), 0.3), rgba(var(--main-color-rgb), 0.2));
    background-size: 300% 300%;
    animation: gradientBackground 15s ease-in-out infinite;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    margin-top: 20px; /* More space above */
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.image-placeholder i {
    font-size: 0; /* Hide the default icon */
}

.image-placeholder p {
    display: none; /* Hide the default text */
}

.pycrm-interface {
    width: 95%;
    height: 90%;
    background: rgba(10, 10, 15, 0.8);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--electric-blue-rgb), 0.2);
}

.pycrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pycrm-logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(var(--electric-blue-rgb), 0.8);
}

.pycrm-controls {
    display: flex;
    gap: 8px;
}

.pycrm-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.pycrm-control:first-child {
    background: #ff5f57;
}

.pycrm-control:nth-child(2) {
    background: #ffbd2e;
}

.pycrm-control:last-child {
    background: #28c940;
}

.pycrm-content {
    display: flex;
    flex: 1;
    height: 100%;
}

.pycrm-sidebar {
    width: 180px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.pycrm-menu-item {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.pycrm-menu-item.active {
    background: var(--electric-blue);
    color: white;
    box-shadow: 0 0 20px rgba(var(--electric-blue-rgb), 0.5);
}

.pycrm-main {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(var(--electric-blue-rgb),0.05) 100%);
}

.pycrm-row {
    display: flex;
    gap: 15px;
}

.pycrm-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.pycrm-card-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 5px 0;
}

.pycrm-card-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.pycrm-graph {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.pycrm-graph::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, rgba(var(--electric-blue-rgb), 0.3) 0%, rgba(var(--main-color-rgb), 0.05) 100%);
    clip-path: polygon(0 100%, 10% 60%, 20% 80%, 30% 40%, 40% 30%, 50% 50%, 60% 40%, 70% 20%, 80% 30%, 90% 10%, 100% 40%, 100% 100%);
}

.pycrm-table {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    height: 150px;
    display: flex;
    flex-direction: column;
}

.pycrm-ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, var(--electric-blue), var(--main-color));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

/* DarKom.ai Section */
.darkom {
    background-color: #0d1117;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Moroccan Pattern Overlay */
.darkom-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjAgMkwwIDEwTDIwIDIyTDQwIDEwTDIwIDJ6IiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMTgwLCAxMTAsIDYwLCAwLjA3KSIgc3Ryb2tlLXdpZHRoPSIwLjUiLz48cGF0aCBkPSJNMjAgMEwyMCAyMEw0MCAzMEw0MCAxMEwyMCAweiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDE4MCwgMTEwLCA2MCwgMC4wNSkiIHN0cm9rZS13aWR0aD0iMC41Ii8+PHBhdGggZD0iTTAgMTBMMCAzMEwyMCA0MEwyMCAyMEwwIDEweiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDE4MCwgMTEwLCA2MCwgMC4wNSkiIHN0cm9rZS13aWR0aD0iMC41Ii8+PC9zdmc+');
    opacity: 0.3;
    pointer-events: none;
}

/* Moroccan Arch Decorations */
.darkom-arch-top,
.darkom-arch-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 40px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMjAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGQ9Ik0wLDIwaDEwMFYwQzkwLDIwLDEwLDIwLDAsMHoiIGZpbGw9IiMwZDExMTciLz48L3N2Zz4=');
    background-repeat: repeat-x;
    background-size: 100px 20px;
    z-index: 1;
}

.darkom-arch-top {
    top: -1px;
    transform: rotate(180deg);
}

.darkom-arch-bottom {
    bottom: -1px;
}

/* Header & Titles */
.darkom-header-container {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.darkom-tagline {
    color: #b08b59;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 400;
}

.darkom-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b08b59);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.darkom-main-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #b08b59, #cdaa7d);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.darkom-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.darkom-text {
    flex: 1;
    min-width: 300px;
}

.darkom-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Services Section */
.darkom-services {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.darkom-service-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 25px;
}

.darkom-service-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50px;
    width: calc(100% - 50px);
    height: 1px;
    background: linear-gradient(to right, rgba(176, 139, 89, 0.5), transparent);
}

.darkom-service-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d1117, #1a1f29);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(176, 139, 89, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.darkom-service-icon i {
    color: #b08b59;
    font-size: 1.2rem;
}

.darkom-service-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.darkom-service-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Badge */
.darkom-cta {
    margin-top: 40px;
    position: relative;
}

.darkom-cta-badge {
    display: inline-block;
    position: relative;
    padding: 12px 30px;
    background: linear-gradient(135deg, #b08b59, #8b6d45);
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(176, 139, 89, 0.3);
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

.darkom-cta-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.badge-text {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Showcase Area */
.darkom-showcase {
    flex: 1;
    min-width: 360px; /* Increased min-width */
    position: relative;
    padding: 20px;
    margin-top: 15px; /* Added top margin */
}

.darkom-showcase-container {
    background: rgba(16, 20, 29, 0.6);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(176, 139, 89, 0.2); /* Enhanced shadow */
    border: 1px solid rgba(176, 139, 89, 0.25); /* More visible border */
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 520px; /* Set specific height */
}

.darkom-showcase-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(176, 139, 89, 0.1);
    background: rgba(16, 20, 29, 0.8);
}

.darkom-logo-container {
    display: flex;
    align-items: center;
    padding: 5px 0;
    justify-content: flex-start;
}

.darkom-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    overflow: hidden;
}

.darkom-logo-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(176, 139, 89, 0.5));
}

.darkom-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    position: relative;
    padding-left: 3px;
    text-shadow: 0 0 10px rgba(176, 139, 89, 0.6);
    display: inline-block;
    margin: 5px 0;
}

.darkom-logo-text .dot {
    color: #b08b59;
    position: relative;
    font-weight: 600;
}

/* Showcase Layout */
.darkom-showcase-content {
    display: flex;
    height: 450px;
    position: relative;
    border-top: 1px solid rgba(176, 139, 89, 0.15);
}

.darkom-showcase-left {
    width: 180px;
    background: rgba(13, 17, 23, 0.8);
    border-right: 1px solid rgba(176, 139, 89, 0.1);
    padding: 20px 0;
}

.darkom-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.darkom-menu-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
}

.darkom-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.darkom-menu-item.active {
    background: linear-gradient(90deg, rgba(176, 139, 89, 0.1), transparent);
    color: #b08b59;
    position: relative;
}

.darkom-menu-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #b08b59;
}

.darkom-menu-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
}

.darkom-showcase-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, rgba(16, 20, 29, 0.7) 0%, rgba(22, 26, 38, 0.7) 100%);
}

/* Stats Section */
.darkom-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.darkom-stat {
    flex: 1;
    min-width: 100px;
    background: rgba(13, 17, 23, 0.5);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(176, 139, 89, 0.1);
    transition: all 0.3s ease;
}

.darkom-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(176, 139, 89, 0.3);
}

.darkom-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(176, 139, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.darkom-stat-icon i {
    color: #b08b59;
    font-size: 1rem;
}

.darkom-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.darkom-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Map Section */
.darkom-map-container {
    background: rgba(13, 17, 23, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(176, 139, 89, 0.1);
}

.darkom-map-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-weight: 500;
}

.darkom-map {
    width: 100%;
    height: 140px;
    background-color: rgba(10, 14, 20, 0.6);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMzAwIDIwMCI+PHBhdGggZD0iTTIwLDIwIEw1MCwxMDAgTDEwMCw4MCBMMTUwLDkwIEwyMDAsNjAgTDI1MCw3MCBMMTI1LDEwIFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgxNzYsIDEzOSwgODksIDAuMikiIHN0cm9rZS13aWR0aD0iMSIvPjxwYXRoIGQ9Ik01MCwxMDAgTDY1LDEyMCBMMTAwLDE0MCBMMTY1LDE3MCBMMjIwLDE1MCBMMjYwLDEzMCBMMjgwLDkwIEwyNTAsNzAgTDIwMCw2MCBMMTUwLDkwIEwxMDAsODAgTDUwLDEwMCBaIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMTc2LCAxMzksIDg5LCAwLjIpIiBzdHJva2Utd2lkdGg9IjEiLz48cG9seWxpbmUgcG9pbnRzPSIxNTAsMTcwIDEwMCwxNTUgNzAsMTYwIDY1LDEyMCA1MCwxMDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgxNzYsIDEzOSwgODksIDAuMikiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 6px;
    position: relative;
}

.darkom-map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
}

.darkom-map-marker::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #b08b59;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(176, 139, 89, 0.3);
}

.darkom-map-marker::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(176, 139, 89, 0.1);
    animation: pulse 2s infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Chatbot Section */
.darkom-chatbot-container {
    background: rgba(13, 17, 23, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(176, 139, 89, 0.1);
}

.darkom-chatbot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b08b59;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 14px;
}

.darkom-chatbot-message {
    background: rgba(10, 14, 20, 0.6);
    border-radius: 6px;
    padding: 15px;
}

.darkom-chatbot-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.arabic-greeting {
    font-weight: 600;
    color: #b08b59;
    margin-right: 5px;
}

/* AI Badge */
.darkom-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #b08b59, #8b6d45);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.darkom-badge i {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .darkom-main-title {
        font-size: 3rem;
    }
    
    .darkom-showcase-content {
        height: 450px;
    }
}

@media (max-width: 991px) {
    .darkom-content {
        flex-direction: column;
    }
    
    .darkom-text, .darkom-showcase {
        max-width: 100%;
    }
    
    .darkom-main-title {
        font-size: 2.5rem;
    }
    
    .darkom-showcase {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .darkom {
        padding: 80px 0;
    }
    
    .darkom-main-title {
        font-size: 2rem;
    }
    
    .darkom-tagline {
        font-size: 0.9rem;
    }
    
    .darkom-service-item {
        padding-bottom: 20px;
        gap: 15px;
    }
    
    .darkom-service-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .darkom-service-content h4 {
        font-size: 1.1rem;
    }
    
    .darkom-showcase-left {
        width: 60px;
    }
    
    .darkom-menu-item span {
        display: none;
    }
    
    .darkom-menu-item {
        justify-content: center;
        padding: 12px 0;
    }
    
    .darkom-menu-item i {
        margin: 0;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .darkom-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .darkom-stat {
        padding: 10px;
    }
    
    .darkom-stat-number {
        font-size: 1.5rem;
    }
    
    .darkom-showcase-content {
        height: auto;
        flex-direction: column;
    }
    
    .darkom-showcase-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(176, 139, 89, 0.1);
        padding: 0;
    }
    
    .darkom-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .darkom-menu-item {
        padding: 10px;
        width: auto;
    }
    
    .darkom-menu-item.active::before {
        left: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: 3px;
    }
}

.darkom-chatbot-messages {
    flex: 1;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.darkom-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    background: var(--main-color);
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
}

.darkom-ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(90deg, var(--electric-blue), var(--main-color));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Contact Section */
.contact {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.contact .container {
    max-width: 600px;
}

.contact-form {
    margin-top: 40px;
}

/* Form Validation Styles */
.error-message {
    color: #f44336;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    text-align: left;
}

.success-message {
    color: #4CAF50;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

input.error {
    border-color: #f44336 !important;
    background-color: rgba(244, 67, 54, 0.05);
}

.loader {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    display: inline-block;
    margin-left: 10px;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(var(--text-color-rgb), 0.05);
    border: 1px solid rgba(var(--text-color-rgb), 0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-speed) var(--transition-function);
}

.form-group input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(var(--main-color-rgb), 0.2);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed) var(--transition-function),
                box-shadow var(--transition-speed) var(--transition-function);
    box-shadow: 0 5px 15px rgba(var(--main-color-rgb), 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--main-color-rgb), 0.4);
}

.submit-btn i {
    transition: transform var(--transition-speed) var(--transition-function);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Footer Styles */
footer {
    background-color: var(--darker-bg);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 150px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 5.25rem; /* 30% smaller than original logo */
    width: auto;
    transition: transform 0.5s var(--transition-function);
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
    justify-content: center;
    padding: 0;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--alternative-color);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--main-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--transition-function),
                transform 0.8s var(--transition-function);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .company-name {
        font-size: 4rem;
    }
    
    .pycrm-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        clip-path: circle(0px at 100% 0);
        transition: clip-path 0.5s var(--transition-function);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links.active {
        clip-path: circle(1000px at 100% 0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
        z-index: 2000;
        cursor: pointer;
    }
    
    .hamburger.active .icon {
        transform: rotate(90deg);
    }
    
    .company-name {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .company-name {
        font-size: 2.5rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about p {
        font-size: 1rem;
    }
    
    .pycrm h3 {
        font-size: 1.5rem;
    }
    
    .teams span {
        font-size: 0.8rem;
    }
}

/* Fix for CSS variables in rgba */
:root {
    --main-color-rgb: 94, 53, 177;
    --secondary-color-rgb: 149, 117, 205;
    --alternative-color-rgb: 179, 157, 219;
    --electric-blue-rgb: 68, 25, 148;
    --text-color-rgb: 18, 18, 18;
    --bg-color-rgb: 255, 255, 255;
}

.dark-theme {
    --bg-color-rgb: 18, 18, 18;
}
