/* ==========================================
   INDEX.CSS - Početna Stranica
   ========================================== */

/* ==========================================
   HERO SECTION
   ========================================== */

/* Animated Gradient Background */
.hero-gradient {
    background: #2980B9;
    background: -webkit-linear-gradient(to right, #FFFFFF, #6DD5FA, #2980B9);
    background: linear-gradient(to right, #FFFFFF, #6DD5FA, #2980B9);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Circles (Decorative) */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-primary:hover {
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.5);
    transform: translateY(-3px);
}

.btn-hero-secondary {
    background: white;
    color: #1e293b;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-secondary:hover {
    background: #f8fafc;
    border-color: #4F46E5;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    border-color: #e0e7ff;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-link {
    color: #4F46E5;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: #06B6D4;
}

/* ==========================================
   PORTFOLIO CARDS
   ========================================== */

.portfolio-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    background: white;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-link {
    transform: translateY(0);
}

.portfolio-link:hover {
    background: #4F46E5;
    color: white;
}

.tag {
    background: #eff6ff;
    color: #4F46E5;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================
   TESTIMONIALS - BENTO GRID
   ========================================== */

.testimonial-card-bento {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card-bento:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
}

/* Testimonials - Mobile Cards */
.testimonial-card-mobile {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    height: 100%;
}

/* Swiper Customization */
.testimonialSwiper {
    padding: 1rem 0 3rem 0;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #06B6D4;
    width: 32px;
    border-radius: 6px;
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #4F46E5;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #4F46E5;
}

.faq-icon {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* ==========================================
   SMOOTH SCROLL
   ========================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================
   LOADING ANIMATION (Optional)
   ========================================== */

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

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}