/* Custom CSS for Mensch Digital Solutions */

/* CSS Variables for theming */
:root {
    /* Light theme colors */
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
    --secondary-color: #059669;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* RGB values for rgba() usage */
    --primary-color-rgb: 8, 145, 178;
    --secondary-color-rgb: 5, 150, 105;
    --accent-color-rgb: 6, 182, 212;
    
    /* Light theme backgrounds */
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --surface-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    
    /* Light theme text colors */
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    
    /* Shadows and borders */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-color: #e2e8f0;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    
    /* Animations */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark theme colors */
[data-bs-theme="dark"] {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --surface-color: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --navbar-bg: rgba(15, 23, 42, 0.95);
    
    --text-color: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --border-color: #334155;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

/* Mobile menu body scroll lock */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    /* iOS Safari specific fixes */
    -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo Animation */
.logo-container {
    position: relative;
    width: 120px;
    height: 32px;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    opacity: 1;
}

.logo-hover {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-brand:hover .logo {
    opacity: 0;
    transform: translateX(10px);
}

.navbar-brand:hover .logo-hover {
    opacity: 1;
    transform: translateX(0);
}

/* Dark/Light mode logo visibility */
[data-bs-theme="light"] .logo-dark-mode {
    display: none;
}

[data-bs-theme="dark"] .logo-light-mode {
    display: none;
}

/* Navigation */
.navbar-glass {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    min-height: 80px;
    position: relative;
}

/* Remove sticky header on desktop/laptop */
@media (min-width: 992px) {
    .navbar-glass {
        position: relative !important;
    }
}

/* Perfect vertical alignment for all navbar elements */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
}

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

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

/* Fix navbar z-index to ensure dropdowns appear above hero section */
.navbar {
    z-index: 100000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
}

/* Ensure navbar container aligns items vertically */
.navbar > .container {
    display: flex;
    align-items: center;
    min-height: 80px;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

/* Theme toggle and button alignment */
.d-flex.align-items-center {
    display: flex !important;
    align-items: center !important;
    height: 52px;
}

/* SHIP-style Menu System - Perfect vertical alignment */
.mensch-nav-container {
    display: flex;
    gap: 0;
    justify-content: center;
    flex: 1;
    margin: 0 auto;
    align-items: center;
    height: 52px;
}

.mensch-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.mensch-nav-square {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    line-height: 0.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.mensch-nav-square span {
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mensch-nav-item:hover .mensch-nav-square {
    width: auto;
    padding: 0 20px;
}

.mensch-dropdown {
    position: absolute;
    top: 52px;
    left: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999; /* Increased z-index to ensure it appears above hero section */
}

/* Last dropdown aligned right */
.mensch-nav-item:last-child .mensch-dropdown {
    left: auto;
    right: 0;
}

.mensch-nav-item:hover .mensch-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mensch-dropdown a {
    display: block;
    padding: 8px 16px;
    margin: 0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: inherit;
    background-color: inherit;
    text-align: left;
    white-space: nowrap;
}

.mensch-dropdown a:hover {
    opacity: 0.85;
    padding: 8px 20px;
}

/* Light theme colors */
[data-bs-theme="light"] .mensch-nav-item.services .mensch-nav-square {
    background-color: #0891b2;
    color: #ffffff;
}
[data-bs-theme="light"] .mensch-nav-item.services .mensch-dropdown a {
    background-color: #0891b2;
    color: #ffffff;
}

[data-bs-theme="light"] .mensch-nav-item.support .mensch-nav-square {
    background-color: #059669;
    color: #ffffff;
}
[data-bs-theme="light"] .mensch-nav-item.support .mensch-dropdown a {
    background-color: #059669;
    color: #ffffff;
}

[data-bs-theme="light"] .mensch-nav-item.faq .mensch-nav-square {
    background-color: #0e7490;
    color: #ffffff;
}
[data-bs-theme="light"] .mensch-nav-item.faq .mensch-dropdown a {
    background-color: #0e7490;
    color: #ffffff;
}

[data-bs-theme="light"] .mensch-nav-item.join .mensch-nav-square {
    background-color: #065f46;
    color: #ffffff;
}
[data-bs-theme="light"] .mensch-nav-item.join .mensch-dropdown a {
    background-color: #065f46;
    color: #ffffff;
}

[data-bs-theme="light"] .mensch-nav-item.projects .mensch-nav-square {
    background-color: #7c3aed;
    color: #ffffff;
}

[data-bs-theme="light"] .mensch-nav-item.contact .mensch-nav-square {
    background-color: #06b6d4;
    color: #ffffff;
}
[data-bs-theme="light"] .mensch-nav-item.contact .mensch-dropdown a {
    background-color: #06b6d4;
    color: #ffffff;
}

/* Dark theme colors */
[data-bs-theme="dark"] .mensch-nav-item.services .mensch-nav-square {
    background-color: #67e8f9;
    color: #0c4a6e;
}
[data-bs-theme="dark"] .mensch-nav-item.services .mensch-dropdown a {
    background-color: #67e8f9;
    color: #0c4a6e;
}

[data-bs-theme="dark"] .mensch-nav-item.support .mensch-nav-square {
    background-color: #6ee7b7;
    color: #064e3b;
}
[data-bs-theme="dark"] .mensch-nav-item.support .mensch-dropdown a {
    background-color: #6ee7b7;
    color: #064e3b;
}

[data-bs-theme="dark"] .mensch-nav-item.faq .mensch-nav-square {
    background-color: #7dd3fc;
    color: #0c4a6e;
}
[data-bs-theme="dark"] .mensch-nav-item.faq .mensch-dropdown a {
    background-color: #7dd3fc;
    color: #0c4a6e;
}

[data-bs-theme="dark"] .mensch-nav-item.join .mensch-nav-square {
    background-color: #a7f3d0;
    color: #064e3b;
}
[data-bs-theme="dark"] .mensch-nav-item.join .mensch-dropdown a {
    background-color: #a7f3d0;
    color: #064e3b;
}

[data-bs-theme="dark"] .mensch-nav-item.projects .mensch-nav-square {
    background-color: #c4b5fd;
    color: #581c87;
}

[data-bs-theme="dark"] .mensch-nav-item.contact .mensch-nav-square {
    background-color: #93c5fd;
    color: #1e3a8a;
}
[data-bs-theme="dark"] .mensch-nav-item.contact .mensch-dropdown a {
    background-color: #93c5fd;
    color: #1e3a8a;
}

/* Text content management */
.mensch-short-text {
    display: inline;
}
.mensch-full-text {
    display: none;
}
.mensch-nav-item:hover .mensch-short-text {
    display: none;
}
.mensch-nav-item:hover .mensch-full-text {
    display: inline;
}

/* Hide mobile menu elements on desktop/laptop */
@media (min-width: 992px) {
    .mobile-menu-overlay,
    .mobile-side-menu {
        display: none !important;
    }
}

/* Mobile App-Style Side Menu */
@media (max-width: 991.98px) {
    .mensch-nav-container {
        display: none;
    }
    
    /* Hide default collapse behavior */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
    }
    
    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Side Drawer Menu */
    .mobile-side-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--surface-color);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
        z-index: 9999;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        /* Use flexbox to properly position footer at bottom */
        display: flex;
        flex-direction: column;
        /* Ensure menu is hidden by default */
        visibility: hidden;
        opacity: 0;
    }
    
    .mobile-side-menu.show {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    
    /* Menu Header */
    .mobile-menu-header {
        padding: 2rem 1.5rem 1rem;
        border-bottom: 1px solid var(--border-color);
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        position: relative;
        overflow: hidden;
        flex-shrink: 0; /* Prevent header from shrinking */
    }
    
    .mobile-menu-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }
    
    .mobile-menu-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        animation: float 4s ease-in-out infinite reverse;
    }
    
    .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        z-index: 1;
    }
    
    .mobile-menu-brand img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.2);
        padding: 8px;
    }
    
    .mobile-menu-brand h4 {
        margin: 0;
        font-weight: 700;
        font-size: 1.25rem;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 2;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }
    
    .mobile-menu-close i {
        color: white;
        font-size: 1.2rem;
    }
    
    /* Menu Body */
    .mobile-menu-body {
        padding: 1.5rem 0;
        /* Allow body to grow and fill available space */
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Ensure proper scrolling behavior */
        min-height: 0;
        position: relative;
    }
    
    /* Menu Items */
    .mobile-menu-item {
        margin-bottom: 0.5rem;
        animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        animation-fill-mode: both;
    }
    
    .mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
    .mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
    .mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
    .mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
    .mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
    .mobile-menu-item:nth-child(6) { animation-delay: 0.35s; }
    
    .mobile-menu-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--secondary-color-rgb), 0.1));
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-link:hover::before,
    .mobile-menu-link:active::before {
        width: 100%;
    }
    
    .mobile-menu-link:hover {
        color: var(--primary-color);
        transform: translateX(8px);
        background: rgba(var(--primary-color-rgb), 0.05);
    }
    
    .mobile-menu-icon {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .mobile-menu-link:hover .mobile-menu-icon {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
    }
    
    .mobile-menu-text {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-menu-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .mobile-menu-subtitle {
        font-size: 0.9rem;
        color: var(--text-secondary);
        font-weight: 400;
    }
    
    .mobile-menu-arrow {
        color: var(--text-muted);
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-link:hover .mobile-menu-arrow {
        color: var(--primary-color);
        transform: translateX(4px);
    }
    
    /* Dropdown Menu Items */
    .mobile-dropdown-item {
        padding-left: 4rem;
        font-size: 1rem;
        color: var(--text-secondary);
        border-left: 2px solid transparent;
        margin-left: 1.5rem;
    }
    
    .mobile-dropdown-item:hover {
        border-left-color: var(--primary-color);
        background: rgba(var(--primary-color-rgb), 0.05);
    }
    
    /* Menu Footer */
    .mobile-menu-footer {
        padding: 1.5rem;
        border-top: 1px solid var(--border-color);
        /* Use margin-top auto to push footer to bottom */
        margin-top: auto;
        /* Prevent footer from shrinking */
        flex-shrink: 0;
        background: var(--surface-color);
        /* Ensure footer stays at bottom with proper stacking */
        position: relative;
        z-index: 10;
        /* Prevent content from showing behind footer */
        box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Hide header when mobile menu is open on mobile devices only */
    body.mobile-menu-open .navbar {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .mobile-menu-cta {
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border: none;
        border-radius: 16px;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        margin-bottom: 1rem;
    }
    
    .mobile-menu-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
    }
    
    /* Modern Hamburger Icon */
    .navbar-toggler {
        border: none;
        padding: 8px;
        background: transparent;
        position: relative;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background: rgba(var(--primary-color-rgb), 0.1);
        transform: scale(1.05);
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    /* Modern Dots Hamburger Menu */
    .hamburger-icon {
        position: relative;
        width: 24px;
        height: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .hamburger-icon span,
    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        position: relative;
        width: 6px;
        height: 6px;
        background: var(--text-color);
        border-radius: 50%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: none;
    }
    
    .hamburger-icon::before {
        margin-bottom: 4px;
    }
    
    .hamburger-icon span {
        /* Middle dot */
    }
    
    .hamburger-icon::after {
        margin-top: 4px;
    }
    
    /* Modern dots animation - transform to X when active */
    .navbar-toggler.active .hamburger-icon::before {
        transform: translate(6px, 10px) rotate(45deg) scale(1.2);
        border-radius: 1px;
        width: 18px;
        height: 2px;
    }
    
    .navbar-toggler.active .hamburger-icon span {
        opacity: 0;
        transform: scale(0);
    }
    
    .navbar-toggler.active .hamburger-icon::after {
        transform: translate(6px, -10px) rotate(-45deg) scale(1.2);
        border-radius: 1px;
        width: 18px;
        height: 2px;
    }
}

/* Mobile Menu Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        font-size: 1.2rem;
        padding: 1.2rem 2rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .navbar-nav + .d-flex .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
}

/* iOS specific fixes for mobile menu scrolling */
@supports (-webkit-touch-callout: none) {
    /* iOS only styles */
    .mobile-side-menu {
        /* Force hardware acceleration on iOS */
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .mobile-menu-body {
        /* Improve iOS scrolling performance */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    body.mobile-menu-open {
        /* Additional iOS positioning fix */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Client Carousel */
.clients-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .clients-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
}

.clients-track {
    display: flex;
    animation: scroll-clients 30s linear infinite;
    align-items: center;
    gap: 4rem;
}

.client-logo {
    height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(0.5);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

[data-bs-theme="dark"] .client-logo {
    filter: brightness(0) saturate(100%) invert(98%) sepia(3%) saturate(261%) hue-rotate(317deg) brightness(99%) contrast(97%);
}

[data-bs-theme="dark"] .client-logo:hover {
    filter: brightness(0) saturate(100%) invert(55%) sepia(96%) saturate(472%) hue-rotate(158deg) brightness(96%) contrast(89%);
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

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

/* Testimonials Carousel */
.testimonials-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonial-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    min-height: 350px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    flex-grow: 1;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.testimonial-info small {
    color: var(--text-secondary);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* Testimonial Navigation - Thin Lines */
.carousel-indicators.position-relative {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    justify-content: center;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

.carousel-indicators button {
    width: 40px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-secondary);
    opacity: 0.3;
    border: none;
    transition: all var(--transition-normal);
}

.carousel-indicators button.active {
    background: transparent;
    border: 1px solid var(--primary-color);
    opacity: 1;
    width: 60px;
}

.carousel-indicators button:hover {
    opacity: 0.7;
    width: 50px;
}



/* Icon Animations */
.icon-animated {
    transition: all var(--transition-normal);
}

.icon-animated:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
}

.service-icon i,
.step-icon i,
.feature-icon i {
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon i,
.step-card:hover .step-icon i,
.feature-item:hover .feature-icon i {
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary-color);
}

.floating-card i {
    transition: all var(--transition-normal);
}

.floating-card:hover i {
    transform: scale(1.3) rotate(10deg);
}

/* Modern Theme Toggle */
.theme-toggle {
    position: relative;
}

.theme-switch-label {
    display: inline-block;
    width: 60px;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 30px;
    cursor: pointer;
    transition: background var(--transition-normal);
    border: 2px solid var(--border-color);
}

.theme-switch-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.theme-switch-switch {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.theme-switch-switch i:first-child {
    display: block;
}

.theme-switch-switch i:last-child {
    display: none;
}

#theme-switch:checked + .theme-switch-label .theme-switch-switch,
#mobile-theme-switch:checked + .theme-switch-label .theme-switch-switch {
    transform: translateX(30px);
}

#theme-switch:checked + .theme-switch-label .theme-switch-switch i:first-child,
#mobile-theme-switch:checked + .theme-switch-label .theme-switch-switch i:first-child {
    display: none;
}

#theme-switch:checked + .theme-switch-label .theme-switch-switch i:last-child,
#mobile-theme-switch:checked + .theme-switch-label .theme-switch-switch i:last-child {
    display: block;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-animated:hover::before {
    left: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-title {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    margin-bottom: 3rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Floating Cards Animation */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-normal);
    backdrop-filter: blur(10px);
}

.floating-card:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation: float 4s ease-in-out infinite 1.3s;
}

.floating-card:nth-child(3) {
    bottom: 10%;
    left: 20%;
    animation: float 4s ease-in-out infinite 2.6s;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.floating-card span {
    font-weight: 600;
    color: var(--text-color);
}

.floating-card:hover {
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-line {
    width: 100%;
    height: 20px;
    background: var(--primary-color);
    animation: scrollDown 2s ease-in-out infinite;
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.stat-sublabel {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Latest Project Section */
.latest-project-section {
    padding: 5rem 0;
}

.project-showcase {
    position: relative;
}

.showcase-mockup {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.mockup-screen {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.mockup-header {
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-body {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 60px);
}

.chess-pattern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    opacity: 0.3;
}

.chess-pattern i,
.chess-pattern .chess-piece {
    font-size: 2rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.chess-piece {
    display: inline-block;
    font-size: 2rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

/* Moving Chess Element in Browser Window */
.moving-chess-element {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    pointer-events: none;
    z-index: 5;
}

.moving-chess-piece {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    animation: moveChessInLoop 8s infinite ease-in-out;
}

@keyframes moveChessInLoop {
    0% {
        top: 10%;
        left: 10%;
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    25% {
        top: 10%;
        left: 70%;
        opacity: 1;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        top: 70%;
        left: 70%;
        opacity: 0.9;
        transform: scale(1.1) rotate(180deg);
    }
    75% {
        top: 70%;
        left: 10%;
        opacity: 1;
        transform: scale(1.3) rotate(270deg);
    }
    100% {
        top: 10%;
        left: 10%;
        opacity: 0.8;
        transform: scale(1) rotate(360deg);
    }
}

/* Chess Battle Animation Styles */
.chess-battle-arena {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%, 
        rgba(var(--secondary-color-rgb), 0.05) 100%);
    border-radius: 8px;
    overflow: hidden;
}

.chess-battle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
}

.chess-fighter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.chess-piece-fighter {
    font-size: 4rem;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.queen-piece {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    animation: queenAttack 6s infinite ease-in-out;
}

.knight-piece {
    color: #1a1a1a;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    animation: knightDefend 6s infinite ease-in-out;
}

.piece-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.queen-glow {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    animation: queenGlow 6s infinite ease-in-out;
}

.knight-glow {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.4) 0%, transparent 70%);
    animation: knightGlow 6s infinite ease-in-out;
}

.battle-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.capture-flash {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: captureFlash 6s infinite ease-in-out;
}

.victory-glow {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: victoryGlow 6s infinite ease-in-out;
}

/* Chess Battle Keyframes */
@keyframes queenAttack {
    0%, 20% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
    30% {
        transform: scale(1.1) translateX(10px);
        opacity: 1;
    }
    45% {
        transform: scale(1.3) translateX(30px);
        opacity: 1;
    }
    55% {
        transform: scale(1.2) translateX(25px);
        opacity: 1;
    }
    70%, 100% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

@keyframes knightDefend {
    0%, 30% {
        transform: scale(1) translateX(0) rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: scale(0.9) translateX(-5px) rotate(-10deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.7) translateX(-10px) rotate(-20deg);
        opacity: 0.7;
    }
    55% {
        transform: scale(0.3) translateX(-15px) rotate(-30deg);
        opacity: 0.3;
    }
    60% {
        transform: scale(0.1) translateX(-20px) rotate(-45deg);
        opacity: 0;
    }
    70%, 85% {
        transform: scale(0) translateX(-25px) rotate(-60deg);
        opacity: 0;
    }
    95% {
        transform: scale(0.8) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateX(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes queenGlow {
    0%, 30% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    45% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.3);
    }
    55% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
    70%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes knightGlow {
    0%, 40% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    60%, 85% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    95% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes captureFlash {
    0%, 40% {
        opacity: 0;
        transform: translate(50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(50%, -50%) scale(1.5);
    }
    60% {
        opacity: 0.8;
        transform: translate(50%, -50%) scale(1.2);
    }
    70%, 100% {
        opacity: 0;
        transform: translate(50%, -50%) scale(0.8);
    }
}

@keyframes victoryGlow {
    0%, 55% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    65% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
    75% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
    85%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile Responsive Chess Battle */
@media (max-width: 768px) {
    .chess-piece-fighter {
        font-size: 3rem;
    }
    
    .piece-glow {
        width: 80px;
        height: 80px;
    }
    
    .capture-flash {
        width: 60px;
        height: 60px;
    }
    
    .victory-glow {
        width: 100px;
        height: 100px;
    }
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Override service icon alignment for web development page */
.service-detail-card .service-icon {
    margin: 0 0 1.5rem 0;
}

/* Process Steps Styling - Web Development Page */
.process-step {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 0.25rem auto;
}

.process-step .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.process-step .step-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.process-step:hover .step-icon i {
    color: var(--secondary-color);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Projects Section */
.projects-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.projects-showcase {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.showcase-item {
    text-align: center;
}

.showcase-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.showcase-content:hover {
    transform: scale(1.05);
}

.showcase-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.showcase-content span {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.performance-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

.cta-section .btn-outline-primary {
    border-color: white;
    color: white;
}

.cta-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-title {
    margin-bottom: 2rem;
}

.page-subtitle {
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-accordion .accordion-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: var(--surface-color);
    color: var(--text-color);
    border: none;
    font-weight: 600;
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer > .container {
    position: relative;
    z-index: 2;
}

.footer-brand .logo-container {
    margin-bottom: 1rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-cookie-settings {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: inherit;
    font-family: inherit;
    transition: color var(--transition-fast);
}

.footer-cookie-settings:hover {
    color: var(--primary-color) !important;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-contact strong {
    color: var(--text-color);
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0;
}

.footer-copyright {
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}



/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.cookie-close {
    position: absolute;
    top: -0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    z-index: 1;
}

.cookie-close:hover {
    color: var(--text-color);
}

/* Enhanced Cookie Notice Button Contrast */
.cookie-notice .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-notice .btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 500;
}

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

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

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(300%);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding-top: 1rem;
    }
    
    .cookie-close {
        top: 0.5rem;
        right: 1rem;
    }
    
    .logo-container {
        width: 100px;
    }
    
    .theme-toggle {
        order: -1;
    }
    
    /* Add spacing for Visit EcuHub button on mobile */
    .latest-project-section .btn {
        margin-bottom: 3rem;
    }
    
    /* Process Steps Mobile Positioning */
    .process-step .step-number {
        margin: 0 auto 0.125rem auto;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .process-step .step-icon {
        margin: 0 auto 0.75rem auto;
        width: 55px;
        height: 55px;
    }
    
    .process-step .step-icon i {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 6rem 0 3rem;
    }
    
    .floating-card:nth-child(2) {
        right: 5%;
    }
    
    .floating-card:nth-child(3) {
        left: 5%;
    }
}

/* Print styles */
@media print {
    .navbar,

    .cookie-notice {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ====== VISUAL DESIGN PAGE SPECIFIC STYLES ====== */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-icon-outline {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Moved to media query above for better mobile support */

.feature-title {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.service-tag {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Moved to media query above for better mobile support */

[data-bs-theme="dark"] .service-tag:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.service-tag span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.moldi-placeholder {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.design-counts-section {
    background: linear-gradient(135deg, var(--primary-color-light), var(--secondary-color-light));
    margin: 0;
    padding-bottom: 1rem !important;
}

.why-choose-section {
    padding-top: 1rem !important;
}

.illustration-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Moved to media query above for better mobile support */

[data-bs-theme="dark"] .illustration-container {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .illustration-container:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.moldi-image-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Moved to media query above for better mobile support */

[data-bs-theme="dark"] .moldi-image-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .moldi-image-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.moldi-image-card img {
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

/* Moved to media query above for better mobile support */

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Moved to media query above for better mobile support */

[data-bs-theme="dark"] .tool-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tool-card .tool-icon-outline {
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

/* Moved to media query above for better mobile support */

.tool-name {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tool-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.tools-section {
    background: var(--surface-color);
}

/* ====== CREATIVE ANIMATIONS FOR VISUAL DESIGN PAGE ====== */

/* Design Particles Animation */
.design-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.3;
    animation: floatParticles 15s infinite linear;
}

.particle i {
    font-size: 2rem;
    animation: rotateParticle 8s infinite linear;
}

.particle-1 { left: 10%; animation-delay: 0s; }
.particle-2 { left: 20%; animation-delay: -2s; }
.particle-3 { left: 30%; animation-delay: -4s; }
.particle-4 { left: 60%; animation-delay: -6s; }
.particle-5 { left: 70%; animation-delay: -8s; }
.particle-6 { left: 80%; animation-delay: -10s; }

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rotateParticle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Geometric Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShapes 20s infinite ease-in-out;
}

.shape-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid var(--primary-color);
}

.shape-square {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    transform: rotate(45deg);
}

.shape-hexagon {
    width: 60px;
    height: 34px;
    background: var(--primary-color);
    position: relative;
}

.shape-hexagon:before,
.shape-hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.shape-hexagon:before {
    bottom: 100%;
    border-bottom: 17px solid var(--primary-color);
}

.shape-hexagon:after {
    top: 100%;
    border-top: 17px solid var(--primary-color);
}

.shape-1 { top: 20%; left: 5%; animation-delay: 0s; }
.shape-2 { top: 60%; left: 15%; animation-delay: -5s; }
.shape-3 { top: 30%; right: 10%; animation-delay: -10s; }
.shape-4 { top: 70%; right: 20%; animation-delay: -15s; }
.shape-5 { top: 40%; left: 80%; animation-delay: -7s; }
.shape-6 { top: 80%; left: 60%; animation-delay: -12s; }

@keyframes floatShapes {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Text Animations */
.glitch-effect {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.8;
}

.glitch-effect::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch-effect::after {
    animation: glitch-2 0.5s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

@keyframes glitch {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-2px);
    }
}

@keyframes glitch-1 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(2px, 1px);
    }
}

@keyframes glitch-2 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-1px, -1px);
    }
}

.typewriter-text {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typewriter 3s steps(30, end), blink 1s infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.pulse-animation {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.8), 
                     0 0 30px rgba(var(--secondary-color-rgb), 0.6);
    }
}

/* Animated Grid Background */
.tools-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Creative Pattern Background */
.creative-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(var(--secondary-color-rgb), 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(var(--primary-color-rgb), 0.08) 0%, transparent 50%);
    animation: patternPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes patternPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Enhanced Tool Card Animations */
.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.tool-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Moldi Image Card Magic */
.moldi-image-card {
    position: relative;
    overflow: hidden;
}

.moldi-image-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.moldi-image-card:hover::after {
    left: 100%;
}

/* Feature Card Tilt Effect */
.feature-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px);
}

/* Animated Underlines for Service Tags */
.service-tag {
    position: relative;
    overflow: hidden;
}

.service-tag::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: left 0.5s ease;
}

.service-tag:hover::before {
    left: 0;
}

/* Responsive Animations */
@media (max-width: 768px) {
    .particle i {
        font-size: 1.5rem;
    }
    
    .shape {
        transform: scale(0.7);
    }
    
    .typewriter-text {
        animation: none;
        border-right: none;
        white-space: normal;
    }
    
    .glitch-effect {
        animation: none;
    }
}

/* ====== WEB DEVELOPMENT PAGE ANIMATIONS ====== */

/* Code Particles Animation */
.code-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.code-particle {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.4;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    animation: floatCodeParticles 18s infinite linear;
}

.code-particle span {
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
    animation: codeGlow 3s ease-in-out infinite alternate;
}

.code-particle-1 { left: 5%; animation-delay: 0s; }
.code-particle-2 { left: 15%; animation-delay: -3s; }
.code-particle-3 { left: 25%; animation-delay: -6s; }
.code-particle-4 { left: 65%; animation-delay: -9s; }
.code-particle-5 { left: 75%; animation-delay: -12s; }
.code-particle-6 { left: 85%; animation-delay: -15s; }

@keyframes floatCodeParticles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.4;
    }
    85% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100px) rotate(20deg);
        opacity: 0;
    }
}

@keyframes codeGlow {
    from { 
        text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
    }
    to { 
        text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.9), 
                     0 0 30px rgba(var(--secondary-color-rgb), 0.5);
    }
}

/* Tech Particles Animation */
.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-particle {
    position: absolute;
    color: var(--secondary-color);
    opacity: 0.3;
    animation: floatTechParticles 20s infinite ease-in-out;
}

.tech-particle i {
    font-size: 2.5rem;
    animation: techPulse 4s ease-in-out infinite;
}

.tech-particle-1 { top: 15%; right: 5%; animation-delay: 0s; }
.tech-particle-2 { top: 35%; right: 15%; animation-delay: -3s; }
.tech-particle-3 { top: 55%; right: 25%; animation-delay: -6s; }
.tech-particle-4 { top: 25%; left: 5%; animation-delay: -9s; }
.tech-particle-5 { top: 45%; left: 15%; animation-delay: -12s; }
.tech-particle-6 { top: 65%; left: 25%; animation-delay: -15s; }

@keyframes floatTechParticles {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-60px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.1);
    }
}

@keyframes techPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Binary Matrix Background */
.binary-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.binary-column {
    position: absolute;
    top: -100px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    animation: matrixRain 25s infinite linear;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

/* Matrix Effect Text */
.matrix-effect {
    position: relative;
    animation: matrixGlitch 3s infinite;
}

.matrix-effect::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: matrixScan 2s infinite;
    opacity: 0.7;
}

@keyframes matrixGlitch {
    0%, 92%, 100% {
        transform: translate(0);
    }
    93%, 94% {
        transform: translate(-1px, 1px);
    }
    95%, 96% {
        transform: translate(1px, -1px);
    }
}

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

/* Dev Typewriter Effect */
.dev-typewriter {
    position: relative;
    overflow: hidden;
}

.dev-typewriter::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    animation: devCursor 1s infinite;
}

@keyframes devCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Dev Animated Text */
.dev-animated-text {
    background: linear-gradient(45deg, var(--text-color), var(--primary-color), var(--secondary-color), var(--text-color));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: devGradientShift 6s ease infinite;
}

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

/* Performance Cards Enhancement */
.performance-card {
    position: relative;
    overflow: hidden;
}

.performance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transition: left 0.6s ease;
}

.performance-card:hover::before {
    left: 100%;
}

/* Tech Cards Hover Effect */
.tech-card {
    position: relative;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.tech-card:hover::after {
    width: 200px;
    height: 200px;
}

/* Responsive Animations for Dev Page */
@media (max-width: 768px) {
    .code-particle span {
        font-size: 1rem;
    }
    
    .tech-particle i {
        font-size: 2rem;
    }
    
    .binary-column {
        font-size: 1.2rem;
    }
    
    .dev-typewriter::after {
        display: none;
    }
    
    .matrix-effect {
        animation: none;
    }
}

/* ====== 3D ANIMATION & GAME DEVELOPMENT PAGE ANIMATIONS ====== */

/* 3D Shapes Animation */
.shapes-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape-3d {
    position: absolute;
    animation: float3DShapes 20s infinite ease-in-out;
}

.shape-3d-1 { top: 10%; left: 10%; animation-delay: 0s; }
.shape-3d-2 { top: 20%; right: 15%; animation-delay: -7s; }
.shape-3d-3 { bottom: 30%; left: 5%; animation-delay: -14s; }

/* 3D Cube */
.cube-3d {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube3D 15s infinite linear;
}

.cube-3d .face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    border: 2px solid var(--primary-color);
}

.cube-3d .front  { transform: rotateY(0deg) translateZ(30px); }
.cube-3d .back   { transform: rotateY(180deg) translateZ(30px); }
.cube-3d .right  { transform: rotateY(90deg) translateZ(30px); }
.cube-3d .left   { transform: rotateY(-90deg) translateZ(30px); }
.cube-3d .top    { transform: rotateX(90deg) translateZ(30px); }
.cube-3d .bottom { transform: rotateX(-90deg) translateZ(30px); }

/* 3D Sphere */
.sphere-3d {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--secondary-color), var(--primary-color));
    opacity: 0.4;
    animation: pulseSphere3D 8s infinite ease-in-out;
}

/* 3D Pyramid */
.pyramid-3d {
    width: 0;
    height: 0;
    position: relative;
    transform-style: preserve-3d;
    animation: rotatePyramid3D 18s infinite linear;
}

.pyramid-face {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.3;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid var(--primary-color);
}

.pyramid-front { transform: rotateY(0deg) translateZ(20px); }
.pyramid-back  { transform: rotateY(180deg) translateZ(20px); }
.pyramid-right { transform: rotateY(90deg) translateZ(20px); }
.pyramid-left  { transform: rotateY(-90deg) translateZ(20px); }

@keyframes float3DShapes {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

@keyframes rotateCube3D {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes pulseSphere3D {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes rotatePyramid3D {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(120deg) rotateY(360deg) rotateZ(240deg); }
}

/* Game Particles Animation */
.game-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.game-particle {
    position: absolute;
    color: var(--secondary-color);
    opacity: 0.4;
    animation: floatGameParticles 16s infinite ease-in-out;
}

.game-particle i {
    font-size: 2.5rem;
    animation: gameIconPulse 3s ease-in-out infinite;
}

.game-particle-1 { top: 15%; right: 10%; animation-delay: 0s; }
.game-particle-2 { top: 40%; right: 5%; animation-delay: -3s; }
.game-particle-3 { top: 60%; right: 20%; animation-delay: -6s; }
.game-particle-4 { bottom: 30%; left: 15%; animation-delay: -9s; }
.game-particle-5 { bottom: 50%; left: 5%; animation-delay: -12s; }
.game-particle-6 { top: 80%; left: 25%; animation-delay: -15s; }

@keyframes floatGameParticles {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) translateX(20px) rotate(120deg);
    }
    66% {
        transform: translateY(-15px) translateX(-10px) rotate(240deg);
    }
}

@keyframes gameIconPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

/* Geometric Pattern Background */
.geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-line {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0.1;
    animation: drawGeoLine 25s infinite linear;
}

.geo-line-1 {
    width: 2px;
    height: 200px;
    top: 10%;
    left: 20%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.geo-line-2 {
    width: 150px;
    height: 2px;
    top: 30%;
    right: 25%;
    animation-delay: -6s;
}

.geo-line-3 {
    width: 2px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    transform: rotate(-30deg);
    animation-delay: -12s;
}

.geo-line-4 {
    width: 100px;
    height: 2px;
    bottom: 40%;
    left: 30%;
    animation-delay: -18s;
}

.geo-circle {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: expandGeoCircle 20s infinite ease-in-out;
}

.geo-circle-1 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 60%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 60px;
    height: 60px;
    bottom: 60%;
    right: 40%;
    animation-delay: -10s;
}

@keyframes drawGeoLine {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 0.1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

@keyframes expandGeoCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.2;
    }
}

/* Render Effect Text */
.render-effect {
    position: relative;
    animation: renderGlow 4s infinite ease-in-out;
}

.render-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.8), transparent);
    animation: renderScan 3s infinite;
}

@keyframes renderGlow {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-color);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color);
    }
}

@keyframes renderScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Game Animated Text */
.game-animated-text {
    background: linear-gradient(45deg, var(--text-color), var(--primary-color), var(--secondary-color), var(--primary-color), var(--text-color));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gameTextShift 8s ease infinite;
}

@keyframes gameTextShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Game Typewriter Effect */
.game-typewriter {
    position: relative;
    overflow: hidden;
}

.game-typewriter::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary-color);
    animation: gameTypeCursor 1.2s infinite;
}

@keyframes gameTypeCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Render Showcase */
.render-showcase {
    perspective: 1000px;
    animation: floatRenderWindow 6s ease-in-out infinite;
}

.render-window {
    background: rgba(var(--card-bg-rgb), 0.9);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.render-window:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.render-header {
    background: var(--header-bg);
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.render-controls {
    display: flex;
    gap: 5px;
}

.render-title {
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.render-viewport {
    padding: 20px;
    min-height: 300px;
    position: relative;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05));
}

.viewport-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.render-progress {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(var(--card-bg-rgb), 0.8);
    padding: 10px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.render-progress .progress-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-text {
    display: block;
    margin-top: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-color);
}

.rotating-cube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    animation: rotateRenderCube 12s infinite linear;
}

.rotating-cube .cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
    border: 1px solid var(--primary-color);
}

