
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a2e;
    position: relative;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
}

.portfolio-header {
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.portfolio-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.portfolio-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}


.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto;
    max-width: 800px;
    padding: 0 2rem;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(45deg, #2A2A72, #009FFD);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 159, 253, 0.3);
}


.portfolio-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    position: relative;
    height: 300px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(42, 42, 114, 0.9), rgba(0, 159, 253, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
}

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

.portfolio-overlay h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(-20px);
    transition: var(--transition);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.view-project {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.view-project:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-header {
        padding: 6rem 1rem 3rem;
    }

    .portfolio-header h1 {
        font-size: 2.5rem;
    }

    .portfolio-categories {
        flex-wrap: wrap;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .portfolio-header h1 {
        font-size: 2rem;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .portfolio-image {
        height: 200px;
    }
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    width: 100%;
    max-width: 300px;
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    display: none;
}

.project-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    z-index: 999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-details.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    display: block;
}

.project-details-content {
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    color: white;
}

.project-details-content::-webkit-scrollbar {
    width: 8px;
}

.project-details-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.project-details-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.close-details {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-details:hover {
    transform: rotate(90deg);
}

.project-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.project-images img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-images img:hover {
    transform: scale(1.02);
}

.project-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.project-info h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.tech-stack li {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}


@media (max-width: 768px) {
    .project-details {
        width: 95%;
    }

    .project-details-content {
        padding: 1.5rem;
    }

    .project-images {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-stack li {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.footer {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-email {
    color: #00D4FF;
    text-decoration: none;
    transition: var(--transition);
}

.footer-email:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    text-decoration: none;
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #00a8ff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.freelance-links {
    display: flex;
    gap: 1.5rem;
}

.freelance-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    transition: var(--transition);
}

.freelance-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.freelance-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}


@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links,
    .freelance-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .freelance-links {
        flex-direction: column;
        align-items: center;
    }

    .freelance-link {
        width: 100%;
        justify-content: center;
    }
} 