/* BakuArt.az - Müasir Dizayn CSS */
/* Azərbaycan hərfləri üçün UTF-8 dəstəyi */

:root {
    /* Yeni Rəng Sxemi - Müasir Bənövşəyi Tema */
    --primary-color: #6140cd;        /* Əsas bənövşəyi */
    --primary-light: #7c5fd6;        /* Açıq bənövşəyi (gradient) */
    --bg-color: #12121a;             /* Full arxa fon */
    --bg-dark: #12121a;              /* Full arxa fon */
    --bg-secondary: #24242c;         /* Köməkçi tünd boz */
    --card-bg: #24242c;              /* Card arxa fonu */
    --text-color: #ffffff;
    --text-muted: #a0a0b0;
    --border-color: #2d2d3a;
    --shadow: rgba(97, 64, 205, 0.2);
    --hover-shadow: rgba(97, 64, 205, 0.4);
    --gradient: linear-gradient(135deg, #6140cd 0%, #7c5fd6 100%);
    --gradient-hover: linear-gradient(135deg, #7c5fd6 0%, #6140cd 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top */
.header-top {
    background: var(--gradient);
    color: white;
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.auth-links {
    display: flex;
    gap: 15px;
}

.auth-links a {
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.auth-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Navigation */
.main-nav {
    background: rgba(36, 36, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    display: inline-block;
    margin: 0 15px;
}

.nav-menu li:first-child {
    margin-left: 0;
}

.nav-menu li:last-child {
    margin-right: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-light);
    background: rgba(97, 64, 205, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--hover-shadow);
    background: var(--gradient-hover);
}

/* Slider Container */
.slider-container {
    position: relative;
    height: 800px;
    overflow: hidden;
    margin-bottom: 50px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide.slide-out {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 10s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1) translateX(0); }
    100% { transform: scale(1.1) translateX(-20px); }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    width: 90%;
    animation: fadeInUp 1s ease;
}

.slide-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease 0.3s both;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(97, 64, 205, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slider-btn:hover {
    background: rgba(97, 64, 205, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(97, 64, 205, 0.5);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Banner (kept for other pages) */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 50px;
}

.banner img,
.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    animation: fadeInUp 1s ease;
}

.banner-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-content p {
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

/* Video Logo - Sağ yuxarıda yumru forma (Banner üçün) */
.banner-video-logo {
    position: absolute;
    top: 180px;
    right: 350px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    background: rgba(97,64,205,0.2);
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(97,64,205,0.4);
    backdrop-filter: blur(10px);
}

.banner-video-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: none;
}

/* Video Logo - Slider üçün sağ tərəfdə yumru forma */
.slider-video-logo {
    position: absolute;
    top: 65%;
    right: 300px;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 5;
    background: rgba(97,64,205,0.2);
    border: 5px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 40px rgba(97,64,205,0.5);
    backdrop-filter: blur(10px);
    animation: floatAnimation 3s ease-in-out infinite;
}

.slider-video-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: none;
}

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

/* Section */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.card:hover::before {
    opacity: 0.1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--hover-shadow);
    border-color: var(--primary-color);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s;
}

.card-image iframe,
.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.card:hover .card-title {
    color: var(--primary-light);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.card-date,
.card-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--hover-shadow);
}

.btn-secondary {
    background: rgba(97, 64, 205, 0.2);
    color: var(--primary-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-center {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-color);
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.footer p {
    margin: 0;
    color: var(--text-muted);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-menu-toggle:hover {
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(36, 36, 44, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
        animation: fadeInDown 0.4s ease;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .slider-container {
        height: 500px;
    }

    .slider-video-logo {
        width: 150px;
        height: 150px;
        right: 20px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(97, 64, 205, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid;
    animation: slideInRight 0.4s ease;
}

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

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: #10b981;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(97, 64, 205, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

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

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--hover-shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--hover-shadow);
}

/* Image Preview */
.image-preview {
    max-width: 300px;
    max-height: 300px;
    margin-top: 15px;
    border-radius: 12px;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.image-preview.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Background Decoration */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(97,64,205,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124,95,214,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Services Carousel - Sağdan sola animasiya */
.services-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.services-carousel {
    display: flex;
    gap: 30px;
    animation: scrollLeft 30s linear infinite;
    width: fit-content;
}

.services-carousel:hover {
    animation-play-state: paused;
}

.services-carousel .card {
    flex: 0 0 350px;
    min-width: 350px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .services-carousel .card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}