.rotating-cube .front  { transform: rotateY(0deg) translateZ(40px); }
.rotating-cube .back   { transform: rotateY(180deg) translateZ(40px); }
.rotating-cube .right  { transform: rotateY(90deg) translateZ(40px); }
.rotating-cube .left   { transform: rotateY(-90deg) translateZ(40px); }
.rotating-cube .top    { transform: rotateX(90deg) translateZ(40px); }
.rotating-cube .bottom { transform: rotateX(-90deg) translateZ(40px); }

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



@keyframes rotateRenderCube {
    0% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

/* 3D Service Cards */
.service-3d-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transition: left 0.6s ease;
}

.service-3d-card:hover::before {
    left: 100%;
}

.service-3d-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-3d-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.service-3d-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-3d-card:hover .service-3d-icon {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.service-3d-card:hover .service-3d-icon i {
    color: var(--secondary-color);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* 3D Tools Cards */
.tool-3d-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-3d-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.tool-3d-card:hover::after {
    width: 300px;
    height: 300px;
}

.tool-3d-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tool-3d-card .tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tool-3d-card .tool-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tool-3d-card:hover .tool-icon {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.tool-3d-card:hover .tool-icon i {
    color: var(--secondary-color);
}

.tool-name {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Process 3D Steps */
.process-3d-step {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.process-3d-step:hover {
    transform: translateY(-5px);
}

.process-3d-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.process-3d-step .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.process-3d-step .step-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.process-3d-step:hover .step-icon {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.process-3d-step:hover .step-icon i {
    color: var(--secondary-color);
}

/* Responsive 3D Animations */
@media (max-width: 768px) {
    .cube-3d, .sphere-3d, .pyramid-3d {
        transform: scale(0.8);
    }
    
    .game-particle i {
        font-size: 2rem;
    }
    
    .render-viewport {
        min-height: 250px;
    }
    
    .rotating-cube {
        width: 60px;
        height: 60px;
    }
    
    .game-typewriter::after {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .shape,
    .glitch-effect,
    .typewriter-text,
    .pulse-animation,
    .tools-grid-bg,
    .creative-pattern,
    .code-particle,
    .tech-particle,
    .binary-column,
    .matrix-effect,
    .dev-typewriter,
    .dev-animated-text,
    .shape-3d,
    .cube-3d,
    .sphere-3d,
    .pyramid-3d,
    .game-particle,
    .geo-line,
    .geo-circle,
    .render-effect,
    .game-animated-text,
    .game-typewriter,
    .render-showcase,
    .rotating-cube,
    .render-progress .progress-bar {
        animation: none;
    }
    
    .tool-card:hover::before,
    .moldi-image-card:hover::after,
    .performance-card:hover::before,
    .service-3d-card:hover::before,
    .tool-3d-card:hover::after {
        display: none;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ====== CAREER PAGE SPECIFIC STYLES ====== */
.career-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.career-particle {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.career-particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.career-particle-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.career-particle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

.career-particle-4 {
    top: 60%;
    right: 25%;
    animation-delay: 1.5s;
}

.career-particle-5 {
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
}

.career-particle-6 {
    top: 40%;
    left: 70%;
    animation-delay: 2.5s;
}

/* Network Background Animation */
.network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.network-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan 3s linear infinite;
}

.node-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.node-2 {
    top: 30%;
    right: 30%;
    animation-delay: 0.4s;
}

.node-3 {
    bottom: 40%;
    left: 40%;
    animation-delay: 0.8s;
}

.node-4 {
    top: 60%;
    right: 20%;
    animation-delay: 1.2s;
}

.node-5 {
    bottom: 20%;
    left: 60%;
    animation-delay: 1.6s;
}

.line-1 {
    top: 20%;
    left: 20%;
    width: 200px;
    transform: rotate(45deg);
}

.line-2 {
    top: 30%;
    right: 30%;
    width: 150px;
    transform: rotate(-30deg);
}

.line-3 {
    bottom: 40%;
    left: 40%;
    width: 180px;
    transform: rotate(60deg);
}

.line-4 {
    top: 60%;
    right: 20%;
    width: 120px;
    transform: rotate(-45deg);
}

/* Success Path Animation */
.success-path {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 60px;
    pointer-events: none;
    opacity: 0.2;
}

.path-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pathProgress 4s ease-in-out infinite;
}

.path-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-50%);
    animation: pathGlow 2s ease-in-out infinite alternate;
}

.dot-1 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 0s;
}

.dot-2 {
    top: 50%;
    left: 25%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.dot-3 {
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.dot-4 {
    top: 50%;
    left: 75%;
    transform: translateY(-50%);
    animation-delay: 3s;
}

/* Career Animated Text Effect */
.career-animated-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.brilliance-effect {
    position: relative;
    overflow: hidden;
}

.brilliance-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: brillianceShine 3s ease-in-out infinite;
}

/* Career Typewriter Effect */
.career-typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typewriter 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

.position-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.position-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.position-card-featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg), rgba(var(--primary-rgb), 0.05));
}

.position-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.position-icon-outline {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.position-card:hover .position-icon-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.position-title h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.position-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.position-requirements {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.position-requirements li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.task-section {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.requirements-details {
    margin-top: 1rem;
}

.requirement-group {
    margin-bottom: 1rem;
}

.requirement-group strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.requirement-group ul {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.requirement-group li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.apply-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Culture Section */
.culture-section {
    background: var(--bg-secondary);
}

.culture-value {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
}

.culture-value:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.culture-value:hover .value-icon {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.culture-value h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.culture-value p {
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Career Section */
.cta-career-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-career-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

.cta-career-section .section-title {
    color: white;
}

.cta-career-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.cta-career-section .btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.cta-career-section .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Career Animations */
@keyframes pathProgress {
    0%, 100% {
        transform: scale(1) translateY(-50%);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.5) translateY(-50%);
        opacity: 1;
    }
    50% {
        transform: scale(1) translateY(-50%);
        opacity: 0.3;
    }
}

@keyframes pathGlow {
    0% {
        opacity: 0.2;
        box-shadow: 0 0 5px var(--primary-color);
    }
    100% {
        opacity: 0.6;
        box-shadow: 0 0 20px var(--primary-color);
    }
}

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

@keyframes brillianceShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Adjustments for Career Page */
@media (max-width: 768px) {
    .career-particles {
        display: none;
    }
    
    .network-bg {
        display: none;
    }
    
    .success-path {
        display: none;
    }
    
    .career-typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .position-card {
        margin-bottom: 2rem;
    }
    
    .position-header {
        flex-direction: column;
        text-align: center;
    }
    
    .position-icon-outline {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .culture-value {
        padding: 1.5rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-width: 2px;
    }
}

/* ===== FAQ PAGE SPECIFIC STYLES ===== */
.faq-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.faq-particle {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.1;
    animation: faqFloat 8s ease-in-out infinite;
}

.faq-particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.faq-particle-2 {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.faq-particle-3 {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.faq-particle-4 {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.faq-particle-5 {
    top: 10%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 6.5s;
}

.faq-particle-6 {
    top: 70%;
    left: 60%;
    animation-delay: 5s;
    animation-duration: 7.5s;
}

@keyframes faqFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Enhanced FAQ Accordion */
.faq-accordion {
    margin-top: 3rem;
}

.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .faq-accordion .accordion-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.faq-accordion .accordion-button {
    background: var(--card-bg);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    border-radius: var(--border-radius-lg) !important;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    line-height: 1.7;
}

/* Quick Links Section */
.quick-links-section {
    background: var(--secondary-bg);
}

.quick-link-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.quick-link-card:hover::before {
    left: 100%;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .quick-link-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.quick-link-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.quick-link-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.quick-link-card p {
    color: var(--muted-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* FAQ Specific Animation Timing */
@keyframes faqItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries for FAQ Page */
@media (max-width: 768px) {
    .faq-particles {
        display: none;
    }
    
    .faq-accordion .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-accordion .accordion-body {
        padding: 1rem;
    }
    
    .quick-link-card {
        padding: 1.5rem;
    }
    
    .quick-link-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-width: 2px;
    }
}

/* ===== TERMS & CONDITIONS PAGE SPECIFIC STYLES ===== */
.legal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.legal-particle {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.08;
    animation: legalFloat 10s ease-in-out infinite;
}

.legal-particle-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.legal-particle-2 {
    top: 25%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.legal-particle-3 {
    top: 70%;
    left: 10%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.legal-particle-4 {
    top: 40%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.legal-particle-5 {
    top: 80%;
    right: 30%;
    animation-delay: 3s;
    animation-duration: 11s;
}

.legal-particle-6 {
    top: 60%;
    left: 70%;
    animation-delay: 5s;
    animation-duration: 8.5s;
}

@keyframes legalFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 0.15;
    }
}

/* Terms Meta Badges */
.terms-meta {
    margin-top: 2rem;
}

.meta-badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.meta-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .meta-badge:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.meta-badge i {
    color: var(--primary-color);
}

/* Terms Content Section */
.terms-content-section {
    background: var(--body-bg);
}

/* Table of Contents */
.terms-toc {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .terms-toc {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toc-title {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.toc-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.toc-link:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Terms Sections */
.terms-section {
    margin-bottom: 3rem;
}

.section-heading {
    color: var(--text-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Terms Articles */
.terms-article {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
}

.terms-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .terms-article {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .terms-article:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.article-title {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-number {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.terms-article:hover .article-number {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.article-content {
    color: var(--text-color);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Subsections */
.subsection {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.subsection:hover {
    border-left-color: var(--primary-color);
}

.subsection-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.subsection p {
    margin-bottom: 0.75rem;
}

/* Legal CTA Section */
.legal-cta-section {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.legal-cta-content {
    position: relative;
}

.cta-icon {
    width: 100px;
    height: 100px;
    border: 3px solid white;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.cta-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

/* Smooth Scrolling for TOC Links */
html {
    scroll-behavior: smooth;
}

/* Highlight targeted section */
.terms-article:target {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    animation: highlightSection 2s ease-out;
}

@keyframes highlightSection {
    0% {
        background: rgba(var(--primary-rgb), 0.1);
    }
    100% {
        background: var(--card-bg);
    }
}

/* Media Queries for Terms Page */
@media (max-width: 768px) {
    .legal-particles {
        display: none;
    }
    
    .terms-toc {
        padding: 1.5rem;
    }
    
    .toc-title {
        font-size: 1.3rem;
    }
    
    .terms-article {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.7rem;
    }
    
    .cta-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .subsection {
        padding-left: 0.5rem;
    }
}

/* Cookie Policy Specific Styles */

/* Cookie Particles Animation */
.cookie-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cookie-particle {
    position: absolute;
    animation: floatCookieParticles 20s infinite linear;
    opacity: 0.6;
}

.cookie-particle i {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: cookieIconPulse 3s infinite alternate;
}

.cookie-particle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cookie-particle-2 { top: 30%; left: 15%; animation-delay: -4s; }
.cookie-particle-3 { top: 50%; left: 25%; animation-delay: -8s; }
.cookie-particle-4 { top: 20%; right: 10%; animation-delay: -12s; }
.cookie-particle-5 { top: 40%; right: 20%; animation-delay: -16s; }
.cookie-particle-6 { top: 70%; right: 5%; animation-delay: -20s; }

@keyframes floatCookieParticles {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

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

/* Cookie Type Cards */
.cookie-type-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cookie-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.1), transparent);
    transition: left 0.6s ease;
}

.cookie-type-card:hover::before {
    left: 100%;
}

.cookie-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .cookie-type-card {
    background: var(--bg-tertiary);
}

[data-bs-theme="dark"] .cookie-type-card:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.cookie-type-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-type-icon-outline {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all var(--transition-normal);
}

.cookie-type-icon-outline i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.cookie-type-card:hover .cookie-type-icon-outline {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.cookie-type-card:hover .cookie-type-icon-outline i {
    color: var(--secondary-color);
}

.cookie-type-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.cookie-type-content {
    line-height: 1.6;
}

.cookie-type-content p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cookie-type-content p strong {
    color: var(--text-color);
}

/* Choice Sections */
.choice-section {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.choice-section:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

[data-bs-theme="dark"] .choice-section {
    background: var(--bg-tertiary);
}

[data-bs-theme="dark"] .choice-section:hover {
    background: var(--bg-secondary);
}

.choice-title {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.choice-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Cookie Management CTA Section */
.cookie-cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.cookie-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cookie-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cookie-pattern)"/></svg>');
    opacity: 0.3;
    animation: cookiePatternMove 30s linear infinite;
}

@keyframes cookiePatternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(20px) translateY(20px); }
}

.cookie-cta-section .cta-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: ctaIconBounce 2s infinite;
}

@keyframes ctaIconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.cookie-cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cookie-cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cookie-cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 600;
}

.cookie-cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.cookie-cta-section .btn-outline-primary {
    border-color: white;
    color: white;
}

.cookie-cta-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Cookie Settings Modal */
.cookie-setting-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    transition: all var(--transition-normal);
}

.cookie-setting-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
    transform: translateX(3px);
}

[data-bs-theme="dark"] .cookie-setting-item {
    background: var(--bg-tertiary);
}

[data-bs-theme="dark"] .cookie-setting-item:hover {
    background: var(--bg-secondary);
}

.cookie-setting-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.cookie-setting-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Custom form switches */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    background-color: var(--border-color);
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-switch .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

.form-switch .form-check-input:disabled {
    background-color: var(--success-color);
    border-color: var(--success-color);
    opacity: 0.8;
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Modal customizations */
.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.modal-title {
    color: var(--text-color);
    font-weight: 600;
}

.modal-body {
    background: var(--surface-color);
    color: var(--text-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* Cookie Settings Modal Enhancements */
#cookieSettingsModal .modal-content {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius-lg);
}

#cookieSettingsModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

#cookieSettingsModal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#cookieSettingsModal .modal-header .btn-close:hover {
    opacity: 1;
}

#cookieSettingsModal .modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Enhanced cookie setting items for modal */
#cookieSettingsModal .cookie-setting-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

#cookieSettingsModal .cookie-setting-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

[data-bs-theme="dark"] #cookieSettingsModal .cookie-setting-item {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] #cookieSettingsModal .cookie-setting-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

#cookieSettingsModal .cookie-setting-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

#cookieSettingsModal .cookie-setting-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile Responsive Styles for Cookie Policy */
@media (max-width: 768px) {
    .cookie-particles {
        display: none;
    }
    
    .cookie-type-card {
        padding: 1rem;
    }
    
    .cookie-type-icon-outline {
        width: 50px;
        height: 50px;
    }
    
    .cookie-type-title {
        font-size: 1.1rem;
    }
    
    .choice-section {
        padding: 1rem;
    }
    
    .cookie-cta-section .cta-icon {
        font-size: 3rem;
    }
    
    .cookie-cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cookie-setting-item {
        padding: 0.75rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-footer > div {
        width: 100%;
        text-align: center;
    }
} 

/* ====== SERVICE ICON OUTLINE STYLING ====== */

.service-icon-outline {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* ====== FEATURE SUBHEADING ICONS STYLING ====== */

.feature-subheading-icon {
    display: block;
    text-align: left;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: translateX(0px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item:hover .feature-subheading-icon {
    color: var(--secondary-color);
    transform: scale(1.1) translateX(25px);
}

.feature-item .feature-content {
    text-align: left;
}

.feature-item .feature-content h5 {
    margin-bottom: 0.75rem;
}

.feature-item .feature-content p {
    text-align: left;
}

/* ====== MULTI-STEP BOOKING FORM STYLING ====== */

.booking-demo-card {
    position: relative;
    overflow: hidden;
}

.booking-demo-card .card {
    border: 1px solid var(--bs-border-color) !important;
}

.demo-notice {
    background: linear-gradient(135deg, #fff3cd, #fff8e1);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #856404;
}

[data-bs-theme="dark"] .demo-notice {
    background: linear-gradient(135deg, #3a2f1a, #4a3b20);
    border-color: #ffc107;
    color: #ffdf7e;
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.form-step.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.form-step.prev {
    transform: translateX(-100%);
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bs-border-color);
    transition: all 0.3s ease;
    position: relative;
}

.step-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--bs-success);
}

.step-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    animation: ripple 0.6s ease-out;
}

.step-dot.active::after {
    opacity: 0.3;
}

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

.night-counter {
    background: var(--bs-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    font-weight: 600;
    animation: countPulse 0.5s ease-out;
}

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

.form-step-container {
    position: relative;
    min-height: 500px; /* Fixed height for consistent layout */
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bs-border-color);
}

.btn-step {
    position: relative;
    overflow: hidden;
}

.btn-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-step:hover::before {
    left: 100%;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bs-success-bg-subtle), var(--bs-info-bg-subtle));
    border-radius: 12px;
    border: 1px solid var(--bs-success-border-subtle);
}

.success-icon {
    font-size: 4rem;
    color: var(--bs-success);
    margin-bottom: 1rem;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.guest-selector {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.guest-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.guest-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guest-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.guest-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.guest-count {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ====== FEATURE ICON OUTLINE STYLING ====== */

/* Homepage Section Background Animations */

/* Stats Section */
.stats-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Clients Section - Network Connection Lines */
.clients-section {
    position: relative;
    overflow: hidden;
}

.client-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.network-connection {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    height: 1px;
    opacity: 0.2;
    animation: networkPulse 8s infinite ease-in-out;
}

.connection-1 {
    top: 20%;
    left: 0;
    width: 100%;
    animation-delay: 0s;
}

.connection-2 {
    top: 50%;
    left: 0;
    width: 100%;
    animation-delay: -2s;
}

.connection-3 {
    top: 80%;
    left: 0;
    width: 100%;
    animation-delay: -4s;
}

.network-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: nodePulse 3s infinite ease-in-out;
}

.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { top: 20%; right: 10%; animation-delay: -1s; }
.node-3 { top: 50%; left: 20%; animation-delay: -0.5s; }
.node-4 { top: 50%; right: 20%; animation-delay: -1.5s; }
.node-5 { top: 80%; left: 15%; animation-delay: -0.8s; }
.node-6 { top: 80%; right: 15%; animation-delay: -1.2s; }

@keyframes networkPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.3;
        transform: scaleX(1.1);
    }
}

@keyframes nodePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.5);
    }
}

/* Latest Project Section - Chess Theme Particles */
.latest-project-section {
    position: relative;
    overflow: hidden;
}

.chess-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.chess-particle {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    animation: floatChessParticles 25s infinite linear;
}

.chess-particle i {
    animation: rotateChessPiece 8s infinite ease-in-out;
}

.chess-particle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.chess-particle-2 { top: 30%; left: 85%; animation-delay: -6s; }
.chess-particle-3 { top: 60%; left: 10%; animation-delay: -12s; }
.chess-particle-4 { top: 80%; left: 90%; animation-delay: -18s; }
.chess-particle-5 { top: 20%; left: 70%; animation-delay: -3s; }
.chess-particle-6 { top: 70%; left: 20%; animation-delay: -15s; }

@keyframes floatChessParticles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    25% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(-50px) translateX(20px);
        opacity: 0.3;
    }
    75% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
}

@keyframes rotateChessPiece {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Testimonials Section - Quote Particles */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.testimonial-particle {
    position: absolute;
    font-size: 1.8rem;
    color: var(--primary-color);
    opacity: 0.15;
    animation: floatTestimonialParticles 18s infinite ease-in-out;
}

.testimonial-particle i {
    animation: testimonialIconFloat 6s infinite ease-in-out;
}

.testimonial-particle-1 { top: 15%; left: 8%; animation-delay: 0s; }
.testimonial-particle-2 { top: 35%; right: 12%; animation-delay: -4s; }
.testimonial-particle-3 { top: 65%; left: 15%; animation-delay: -8s; }
.testimonial-particle-4 { top: 25%; left: 45%; animation-delay: -12s; }
.testimonial-particle-5 { top: 75%; right: 25%; animation-delay: -2s; }
.testimonial-particle-6 { top: 45%; right: 8%; animation-delay: -10s; }

@keyframes floatTestimonialParticles {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.25;
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
        opacity: 0.2;
    }
}

@keyframes testimonialIconFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(3deg);
    }
}

/* Services Section - Service Icon Particles */
.services-section {
    position: relative;
    overflow: hidden;
}

.service-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.service-particle {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    animation: floatServiceParticles 22s infinite linear;
}

.service-particle i {
    font-size: 1.2rem;
    color: var(--primary-color);
    animation: serviceIconSpin 8s infinite ease-in-out;
}

.service-particle-1 { top: 12%; left: 5%; animation-delay: 0s; }
.service-particle-2 { top: 25%; right: 8%; animation-delay: -5s; }
.service-particle-3 { top: 45%; left: 12%; animation-delay: -10s; }
.service-particle-4 { top: 60%; right: 15%; animation-delay: -15s; }
.service-particle-5 { top: 75%; left: 8%; animation-delay: -7s; }
.service-particle-6 { top: 35%; left: 50%; animation-delay: -12s; }

@keyframes floatServiceParticles {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(-40px) translateX(15px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.2;
    }
}

@keyframes serviceIconSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

/* Projects Section - Performance Metrics Particles */
.projects-section {
    position: relative;
    overflow: hidden;
}

.performance-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.performance-particle {
    position: absolute;
    padding: 8px 12px;
    background: rgba(var(--primary-color), 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.6;
    animation: floatPerformanceParticles 16s infinite ease-in-out;
    backdrop-filter: blur(10px);
}

.performance-particle-1 { top: 15%; left: 10%; animation-delay: 0s; }
.performance-particle-2 { top: 30%; right: 12%; animation-delay: -3s; }
.performance-particle-3 { top: 50%; left: 5%; animation-delay: -6s; }
.performance-particle-4 { top: 70%; right: 8%; animation-delay: -9s; }
.performance-particle-5 { top: 25%; left: 60%; animation-delay: -12s; }
.performance-particle-6 { top: 60%; left: 70%; animation-delay: -2s; }

@keyframes floatPerformanceParticles {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-25px) scale(1.05);
        opacity: 0.7;
    }
}

/* CTA Section - Enhanced Energy Particles */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cta-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatCtaParticles 12s infinite linear;
}

.cta-particle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.cta-particle-2 { top: 20%; left: 15%; animation-delay: -2s; }
.cta-particle-3 { top: 30%; left: 25%; animation-delay: -4s; }
.cta-particle-4 { top: 40%; left: 35%; animation-delay: -6s; }
.cta-particle-5 { top: 50%; left: 45%; animation-delay: -8s; }
.cta-particle-6 { top: 60%; left: 55%; animation-delay: -10s; }
.cta-particle-7 { top: 70%; left: 65%; animation-delay: -1s; }
.cta-particle-8 { top: 80%; left: 75%; animation-delay: -3s; }
.cta-particle-9 { top: 15%; right: 5%; animation-delay: -5s; }
.cta-particle-10 { top: 35%; right: 15%; animation-delay: -7s; }
.cta-particle-11 { top: 55%; right: 25%; animation-delay: -9s; }
.cta-particle-12 { top: 75%; right: 35%; animation-delay: -11s; }

@keyframes floatCtaParticles {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) translateX(10px) scale(1.5);
        opacity: 0.8;
    }
    75% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
}

.cta-energy-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: expandEnergyWave 8s infinite ease-out;
}

.cta-energy-wave:nth-child(2) {
    animation-delay: -2s;
    width: 300px;
    height: 300px;
}

.cta-energy-wave:nth-child(3) {
    animation-delay: -4s;
    width: 400px;
    height: 400px;
}

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

/* Responsive adjustments for homepage animations */
@media (max-width: 768px) {
    .chess-particle,
    .testimonial-particle {
        font-size: 1rem;
    }
    
    .service-particle {
        width: 30px;
        height: 30px;
    }
    
    .service-particle i {
        font-size: 1rem;
    }
    
    .cta-energy-wave {
        width: 150px;
        height: 150px;
    }
    
    .cta-energy-wave:nth-child(2) {
        width: 200px;
        height: 200px;
    }
    
    .cta-energy-wave:nth-child(3) {
        width: 250px;
        height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chess-particle,
    .testimonial-particle,
    .service-particle,
    .cta-particle,
    .network-connection,
    .network-node,
    .cta-energy-wave {
        animation: none;
    }
}

/* ====== EXTRAORDINARY HERO DIGITAL CONSTELLATION ANIMATION ====== */

/* Digital Constellation Container */
.digital-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Constellation Nodes - Floating Geometric Elements */
.constellation-node {
    position: absolute;
    width: 60px;
    height: 60px;
    animation: floatNode 20s infinite ease-in-out;
}

.node-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary-color);
    animation: pulseCore 3s infinite ease-in-out;
}

.node-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(var(--primary-color), 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotateRing 15s infinite linear;
}

.node-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--primary-color);
}

/* Node Positioning */
.node-1 { top: 20%; left: 15%; animation-delay: 0s; }
.node-2 { top: 30%; right: 20%; animation-delay: -5s; }
.node-3 { top: 60%; left: 10%; animation-delay: -10s; }
.node-4 { top: 70%; right: 15%; animation-delay: -15s; }
.node-5 { top: 45%; left: 50%; animation-delay: -7s; }

/* Connection Lines SVG */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.connection-line {
    stroke: var(--primary-color);
    stroke-width: 1;
    opacity: 0.4;
    stroke-dasharray: 5,5;
    animation: dashFlow 8s infinite linear, connectionPulse 4s infinite ease-in-out;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: -1s; }
.line-3 { animation-delay: -2s; }
.line-4 { animation-delay: -3s; }
.line-5 { animation-delay: -4s; }

/* Floating Code Fragments */
.code-fragment {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.6;
    animation: floatCode 25s infinite ease-in-out;
    text-shadow: 0 0 10px var(--primary-color);
}

.fragment-1 { top: 25%; left: 8%; animation-delay: 0s; }
.fragment-2 { top: 40%; right: 12%; animation-delay: -8s; }
.fragment-3 { top: 55%; left: 5%; animation-delay: -16s; }
.fragment-4 { top: 75%; right: 8%; animation-delay: -4s; }
.fragment-5 { top: 35%; left: 60%; animation-delay: -12s; }
.fragment-6 { top: 65%; left: 70%; animation-delay: -20s; }

/* Morphing Shapes */
.morph-shape {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: morphFloat 30s infinite ease-in-out;
}

.shape-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-color), 0.2), transparent);
    border: 1px solid rgba(var(--primary-color), 0.3);
    animation: morphTransform 12s infinite ease-in-out;
    backdrop-filter: blur(2px);
}

.shape-1 { top: 15%; right: 5%; animation-delay: 0s; }
.shape-1 .shape-inner { animation-delay: 0s; }

.shape-2 { top: 50%; left: 3%; animation-delay: -10s; }
.shape-2 .shape-inner { animation-delay: -4s; }

.shape-3 { top: 80%; right: 25%; animation-delay: -20s; }
.shape-3 .shape-inner { animation-delay: -8s; }

/* Energy Waves */
.energy-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(var(--primary-color), 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: expandWave 10s infinite ease-out;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: -3s; width: 300px; height: 300px; }
.wave-3 { animation-delay: -6s; width: 400px; height: 400px; }

/* Animations */
@keyframes floatNode {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
    }
    75% {
        transform: translateY(15px) translateX(5px) rotate(270deg);
    }
}

@keyframes pulseCore {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px var(--primary-color);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 30px var(--primary-color);
    }
}

@keyframes rotateRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes dashFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 20;
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) translateX(-20px) rotate(-3deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(20px) translateX(10px) rotate(2deg);
        opacity: 0.5;
    }
}

