/* Project Detail Pages */
.project-detail {
    padding: 120px 0 80px;
    background-color: #f8fafc;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.project-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.project-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.project-description {
    flex: 1;
}

.project-description h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.project-description p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-description ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

.project-description li {
    margin-bottom: 10px;
    color: var(--gray-color);
}

.project-description li::marker {
    color: var(--primary-color);
}

/* Calculator Styles */
.calculator-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.calculator {
    background-color: #1e293b;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 350px;
}

.display {
    margin-bottom: 20px;
}

.display input {
    width: 100%;
    padding: 20px;
    font-size: 2rem;
    text-align: right;
    background-color: #0f172a;
    color: white;
    border: none;
    border-radius: 10px;
    outline: none;
    caret-color: white;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
}

.btn {
    padding: 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(0);
}

.number {
    background-color: #334155;
    color: white;
}

.number:hover {
    background-color: #475569;
}

.operator {
    background-color: #f97316;
    color: white;
}

.operator:hover {
    background-color: #ea580c;
}

.equals {
    background-color: var(--primary-color);
    color: white;
    grid-row: span 2;
}

.equals:hover {
    background-color: #1d4ed8;
}

.clear {
    background-color: #ef4444;
    color: white;
}

.clear:hover {
    background-color: #dc2626;
}

.zero {
    grid-column: span 2;
}

/* To-Do List Styles */
.todo-container {
    flex: 1;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.todo-header {
    margin-bottom: 20px;
}

.todo-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.todo-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.todo-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.todo-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.add-btn {
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
}

.todo-list {
    list-style: none;
}

.todo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease-out;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-text {
    flex: 1;
    margin: 0 15px;
    font-size: 1.1rem;
}

.completed .todo-text {
    text-decoration: line-through;
    color: var(--gray-color);
}

.delete-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.delete-btn:hover {
    background-color: #dc2626;
    transform: translateY(-3px);
}

.check-btn {
    width: 25px;
    height: 25px;
    border: 2px solid var(--gray-color);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.completed .check-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.completed .check-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Motivation App Styles */
.motivation-container {
    flex: 1;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.quote-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quote-author {
    font-size: 1.2rem;
    font-weight: 600;
    align-self: flex-end;
}

.new-quote-btn {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.new-quote-btn:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Movie App Styles */
.movie-container {
    flex: 1;
}

.movie-search {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.movie-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.movie-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-btn {
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
}

.movie-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.movie-poster {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray-color);
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.movie-year {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Project Navigation */
.project-navigation {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-content {
        flex-direction: column;
    }
    
    .calculator {
        max-width: 100%;
    }
    
    .quote-box {
        padding: 20px;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .project-detail {
        padding: 100px 0 60px;
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .todo-form {
        flex-direction: column;
    }
    
    .movie-search {
        flex-direction: column;
    }
    
    .buttons {
        grid-gap: 10px;
    }
    
    .btn {
        padding: 15px;
        font-size: 1rem;
    }
}

/* Chat App Styles */
.chat-container {
    flex: 1;
}

.chat-app {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.message.received {
    background-color: #f1f5f9;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.sent {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-sender {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.message.sent .message-sender {
    color: #bfdbfe;
}

.message-content {
    font-size: 1rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    text-align: right;
    margin-top: 8px;
}

.message.received .message-time {
    color: var(--gray-color);
}

.message.sent .message-time {
    color: #dbeafe;
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.send-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.send-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.send-btn i {
    font-size: 1.2rem;
}

/* Typing indicator */
.typing-indicator {
    align-self: flex-start;
}

.typing-dots {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--gray-color);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
