/* === KOLOROWA PALETA === */
:root {
    --primary: #FF6B6B;
    --primary-dark: #E05555;
    --secondary: #9D7ED0;
    --secondary-dark: #8A6BB8;
    --accent: #06D6A0;
    --accent-dark: #05B888;
    --yellow: #FFD166;
    --yellow-dark: #E6B850;
    --blue: #118AB2;
    --blue-dark: #0D7799;
    --light: #F9F7F3;
    --dark: #222222;
    --gray: #444444;
}

/* === TYPOGRAPHY === */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray);
    line-height: 1.7;
    padding-top: 76px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

.logo-font {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
}

/* === UTILITY CLASSES === */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #FFF9F5 0%, #F5F0FF 100%) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-yellow { color: var(--yellow) !important; }

.bg-primary-light { background-color: rgba(255, 107, 107, 0.1) !important; }
.bg-secondary-light { background-color: rgba(157, 126, 208, 0.1) !important; }
.bg-accent-light { background-color: rgba(6, 214, 160, 0.1) !important; }
.bg-yellow-light { background-color: rgba(255, 209, 102, 0.1) !important; }

/* === BUTTONS === */
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3) !important;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.btn-accent {
    background: linear-gradient(90deg, var(--accent), var(--blue));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(6, 214, 160, 0.3) !important;
    background: linear-gradient(90deg, var(--blue), var(--accent));
}

.btn-outline-primary:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

/* === SECTION TITLES === */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* === NAVBAR === */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    font-weight: 500;
    color: var(--gray) !important;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: 50px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(255, 107, 107, 0.1);
}

.nav-link.active {
    font-weight: 600;
}

/* === HERO === */
.hero {
    padding-top: 50px;
    background: linear-gradient(135deg, #FFF9F5 0%, #F5F0FF 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, rgba(157, 126, 208, 0.05) 50%, transparent 70%);
    z-index: 0;
}

/* === FEATURE ICONS === */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* === PROCESS STEPS === */
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* === GALLERY === */
.gallery-item {
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(34, 34, 34, 0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-date {
    position: absolute;
    left: -30px;
    top: 0;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content {
    margin-left: 30px;
}

/* === ACCORDION === */
.accordion-button:not(.collapsed) {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    border-color: var(--primary);
}

/* === COLOR PICKER === */
.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--dark);
    transform: scale(1.05);
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
}

.social-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero {
        padding-top: 30px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-link {
        margin: 2px 0;
        text-align: center;
    }
}

/* === FORM STYLES === */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
}

/* === TABLE STYLES === */
.table-hover tbody tr:hover {
    background-color: rgba(255, 107, 107, 0.05);
}

/* === ALERT STYLES === */
.alert-info {
    background-color: rgba(6, 214, 160, 0.1);
    border-color: rgba(6, 214, 160, 0.2);
    color: #055d47;
}

/* === FOOTER RAINBOW HOVER FIX === */

/* Resetujemy domyślne style dla linków w footerze */
footer a {
    text-decoration: none !important;
}

/* Tęczowy efekt dla tekstu linków */
footer .list-unstyled a {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
    padding: 2px 0;
}

/* Tęczowe podkreślenie */
footer .list-unstyled a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, 
        #FF6B6B, 
        #FFD166, 
        #06D6A0, 
        #118AB2, 
        #9D7ED0);
    transition: width 0.3s ease;
    border-radius: 1px;
}

/* Hover efekt - tęczowy tekst */
footer .list-unstyled a:hover {
    color: transparent !important;
    background: linear-gradient(90deg, 
        #FF6B6B, 
        #FFD166, 
        #06D6A0, 
        #118AB2, 
        #9D7ED0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-text 1.5s linear infinite;
    transform: translateX(5px);
}

/* Pokazujemy podkreślenie na hover */
footer .list-unstyled a:hover::after {
    width: 100%;
}

/* Animacja tęczowego tekstu */
@keyframes rainbow-text {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Social icons */
footer .social-links a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: linear-gradient(135deg, 
        #FF6B6B, 
        #FFD166, 
        #06D6A0, 
        #118AB2, 
        #9D7ED0) !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Logo w footerze */
footer .footer-logo {
    display: inline-block;
    background: linear-gradient(90deg, 
        #FF6B6B, 
        #FFD166, 
        #06D6A0, 
        #118AB2, 
        #9D7ED0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-rainbow 3s linear infinite;
}

@keyframes logo-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}
        
        .spinner-container {
            text-align: center;
        }
        
        .spinner-border {
            width: 3rem;
            height: 3rem;
        }
        
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s, transform 0.6s;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        #main-content {
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }