/* ===================================
   PROJECT PAGE STYLES
   =================================== */

/* Custom Cursor */
body {
    cursor: none;
    overflow-x: hidden;
}

@media (max-width: 48rem) {
    body {
        cursor: auto;
    }
    
    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

.custom-cursor {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: #4338CA;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cursor-follower {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.4) 0%, rgba(67, 56, 202, 0.2) 20%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
    filter: blur(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-cursor.active {
    opacity: 1;
}

.cursor-follower.active {
    opacity: 0.8;
}

.custom-cursor.hover {
    transform: scale(2);
    background: #3730A3;
}

.cursor-follower.hover {
    transform: scale(1.3);
    opacity: 1;
}

/* Project Header Section */
.project-header {
    padding: 6rem 2.5rem 0;
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
}

.project-header-content {
    max-width: 66.67%;
    margin: 0;
}

.project-title {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #161a18;
    margin-bottom: 6rem;
}

.project-description {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.description-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-label,
.description-section h2 {
    font-size: 1rem;
    font-weight: 400;
    color: #161a18;
    margin: 0;
}

.section-content,
.description-section p {
    font-size: 2rem;
    font-weight: 500;
    color: #161a18;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin: 0;
}

/* Project Gallery */
.project-gallery {
    padding: 0 2.5rem 6rem;
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 8rem;
    margin-bottom: 4rem;
    justify-content: flex-start;
    position: sticky;
    top: 6rem;
    padding: 1.5rem 0;
    z-index: 90;
}

.tab-button {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #161a18;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: #4338ca;
    color: #4338ca;
}

.tab-button.active {
    background: #4338CA;
    color: white;
    border-color: #4338CA;
}

.gallery-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.gallery-tab-content.active {
    display: block;
}

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

.gallery-content {
    max-width: 100%;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.gallery-full {
    grid-column: 1 / -1;
    margin-bottom: 6rem;
}

.gallery-item {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0.5rem;
    will-change: transform;
}

.gallery-item img {
    transition: transform 0.3s ease;
    will-change: transform;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.ux-section-title {
    font-size: 2rem;
    font-weight: 500;
    color: #161a18;
    margin-bottom: 2.5rem;
    text-align: left;
    letter-spacing: -0.015em;
}

.gallery-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.next-button {
    font-size: 1.125rem;
    font-weight: 500;
    color: white !important;
    background: #4338ca !important;
    border: 2px solid #4338ca !important;
    border-radius: 50px;
    padding: 1rem 3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.next-button:hover {
    background: #3730a3;
    border-color: #3730a3;
}

/* Large Text Section */
.large-text-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 2.5rem 0;
    background: white;
}

.large-text-content {
    padding: 0 2.5rem;
}

.large-text {
    font-size: 14vw;
    font-weight: 500;
    letter-spacing: -0.06em;
    color: #161a18;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    width: 100%;
}

/* Footer */
.footer {
    background: white;
    padding: 2.5rem 2.5rem;
    max-width: 120rem;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #161a18;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.footer-contact a {
    color: #161a18;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #4338CA;
}

.footer-separator {
    color: #CBD5E1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* 1440px and below */
@media (max-width: 90rem) {
    .project-header-content {
        max-width: 75%;
    }
    
}

/* 1024px and below */
@media (max-width: 64rem) {
    .project-header {
        padding: 6rem 2rem;
    }
    
    .project-header-content {
        max-width: 100%;
    }
    
    .project-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .section-content {
        font-size: 1.5rem;
    }
    
    .project-gallery {
        padding: 6rem 2rem;
    }
    
    .gallery-tabs {
        top: 5rem;
    }
    
    .gallery-grid {
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .gallery-full {
        margin-bottom: 4rem;
    }
    
    
    .footer {
        padding: 2.5rem 2rem;
    }
}

/* 768px and below */
@media (max-width: 48rem) {
    .project-header {
        padding: 6rem 1.25rem;
    }
    
    .project-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .project-description {
        gap: 2rem;
    }
    
    .description-section {
        gap: 2rem;
    }
    
    .section-content {
        font-size: 1.25rem;
    }
    
    .project-gallery {
        padding: 1rem 1.25rem 6rem;
    }
    
    .gallery-tabs {
        margin-top: 1.5rem;
        top: 4.5rem;
        gap: 0.75rem;
    }
    
    .tab-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .gallery-full {
        margin-bottom: 3rem;
    }
    
    .ux-section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .next-button {
        font-size: 1.5rem;
    }
    
    
    .footer {
        padding: 2.5rem 1.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}

/* 480px and below */
@media (max-width: 30rem) {
    .project-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .section-content {
        font-size: 1.125rem;
    }
    
    .ux-section-title {
        font-size: 1.25rem;
    }
    
    .next-button {
        font-size: 1.25rem;
    }
    
}