@keyframes morphFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-40px) translateX(20px);
    }
    66% {
        transform: translateY(20px) translateX(-15px);
    }
}

@keyframes morphTransform {
    0%, 100% {
        border-radius: 20%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 50%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 0%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 30%;
        transform: rotate(270deg) scale(1.05);
    }
}

@keyframes expandWave {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    70% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes expandRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Interactive Hover Effects */
.constellation-node:hover .node-core {
    animation-duration: 1s;
    box-shadow: 0 0 40px var(--primary-color);
}

.constellation-node:hover .node-ring {
    animation-duration: 5s;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .constellation-node {
        width: 40px;
        height: 40px;
    }
    
    .node-core {
        width: 8px;
        height: 8px;
    }
    
    .node-ring {
        width: 25px;
        height: 25px;
    }
    
    .code-fragment {
        font-size: 1rem;
    }
    
    .morph-shape {
        width: 50px;
        height: 50px;
    }
    
    .energy-wave {
        width: 150px;
        height: 150px;
    }
    
    .wave-2 { width: 200px; height: 200px; }
    .wave-3 { width: 250px; height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
    .constellation-node,
    .node-core,
    .node-ring,
    .connection-line,
    .code-fragment,
    .morph-shape,
    .shape-inner,
    .energy-wave {
        animation: none;
    }
}

/* ====== MOBILE TOUCH-FRIENDLY ANIMATIONS FIX ====== */

/* Restrict hover effects to devices that actually support hover */
@media (hover: hover) and (pointer: fine) {
    .feature-icon-outline:hover {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        transform: scale(1.1);
    }
    
    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }
    
    .tool-card:hover .tool-icon-outline {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        transform: scale(1.1);
    }
    
    .service-tag:hover {
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .illustration-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .moldi-image-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .moldi-image-card:hover img {
        transform: scale(1.02);
    }
    
    .client-logo:hover {
        transform: scale(1.1);
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
    }
    
    .icon-animated:hover {
        transform: scale(1.2) rotate(5deg);
    }
    
    .floating-card:hover {
        transform: scale(1.05);
    }
    
    .floating-card:hover i {
        transform: scale(1.3) rotate(10deg);
    }
    
    .service-card:hover::before {
        transform: scaleX(1);
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .service-card:hover .service-icon {
        transform: scale(1.1);
    }
    
    .process-step:hover {
        transform: translateY(-5px);
    }
    
    .process-step:hover .step-icon {
        transform: scale(1.1);
    }
    
    .navbar-toggler:hover {
        background: rgba(var(--primary-color-rgb), 0.1);
        transform: scale(1.05);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

/* Touch-friendly alternatives for devices without hover */
@media (hover: none) and (pointer: coarse) {
    .feature-icon-outline:active,
    .feature-icon-outline:focus {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        transform: scale(1.1);
        transition: all 0.2s ease;
    }
    
    .tool-card:active,
    .tool-card:focus {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
        transition: all 0.2s ease;
    }
    
    .tool-card:active .tool-icon-outline,
    .tool-card:focus .tool-icon-outline {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
        transform: scale(1.1);
        transition: all 0.2s ease;
    }
    
    .service-tag:active,
    .service-tag:focus {
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .illustration-container:active,
    .illustration-container:focus {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }
    
    .moldi-image-card:active,
    .moldi-image-card:focus {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }
    
    .moldi-image-card:active img,
    .moldi-image-card:focus img {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
    
    .client-logo:active,
    .client-logo:focus {
        transform: scale(1.1);
        transition: transform 0.2s ease;
    }
    
    .testimonial-card:active,
    .testimonial-card:focus {
        transform: translateY(-5px);
        transition: all 0.2s ease;
    }
    
    .icon-animated:active,
    .icon-animated:focus {
        transform: scale(1.2) rotate(5deg);
        transition: all 0.2s ease;
    }
    
    .floating-card:active,
    .floating-card:focus {
        transform: scale(1.05);
        transition: all 0.2s ease;
    }
    
    .floating-card:active i,
    .floating-card:focus i {
        transform: scale(1.3) rotate(10deg);
        transition: all 0.2s ease;
    }
    
    .service-card:active::before,
    .service-card:focus::before {
        transform: scaleX(1);
        transition: transform 0.3s ease;
    }
    
    .service-card:active,
    .service-card:focus {
        transform: translateY(-5px);
        transition: all 0.2s ease;
    }
    
    .service-card:active .service-icon,
    .service-card:focus .service-icon {
        transform: scale(1.1);
        transition: all 0.2s ease;
    }
    
    .process-step:active,
    .process-step:focus {
        transform: translateY(-5px);
        transition: all 0.2s ease;
    }
    
    .process-step:active .step-icon,
    .process-step:focus .step-icon {
        transform: scale(1.1);
        transition: all 0.2s ease;
    }
    
    .navbar-toggler:active,
    .navbar-toggler:focus {
        background: rgba(var(--primary-color-rgb), 0.1);
        transform: scale(1.05);
        transition: all 0.2s ease;
    }
    
    .feature-card:active,
    .feature-card:focus {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
}

/* ====== ECOMMERCE PARTICLES STYLING ====== */

.ecommerce-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ecommerce-particle {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(10px);
    animation: floatEcommerceParticles 25s infinite linear;
}

.ecommerce-particle i {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: ecommerceIconPulse 3s infinite ease-in-out;
}

.ecommerce-particle-1 { top: 15%; right: 10%; animation-delay: 0s; }
.ecommerce-particle-2 { top: 40%; right: 5%; animation-delay: -5s; }
.ecommerce-particle-3 { top: 65%; right: 15%; animation-delay: -10s; }
.ecommerce-particle-4 { bottom: 30%; left: 10%; animation-delay: -15s; }
.ecommerce-particle-5 { bottom: 50%; left: 5%; animation-delay: -20s; }
.ecommerce-particle-6 { top: 80%; left: 20%; animation-delay: -8s; }

@keyframes floatEcommerceParticles {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.7;
    }
}

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

/* ====== ECOMMERCE MOCKUP STYLING ====== */

.ecommerce-preview {
    padding: 1rem;
    background: var(--bs-body-bg);
    border-radius: 8px;
    min-height: 300px;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-card {
    background: var(--bs-light);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    animation: courseCardFloat 4s infinite ease-in-out;
}

.course-card:nth-child(2) {
    animation-delay: -2s;
}

.course-image {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.course-image::before {
    content: '🎓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0.8;
}

.course-info h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--bs-dark);
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bs-light);
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
}

.payment-methods i {
    font-size: 1.5rem;
    color: var(--bs-secondary);
    animation: paymentIconFloat 3s infinite ease-in-out;
}

.payment-methods i:nth-child(2) { animation-delay: -1s; }
.payment-methods i:nth-child(3) { animation-delay: -2s; }

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

@keyframes paymentIconFloat {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ====== COURSE DEMO CARD STYLING ====== */

.course-demo-card {
    position: relative;
    overflow: hidden;
}

.course-demo-card .card {
    border: 1px solid var(--bs-border-color) !important;
}

.payment-options .form-check {
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-options .form-check:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.payment-options .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 500;
}

.course-summary,
.final-summary {
    animation: summarySlideIn 0.5s ease-out;
}

@keyframes summarySlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-card {
    padding: 2rem;
    border-radius: 12px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .tech-card {
    background: var(--bs-dark);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .tech-card:hover {
    border-color: var(--primary-color);
    background: var(--bs-gray-900);
}

/* ====== HERO BADGE & BUTTON ANIMATIONS ====== */

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    animation: badgePulse 3s infinite ease-in-out;
}

.pulse-btn {
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite ease-in-out;
}

.pulse-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pulse-btn:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.typing-text {
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: typingCursor 1s infinite;
    color: var(--primary-color);
    margin-left: 2px;
}

@keyframes typingCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .ecommerce-particle {
        width: 40px;
        height: 40px;
    }
    
    .ecommerce-particle i {
        font-size: 1rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
        text-align: center;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecommerce-particle,
    .course-card,
    .payment-methods i,
    .hero-badge,
    .pulse-btn,
    .course-summary,
    .final-summary {
        animation: none !important;
        transform: none !important;
    }
}

/* Floating Card Link Styles */
.floating-card-link {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
}

.floating-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: scale(1.05) translateY(-5px);
}

.floating-card-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: var(--border-radius-lg);
}

.floating-card-link:active {
    transform: scale(0.98);
}

/* Enhanced floating card styles for links */
.floating-card-link .floating-card {
    position: relative;
    cursor: pointer;
}

.floating-card-link .floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05));
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.floating-card-link:hover .floating-card::before {
    opacity: 1;
}

/* ========== 404 ERROR PAGE ========== */
.error-content .error-code {
    position: relative;
    z-index: 2;
}

.error-content .text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-link-card .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.quick-link-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.15) !important;
    border-color: var(--primary-color);
}

.quick-link-card .card-body {
    padding: 1.5rem;
}

.quick-link-card:hover i {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

/* Responsive Testimonials */
@media (max-width: 1199.98px) {
    #testimonialsCarousel .carousel-item .row {
        justify-content: center;
    }
    
    #testimonialsCarousel .carousel-item .col-lg-6:nth-child(2) {
        display: none;
    }
    
    #testimonialsCarousel .carousel-item .col-lg-6:first-child {
        max-width: 600px;
    }
}

