/* Custom CSS for Quencode Website - Dark Theme */

/* Import Typography System */
@import url('typography.css');

/* Import Color System */
@import url('colors.css');

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Set black background for root elements */
* {
    box-sizing: border-box;
}

html, body {
    background-color: var(--color-bg-primary);
    margin: 0;
    padding: 0;
}

/* Set Inter as default font */
body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Quencode Logo Styling */
.quencode-logo {
    background: var(--gradient-brand-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: 0.05em;
}

/* Navbar Logo White Overlay - Only on black background */
body.bg-black .quencode-logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

body.bg-black .quencode-logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--rgba-white-30));
}

/* Logo on white background - white overlay */
body.bg-white .quencode-logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

body.bg-white .quencode-logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--rgba-white-50));
}

/* Canvas for Video-Masked Text */
#text-mask-canvas {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    z-index: 15;
    background-color: transparent;
}

/* Canvas Background - Black for particles, transparent for text effects */
#glow-canvas {
    background-color: transparent;
}

#particles-canvas {
    background-color: var(--color-bg-primary);
}

/* Extended Hero Section */
#home {
    min-height: 200vh;
    position: relative;
}

/* Fixed positioning during zoom animation */
#text-mask-canvas.zooming {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    transition: all 0.3s ease-out;
}

/* Full screen video effect */
#text-mask-canvas.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 25;
}

/* Statistics section styling */
#stats-section {
    background: var(--color-bg-primary);
    padding: 5rem 0;
}

#stats-section.show {
    opacity: 1;
    pointer-events: auto;
}

#stats-section.hide {
    opacity: 0;
    pointer-events: none;
}

.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    background: transparent;
    border: none;
    padding: 2rem;
}

.stat-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    color: var(--color-text-primary);
    font-size: var(--font-size-stat-number);
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-stat-label);
    font-weight: var(--font-weight-normal);
}

/* Text mask fade out */
#text-mask-canvas.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* Hidden video element */
#text-video {
    display: none;
}

/* Scroll Animation Styles */
#scroll-hint {
    transition: opacity 0.5s ease-out;
    z-index: 30;
    position: fixed;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

#hero-content {
    transition: opacity 0.8s ease-in-out;
    z-index: 25;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

/* Fixed positioning for hero content during full-screen video */
#hero-content.fullscreen-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    transition: opacity 0.8s ease-in-out;
}

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

/* Scroll hint animation */
@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-scroll-bounce {
    animation: scrollBounce 2s infinite;
}

/* Video Background Styles */
video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Dot Pattern Overlay - Mobile fallback */
.dot-pattern {
    background-image: radial-gradient(circle, var(--dot-pattern-color) 1px, var(--color-transparent) 1px);
    background-size: 20px 20px;
    animation: float 6s ease-in-out infinite;
}

/* Hide dot pattern on desktop when particles are active */
@media (min-width: 769px) {
    .dot-pattern {
        display: none;
    }
}

/* Client Logo Styling */
.client-logo {
    transition: transform 0.3s ease;
}

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

.client-logo.no-hover:hover {
    transform: none;
}

/* Language Dropdown Styling - Match menu bar glass effect */
#language-dropdown {
    background-color: transparent !important;
    backdrop-filter: blur(10px);
    border: none !important;
}

/* Navigation Styling - Only apply to index page nav */
#main-navbar,
body.bg-black nav {
    background-color: var(--color-transparent) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--rgba-black-30);
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column; /* Stack header and menu vertically */
}

