@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

:root {
    --primary-color: #1a1a1a;
    --accent-color: #5ca5b8;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Custom Lottie-style Spinner Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    width: 60px;
    height: 60px;
    position: relative;
    animation: rotateSpinner 2s linear infinite;
}

.spinner-dot {
    width: 14px;
    height: 14px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    animation: scaleDot 1.4s ease-in-out infinite alternate;
}

.spinner-dot:nth-child(1) {
    top: 0;
    left: 23px;
    animation-delay: 0s;
}

.spinner-dot:nth-child(2) {
    top: 23px;
    right: 0;
    animation-delay: 0.2s;
}

.spinner-dot:nth-child(3) {
    bottom: 0;
    left: 23px;
    animation-delay: 0.4s;
}

.spinner-dot:nth-child(4) {
    top: 23px;
    left: 0;
    animation-delay: 0.6s;
}

@keyframes rotateSpinner {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleDot {
    0% {
        transform: scale(0.3);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 0;
}

header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: top 0.3s ease;
}

header.header-hidden {
    top: -100px;
}

.logo {
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    align-items: center;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .contact-text {
        display: none;
    }

    .contact-info {
        gap: 15px;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 95vh;
    min-height: 550px;
    background: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/background/background image1.png');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/background/background image2.png');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/background/background image3.png');
    background-size: cover;
    background-position: center;
}

.slide:nth-child(4) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('/background/background image4.png');
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.script-badge {
    font-family: 'Caveat', cursive;
    font-size: 3.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;

    /* Maviyə çalınan və #c5a059 qızılı tonuna keçən gradient */
    background: linear-gradient(135deg, #5ca5b8 0%, #c5a059 100%);

    /* Mətni gradient şəklində kəsmək üçün */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Kölgə effekti */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.slide h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.slide p {
    font-size: 1.25rem;
    max-width: 750px;
    margin-bottom: 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(92, 165, 184, 0.4);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Grid Cards */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eaeaea;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.card-img {
    height: 310px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card-img i {
    font-size: 3rem;
    color: #bbb;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 2;
}

.card-body {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.card-body p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.card-footer {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-footer a {
    text-decoration: none;
    color: var(--accent-color);
}

/* Image Zoom Modal Styles */
#imageModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modalImage {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.1s ease;
    cursor: grab;
}

#modalImage:active {
    cursor: grabbing;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--accent-color);
}

.zoom-controls {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.zoom-btn {
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Load More Button Container */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background-color: var(--accent-color);
}

/* Testimonials Section Styles */
.testimonials-section {
    background-color: #fff;
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid #eaeaea;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonial */
.testimonial-card {
    background: var(--bg-color);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stars {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.comment-text {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.5;
    flex-grow: 1;
}

.client-info h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.8rem;
    color: #777;
}

/* Defolt (Kompüter) görünüşü */
.testimonial-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.testi-nav-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testi-nav-btn:hover {
    background: var(--accent-color);
    transform: scale(1.08);
}

.testi-indicator {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* Yalnız Mobil Ekranlar Üçün (576px-dən kiçik) */
@media screen and (max-width: 576px) {

    /* Konteynerə sabit minimum hündürlük veririk ki, düymələr heç vaxt aşağı-yuxarı oynamasın */
    .testimonials-grid {
        display: block !important;
        position: relative;
        width: 100%;
        min-height: 250px;
        /* Ən uzun rəyin sığması üçün sabit yer */
    }

    /* Bütün kartlar defolt olaraq tamamilə gizlənir */
    .testimonial-card {
        display: none !important;
        width: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Yalnız aktiv olan kart görünür */
    .testimonial-card.active-mobile {
        display: flex !important;
        flex-direction: column;
        opacity: 1;
        animation: fadeInCard 0.3s ease;
    }

    /* Düymələr həmişə eyni yerdə sabit qalır */
    .testimonial-nav {
        display: flex !important;
        margin-top: 20px;
    }
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Ayrı-ayrı Bölmələr (Section) Üçün Modern Dizayn --- */
.custom-about-section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background-color: #faf9f6;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.custom-about-section:nth-child(even) {
    background-color: #ffffff;
}

.custom-about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.custom-about-section:nth-child(odd) .custom-about-container {
    flex-direction: row-reverse;
}

.custom-about-content {
    flex: 1;
    min-width: 280px;
}

.custom-about-badge {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.custom-about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.custom-about-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

.custom-about-visual {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.custom-about-card {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.2);
    position: relative;
    transition: transform 0.4s ease;
}

.custom-about-card:hover {
    transform: translateY(-5px);
}

.custom-about-card i {
    font-size: 3rem;
    color: #c5a059;
    margin-bottom: 20px;
    display: block;
}

/* Modern Footer Styles */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 50px 20px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.footer-divider {
    color: #555;
}

/* Mobil ekranlar üçün (768px-dən kiçik) */
@media (max-width: 768px) {
    .footer-bottom p {
        flex-direction: column;
        /* Alt-alta düzür */
        gap: 6px;
    }

    .footer-divider {
        display: none;
        /* Mobildə | xəttini gizlədir */
    }
}

/* Mobil Uyğunluq (Responsive Fixes) */
@media screen and (max-width: 768px) {
    header {
        padding: 0.6rem 1rem;
    }

    .contact-info .contact-text {
        display: none;
    }

    .contact-info {
        gap: 15px;
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 100vh;
        height: 100dvh;
    }

    .slide h1 {
        font-size: 2.2rem;
    }

    .script-badge {
        font-size: 2.4rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .prev {
        left: 15px;
    }

    .next {
        right: 15px;
    }

    .footer-content {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .custom-about-container,
    .custom-about-section:nth-child(odd) .custom-about-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .custom-about-visual {
        width: 100%;
    }

    .custom-about-card {
        padding: 30px 20px;
    }
}