@media (max-width: 767.98px) {
    .testimonial-card {
        margin: 0 auto;
        max-width: 90%;
    }
    
    .carousel-indicators.position-relative {
        margin-top: 2rem;
    }
    
    .carousel-indicators button {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
}

/* Enhanced testimonial navigation */
.testimonial-nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.testimonial-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.testimonial-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.testimonial-nav-btn i {
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-nav-btn i {
        font-size: 1rem;
    }
}

/* Single testimonial display on mobile */
@media (max-width: 991.98px) {
    .testimonials-mobile-single .carousel-item .row .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .testimonials-mobile-single .carousel-item .row .col-lg-6:not(:first-child) {
        display: none;
    }
}

/* Accessibility improvements */
.floating-card-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .floating-card-link,
    .floating-card-link:hover,
    .testimonial-nav-btn {
        transition: none;
    }
    
    .floating-card-link:hover {
        transform: none;
    }
}

/* Spacing between project tech tags */
.project-tech-tags .service-tag:first-child {
    margin-bottom: 0.5rem;
}

/* Spacing between icon and text in tech tags */
.project-tech-tags .service-tag i {
    margin-right: 0.5rem;
}

/* 16:9 aspect ratio for project images */
.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-container .project-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    filter: brightness(0) saturate(100%) invert(50%);
}

[data-bs-theme="dark"] .project-image-container .project-logo {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

.form-check-input.is-invalid {
    border-color: var(--danger-color) !important;
}

.form-check-input.is-invalid:focus {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}