#main-navbar .max-w-7xl,
body.bg-black nav .max-w-7xl {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure the navbar content wrapper - needs to be relative for absolute children */
.navbar-content-wrapper {
    position: relative !important;
    width: 100% !important;
    min-height: 4rem; /* At least header height */
}

/* Ensure header row (logo + hamburger) stays on top */
.navbar-header-row {
    position: relative !important;
    z-index: 11 !important;
    background-color: transparent !important;
    order: 1 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: 100% !important;
    height: 4rem !important; /* h-16 = 64px = 4rem - fixed height */
    min-height: 4rem !important;
    max-height: 4rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Ensure logo and hamburger button stay visible */
.navbar-header-row > * {
    position: relative !important;
    z-index: 12 !important;
}

/* Mobile menu - MUST appear below header using absolute positioning */
.navbar-content-wrapper #mobile-menu.mobile-menu-container {
    position: absolute !important;
    top: 4rem !important; /* Below header (h-16 = 4rem) */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1 !important;
    transform: none !important;
    margin: 0 !important;
}

/* Direct selector for mobile menu */
#mobile-menu.mobile-menu-container {
    position: absolute !important;
    top: 4rem !important; /* Below header */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

#main-navbar .mx-auto,
body.bg-black nav .mx-auto {
    margin: 0;
}

#main-navbar .px-4,
body.bg-black nav .px-4 {
    padding-left: 0;
    padding-right: 0;
}

#main-navbar .sm\:px-6,
body.bg-black nav .sm\:px-6 {
    padding-left: 0;
    padding-right: 0;
}

#main-navbar .lg\:px-8,
body.bg-black nav .lg\:px-8 {
    padding-left: 0;
    padding-right: 0;
}

/* Override nav styles for project pages (white background) */
body.bg-white nav {
    background-color: var(--rgba-white-95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--rgba-black-10);
    width: 100%;
    margin: 0;
    padding: 0;
}

body.bg-white nav .max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

/* Mobile menu container - expands downwards */
.mobile-menu-container {
    max-height: 0;
    height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    top: 4rem !important; /* Position below header (h-16 = 64px = 4rem) */
    left: 0 !important;
    right: 0 !important;
    z-index: 1 !important; /* Lower than navbar header */
    width: 100% !important;
    margin: 0 !important;
    /* Ensure menu doesn't overlap header */
    pointer-events: none;
}

.mobile-menu-container.expanded {
    pointer-events: auto !important;
}

.mobile-menu-container.expanded {
    max-height: 300px !important; /* Fixed height for smooth transition */
    height: auto !important;
    min-height: 200px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    display: block !important;
    /* Keep absolute positioning when expanded */
    position: absolute !important;
    top: 4rem !important; /* Still below header */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Glass effect - semi-transparent background for blur to show */
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%) !important; /* backdrop-blur-md = 12px with saturation */
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: 0 2px 20px var(--rgba-black-30) !important;
}

/* Force the menu to show when expanded - highest priority override */
#mobile-menu.mobile-menu-container.expanded {
    max-height: 300px !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    overflow: visible !important;
    /* Glass effect - semi-transparent background for blur to show */
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%) !important; /* backdrop-blur-md = 12px with saturation */
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: 0 2px 20px var(--rgba-black-30) !important;
    position: absolute !important;
    top: 4rem !important; /* Below header - 64px */
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    z-index: 1 !important; /* Below the header */
    width: 100% !important;
}

/* Ensure mobile menu is dark on black background, light on white background - glass effect */
body.bg-black .mobile-menu-container.expanded {
    background-color: rgba(0, 0, 0, 0.7) !important; /* Semi-transparent for glass effect */
    backdrop-filter: blur(12px) saturate(180%) !important; /* backdrop-blur-md = 12px with saturation */
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: 0 2px 20px var(--rgba-black-30) !important;
}

body.bg-white .mobile-menu-container.expanded {
    background-color: rgba(255, 255, 255, 0.9) !important; /* Semi-transparent for glass effect */
    backdrop-filter: blur(12px) saturate(180%) !important; /* backdrop-blur-md = 12px with saturation */
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: 0 2px 20px var(--rgba-black-10) !important;
    border-color: var(--color-gray-100) !important;
}

/* Legacy support for old mobile-menu class - only when not expanded */
body.bg-black #mobile-menu:not(.expanded) {
    background-color: var(--color-transparent) !important;
    backdrop-filter: blur(10px);
}

body.bg-white #mobile-menu:not(.expanded) {
    background-color: var(--rgba-white-95) !important;
    backdrop-filter: blur(10px);
    border-color: var(--color-gray-100);
}

