/* ============================================
   COVASOL ARCHITECTS - BRUTALISM STYLE
   Awwwards Quality CSS
============================================ */

/* CSS Variables */
:root {
    --black: #0a0a0a;
    --white: #f5f5f5;
    --neon-yellow: #e6ff00;
    --gray: #1a1a1a;
    --font-main: 'Space Grotesk', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-yellow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background-color: var(--neon-yellow);
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background-color: var(--neon-yellow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.08s ease-out;
    transform: translate(-50%, -50%);
}

/* Smooth Scroll Container */
.smooth-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--white);
    font-weight: 700;
}

.nav__links {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-yellow);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 150px 50px;
    position: relative;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 20vw, 18rem);
    line-height: 0.85;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero__title span {
    display: block;
}

.hero__title .outline {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
}

.hero__subtitle {
    margin-top: 40px;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon-yellow);
}

.hero__scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero__scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--neon-yellow), transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Projects Gallery Section */
.projects {
    padding: 100px 50px;
}

.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.projects__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.02em;
}

.projects__count {
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--neon-yellow);
}

/* Masonry Grid */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    position: relative;
    overflow: hidden;
}

.project-item:nth-child(3n+1) {
    grid-row: span 2;
}

.project-item:nth-child(5n+2) {
    grid-column: span 2;
}

.project-item__link {
    display: block;
    position: relative;
    overflow: hidden;
}

.project-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(100%);
}

.project-item:hover .project-item__image {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover .project-item__overlay {
    transform: translateY(0);
}

.project-item__name {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 5px;
}

.project-item__year {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--neon-yellow);
}

/* Hover Preview Image (follows cursor) */
.hover-preview {
    position: fixed;
    width: 300px;
    height: 400px;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.hover-preview.active {
    opacity: 1;
}

.hover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project List (Alternative Style) */
.project-list {
    padding: 50px;
}

.project-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.project-list__item:hover {
    padding-left: 30px;
    border-color: var(--neon-yellow);
}

.project-list__item:hover .project-list__name {
    color: var(--neon-yellow);
}

.project-list__name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    transition: color 0.3s ease;
}

.project-list__meta {
    display: flex;
    gap: 50px;
    align-items: center;
}

.project-list__category,
.project-list__year {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-list__arrow {
    font-size: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.project-list__item:hover .project-list__arrow {
    opacity: 1;
    transform: translateX(0);
}

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

/* Project Header */
.project-header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    position: relative;
}

.project-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%);
}

.project-header__content {
    position: relative;
    z-index: 2;
}

.project-header__year {
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--neon-yellow);
    margin-bottom: 20px;
}

.project-header__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 14rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 90%;
}

.project-header__meta {
    display: flex;
    gap: 80px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.project-header__meta-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-header__meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
}

.project-header__meta-value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Magazine Layout */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.project-content__text {
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
}

.project-content__intro {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon-yellow);
    margin-bottom: 30px;
}

.project-content__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 40px;
}

.project-content__description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.8;
    max-width: 500px;
}

.project-content__description p {
    margin-bottom: 25px;
}

.project-content__images {
    background-color: var(--gray);
}

.project-content__image {
    width: 100%;
}

.project-content__image img {
    width: 100%;
    display: block;
}

/* Next Project Section */
.next-project {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 50px;
    position: relative;
    overflow: hidden;
    background-color: var(--gray);
}

.next-project__label {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--neon-yellow);
}

.next-project__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 12rem);
    text-align: center;
    line-height: 0.9;
    text-transform: uppercase;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-project:hover .next-project__title {
    transform: scale(1.05);
}

.next-project__image {
    position: absolute;
    width: 40%;
    height: 60%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    filter: grayscale(100%);
}

.next-project:hover .next-project__image {
    opacity: 0.3;
}

.next-project__arrow {
    margin-top: 50px;
    width: 80px;
    height: 80px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.next-project:hover .next-project__arrow {
    background-color: var(--neon-yellow);
    border-color: var(--neon-yellow);
    color: var(--black);
}

/* Footer */
.footer {
    padding: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer__text span {
    color: var(--neon-yellow);
}

.footer__social {
    display: flex;
    gap: 30px;
}

.footer__social-link {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.footer__social-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--neon-yellow);
    transition: width 0.3s ease;
}

.footer__social-link:hover::after {
    width: 100%;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--neon-yellow);
    z-index: 9999;
    transform: translateY(100%);
    pointer-events: none;
}

.page-transition.active {
    animation: pageTransition 1s cubic-bezier(0.87, 0, 0.13, 1) forwards;
}

@keyframes pageTransition {
    0% { transform: translateY(100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader__text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 6rem);
    overflow: hidden;
}

.loader__text span {
    display: inline-block;
    animation: loaderText 0.5s ease forwards;
    opacity: 0;
    transform: translateY(100%);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item:nth-child(3n+1) {
        grid-row: span 1;
    }
    
    .project-item:nth-child(5n+2) {
        grid-column: span 1;
    }
    
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .project-content__text {
        position: relative;
        height: auto;
        padding: 80px 50px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 20px 30px;
    }
    
    .nav__links {
        display: none;
    }
    
    .hero {
        padding: 100px 30px;
    }
    
    .projects {
        padding: 60px 30px;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    .project-list__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .project-header {
        padding: 30px;
    }
    
    .project-header__meta {
        flex-direction: column;
        gap: 30px;
    }
    
    .project-content__text {
        padding: 60px 30px;
    }
    
    .footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Utility Classes */
.hidden {
    overflow: hidden;
}

.reveal {
    overflow: hidden;
}

.reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal {
    to {
        transform: translateY(0);
    }
}
