/* ============================================
   Dark Theme - BackAppX Website
   Modern, Professional, Product-Oriented Design
   ============================================ */
:root {
    /* Primary Colors - Orange Theme */
    --primary: #F0565A;
    --primary-dark: #d94242;
    --primary-light: #f47679;
    /* Light Mode Colors (Default) */
    --bg-dark: #ffffff;
    --bg-darker: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    /* Text Colors for Light Mode */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    /* Accent Colors */
    --accent-1: #ff006e;
    --accent-2: #F0565A;
    --accent-3: #fb5607;
    /* Borders for Light Mode */
    --border-color: #dee2e6;
    --border-color-light: #e9ecef;
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Dark Mode Theme */
body.dark-theme {
    /* Primary Colors - Orange Theme */
    --primary: #F0565A;
    --primary-dark: #d94242;
    --primary-light: #f47679;
    /* Dark Mode Colors */
    --bg-dark: #0f0f1e;
    --bg-darker: #0a0a14;
    --bg-card: #1a1a2e;
    --bg-hover: #25253f;
    /* Text Colors for Dark Mode */
    --text-primary: #ffffff;
    --text-secondary: #b0b0d0;
    --text-muted: #808095;
    /* Borders for Dark Mode */
    --border-color: #2a2a3e;
    --border-color-light: #3a3a4e;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Theme */
body.dark-theme {
    /* Primary Colors - Orange Theme */
    --primary: #F0565A;
    --primary-dark: #d94242;
    --primary-light: #f47679;

    /* Dark Mode Colors */
    --bg-dark: #0f0f1e;
    --bg-darker: #0a0a14;
    --bg-card: #1a1a2e;
    --bg-hover: #25253f;

    /* Text Colors for Dark Mode */
    --text-primary: #ffffff;
    --text-secondary: #b0b0d0;
    --text-muted: #808095;

    /* Borders for Dark Mode */
    --border-color: #2a2a3e;
    --border-color-light: #3a3a4e;
}

/* Backgrounds */
.bg-dark {
    background-color: var(--bg-dark) !important;
    transition: background-color 0.3s ease;
}

.bg-darker {
    background-color: var(--bg-darker) !important;
    transition: background-color 0.3s ease;
}

.bg-card {
    background-color: var(--bg-card);
    transition: background-color 0.3s ease;
}

/* Text Colors */
.text-light {
    color: var(--text-secondary) !important;
}

.dark-theme .text-light {
    color: var(--text-secondary) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

.dark-theme .text-white {
    color: #ffffff !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Navbar Styling */
.navbar {
    background-color: var(--bg-dark) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-dark {
    --bs-navbar-color: var(--text-secondary);
    --bs-navbar-hover-color: var(--primary);
    --bs-navbar-active-color: var(--primary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-1));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border-color: var(--primary) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 212, 255, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-2));
}

.btn-outline-light {
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn-outline-light:hover {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 0.5rem;
    background-color: var(--bg-card);
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color-light);
}

.btn-icon-link:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-icon-sm:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.dark-theme .hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(131, 56, 236, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.min-vh-70 {
    min-height: 70vh;
}

.badge {
    background: rgba(0, 212, 255, 0.2) !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.badge-glow {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Hero Graphic */
.hero-graphic {
    position: relative;
    height: 400px;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.blob-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    bottom: 0;
    left: 0;
    animation-delay: 1s;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: 1rem;
    padding: 1.5rem;
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 280px;
    animation: slideUp 0.8s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dark-theme .feature-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.card-header i {
    font-size: 1.5rem;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Features Section */
.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--primary);
    margin-right: 0.75rem;
}

/* Code Example */
.code-example {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(233, 236, 239, 0.95)) !important;
    border: 1px solid var(--border-color-light) !important;
    border-radius: 1rem;
    overflow: hidden;
}

.dark-theme .code-example {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.6), rgba(26, 26, 46, 0.6)) !important;
}

.code-example code {
    color: var(--text-primary);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.dark-theme .code-example code {
    color: var(--primary-light);
}

/* Syntax Highlighting Colors */
.code-keyword {
    color: #c678dd;
    font-weight: 600;
}

.code-variable {
    color: #61afef;
}

.code-function {
    color: #61afef;
}

.code-string {
    color: #98c379;
}

.code-property {
    color: #e06c75;
}

.code-class {
    color: #e5c07b;
}

.code-comment {
    color: #5c6370;
    font-style: italic;
}

.code-operator {
    color: #56b6c2;
}

.code-parameter {
    color: #d19a66;
}

/* Light mode syntax highlighting */
body:not(.dark-theme) .code-keyword {
    color: #a626a4;
}

body:not(.dark-theme) .code-variable {
    color: #0184bc;
}

body:not(.dark-theme) .code-function {
    color: #0184bc;
}

body:not(.dark-theme) .code-string {
    color: #50a14f;
}

body:not(.dark-theme) .code-property {
    color: #e45649;
}

body:not(.dark-theme) .code-class {
    color: #c18401;
}

body:not(.dark-theme) .code-comment {
    color: #a0a1a7;
    font-style: italic;
}

body:not(.dark-theme) .code-operator {
    color: #0184bc;
}

body:not(.dark-theme) .code-parameter {
    color: #986801;
}

/* Team Cards */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.team-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .team-image {
    filter: brightness(1.1);
}

.team-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h5 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.team-info .text-primary {
    color: var(--primary) !important;
}

.team-info p {
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.5;
}

.team-info .btn-icon-sm {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Gradient Primary Section */
.bg-gradient-primary {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg stroke='%23000' stroke-width='66.7' stroke-opacity='0.05' %3E%3Ccircle fill='%23ff9d00' cx='0' cy='0' r='1800'/%3E%3Ccircle fill='%23fb8d17' cx='0' cy='0' r='1700'/%3E%3Ccircle fill='%23f47d24' cx='0' cy='0' r='1600'/%3E%3Ccircle fill='%23ed6e2d' cx='0' cy='0' r='1500'/%3E%3Ccircle fill='%23e35f34' cx='0' cy='0' r='1400'/%3E%3Ccircle fill='%23d85239' cx='0' cy='0' r='1300'/%3E%3Ccircle fill='%23cc453e' cx='0' cy='0' r='1200'/%3E%3Ccircle fill='%23be3941' cx='0' cy='0' r='1100'/%3E%3Ccircle fill='%23b02f43' cx='0' cy='0' r='1000'/%3E%3Ccircle fill='%23a02644' cx='0' cy='0' r='900'/%3E%3Ccircle fill='%23901e44' cx='0' cy='0' r='800'/%3E%3Ccircle fill='%23801843' cx='0' cy='0' r='700'/%3E%3Ccircle fill='%236f1341' cx='0' cy='0' r='600'/%3E%3Ccircle fill='%235e0f3d' cx='0' cy='0' r='500'/%3E%3Ccircle fill='%234e0c38' cx='0' cy='0' r='400'/%3E%3Ccircle fill='%233e0933' cx='0' cy='0' r='300'/%3E%3Ccircle fill='%232e062c' cx='0' cy='0' r='200'/%3E%3Ccircle fill='%23210024' cx='0' cy='0' r='100'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    position: relative;
    background-color: #F0565A;
    background-attachment: fixed;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.bg-gradient-primary .text-white,
.bg-gradient-primary h2,
.bg-gradient-primary p {
    color: #ffffff !important;
}

.bg-gradient-primary .btn-light {
    background: #ffffff;
    color: var(--primary);
    border: none;
}

.bg-gradient-primary .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Borders */
.border-secondary {
    border-color: var(--border-color) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utility Classes */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.mt-6 {
    margin-top: 4rem !important;
}

.container-lg {
    max-width: 1200px;
}

.mw-lg {
    max-width: 800px;
}

.rounded-lg {
    border-radius: 1rem;
}

/* Display Classes */
.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-5 {
    font-size: 2rem;
    font-weight: 700;
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
}

footer a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section::before {
        width: 300px;
        height: 300px;
        right: -50px;
    }

    .hero-graphic {
        height: 300px;
    }

    .feature-card {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .py-6 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .nav-link {
        margin: 0.5rem 0;
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 1.25rem;
    }

    .hero-graphic {
        height: 250px;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .team-card {
        margin-bottom: 1rem;
    }
}

/* Animations from AOS */
.aos-animate {
    animation-duration: 0.8s;
}

/* Additional Effects */
.overflow-hidden {
    overflow: hidden;
}

/* Primary Glow Effect */
.primary-glow {
    box-shadow: 0 0 20px rgba(240, 86, 90, 0.3);
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(240, 86, 90, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(240, 86, 90, 0.4);
}

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

.theme-toggle i {
    transition: transform 0.3s ease;
}

.dark-theme .theme-toggle {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(240, 86, 90, 0.2);
}

@media (max-width: 768px) {
    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Logo Theme Support */
.navbar-brand img {
    transition: opacity 0.3s ease;
}

