/* Portfolio Page Modern Design */

/* Portfolio Hero Section Modern */
.portfolio-hero-modern {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.portfolio-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(175, 244, 43, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(175, 244, 43, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, rgba(175, 244, 43, 0.06) 0%, transparent 100%);
    animation: heroPortfolioFlow 18s ease-in-out infinite;
}

@keyframes heroPortfolioFlow {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
    33% { 
        opacity: 0.8; 
        transform: scale(1.05) rotate(120deg); 
    }
    66% { 
        opacity: 0.9; 
        transform: scale(0.95) rotate(240deg); 
    }
}

.portfolio-hero-content {
    position: relative;
    z-index: 3;
    margin-bottom: 40px;
}

.hero-badge-portfolio {
    background: rgba(175, 244, 43, 0.15);
    border: 2px solid rgba(175, 244, 43, 0.3);
    backdrop-filter: blur(15px);
    color: var(--primary-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.hero-badge-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(175, 244, 43, 0.3), transparent);
    transition: left 0.8s;
}

.hero-badge-portfolio:hover::before {
    left: 100%;
}

.hero-title-portfolio {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.hero-title-portfolio .title-line-portfolio {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 30%, #ffffff 70%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.hero-title-portfolio .title-line-portfolio:last-child::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 200px;
    height: 6px;
    background: linear-gradient(45deg, var(--primary-color), #7bdb00, var(--primary-color));
    border-radius: 3px;
    animation: expandPortfolioLine 2.5s ease-out 1s both;
    z-index: 10;
}

@keyframes expandPortfolioLine {
    from { width: 0; opacity: 0; }
    to { width: 200px; opacity: 1; }
}

.hero-subtitle-portfolio {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-description-portfolio {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 50px;
}

.hero-actions-portfolio {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-primary-portfolio {
    background: linear-gradient(45deg, var(--primary-color), #7bdb00);
    color: var(--black-color);
    padding: 20px 50px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-portfolio:hover::before {
    left: 100%;
}

.btn-primary-portfolio:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(175, 244, 43, 0.4);
    color: var(--black-color);
}

.btn-secondary-portfolio {
    background: transparent;
    color: white;
    padding: 20px 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary-portfolio:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Portfolio Hero Visual */
.portfolio-hero-visual {
    position: relative;
    z-index: 1;
}

/* Portfolio Stats Modern - Removed */

/* Floating Tech Icons - Removed for better responsive design */

@keyframes floatPortfolioIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Featured Project Preview - Removed */

/* Hero Section (Legacy) */
.portfolio-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    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(175, 244, 43, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(175, 244, 43, 0.05) 0%, transparent 50%);
    animation: heroGradient 8s ease-in-out infinite;
}

@keyframes heroGradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(175, 244, 43, 0.1), transparent);
    transition: left 0.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(175, 244, 43, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Filter Section */
.portfolio-filters {
    background: var(--bg-primary);
    padding: 60px 0;
    position: relative;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #7bdb00);
    transition: left 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--black-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(175, 244, 43, 0.3);
}

.filter-btn i {
    margin-right: 8px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.portfolio-item {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(45deg, var(--bg-primary), var(--bg-secondary));
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(175, 244, 43, 0.9), rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.portfolio-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--black-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.portfolio-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-category {
    background: linear-gradient(45deg, var(--primary-color), #7bdb00);
    color: var(--black-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-category {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(175, 244, 43, 0.4);
}

.portfolio-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.portfolio-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-title a:hover {
    color: var(--primary-color);
}

.portfolio-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-client {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.portfolio-date {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--black-color);
}

/* Loading Animation */
.portfolio-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(175, 244, 43, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Empty State */
.portfolio-empty {
    text-align: center;
    padding: 100px 20px;
    display: none;
}

.empty-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

.empty-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.empty-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* CTA Section Enhancement */
.portfolio-cta {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.cta-container {
    background: linear-gradient(135deg, rgba(175, 244, 43, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(175, 244, 43, 0.1) 0%, transparent 70%);
    animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    background: linear-gradient(45deg, var(--primary-color), #7bdb00);
    color: var(--black-color);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(175, 244, 43, 0.4);
    color: var(--black-color);
}

.cta-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-btn-outline:hover {
    background: white;
    color: var(--black-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .portfolio-content {
        padding: 25px;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-container {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        padding: 15px 35px;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .portfolio-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .portfolio-title {
        font-size: 1.3rem;
    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .portfolio-tech {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-up {
    animation: slideUp 0.6s ease;
}

.scale-in {
    animation: scaleIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Custom Scrollbar */
.portfolio-content::-webkit-scrollbar {
    width: 6px;
}

.portfolio-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.portfolio-content::-webkit-scrollbar-thumb:hover {
    background: #7bdb00;
} 

/* Responsive Design for Portfolio Hero */
@media (max-width: 1200px) {
    .hero-title-portfolio {
        font-size: clamp(2.5rem, 6vw, 5rem);
        margin-bottom: 30px;
    }
    

}

@media (max-width: 991px) {
    .portfolio-hero-modern {
        min-height: auto;
        padding: 80px 0;
    }
    
    .portfolio-hero-content {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .hero-title-portfolio {
        font-size: clamp(2rem, 5vw, 4rem);
        margin-bottom: 25px;
    }
    
    .hero-title-portfolio .title-line-portfolio:last-child::after {
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
    }
    
    .hero-description-portfolio {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-actions-portfolio {
        justify-content: center;
        gap: 20px;
    }
    
    .btn-primary-portfolio,
    .btn-secondary-portfolio {
        padding: 18px 40px;
        font-size: 14px;
    }
    

}

@media (max-width: 768px) {
    .portfolio-hero-modern {
        padding: 60px 0;
    }
    
    .hero-title-portfolio {
        font-size: clamp(1.8rem, 4vw, 3rem);
        margin-bottom: 20px;
    }
    
    .hero-subtitle-portfolio {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .hero-description-portfolio {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-actions-portfolio {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary-portfolio,
    .btn-secondary-portfolio {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 16px 30px;
    }
}

@media (max-width: 576px) {
    .portfolio-hero-modern {
        padding: 40px 0;
    }
    
    .hero-badge-portfolio {
        padding: 10px 25px;
        font-size: 12px;
        margin-bottom: 30px;
    }
    
    .hero-title-portfolio {
        font-size: clamp(1.5rem, 3.5vw, 2.5rem);
        margin-bottom: 15px;
    }
    
    .hero-title-portfolio .title-line-portfolio {
        margin-bottom: 10px;
    }
    
    .hero-title-portfolio .title-line-portfolio:last-child::after {
        width: 100px;
        height: 4px;
    }
    
    .hero-subtitle-portfolio {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .hero-description-portfolio {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .btn-primary-portfolio,
    .btn-secondary-portfolio {
        padding: 14px 25px;
        font-size: 13px;
    }
}

/* Fix for overlapping elements */
.portfolio-hero-modern .row {
    align-items: stretch;
}

.portfolio-hero-modern .col-lg-6:first-child {
    display: flex;
    align-items: center;
}

.portfolio-hero-modern .col-lg-6:last-child {
    display: flex;
    align-items: center;
}

/* Ensure proper spacing and no overflow */
.portfolio-hero-visual {
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.featured-preview-portfolio {
    position: relative;
    z-index: 1;
}

/* Remove floating animation that might cause overlap */
@keyframes floatPortfolioIcon {
    /* Removed - no longer used */
} 

/* Button Click Feedback for Smooth Scroll */
.btn-clicked {
    transform: scale(0.95) !important;
    transition: transform 0.3s ease !important;
}

/* Smooth scrolling styles */
html {
    scroll-behavior: smooth;
} 