/* Particle Canvas Styling */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Ensure canvas doesn't interfere with text selection */
#particle-canvas::selection {
    background: transparent;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* Animation classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Service card hover effects - Removed */
.service-card {
    position: relative;
    overflow: hidden;
}

/* Navigation link hover effects */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

/* Mobile menu animations - Legacy, don't interfere with new mobile-menu-container */
#mobile-menu:not(.mobile-menu-container) {
    transition: all 0.3s ease;
    transform: translateY(-100%);
}

#mobile-menu:not(.mobile-menu-container).show {
    transform: translateY(0);
}

/* Override any transform on mobile-menu-container - ensure no transforms hide it */
.mobile-menu-container {
    transform: none !important;
}

.mobile-menu-container.expanded {
    transform: none !important;
}

#mobile-menu.mobile-menu-container {
    transform: none !important;
}

#mobile-menu.mobile-menu-container.expanded {
    transform: none !important;
}

/* Mobile menu content - ensure all items are visible */
.mobile-menu-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.mobile-menu-container.expanded .mobile-menu-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0.5rem 0.5rem 0.75rem 0.5rem !important;
}

/* Fallback: Force content visibility when parent is expanded */
#mobile-menu.mobile-menu-container.expanded .mobile-menu-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateY(0) !important;
    width: 100% !important;
    position: relative !important;
    /* Ensure it's contained within the expanded container */
    margin: 0 !important;
    /* Preserve existing padding from Tailwind classes (px-2 pt-2 pb-3) */
    box-sizing: border-box !important;
}

/* Ensure ALL mobile menu links are visible and contained */
.mobile-menu-container.expanded .mobile-nav-link {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    /* Ensure each link is visible */
    min-height: 2.5rem !important;
}

/* Make sure SERVICES and PORTFOLIO links are visible */
.mobile-menu-container.expanded .mobile-nav-link:not(.nav-button) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Text colors for mobile menu - ensure visibility */
body.bg-black .mobile-menu-container.expanded .mobile-nav-link,
body.bg-black .mobile-menu-container.expanded .mobile-nav-link.nav-text-color {
    color: var(--color-white) !important;
}

body.bg-white .mobile-menu-container.expanded .mobile-nav-link,
body.bg-white .mobile-menu-container.expanded .mobile-nav-link.nav-text-color {
    color: var(--color-black) !important;
}

/* Ensure GET IN TOUCH button is visible in mobile menu */
.mobile-menu-container.expanded .mobile-nav-link.nav-button {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Style GET IN TOUCH button in mobile menu for white backgrounds */
body.bg-white .mobile-menu-container.expanded .mobile-nav-link.nav-button {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
    border: 1px solid var(--color-black) !important;
}

/* Style GET IN TOUCH button in mobile menu for black backgrounds */
body.bg-black .mobile-menu-container.expanded .mobile-nav-link.nav-button {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
    border: 1px solid var(--color-white) !important;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-transparent), var(--rgba-white-20), var(--color-transparent));
    transition: left 0.5s;
}

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

/* Form input focus effects */
input:focus, textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--rgba-blue-15);
}

/* Gradient text effects */
.gradient-text {
    background: var(--gradient-brand-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism effect */
.glass {
    background: var(--rgba-white-10);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-primary);
}

/* Custom scrollbar - removed, using browser default */

/* Subtle Gradient Transitions */
@keyframes subtleFade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Section Background Classes */
.section-gradient {
    position: relative;
    overflow: hidden;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-intensity: 0.1;
}

.section-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-size: 100% 100%;
    opacity: var(--gradient-intensity, 0.1);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-gradient.gradient-active::before {
    opacity: 0.2;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section Gradient */
#home.section-gradient::before {
    background: var(--gradient-bg-hero);
}

/* Statistics Section Gradient */
#stats-section.section-gradient::before {
    background: var(--gradient-bg-stats);
}

/* Services Section Gradient */
#services.section-gradient::before {
    background: var(--gradient-bg-services);
}

/* About Section Gradient */
#about.section-gradient::before {
    background: var(--gradient-bg-about);
}

