/* ----------------------------- */
/* PORTFOLIO HERO SECTION        */
/* ----------------------------- */
.portfolio-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(90, 174, 224, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(90, 174, 224, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #5aaee0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ----------------------------- */
/* PORTFOLIO SECTION             */
/* ----------------------------- */
.portfolio-section { 
    padding: 100px 50px;
    background-color: var(--brand-black);
}

/* Filter Buttons */
.filter-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 50px; 
    flex-wrap: wrap; 
}

.filter-btn { 
    background: transparent; 
    border: 2px solid rgba(255, 255, 255, 0.15); 
    color: var(--text-secondary); 
    padding: 12px 28px; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--brand-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.filter-btn:hover { 
    color: var(--brand-white);
    border-color: var(--brand-green);
}

.filter-btn:hover::before {
    width: 150%;
    height: 150%;
}

.filter-btn.active { 
    background: linear-gradient(135deg, var(--brand-green) 0%, #3d8bc2 100%);
    color: var(--brand-black); 
    border-color: transparent;
    font-weight: 700;
}

/* Portfolio Grid */
.portfolio-grid { 
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Premium Portfolio Item */
.portfolio-item { 
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
}

.portfolio-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Portfolio Overlay */
.portfolio-overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); 
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-overlay-content {
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.portfolio-item:hover .portfolio-overlay-content {
    transform: translateY(0);
}

/* Category Tag */
.category-tag {
    display: inline-block;
    background: var(--brand-green);
    color: var(--brand-black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-white);
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* View Project Button */
.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--brand-white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-project-btn:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-black);
}

.view-project-btn i {
    transition: transform 0.3s ease;
}

.view-project-btn:hover i {
    transform: translateX(5px);
}

/* CTA Section */
.portfolio-cta {
    margin-top: 60px;
}

.cta-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--brand-green) 0%, #3d8bc2 100%);
    color: var(--brand-black);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(90, 174, 224, 0.3);
}

.cta-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(90, 174, 224, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-green) 100%);
}

.cta-btn-large i {
    transition: transform 0.3s ease;
}

.cta-btn-large:hover i {
    transform: translateX(5px);
}

/* ----------------------------- */
/* PORTFOLIO STATS SECTION       */
/* ----------------------------- */
.portfolio-stats {
    padding: 80px 50px;
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 1 !important;
    visibility: visible !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-box {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(90, 174, 224, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #5aaee0 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ----------------------------- */
/* PROJECT MODAL                 */
/* ----------------------------- */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.project-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--brand-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--brand-black);
}

.modal-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-white);
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ----------------------------- */
/* RESPONSIVENESS                */
/* ----------------------------- */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-hero h1 {
        font-size: 3.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .portfolio-hero {
        padding-top: 130px;
    }
    
    .portfolio-hero h1 {
        font-size: 3rem;
    }
    
    .portfolio-section {
        padding: 80px 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-hero p {
        font-size: 1.1rem;
    }
    
    .portfolio-section {
        padding: 60px 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .filter-buttons {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-stats {
        padding: 60px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-box {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-hero p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .portfolio-overlay {
        padding: 20px;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.3rem;
    }
    
    .category-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .view-project-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .cta-btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 30px 25px;
    }
    
    .modal-body h2 {
        font-size: 1.5rem;
    }
}

/* ----------------------------- */
/* VISIBILITY FIXES              */
/* ----------------------------- */
.portfolio-grid,
.portfolio-item,
.portfolio-stats,
.stats-grid,
.stat-box {
    opacity: 1 !important;
    visibility: visible !important;
}

.portfolio-grid,
.stats-grid {
    display: grid !important;
}

.portfolio-item,
.stat-box {
    display: block !important;
}

.portfolio-section,
.portfolio-stats {
    opacity: 1 !important;
    visibility: visible !important;
}

/* FOOTER STYLES                 */
/* ============================= */
.main-footer {
    background-color: #0a0a0a;
    padding: 80px 80px 30px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 174, 224, 0.3), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section {
    position: relative;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--brand-green);
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links-row:last-child {
    margin-bottom: 0;
}

.footer-links-row a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links-row a:hover {
    color: var(--brand-green);
}

.social-section .footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.social-icons-row {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.social-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.social-icon-box:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    transform: translateY(-3px);
}

.back-to-top {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--brand-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--brand-green);
}

@media (max-width: 991px) {
    .main-footer {
        padding: 60px 40px 25px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .social-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 50px 20px 25px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .social-section {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }
    
    .footer-legal {
        gap: 20px;
    }
}
