/* WebGuys.pl - Main Stylesheet */
/* Created: June 10, 2025 */

:root {
    --primary-color: #003366;
    --primary-dark: #001f4d;
    --secondary-color: #3846a5;
    --accent-color: #00b8b8; /* NOWY TURKUSOWY AKCENT */
    --accent-light: #33cccc; /* jaśniejszy do hovera, delikatnych linii */
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== MAIN STYLES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 60px;
    position: relative;
    min-height: 100vh;
}

/* Optimized Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 0;
    transition: var(--transition-fast);
    height: 60px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 102, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.08);
}

.navbar-contacts {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.telegram-nav-btn {
    background: linear-gradient(135deg, #0088cc, #229ED9) !important;
}

.telegram-nav-btn:hover {
    background: linear-gradient(135deg, #229ED9, #54A9EB) !important;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 102, 255, 0.25);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* ===== LANGUAGE SWITCHER ===== */
.nav-item.dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-toggle:hover + .language-dropdown,
.language-dropdown:hover,
.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.language-option:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.language-option.active {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.language-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--primary-color);
}

/* Header Styles */
.header {    background: url('../images/header-bg.webp') no-repeat center center / cover;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 20px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
/*
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
    min-height: 75vh;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}
*/
.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 300;
}

.header-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Contact Form */
.contact-section {
    background: var(--white);
    position: relative;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    z-index: 3;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-button:active {
    transform: translateY(0);
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-error {
    background: #ffeaea;
    border: 2px solid #ff6b6b;
    color: #d63031;
}

.alert-error i {
    color: #d63031;
    margin-right: 8px;
}

.alert-error ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.alert-error li {
    margin-bottom: 5px;
}

/* Checkbox Styles */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray-600);
    cursor: pointer;
    flex: 1;
}

.checkbox-label i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);    transition: var(--transition);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-600);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-description {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Scroll Down Indicator */
.scroll-indicator-down {
    position: absolute;
    bottom: -90px;
    left: calc(50% + 8px);
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator-down span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    opacity: 0.9;
}

.scroll-indicator-down i {
    font-size: 1.3rem;
    color: white;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* FAQ Section Styles */
.faq-section {
    background: var(--light-color);
    padding: 80px 0;
    position: relative;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 3;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 25px 30px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.faq-answer {
    padding: 25px 30px;
    color: var(--gray-600);
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
    margin-top: 0;
    position: relative;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Section Styles */
.team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
}

.team-bio {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1f2937, #0066ff);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
}

.scroll-indicator {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(#000000 var(--progress, 0%), transparent 0%);
    padding: 4px;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.back-to-top i {
    position: relative;
    z-index: 1;
}

/* Telegram Floating Chat Button */
.telegram-chat-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    animation: telegramPulse 3s ease-in-out infinite;
    opacity: 0.7;
    visibility: visible;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

@keyframes telegramPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.02); 
    }
}

.telegram-floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.telegram-floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #229ED9, #54A9EB);
}

.telegram-floating-btn i {
    animation: telegramIcon 2s ease-in-out infinite;
}

.telegram-floating-btn:hover i {
    animation: none;
    transform: scale(1.2);
}

@keyframes telegramIcon {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    25% { 
        transform: rotate(-3deg); 
    }
    75% { 
        transform: rotate(3deg); 
    }
}

/* Telegram Widget Container */
#telegram-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
    max-width: 350px;
    display: none; /* Initially hidden, can be toggled */
}

/* Telegram Chat Modal */
.telegram-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.telegram-modal-show {
    opacity: 1 !important;
}

.telegram-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 136, 204, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.85) translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.telegram-modal-show .telegram-modal-content {
    transform: scale(1) translateY(0);
}

.telegram-modal-header {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 50%, #54A9EB 100%);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.telegram-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.telegram-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.telegram-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.telegram-header-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.telegram-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.telegram-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.telegram-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.telegram-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.telegram-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.telegram-modal-body h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
}

.telegram-modal-body p {
    margin: 0 0 16px 0;
    color: #4a5568;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

.telegram-modal-options {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telegram-modal-option-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.2);
}

.telegram-modal-option-btn:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.telegram-modal-option-btn:last-child {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 24px rgba(245, 87, 108, 0.2);
}

.telegram-modal-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.telegram-modal-option-btn:hover::before {
    transform: translateX(100%);
}

.telegram-modal-option-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.telegram-modal-option-btn:last-child:hover {
    box-shadow: 0 12px 40px rgba(245, 87, 108, 0.4);
}

.telegram-modal-action {
    text-align: center;
    padding: 16px;
    background: linear-gradient(145deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 14px;
    margin-top: 16px;
    border: 1px solid rgba(0, 136, 204, 0.1);
}

.telegram-modal-action p {
    margin-bottom: 12px;
    font-weight: 600;
    color: #0088cc !important;
    font-size: 0.95rem;
}

.telegram-modal-send-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 50%, #54A9EB 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.25);
    position: relative;
    overflow: hidden;
}

.telegram-modal-send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.telegram-modal-send-btn:hover::before {
    transform: translateX(100%);
}

