/* Java & J2EE Projects Page Styles */

/* Hero Section */
.project-hero {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.project-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.project-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    background: #f8f9fa;
    padding: 2rem 0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.2);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
    pointer-events: none;
}

/* Category Buttons */
.project-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #f39c12;
    color: #f39c12;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
}

.category-btn:hover,
.category-btn.active {
    background: #f39c12;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* Projects Section */
.projects-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.projects-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

/* Project Table Wrapper */
.project-table-wrapper {
    margin-bottom: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.project-table-wrapper:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Project Table */
.project-table {
    width: 100%;
    border-collapse: collapse;
}

.project-table-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-number {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 1rem;
}

/* Category Badges */
.project-category-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

.project-category-badge.big-data {
    background: rgba(255, 255, 255, 0.9);
    color: #3498db;
}

.project-category-badge.cloud {
    background: rgba(255, 255, 255, 0.9);
    color: #9b59b6;
}

.project-category-badge.network {
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
}

.project-category-badge.web {
    background: rgba(255, 255, 255, 0.9);
    color: #16a085;
}

.project-category-badge.iot {
    background: rgba(255, 255, 255, 0.9);
    color: #f39c12;
}

/* Table Cells */
.table-label {
    width: 150px;
    padding: 1.5rem;
    background: #f8f9fa;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    font-size: 1rem;
}

.table-content {
    padding: 1.5rem;
    color: #555;
    line-height: 1.8;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.98rem;
    text-align: justify;
}

.table-content strong {
    color: #2c3e50;
    font-size: 1.15rem;
}

/* Last row - no border */
.project-table tbody tr:last-child .table-label,
.project-table tbody tr:last-child .table-content {
    border-bottom: none;
}

/* Technology Badges */
.tech-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2rem;
    }

    .project-hero p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .project-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .category-btn {
        text-align: center;
    }

    .project-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .table-label {
        width: 100%;
        display: block;
    }

    .table-content {
        display: block;
        width: 100%;
    }

    .project-table {
        font-size: 0.9rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .project-hero {
        padding: 60px 0 40px;
    }

    .project-hero h1 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.9rem 2.5rem 0.9rem 1.2rem;
    }

    .table-label,
    .table-content {
        padding: 1rem;
    }
}

/* Pagination Info */
.pagination-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #555;
}

.pagination-info strong {
    color: #f39c12;
    font-weight: 700;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 45px;
    height: 45px;
    border: 2px solid #f39c12;
    background: white;
    color: #f39c12;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background: #f39c12;
    color: white;
    transform: scale(1.1);
}

.page-number.active {
    background: #f39c12;
    color: white;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
}

/* Print Styles */
@media print {
    .navbar,
    .search-section,
    .stats-section,
    .pagination-controls,
    .pagination-info,
    .cta {
        display: none;
    }

    .project-table-wrapper {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .project-table-header {
        background: #f39c12 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}