/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 10px;
    border: 2px solid rgba(10, 14, 39, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00cc6a 0%, #00ff88 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(10, 14, 39, 0.95);
    padding: 20px 0;
    border-bottom: 2px solid #00ff88;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.logo h1 span {
    color: #ffffff;
}

nav {
    display: flex;
    gap: 15px;
}

.about-btn,
.admin-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #0a0e27;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.about-btn {
    background: linear-gradient(135deg, #4a9eff 0%, #3a7ecc 100%);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.about-btn:hover,
.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.about-btn:hover {
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.5);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(26, 31, 58, 0.5) 100%);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: #b0b0b0;
}

/* Projects Section */
.projects {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: rgba(26, 31, 58, 0.8);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #00ff88;
}

.project-info p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid #00ff88;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 255, 136, 0.3);
}

.admin-panel {
    max-width: 800px;
    max-height: 90vh;
}

.close, .close-admin, .close-about {
    color: #00ff88;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover, .close-admin:hover, .close-about:hover {
    color: #ffffff;
}

.modal-content h2 {
    color: #00ff88;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="password"],
input[type="url"],
textarea {
    padding: 12px;
    border: 2px solid #00ff88;
    border-radius: 5px;
    background: rgba(26, 31, 58, 0.8);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

button[type="submit"] {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #0a0e27;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Admin Panel Styles */
.admin-section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 10px;
    border: 1px solid #00ff88;
}

.admin-section h3 {
    color: #00ff88;
    margin-bottom: 20px;
}

.admin-projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(10, 14, 39, 0.8);
    border-radius: 8px;
    border: 1px solid #00ff88;
}

.admin-project-info {
    flex: 1;
}

.admin-project-info h4 {
    color: #00ff88;
    margin-bottom: 5px;
}

.admin-project-info p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.delete-btn {
    background: linear-gradient(135deg, #ff0055 0%, #cc0044 100%);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.5);
}

.logout-btn {
    background: linear-gradient(135deg, #ff0055 0%, #cc0044 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.5);
}

/* Footer */
footer {
    background: rgba(10, 14, 39, 0.95);
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #00ff88;
    margin-top: 60px;
}

footer p {
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Made with Bob */


/* About Section */
.about-content {
    max-width: 900px;
}

.about-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.about-image-container {
    flex-shrink: 0;
}

.about-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #00ff88;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.about-text {
    flex: 1;
    color: #e0e0e0;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 15px;
}

/* Responsive about section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image {
        width: 150px;
        height: 150px;
    }
}

.edit-about-btn {
    background: linear-gradient(135deg, #4a9eff 0%, #3a7ecc 100%);
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.edit-about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.5);
}

/* Drag and Drop Styles */
.admin-project-item {
    cursor: move;
    user-select: none;
    transition: all 0.3s ease;
}

.admin-project-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.admin-project-item.drag-over {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

.admin-project-item::before {
    content: '⋮⋮';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ff88;
    font-size: 1.2rem;
    opacity: 0.5;
}

.admin-project-item {
    position: relative;
    padding-left: 35px;
}

/* Edit and Cancel Buttons */
.edit-btn,
.cancel-edit-btn {
    background: linear-gradient(135deg, #4a9eff 0%, #3a7ecc 100%);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.edit-btn:hover,
.cancel-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.5);
}

#cancelEditBtn {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    margin-left: 10px;
}

#cancelEditBtn:hover {
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.5);
}

/* Project Actions Container */
.project-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Form Buttons Container */
form button[type="submit"],
form button[type="button"] {
    display: inline-block;
    width: auto;
    min-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .about-btn,
    .admin-btn {
        width: 100%;
    }
    
    .project-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .edit-btn,
    .delete-btn {
        width: 100%;
        margin-left: 0;
    }
}


/* Like Button Styles */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card-content {
    flex: 1;
    cursor: pointer;
}

.project-like-section {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.like-btn {
    background: rgba(26, 31, 58, 0.6);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #ffffff;
}

.like-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    transform: scale(1.05);
}

.like-btn.liked {
    background: rgba(255, 0, 85, 0.15);
    border-color: #ff0055;
}

.like-btn.liked:hover {
    background: rgba(255, 0, 85, 0.25);
    border-color: #ff0055;
}

.heart-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.like-btn:hover .heart-icon {
    transform: scale(1.2);
}

.like-btn.liked .heart-icon {
    animation: heartBeat 0.5s ease;
}

.like-count {
    font-weight: bold;
    color: #00ff88;
    min-width: 20px;
    text-align: center;
}

.like-btn.liked .like-count {
    color: #ff0055;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.25);
    }
}

/* Responsive adjustments for like button */
@media (max-width: 768px) {
    .like-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .heart-icon {
        font-size: 1.1rem;
    }
}