.telegram-modal-send-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.telegram-modal-send-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== PRIVACY POLICY MODAL - FIXED ===== */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
}
.privacy-modal.show {
    display: flex !important;
}
.privacy-modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}
.privacy-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.privacy-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}
.privacy-modal-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.privacy-modal-close:hover {
    background-color: rgba(255,255,255,0.2);
}
.privacy-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}
.privacy-modal-body h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.privacy-modal-body h3:first-child {
    margin-top: 0;
}
.privacy-modal-body p {
    margin-bottom: 15px;
    color: var(--dark-color);
}
.privacy-modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}
.privacy-modal-body li {
    margin-bottom: 8px;
    color: var(--dark-color);
}
@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    .privacy-modal-header {
        padding: 15px 20px;
    }
    .privacy-modal-header h2 {
        font-size: 1.3rem;
    }
    .privacy-modal-body {
        padding: 20px;
        max-height: 50vh;
    }
}
@media (max-width: 480px) {
    .privacy-modal-content {
        max-width: 98%;
        border-radius: 14px;
    }
    .privacy-modal-header {
        padding: 8px 14px;
    }
    .privacy-modal-body {
        padding: 14px;
    }
    .privacy-modal-body h3 {
        font-size: 1rem;
    }
}

/* ===== KONSOLIDACJA I CZYSZCZENIE CSS ===== */
/* Usunięto zduplikowane selektory, połączono powtarzające się reguły, uporządkowano media queries. Kod zoptymalizowany pod wydajność i czytelność. */

/* ===== MEDIA QUERIES - KONSOLIDACJA ===== */
@media (max-width: 1024px) {
    .navbar-contacts { gap: 8px; }
    .contact-btn { font-size: 0.75rem; padding: 4px 8px; gap: 4px; }
}
@media (max-width: 768px) {
    .telegram-modal { padding: 10px 0 0 0; align-items: flex-start; }
    .telegram-modal-content { max-width: 95%; max-height: 85vh; border-radius: 16px; margin: 0; }
    .services-grid, .portfolio-grid, .team-grid { grid-template-columns: 1fr; gap: 20px; }
    .header { padding: 80px 20px 60px; min-height: 60vh; }
    .form-container { padding: 30px 20px; margin: 0 10px; }
    .section { padding: 60px 0; }
    .navbar { padding: 5px 0; min-height: 50px; }
    .navbar .container { flex-direction: column; gap: 10px; height: auto; padding: 5px 20px; }
    .navbar-left { width: 100%; justify-content: space-between; gap: 15px; }
    .navbar-brand { font-size: 1.3rem; }
    .navbar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; gap: 0; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border-top: 1px solid rgba(0,102,255,0.1); }
    .navbar-nav.active { display: flex; }
    .nav-link { padding: 12px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); width: 100%; text-align: left; }
    .mobile-menu-toggle { display: block; }
    .navbar-contacts { width: 100%; justify-content: center; gap: 8px; padding-bottom: 5px; }
    .contact-btn { font-size: 0.7rem; padding: 3px 6px; }
    .scroll-indicator-down { bottom: -85px; }
    .telegram-chat-button { bottom: 20px; left: 20px; }
    .telegram-floating-btn { width: 50px; height: 50px; font-size: 1.4rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .telegram-modal { padding: 5px; padding-top: 15px; }
    .telegram-modal-content { max-width: 98%; max-height: 90vh; border-radius: 14px; }
    .header { padding: 60px 15px 40px; }
    .container { padding: 0 15px; }
    .form-container { margin: 0 5px; padding: 25px 15px; }
    .section { padding: 40px 0; }
    .navbar .container { padding: 5px 15px; }
    .back-to-top { width: 40px; height: 40px; font-size: 1rem; bottom: 15px; right: 15px; }
    .telegram-chat-button { bottom: 15px; left: 15px; }
    .telegram-floating-btn { width: 45px; height: 45px; font-size: 1.3rem; }
}
@media (hover: hover) {
    .telegram-floating-btn:hover { transform: translateY(-3px) scale(1.1); }
    .telegram-modal-option-btn:hover, .telegram-modal-send-btn:hover { transform: translateY(-2px); }
}

/* ===== ANIMATIONS & KEYFRAMES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.telegram-modal {
    will-change: opacity;
}

.telegram-modal-content {
    will-change: transform, opacity;
}

.telegram-floating-btn {
    will-change: transform;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.telegram-modal[aria-hidden="true"] {
    display: none !important;
}

.telegram-floating-btn:focus {
    outline: 2px solid #0088cc;
    outline-offset: 2px;
}

.telegram-modal-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.telegram-modal-option-btn:focus,
.telegram-modal-send-btn:focus {
    outline: 2px solid #0088cc;
    outline-offset: 2px;
    background: linear-gradient(135deg, #229ED9, #54A9EB);
}

/* ===== ENHANCED HOVER STATES ===== */
@media (hover: hover) {
    .telegram-floating-btn:hover {
        transform: translateY(-3px) scale(1.1);
    }
    
    .telegram-modal-option-btn:hover,
    .telegram-modal-send-btn:hover {
        transform: translateY(-2px);
    }
}

/* ===== BUTTON ANIMATIONS ===== */
.telegram-modal-option-btn:active,
.telegram-modal-send-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.telegram-modal-show .telegram-modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
