/* =====================================================
   WARSZTAT ONLINE - MAIN STYLESHEET
   ===================================================== */

/* Base Fonts & Reset */
* { font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* =====================================================
   THEME COLORS & GRADIENTS
   ===================================================== */
.gradient-bg {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   FLOATING CONTACT BUTTON
   ===================================================== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

/* =====================================================
   CALCULATOR STYLES
   ===================================================== */
.option-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.option-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.option-card.selected {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2563eb;
}
input:checked + .slider:before {
    transform: translateX(24px);
}

/* =====================================================
   DROPDOWN NAVIGATION
   ===================================================== */
.dropdown-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.glass-dropdown {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) rgba(255, 255, 255, 0.05);
}

/* =====================================================
   CARD HOVER EFFECTS
   ===================================================== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.2);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
    50% { box-shadow: 0 0 40px rgba(56, 189, 248, 0.8), 0 0 60px rgba(34, 211, 238, 0.4); }
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* =====================================================
   PROJECT CARDS
   ===================================================== */
.project-frame {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.project-frame .browser-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
}
.project-frame .browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.project-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* =====================================================
   COUNTERS & STATS
   ===================================================== */
.counter {
    font-size: 3rem;
    font-weight: 800;
}

/* =====================================================
   FORM INPUTS
   ===================================================== */
.form-input {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.form-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    outline: none;
}

/* =====================================================
   PARTICLES BACKGROUND
   ===================================================== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* =====================================================
   SCROLL INDICATOR
   ===================================================== */
.scroll-indicator {
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* =====================================================
   BADGE
   ===================================================== */
.badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-scroll {
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* =====================================================
   TOOL TAG
   ===================================================== */
.tool-tag {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #bae6fd;
}

/* =====================================================
   PROJECT MODAL
   ===================================================== */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}
.project-modal.show {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list i {
    color: #38bdf8;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}
.close-modal:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

/* =====================================================
   LIGHTBOX (Gallery)
   ===================================================== */
#gallery-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
}

/* =====================================================
   SUCCESS MODAL
   ===================================================== */
.success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.success-modal.show {
    display: flex;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes checkmarkPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* =====================================================
   TECH BADGE
   ===================================================== */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* =====================================================
   COUNTER POSITION (FOOTER)
   ===================================================== */
#wo-counter {
    /* Styles controlled by JavaScript */
}

/* =====================================================
   RESPONSIVE - MOBILE OPTIMIZATIONS
   ===================================================== */
@media (max-width: 768px) {
    html { font-size: 70%; }
    .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
    .counter { font-size: 2rem; }
    .project-preview { height: 150px; }
}