/* Portfolio Section Gradient */
#portfolio.section-gradient::before {
    background: var(--gradient-bg-portfolio);
}

/* Contact Section Gradient */
#contact.section-gradient::before {
    background: var(--gradient-bg-contact);
}

/* Cookie Consent Banner - Glass Effect */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-transparent) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px var(--rgba-black-30);
    border-top: 1px solid var(--color-border-primary);
    padding: 1.5rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

#cookie-consent .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

#cookie-consent .cookie-text {
    flex: 1;
    min-width: 300px;
}

#cookie-consent .cookie-text p {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
}

#cookie-consent .cookie-text a {
    color: var(--color-purple-primary);
    text-decoration: underline;
    transition: color 0.2s;
}

#cookie-consent .cookie-text a:hover {
    color: var(--color-pink-primary);
}

#cookie-consent .cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#cookie-consent .cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

#cookie-consent .cookie-btn-accept {
    background-color: var(--color-white);
    color: var(--color-black);
}

#cookie-consent .cookie-btn-accept:hover {
    background-color: var(--color-gray-50);
}

#cookie-consent .cookie-btn-decline {
    background-color: var(--color-transparent);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-secondary);
}

#cookie-consent .cookie-btn-decline:hover {
    background-color: var(--rgba-white-10);
    border-color: var(--color-border-tertiary);
}

@media (max-width: 768px) {
    #cookie-consent {
        padding: 1rem;
    }
    
    #cookie-consent .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    #cookie-consent .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    #cookie-consent .cookie-btn {
        width: 100%;
    }
}

/* Client Logos Section - Subtle gradient */
.py-16.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
    background: var(--gradient-bg-client-logos) !important;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 2rem;
}

/* Tile Sizes */
.bento-tile {
    border-radius: 0.25rem;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    background: var(--color-bg-secondary);
    aspect-ratio: 1 / 1;
    grid-column: span 1;
    grid-row: span 1;
    display: block;
    text-decoration: none;
    color: inherit;
}


/* Tile Content */
.tile-content {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    padding: 0;
}




.brand-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.brand-logo .logo-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.brand-colors {
    display: flex;
    gap: 0.5rem;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-border-secondary);
}

.color-swatch.purple { background: var(--color-purple-secondary); }
.color-swatch.pink { background: var(--color-pink-secondary); }
.color-swatch.blue { background: var(--color-blue-primary); }

/* Service Tiles */
.service-tile {
    color: var(--color-text-primary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.service-tile h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.service-tile p {
    font-size: 0.8rem;
    opacity: 0.8;
}




.visual-element {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.gradient-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-purple-secondary), var(--color-pink-secondary));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--rgba-white-10);
    animation: float 3s ease-in-out infinite;
}

