/* Custom CSS for NUSHIN Website */

:root {
    --primary-color: #DC143C;        /* NUSHIN Kırmızı */
    --secondary-color: #FFD700;       /* Altın/Sarı */
    --success-color: #28A745;
    --info-color: #17A2B8;
    --warning-color: #FFD700;
    --danger-color: #DC3545;
    --light-color: #F8F9FA;
    --dark-color: #343A40;
    --nushin-red: #DC143C;
    --nushin-dark-red: #B91C3C;
    --nushin-light-red: #E53E3E;
    --nushin-gold: #FFD700;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

/* Smooth scrolling with navbar offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Navbar yüksekliği için offset */
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* NUSHIN Logo Styling */
.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo-letter {
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-brand:hover .logo-letter:nth-child(odd) {
    transform: scale(1.1) rotate(-2deg);
}

.navbar-brand:hover .logo-letter:nth-child(even) {
    transform: scale(1.1) rotate(2deg);
}

/* Global viewport fix */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* NUSHIN brand colors - primary red theme */
.logo-letter:nth-child(1) { color: #DC143C !important; } /* N - NUSHIN Red */
.logo-letter:nth-child(2) { color: #FFD700 !important; } /* U - Gold */
.logo-letter:nth-child(3) { color: #DC143C !important; } /* S - NUSHIN Red */
.logo-letter:nth-child(4) { color: #FFD700 !important; } /* H - Gold */
.logo-letter:nth-child(5) { color: #DC143C !important; } /* I - NUSHIN Red */
.logo-letter:nth-child(6) { color: #FFD700 !important; } /* N - Gold */

/* Navbar call button special styling */
.navbar .btn-primary {
    background: linear-gradient(45deg, var(--nushin-red), var(--nushin-light-red));
    border: none;
    color: #ffffff !important;
}

.navbar .btn-primary:hover {
    background: linear-gradient(45deg, var(--nushin-dark-red), var(--nushin-red)) !important;
    color: #ffffff !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.navbar .btn-primary:focus,
.navbar .btn-primary:active {
    background: linear-gradient(45deg, var(--nushin-dark-red), var(--nushin-red)) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--nushin-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--nushin-red);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Navbar Overlay Style */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Video */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    /* Ensure smooth playback */
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    /* Optimize for performance */
    will-change: transform;
    pointer-events: none; /* Prevent interaction with video */
}

/* Background Images with Fade Effect (Fallback) */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none; /* Hidden by default, shown if video fails */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-text .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-text .fs-5 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Hero Buttons */
.hero-buttons {
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-btn {
    max-width: 240px;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.hero-btn.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-btn.btn-primary:hover {
    background-color: var(--nushin-dark-red);
    border-color: var(--nushin-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.hero-btn.btn-outline-light {
    color: white;
    border-color: white;
    background-color: transparent;
}

.hero-btn.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(220, 20, 60, 0.3));
    z-index: 2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-text {
        padding: 20px 0;
    }
    
    /* Mobile video optimization */
    .hero-video {
        /* On mobile, prioritize performance over perfect video quality */
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px !important;
        max-width: 300px;
    }
    
    .hero-btn {
        width: 100%;
        max-width: none;
        padding: 12px 25px;
    }
    
    .hero-text h1 {
        margin-bottom: 1rem;
    }
    
    .hero-text .lead {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .hero-text .fs-5 {
        margin-bottom: 2rem;
        font-size: 1rem;
    }
}

/* Show image background on very small screens or low-end devices */
@media (max-width: 480px) {
    .hero-video-background {
        display: none;
    }
    
    .hero-background {
        display: block !important;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .lead {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-text .fs-5 {
        font-size: 0.9rem;
    }
}

/* Remove old hero styles */

/* Markets Section */
.markets-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.markets-slider {
    display: flex;
    animation: slideMarkets 40s linear infinite;
    width: max-content;
}

.market-logo-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 90px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    flex-shrink: 0;
}

@keyframes slideMarkets {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.markets-slider:hover {
    animation-play-state: paused;
}

.market-logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.6s ease;
}

.market-logo-card:hover::before {
    left: 100%;
}

.market-logo-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(220, 20, 60, 0.15);
}

.market-logo {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.9);
    transition: all 0.3s ease;
}

.market-logo-card:hover .market-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Gradient fade effects on sides */
.markets-container::before,
.markets-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.markets-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.markets-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

/* Markets animation on scroll - remove old staggered animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for markets slider */
@media (max-width: 768px) {
    .markets-slider {
        animation-duration: 15s;
    }
    
    .market-logo-card {
        width: 130px;
        height: 75px;
        margin-right: 25px;
        padding: 20px;
    }
    
    .market-logo {
        max-width: 90px;
        max-height: 40px;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none !important;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.card-img-top-container {
    height: 250px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem 0.375rem 0 0;
    position: relative;
    padding: 15px;
}

.product-placeholder {
    background: #ffffff;
}

.product-emoji {
    font-size: 4rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.product-card:hover .product-emoji {
    transform: scale(1.2);
}

.card-img-top {
    width: 80%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Hero placeholder */
.hero-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DC143C 0%, #FFD700 50%, #DC143C 100%);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--nushin-red), var(--nushin-light-red));
    border: none;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
    background: linear-gradient(45deg, var(--nushin-dark-red), var(--nushin-red)) !important;
    color: #ffffff !important;
    border-color: var(--nushin-dark-red) !important;
}

.btn-outline-primary {
    border: 2px solid var(--nushin-red);
    color: var(--nushin-red);
}

.btn-outline-primary:hover {
    background: var(--nushin-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

/* Contact Section */
.contact-info {
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background-color: var(--light-color);
    transform: translateY(-5px);
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--nushin-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1d23 100%);
}

footer .text-light-emphasis {
    color: #e9ecef !important;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--nushin-red) !important;
    transform: translateX(5px);
}

footer h5.text-light {
    color: #ffffff !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .display-2 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .card-img-top-container {
        height: 150px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E4ED8;
}

/* Print styles */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--nushin-red);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color) !important;
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
}

/* 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;
    }
}

/* Product Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--nushin-dark-red));
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-body .img-fluid {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.product-details h6 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.product-details ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-details ul li:last-child {
    border-bottom: none;
}

.product-details ul li strong {
    color: var(--dark-color);
    min-width: 120px;
}

.modal-footer {
    border-top: none;
    padding: 1rem 2rem 2rem;
}

.modal-footer .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
}

/* Enhanced Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.15) !important;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
    border-radius: 0;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem 1rem;
}

.product-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-card .btn {
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.product-card .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .product-details {
        padding: 1rem;
    }
    
    .product-details ul li {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .product-details ul li strong {
        min-width: auto;
        margin-bottom: 0.25rem;
    }
}

/* About Section - Background Letter Styling */
#about .display-1 {
    font-size: 12rem !important;
    font-weight: 900 !important;
    color: rgba(245, 199, 77, 0.08) !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    line-height: 0.8;
    margin: 0 !important;
    text-align: center;
    transition: all 0.4s ease;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 50px rgba(245, 199, 77, 0.1);
}

#about .card:hover .display-1 {
    color: rgba(245, 199, 77, 0.15) !important;
    text-shadow: 0 0 60px rgba(245, 199, 77, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
}

#about .card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

#about .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(245, 199, 77, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

#about .card:hover::before {
    opacity: 1;
}

#about .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 199, 77, 0.2);
}

#about .card-body {
    position: relative;
    z-index: 10;
    padding: 2.5rem 2rem;
    background: transparent;
}

#about .h4 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 11;
}

#about .text-muted {
    position: relative;
    z-index: 11;
    line-height: 1.7;
    color: #6c757d;
}

/* Responsive adjustments for About Section */
@media (max-width: 992px) {
    #about .display-1 {
        font-size: 10rem !important;
    }
    
    #about .card {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    #about .display-1 {
        font-size: 8rem !important;
    }
    
    #about .card {
        min-height: 220px;
    }
    
    #about .card-body {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    #about .display-1 {
        font-size: 6rem !important;
    }
    
    #about .card {
        min-height: 200px;
    }
    
    #about .card-body {
        padding: 1.5rem 1rem;
    }
}

