/* ========================================
   PORTFOLIO PAGE STYLES
   ======================================== */

/* Navigation Active State - Portfolio Specific */
.nav-links a.active {
    color: #2563eb !important;
    font-weight: 600;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
}

/* Logo styling will inherit from hero-images.css */

/* Portfolio Hero Section - Colorful Enhancement */
.portfolio-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 140px 0 80px; /* Increased top padding for larger header */
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.portfolio-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: none !important;
    -webkit-text-fill-color: white !important;
}

.portfolio-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio Stats - Centered */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
}

/* Portfolio Section - Matching Main Page Background */
.portfolio-section {
    padding: 80px 0;
    background-color: #ffffff;
}



/* Portfolio Table Styles */
.portfolio-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 2rem;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', Arial, sans-serif;
}

.portfolio-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.portfolio-table th {
    padding: 1.5rem 2rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.portfolio-table th i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.portfolio-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.portfolio-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
}

.portfolio-table tbody tr:last-child {
    border-bottom: none;
}

.portfolio-table td {
    padding: 1.2rem 2rem;
    vertical-align: middle;
}

/* Domain Links */
.domain-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
}

.domain-link:hover {
    color: #1d4ed8;
    transform: translateX(5px);
}

.domain-link::before {
    content: '🌐';
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Category Text - No Colors */
.category-badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    display: inline-block;
}

/* Portfolio Table Responsive */
@media (max-width: 768px) {
    .portfolio-table-container {
        margin: 1rem -1rem 0;
        border-radius: 0;
    }
    
    .portfolio-table th,
    .portfolio-table td {
        padding: 1rem;
    }
    
    .portfolio-table th {
        font-size: 1rem;
    }
    
    .domain-link {
        font-size: 0.95rem;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-table th,
    .portfolio-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .domain-link::before {
        display: none;
    }
    
    .domain-link {
        font-size: 0.9rem;
    }
}

/* Portfolio Filters - Matching Main Page Button Style */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-item.hidden {
    display: none;
}

/* Portfolio Image Container */
.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .view-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.portfolio-overlay .view-btn:hover {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* Portfolio Content */
.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.portfolio-category {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.portfolio-date {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* 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);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.modal-body p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.detail-value {
    color: #64748b;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* CTA Section - Matching Main Page Light Theme */
.portfolio-cta {
    background: #f1f5f9;
    color: #1e293b;
    padding: 80px 0;
    text-align: center;
}

.portfolio-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.portfolio-cta p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

/* Responsive Design for Portfolio */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 100px 0 60px;
    }
    
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
    
    .portfolio-cta h2 {
        font-size: 2rem;
    }
    
    .portfolio-cta p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-hero .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    /* Mobile header consistency */
    nav.container {
        min-height: 100px;
    }
}

/* Additional Styles for Modal Content */
.project-details {
    max-width: 100%;
}

.project-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.project-header h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-image {
    margin-bottom: 1.5rem;
}

.project-content h3 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.project-description p {
    color: #64748b;
    line-height: 1.6;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.5rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.project-features li i {
    color: #10b981;
    font-size: 0.875rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* CTA Section Styles - Matching Main Page */
.cta-section {
    background: #f1f5f9;
    color: #1e293b;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.cta-content p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    font-size: 1rem;
    padding: 1rem 2rem;
}

/* Fade in animation for portfolio items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    /* Ensure portfolio page follows same mobile nav behavior as main site */
    .nav-links {
        display: none;
    }
    
    /* Header height consistency on mobile */
    nav.container {
        min-height: 120px; /* Smaller on mobile but consistent */
    }
    
    /* Portfolio page specific mobile adjustments */
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
        justify-content: center;
    }
    
    .cta-content h2,
    .portfolio-cta h2 {
        font-size: 2rem;
    }
    
    .cta-content p,
    .portfolio-cta p {
        font-size: 1.125rem;
    }
}