/* ============================================
   SERVICES PAGE - PREMIUM MILKY DESIGN
   FINAL VERSION - NO FADE FIXED
   ============================================ */

/* --- GLOBAL --- */
:root {
    --primary: #3b82f6;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

/* --- TEXT GRADIENTS --- */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* 3D Visuals Container */
.hero-visuals {
    position: relative;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.float-el {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.el-phone {
    width: 280px;
    height: 550px;
    border-radius: 2.5rem;
    right: 15%;
    top: 5%;
    z-index: 2;
    transform: rotateY(-12deg) rotateX(5deg);
    overflow: hidden;
    border: 8px solid #1e293b;
}

.el-card-analytics {
    width: 240px;
    height: 150px;
    left: 5%;
    top: 15%;
    z-index: 3;
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    transform: rotateY(5deg) rotateX(-3deg);
}

.el-code-snippet {
    width: 320px;
    height: 110px;
    left: 10%;
    bottom: 12%;
    z-index: 1;
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    color: #06b6d4;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    transform: rotateY(8deg) rotateX(2deg);
}

.el-badge {
    position: absolute;
    right: 10%;
    bottom: 20%;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 99px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    z-index: 4;
    transform: rotateZ(-5deg);
}

/* Mobile Hero Cards */
.mobile-hero {
    margin-top: 3rem;
}

.mobile-feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* --- FILTER BUTTONS --- */
.filter-buttons {
    position: ce;
    z-index: 10;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* --- SERVICE CARDS (GLASSMORPHISM) --- */
.service-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(59, 130, 246, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.service-card.mobile {
    padding: 1.5rem;
}

.service-icon-wrapper {
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tech-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
}

.service-card:hover .tech-badge {
    background: rgba(59, 130, 246, 0.15);
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* --- SWIPER CUSTOMIZATION --- */
.services-swiper-container {
    padding: 2rem 0;
    position: relative;
}

.servicesSwiper {
    padding: 2rem 3rem;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem;
    color: #3b82f6;
    font-weight: bold;
}

.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    opacity: 0.3;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* --- SERVICE DETAIL SECTIONS --- */
.service-detail-section {
    padding: 6rem 0;
}

.service-detail-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.btn-primary-lg {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.4);
}

.btn-secondary-lg {
    padding: 1rem 2rem;
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-lg:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
}

.service-detail-visual img {
    border-radius: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-section:hover .service-detail-visual img {
    transform: scale(1.02);
}

/* --- CASE STUDIES --- */
.case-study-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.case-study-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.case-study-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: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-study-card:hover .case-study-overlay {
    opacity: 1;
}

.case-study-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #3b82f6;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.case-study-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3e8ff;
    color: #7c3aed;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tag-small {
    padding: 0.25rem 0.6rem;
    background: #f1f5f9;
    border-radius: 99px;
    font-size: 0.75rem;
}

/* --- FAQ --- */
.faq-item {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.faq-question:hover {
    background: rgba(59, 130, 246, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #3b82f6;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #64748b;
    line-height: 1.7;
}

/* --- SERVICE MODAL --- */
.service-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.service-modal.active {
    opacity: 1;
    pointer-events: all;
}

.service-modal-content {
    background: white;
    border-radius: 2rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-modal.active .service-modal-content {
    transform: scale(1);
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.service-modal-content::-webkit-scrollbar {
    width: 8px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

/* --- FAB BUTTONS --- */
.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.fab-phone {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fab-btn:hover .fab-tooltip {
    opacity: 1;
}

/* --- HEADER STYLES --- */
.nav-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #475569;
    border-radius: 99px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-item:hover, .nav-item.active {
    color: #595CFF;
    background-color: #eff6ff;
}

/* Dropdown Menu */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8fafc;
}

.dropdown-item .icon-bg {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
/* --- MODAL --- */
#project-specs-modal.active {
    opacity: 1;
    visibility: visible;
}

#project-specs-modal.active .modal-card {
    transform: scale(1);
}

/* Mobile Drawer Links */
.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s;
}
.mobile-link:hover, .mobile-link.active {
    background: #eff6ff;
    color: #595CFF;
}

/* --- SMART HEADER ANIMATION --- */
header {
    /* Obezbeđujemo glatku tranziciju za pomeranje */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s !important;
}

/* Klasa koja sakriva header */
header.header-hidden {
    transform: translateY(-200%); /* Pomeri ga skroz gore van ekrana */
}

/* Opciono: Kada je skrolovan, dodajemo jači blur ili senku ako želite */
header.is-scrolled .bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.95); /* Malo manje providan kad se skroluje */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}