body {
    background: linear-gradient(to top right, #ff9900, #ffcc33);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.graphic-design-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.graphic-design-header {
    text-align: center;
    margin-bottom: 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-family: "carilliantine", sans-serif;
    font-size: 18px;
    margin-bottom: 30px;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.back-link:hover {
    transform: translateX(-5px);
    color: #000;
    background: rgba(255, 255, 255, 0.3);
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.graphic-design-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.graphic-design-logo {
    width: 120px;
    height: 120px;
    animation: fadeInDown 0.6s ease-out;
}

.graphic-design-header h1 {
    font-family: "carilliantine", sans-serif;
    font-size: 64px;
    font-weight: 400;
    color: #333;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.graphic-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
}

.graphic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9900, #ffcc33, #ff9900);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.graphic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.graphic-card:hover::before {
    transform: scaleX(1);
}

.graphic-image-preview {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease;
    position: relative;
}

.graphic-image-preview::after {
    content: '🔍 Click to view full size';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: "carilliantine", sans-serif;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.graphic-card:hover .graphic-image-preview {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.graphic-card:hover .graphic-image-preview::after {
    opacity: 1;
}

.graphic-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.graphic-title {
    font-family: "carilliantine", sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.graphic-card:hover .graphic-title {
    color: #ff9900;
}

.graphic-description {
    font-family: "Arial", sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: #ffcc33;
    background: rgba(255, 255, 255, 0.2);
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-title {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: "carilliantine", sans-serif;
    font-size: 32px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

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

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

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .graphic-design-header h1 {
        font-size: 48px;
    }

    .graphics-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .graphic-image-preview {
        height: 250px;
    }

    .graphic-content {
        padding: 25px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 36px;
    }

    .modal-title {
        font-size: 24px;
        bottom: 20px;
        padding: 12px 20px;
    }
}