.shape-1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.shape-2 {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.shape-3 {
    width: 25px;
    height: 25px;
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

/* Stats Tile */
.stats-tile {
    color: var(--color-text-primary);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-purple-secondary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* AI Tile */
.ai-tile {
    color: var(--color-text-primary);
}

.ai-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}


.typography-sample {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.font-display {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.font-info {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Interactive Tile */
.interactive-tile {
    color: var(--color-text-primary);
}

.interactive-element {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.hover-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--rgba-white-20);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tech Tile */
.tech-tile {
    color: var(--color-text-primary);
}

.tech-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tech-icon {
    font-size: 1.5rem;
}

/* Vertical Tile */
.vertical-tile {
    color: var(--color-text-primary);
}

.vertical-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
}

.vertical-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.vertical-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.vertical-content p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.vertical-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vertical-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-purple-secondary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* New Tile Styles */
.abstract-visual {
    width: 100%;
    height: 100%;
    background: var(--gradient-abstract-1);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}


.metallic-object {
    width: 100%;
    height: 100%;
    background: var(--gradient-abstract-2);
    border-radius: 20px;
    transform: rotate(15deg);
}

.organic-shapes {
    width: 100%;
    height: 100%;
    background: var(--gradient-abstract-3);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.organic-shapes::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120%;
    height: 120%;
    background: var(--gradient-abstract-4);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.product-image {
    width: 100%;
    height: 100%;
    background: var(--gradient-abstract-5);
    border-radius: 10px;
    position: relative;
}

.car-outline {
    width: 100%;
    height: 100%;
    background: var(--gradient-abstract-6);
    border-radius: 15px;
    position: relative;
}

.large-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-m, .logo-a {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.logo-m {
    color: var(--color-blue-primary);
}

.logo-a {
    color: var(--color-pink-secondary);
}

.chat-interface {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.chat-text {
    color: var(--color-text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.gradient-bar {
    width: 80%;
    height: 4px;
    background: var(--gradient-rainbow);
    border-radius: 2px;
}

.letter-g {
    font-size: 6rem;
    font-weight: 300;
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1;
}

.ambient-text {
    font-size: 2rem;
    font-weight: 600;
    background: var(--gradient-brand-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.circle-rect {
    width: 60px;
    height: 40px;
    border: 3px solid var(--color-yellow);
    border-radius: 8px;
    position: relative;
    margin: 0 auto;
}

.circle-rect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--color-red);
    border-radius: 50%;
}

.letter-m {
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1;
}

.number-32 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-brand-quaternary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.smartwatch {
    width: 80px;
    height: 80px;
    background: var(--color-gray-700);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    border: 3px solid var(--color-gray-500);
}

.smartwatch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--color-black);
    border-radius: 50%;
}

.swirling-gradients {
    width: 100%;
    height: 100%;
    background: var(--gradient-abstract-7);
    border-radius: 50%;
    animation: swirl 8s ease-in-out infinite;
}

.smart-display {
    width: 100%;
    height: 100%;
    background: var(--gradient-abstract-8);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.display-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-600);
}

/* Animations */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.gradient-orb {
    width: 80px;
    height: 80px;
    background: var(--gradient-abstract-9);
    border-radius: 50%;
    margin: 0 auto;
    animation: pulse 3s ease-in-out infinite;
}

.abstract-pattern {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--color-purple-secondary),
        var(--color-purple-secondary) 10px,
        var(--color-pink-secondary) 10px,
        var(--color-pink-secondary) 20px
    );
    opacity: var(--opacity-60);
}

.color-swatch-display {
    width: 60px;
    height: 60px;
    background: var(--gradient-abstract-10);
    border-radius: 15px;
    margin: 0 auto;
}

.quencode-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quencode-logo-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.combined-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

.combined-content .swirling-gradients {
    flex: 1;
    height: 60%;
}

.combined-content .smart-display {
    flex: 1;
    height: 40%;
}

/* Hover Effects - Removed */


/* Modal Styles */
.tile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.tile-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rgba-black-80);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--color-gray-800);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--color-gray-850);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-body h2 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

/* Loading animation for form submission */
.loading {
    position: relative;
    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(--color-transparent);
    border-top: 2px solid var(--color-text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message animation */
.success-message {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Video Layout */
footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* Footer Video Column */
footer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Footer video container */
footer .relative.overflow-hidden video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer Container */
#footer-container {
    display: block;
    width: 100%;
    min-height: 350px;
    position: relative;
}

#footer-container footer {
    display: block;
    width: 100%;
}

/* Footer Content Column */
footer .relative.z-10 {
    background: var(--rgba-black-80);
    backdrop-filter: blur(10px);
}

/* Mobile Responsive Footer */
@media (max-width: 1024px) {
    footer .grid {
        grid-template-columns: 1fr;
    }
    
    footer .relative.z-10 {
        background: var(--rgba-black-90);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    .nav-link {
        text-decoration: underline;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-blue-primary);
    outline-offset: 2px;
}

/* Remove focus outline from links */
a:focus {
    outline: none;
    box-shadow: none;
}

/* Portfolio Page Specific Styles */
.portfolio-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.portfolio-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-portfolio-overlay);
    z-index: 2;
}

.portfolio-hero .content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portfolio-hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.portfolio-hero .gradient-text {
    background: var(--gradient-brand-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.portfolio-hero .subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--color-text-tertiary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-info-item {
    text-align: center;
}

.project-info-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-purple-primary);
    margin-bottom: 0.5rem;
}

.project-info-label {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Section Styling */
.portfolio-section {
    padding: 5rem 0;
}

.portfolio-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

.portfolio-section .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-tertiary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Challenge Cards */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.challenge-card {
    background: var(--gradient-portfolio-card);
    border: 1px solid var(--color-border-purple);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    border-color: var(--color-border-purple-hover);
    transform: translateY(-4px);
}

.challenge-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-purple-primary);
    margin-bottom: 1rem;
}

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

