@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

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

body {
    font-family: "Syne", sans-serif;
    background-color: #f5f7fa;
    color: #333;
    overflow-x: hidden;
}

/* Landing Screen */
.landing-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #879bf5 0%, #2a5db5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 1s ease-in-out;
}

.landing-screen.hidden {
    transform: translateY(-100%);
}

.landing-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.landing-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.title-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: letterDrop 0.8s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.title-letter:nth-child(1) { animation-delay: 0.1s; }
.title-letter:nth-child(2) { animation-delay: 0.2s; }
.title-letter:nth-child(3) { animation-delay: 0.3s; }
.title-letter:nth-child(4) { animation-delay: 0.4s; }
.title-letter:nth-child(5) { animation-delay: 0.5s; }
.title-letter:nth-child(6) { animation-delay: 0.6s; }
.title-space { width: 20px; }
.title-letter:nth-child(8) { animation-delay: 0.7s; }
.title-letter:nth-child(9) { animation-delay: 0.8s; }
.title-letter:nth-child(10) { animation-delay: 0.9s; }
.title-letter:nth-child(11) { animation-delay: 1.0s; }
.title-letter:nth-child(12) { animation-delay: 1.1s; }

@keyframes letterDrop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 1.5s;
}

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

.landing-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 2s;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    width: 150px;
    transition: transform 0.3s, background 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.feature i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature p {
    font-size: 1rem;
    font-weight: 500;
}

.start-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Syne", sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 2rem;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeInUp 1s forwards 2.5s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.scroll-hint {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0;
    animation: bounce 2s infinite 3s, fadeIn 1s forwards 3s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding: 2rem;
    animation: slideIn 0.8s ease-out;
}

.main-content.hidden {
    display: none;
}

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

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.board-title {
    color: #333;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #879bf5 0%, #2a5db5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.add-task-btn {
    background: linear-gradient(135deg, #879bf5 0%, #2a5db5 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.add-task-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.board {
    min-height: 80vh;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 1.5rem;
    gap: 30px;
}

.list {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px;
    font-size: 1.5rem;
    width: 40%;
    min-height: 700px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.list-header h2 {
    color: #333;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-count {
    background: #f0f0f0;
    color: #666;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.card {
    background-color: white;
    padding: 1.2rem;
    margin-bottom: 15px;
    border-radius: 12px;
    cursor: grab;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
    animation: cardAppear 0.5s ease-out;
}

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

.card-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card-content p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.tag.design { background: #e4e3e3; color: #1976d2; }
.tag.docs { background: #e4e3e3; color: #7b1fa2; }
.tag.bug { background: #e4e3e3; color: #d32f2f; }
.tag.backend { background: #e4e3e3; color: #388e3c; }
.tag.test { background: #e4e3e3; color: #f57c00; }
.tag.database { background: #e4e3e3; color: #689f38; }

/* Better dragging style */
.card.dragging {
    opacity: 0.95;
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    background-color: #f8f9fa;
    border: 2px dashed #667eea;
}

/* Visual feedback when dragging over a list */
.list.drag-over {
    background-color: #f0f4ff;
    border: 2px dashed #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

/* Status-based colors */
.card.status-todo {
    border-left: 5px solid #ff6b6b;
}

.card.status-progress {
    border-left: 5px solid #ffff02;
}

.card.status-done {
    border-left: 5px solid #09ff22;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.tags-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag.design{
    font-size: 1rem;
}
.tag.bug{
    font-size: 1rem;
}
.tag.backend{
    font-size: 1rem;
}
.tag.test{
    font-size: 1rem;
}
.tag.docs{
    font-size: 1rem;
}


.tag-option {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    background: white;
}

.tag-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tag-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 2rem;
}

.cancel-btn,
.submit-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-family: "Syne", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.submit-btn {
    background: linear-gradient(135deg, #879bf5 0%, #2a5db5 100%);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
.foot {
    font-family: "Syne", sans-serif;
    margin-top: 2.5rem;
    padding: 2rem;
    text-align: center;
    color: #292929;
    font-weight: bold;
    font-size: 1rem;
    border-top: 2px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 1024px) {
    .board {
        flex-wrap: wrap;
    }
    
    .list {
        width: 48%;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5rem;
    }
    
    .landing-features {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .feature {
        width: 80%;
    }
    
    .board-title {
        font-size: 2.5rem;
    }
    
    .board {
        flex-direction: column;
    }
    
    .list {
        width: 90%;
        margin-bottom: 2rem;
    }
    
    .board-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}