/* Graphics Portfolio Page Styles */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero Section */
.portfolio-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.8), rgba(3, 7, 18, 1)), url('https://via.placeholder.com/1920x1080');
    background-size: cover;
    background-position: center;
    margin-bottom: 6rem;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.portfolio-hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 2rem;
}

.portfolio-title {
    font-size: 6rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
}

.portfolio-subtitle {
    font-size: 2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Portfolio Categories */
.portfolio-categories {
    padding: 5rem 0;
}

.categories-header {
    margin-bottom: 4rem;
    text-align: center;
}

.categories-header h2 {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.categories-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.filter-btn {
    padding: 1rem 2rem;
    background: var(--dark);
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.6s forwards;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }
.portfolio-item:nth-child(9) { animation-delay: 0.9s; }
.portfolio-item:nth-child(10) { animation-delay: 1s; }
.portfolio-item:nth-child(11) { animation-delay: 1.1s; }
.portfolio-item:nth-child(12) { animation-delay: 1.2s; }

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

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.portfolio-details {
    text-align: center;
    padding: 0 2rem;
}

.portfolio-details h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1rem;
}

.portfolio-details p {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* Design Process Section */
.design-process {
    padding: 8rem 0;
    background: var(--dark);
    margin: 8rem 0;
}

.section-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2.5rem;
    padding: 0 2rem;
}

.step-number {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.2);
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.2rem;
}

.step-content p {
    font-size: 1.6rem;
    color: var(--gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.95);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    max-width: 1000px;
    margin: 5rem auto;
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.5s ease forwards;
}

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

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--light);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

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

.modal-details {
    padding: 3rem;
}

.modal-details h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.modal-details p {
    font-size: 1.6rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
}

.info-value {
    font-size: 1.6rem;
    color: var(--light);
}

.modal-tools h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tools-list span {
    font-size: 1.4rem;
    padding: 0.6rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .portfolio-title {
        font-size: 5rem;
    }
}

@media screen and (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        margin: 5rem 2rem;
    }
    
    .modal-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .portfolio-title {
        font-size: 4rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }
    
    .step-number {
        font-size: 4rem;
        width: auto;
        text-align: left;
    }
}

@media screen and (max-width: 576px) {
    .portfolio-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .portfolio-title {
        font-size: 3.2rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.6rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 280px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .cta-content h2 {
        font-size: 2.8rem;
    }
    
    .cta-content p {
        font-size: 1.6rem;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-details {
        padding: 2rem;
    }
    
    .modal-details h2 {
        font-size: 2.4rem;
    }
}