.challenge-description {
    color: var(--color-text-tertiary);
    line-height: 1.6;
}

/* Solution Sections */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.solution-item.reverse {
    direction: rtl;
}

.solution-item.reverse > * {
    direction: ltr;
}

.solution-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.solution-content p {
    font-size: 1.125rem;
    color: var(--color-text-tertiary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.solution-features {
    list-style: none;
    padding: 0;
}

.solution-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--color-text-tertiary);
}

.solution-features i {
    color: var(--color-purple-primary);
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.solution-visual {
    background: var(--gradient-portfolio-card);
    border: 1px solid var(--color-border-purple);
    border-radius: 1rem;
    padding: 2rem;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-visual i {
    font-size: 4rem;
    color: var(--color-text-primary);
}

/* Technology Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tech-card {
    background: var(--gradient-portfolio-card);
    border: 1px solid var(--color-border-purple);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--color-border-purple-hover);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 3rem;
    color: var(--color-purple-primary);
    margin-bottom: 1rem;
}

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

.tech-description {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

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

.result-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-purple-primary);
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.result-description {
    color: var(--color-text-muted);
}

.success-card {
    background: var(--gradient-portfolio-card);
    border: 1px solid var(--color-border-purple);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.success-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.success-card p {
    font-size: 1.125rem;
    color: var(--color-text-tertiary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.success-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.success-tag {
    background: var(--rgba-purple-20);
    color: var(--color-purple-light);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--rgba-purple-30);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Next Project Section */
.next-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.next-project-card {
    background: var(--gradient-portfolio-card);
    border: 1px solid var(--color-border-purple);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.next-project-card:hover {
    border-color: var(--color-border-purple-hover);
    transform: translateY(-4px);
    text-decoration: none;
}

.next-project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.next-project-card:hover h3 {
    color: var(--color-purple-primary);
}

.next-project-card p {
    color: var(--color-text-tertiary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.next-project-link {
    display: flex;
    align-items: center;
    color: var(--color-purple-primary);
    font-weight: 500;
}

.next-project-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.next-project-card:hover .next-project-link i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .solution-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solution-item.reverse {
        direction: ltr;
    }
    
    .challenge-grid,
    .tech-grid,
    .results-grid,
    .next-project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .success-tags {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .project-info {
        grid-template-columns: 1fr;
    }
    
    .portfolio-section {
        padding: 3rem 0;
    }
    
    .challenge-card,
    .tech-card,
    .next-project-card {
        padding: 1.5rem;
    }
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-black);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Footer Video Mask Canvas */
#footer-mask-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Footer video element - keep visible for canvas drawing */
#footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    object-fit: cover;
}

footer {
    position: relative;
}

/* FAQ Section Styles - Minimal custom CSS for functionality */
.faq-item.active .faq-icon.fa-plus::before {
    content: "\f068"; /* Change plus to minus when active */
}

/* Footer Logo White */
.footer-logo-pink {
    filter: brightness(0) invert(1);
}

/* Footer Logo Gradient - White to Grey */
.footer-logo-wrapper {
    position: relative;
    display: inline-block;
}

.footer-logo-gradient {
    filter: brightness(0) invert(1);
    display: block;
    mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(128, 128, 128, 0.6) 50%, rgba(64, 64, 64, 0.3) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(128, 128, 128, 0.6) 50%, rgba(64, 64, 64, 0.3) 100%);
    opacity: 1;
}



