/**
 * Sonder - Prototyping and 3D Printing Platform
 * Custom Styles with Dark Mode Support
 */

/* ========================================
   CSS Variables & Theme
======================================== */
:root {
    /* Modern Vibrant Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --secondary-dark: #db2777;
    --accent-color: #14b8a6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* Modern Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
    
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-glass: rgba(0, 0, 0, 0.7);
    
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --text-tertiary: #808080;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Enhanced Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 40px -10px rgba(99, 102, 241, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #020617;
    --bg-tertiary: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.7);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    --border-color: #1e293b;
    --border-light: #334155;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    --shadow-colored: 0 10px 40px -10px rgba(99, 102, 241, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Urban Tribe brand font */
@font-face {
    font-family: 'Urban Tribe';
    src: url('../fonts/urban_tribe/URBAN TRIBE.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.brand-text {
    font-family: 'Urban Tribe', 'Impact', 'Arial Black', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 80px;
}

/* ========================================
   Desktop Navigation
======================================== */
.desktop-nav {
    background-color: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.desktop-nav .navbar-brand {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
}

.desktop-nav .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

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

.desktop-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.desktop-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ========================================
   Mobile App Bar
======================================== */
.mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

/* ========================================
   Mobile Bottom Navigation
======================================== */
.mobile-bottom-nav {
    position: fixed;
bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
background-color: var(--bg-primary) !important;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.mobile-bottom-nav .nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-item.active {
    font-weight: 600;
}

/* ========================================
   Cards & Components
======================================== */
.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}
.card-text {
    word-wrap: break-word;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card {
    word-break: break-word;
}

.card .card-title {
    color: var(--text-primary);
    font-weight: 700;
}
.card:hover::before {
    opacity: 1;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
    flex-shrink: 0;
}

.project-card:hover .card-img-top {
    transform: scale(1.1);
}

.project-card {
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 0.05;
}

.project-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card .project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.project-card .project-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 4em;
    flex-grow: 1;
}

.project-card .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: auto;
}

.project-card .project-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
}

/* ========================================
   Buttons
======================================== */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

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

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   Forms
======================================== */
.form-control,
.form-select {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
}

.banner-3d-services {
  position: relative;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.banner-3d-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.banner-3d-services .container {
  position: relative;
  z-index: 2;
}

/* ========================================
   Search & Filters
======================================== */
.search-filter-section {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
}

.search-box input {
padding-left: 2.5rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

/* ... */
.banner-3d-services {
    position: relative;
background-image: url('../images/3d-services-banner.jpg');
    background-size: cover;
    background-position: center;
}

.banner-3d-services::before {
    content: '';
    position: absolute;
top: 0;
left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-3d-services .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Testimonials
======================================== */
.testimonial-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

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

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-position {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ========================================
   FAQ
======================================== */
.faq-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-secondary);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ========================================
   Footer
======================================== */
.desktop-footer {
    background-color: #111827 !important;
    margin-top: 4rem;
}

.desktop-footer h5,
.desktop-footer h6 {
    color: white;
}

.desktop-footer a:hover {
    color: var(--primary-color) !important;
}

/* ========================================
   Responsive Design
======================================== */

/* Mobile First - Base styles above */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .mobile-appbar,
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .desktop-footer {
        display: block !important;
    }
    
    .main-content {
        padding-bottom: 0;
    }
}

/* Hide desktop nav on mobile */
@media (max-width: 991px) {
    .desktop-nav .navbar-collapse {
        background-color: var(--bg-primary);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }
    
    .desktop-footer {
        display: none !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: 12px;
}

/* ========================================
   Loading States
======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
/* ========================================
   Print Styles
======================================== */
@media print {
    .mobile-bottom-nav,
    .desktop-nav,
    .mobile-appbar,
    .desktop-footer {
        display: none !important;
    }
}

.banner-prototyping-services {
    position: relative;
    background-image: url('../images/prototyping-services-banner.png');
    background-size: cover;
    background-position: center;
}

.banner-prototyping-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-prototyping-services .container {
    position: relative;
    z-index: 2;
}
.cta-section.bg-image {
    background-image: url('../images/cta-background.png');
    background-size: cover;
    background-position: center;
    color: white;
    z-index: 1;
    padding: 6rem 0 4rem;
}
.cta-section.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.banner-design-services {
    position: relative;
    background-image: url('../images/design-services-banner.png');
    background-size: cover;
    background-position: center;
}

.banner-design-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-design-services .container {
    position: relative;
    z-index: 2;
}
.cta-section.bg-image {
    background-image: url('../images/cta-background.png');
    background-size: cover;
    background-position: center;
    color: white;
    z-index: 1;
    padding: 6rem 0 4rem;
}
.cta-section.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.banner-mesoscale-production {
    position: relative;
    background-image: url('../images/mesoscale-production-banner.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.banner-mesoscale-production::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.banner-mesoscale-production .container {
    position: relative;
    z-index: 2;
}
.cta-section.bg-image {
    background-image: url('../images/cta-background.png');
    background-size: cover;
    background-position: center;
    color: white;
    z-index: 1;
    padding: 6rem 0 4rem;
}
.cta-section.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
#profile-sidebar-dropdown .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
}

.profile-nav .list-group-item {
    display: flex;
    align-items: center;
}
.rotating-logo-video {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
}
