/* Portfolio Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #151525 50%, #1a1a2e 100%);
    color: #e0e0e0;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-block-size: 60vh;
    display: flex;
    align-items: center;
}

.portfolio-hero-bg {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    pointer-events: none;
}

.portfolio-hero-bg .bg-grid {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    background-image:
        linear-gradient(rgba(0, 234, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 234, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.portfolio-hero-bg .floating-code {
    position: absolute;
    font-size: 8rem;
    color: rgba(0, 234, 255, 0.05);
    inset-block-start: 20%;
    inset-inline-end: 10%;
    font-family: 'Courier New', monospace;
    animation: float 6s ease-in-out infinite;
}

.portfolio-hero-bg .particle {
    background: #00eaff;
    animation: float 3s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    max-inline-size: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-block-end: 1rem;
    background: linear-gradient(45deg, #00eaff, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b0b0c0;
    line-height: 1.6;
    margin-block-end: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-block-start: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #39ff14;
    margin-block-end: 0.5rem;
}

.stat-label {
    color: #a0a0b0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0a0a0f 100%);
    padding: 4rem 0;
    position: relative;
}

.container {
    max-inline-size: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Filter Buttons */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-block-end: 3rem;
}

.filter-btn {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(0, 234, 255, 0.2);
    color: #e0e0e0;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(0, 234, 255, 0.1);
    border-color: rgba(0, 234, 255, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #00eaff, #39ff14);
    color: #0a0a0f;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-block-end: 3rem;
}

/* Portfolio Card */
.portfolio-card {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 234, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 234, 255, 0.2);
}

.portfolio-image {
    position: relative;
    block-size: 250px;
    overflow: hidden;
}

.portfolio-image img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.completed {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.badge.in-progress {
    background: linear-gradient(45deg, #FF9800, #f57c00);
    color: white;
}

.badge.featured {
    background: linear-gradient(45deg, #9C27B0, #7b1fa2);
    color: white;
}

.badge.new {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
}

.badge.popular {
    background: linear-gradient(45deg, #FF4081, #f50057);
    color: white;
}

.badge.enterprise {
    background: linear-gradient(45deg, #FF6D00, #ff5722);
    color: white;
}

.badge.fast {
    background: linear-gradient(45deg, #00C853, #64dd17);
    color: white;
}

.portfolio-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #00eaff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 234, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.3);
}

.action-btn.preview:hover {
    background: #00eaff;
    color: #0a0a0f;
}

.action-btn.github:hover {
    background: #333;
    color: white;
}

/* Portfolio Content */
.portfolio-content {
    padding: 2rem;
}

.portfolio-header {
    margin-block-end: 1rem;
}

.portfolio-title {
    color: #00eaff;
    font-size: 1.5rem;
    margin-block-end: 0.5rem;
    line-height: 1.3;
}

.portfolio-category {
    color: #39ff14;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.portfolio-description {
    color: #b0b0c0;
    line-height: 1.6;
    margin-block-end: 1.5rem;
    font-size: 0.95rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-end: 1.5rem;
}

.tech-tag {
    background: rgba(0, 234, 255, 0.1);
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #00eaff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 234, 255, 0.2);
    transform: translateY(-2px);
}

.portfolio-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-block-end: 1.5rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #a0a0b0;
    font-size: 0.9rem;
}

.meta-item i {
    color: #39ff14;
    inline-size: 16px;
    font-size: 0.9rem;
}

.portfolio-features {
    margin-block-end: 2rem;
}

.portfolio-features h4 {
    color: #39ff14;
    margin-block-end: 1rem;
    font-size: 1.1rem;
}

.portfolio-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-features li {
    color: #b0b0c0;
    margin-block-end: 0.5rem;
    padding-inline-start: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.portfolio-features li::before {
    content: '▸';
    color: #39ff14;
    position: absolute;
    inset-inline-start: 0;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
}

.portfolio-links .btn {
    flex: 1;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00eaff, #39ff14);
    color: #0a0a0f;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 234, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 234, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 234, 255, 0.2);
    border-color: rgba(0, 234, 255, 0.6);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #151525 0%, #1a1a2e 50%, #0f0f1a 100%);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-block-end: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #00eaff;
    margin-block-end: 1rem;
}

.section-header p {
    color: #b0b0c0;
    font-size: 1.1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 15px 30px rgba(57, 255, 20, 0.1);
}

.testimonial-content {
    block-size: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    color: #e0e0e0;
    line-height: 1.6;
    margin-block-end: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    inline-size: 60px;
    block-size: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #39ff14;
}

.author-avatar img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: #39ff14;
    margin-block-end: 0.3rem;
    font-size: 1.1rem;
}

.author-info span {
    color: #a0a0b0;
    font-size: 0.9rem;
}
/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 4rem 0 2rem;
        min-block-size: 50vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        inline-size: 200px;
        text-align: center;
    }

    .portfolio-links {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        inline-size: 100%;
        max-inline-size: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-image {
        block-size: 200px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}