/* AI Functions Section */
#ai-functions {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--nushin-dark-red) 100%);
    position: relative;
    overflow: hidden;
}

#ai-functions::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="circuit" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="rgba(255,255,255,0.1)"/><line x1="0" y1="5" x2="10" y2="5" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><line x1="5" y1="0" x2="5" y2="10" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
}

#ai-functions .container {
    position: relative;
    z-index: 2;
}

.ai-icon {
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.preference-selector .form-check {
    margin-bottom: 0.75rem;
}

.preference-selector .form-check-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(248, 249, 250, 0.1);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 50px;
}

.preference-selector .form-check-label:hover {
    background: rgba(248, 249, 250, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.preference-selector .form-check-input:checked + .form-check-label {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
    font-weight: bold;
}

.preference-selector .form-check-input {
    margin: 0;
    position: absolute;
    opacity: 0;
}

.recommendation-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recommendation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ai-score .progress {
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.1);
}

.ai-score .progress-bar {
    border-radius: 50px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* AI Recommendation Cards */
.recommendation-card .card-img-top {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Responsive adjustments for AI section */
@media (max-width: 768px) {
    .preference-selector .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    .preference-selector .form-check-label {
        padding: 0.5rem 0.75rem;
        min-height: 40px;
        font-size: 0.9rem;
    }
    
    .ai-icon .fa-4x {
        font-size: 2.5rem !important;
    }
}

/* AI Animation Effects */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

/* AI Loading Animation */
.ai-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
