/* BRUTALIST PORTFOLIO STYLES */
:root {
    --black: #292b2d;
    --white: #f9f7f4;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.4;
    overflow-x: hidden;
    cursor: none;
}



/* SECTIONS - SCROLLABLE ONE-PAGE */
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 80px;
    position: relative;
}

/* Navigation should be above sections */

/* Section alternating colors */
#home {
    background-color: var(--black);
    color: var(--white);
}

#about {
    background-color: var(--white);
    color: var(--black);
}

#work {
    background-image: url('../../images/background-hero-home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--black);
    color: var(--white);
}

#contact {
    background-color: var(--white);
    color: var(--black);
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Clean initial states for specific elements */
.section-title.animate-on-scroll {
    transform: translateY(50px);
}

.large-text.animate-on-scroll {
    transform: translateY(50px);
}

.project-card.animate-on-scroll {
    transform: translateY(50px);
}

.about-description.animate-on-scroll,
.contact-description.animate-on-scroll {
    transform: translateY(50px);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 40px;
    margin-bottom: 80px;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.1;
}

.section-title {
    font-weight: 900;
    font-size: 64px;
    letter-spacing: -2px;
    line-height: 1;
    text-transform: uppercase;
}

/* HERO SECTION */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-title {
    font-size: clamp(60px, 8vw, 120px);
    line-height: 0.9;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.hero-title-line1 {
    font-weight: 400;
    display: block;
}

.hero-title-line2 {
    font-weight: 900;
    display: block;
}

.hero-subtitle {
    font-weight: 500;
    font-size: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.hero-subtitle p {
    margin: 0;
}

.hero-supporting {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 600px;
    margin: 0;
}

.hero-supporting p {
    margin: 0;
}

.hero-bottom {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Page transition effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Heading deconstruction effects */
.heading-deconstruct {
    position: relative;
    overflow: hidden;
}

.heading-deconstruct::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--white) 50%, 
        transparent 100%);
    z-index: 2;
    transition: left 0.6s ease;
}

.heading-deconstruct.reform::before {
    left: 100%;
}

.heading-deconstruct .letter {
    display: inline-block;
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    transition: all 0.3s ease;
    transition-delay: calc(var(--i) * 0.05s);
}

.heading-deconstruct.deconstructing .letter {
    opacity: 0;
    transform: translateY(10px) rotate(5deg);
}

.heading-deconstruct.reforming .letter {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    transition-delay: calc(var(--i) * 0.03s);
}

/* Navigation link effects during transitions */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.transitioning {
    color: rgba(255, 255, 255, 0.5);
}

.nav-link.transitioning::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    animation: linkProgress 0.4s ease forwards;
}

@keyframes linkProgress {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}


.cta-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 3px solid var(--black);
    background-color: var(--white);
    transition: var(--transition);
    cursor: none;
}

.cta-box:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translate(5px, -5px);
    box-shadow: -5px 5px 0px var(--black);
}

.cta-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cta-arrow {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* ABOUT SECTION */
.about {
    padding: 80px 40px;
}

.about-intro {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 80px;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto 80px;
    align-items: start;
}

.about-image {
    width: 300px;
    height: 400px;
    background: #999;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--white);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin: 0;
}

.about-stats {
    max-width: 1000px;
    margin: 0 auto 80px;
}

.large-text {
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.highlight-box {
    background-color: var(--black);
    color: var(--white);
    padding: 5px 15px;
    display: inline-block;
}

.about-description {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-align: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    border: 3px solid var(--black);
}

.stat-number {
    font-weight: 900;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 2px;
}

.skills-section {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-title {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.skill-category {
    border: 3px solid var(--black);
    padding: 30px;
}

.skill-header {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--black);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-list span {
    font-size: 14px;
    letter-spacing: 1px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(41, 43, 45, 0.2);
}

/* PROJECTS SECTION */
.projects {
    overflow: visible;
    align-items: flex-start;
    padding: 120px 0px 80px;
}

.projects .section-header {
    max-width: none;
    margin: 0 0 60px 60px;
    width: auto;
    text-align: left;
}

.scroll-hint {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0;
    opacity: 0.7;
    animation: pulseHint 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    display: block;
    margin-bottom: 10px;
}

.scroll-arrows {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.arrow-left, .arrow-right {
    font-size: 32px;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px 15px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.arrow-left:hover, .arrow-right:hover {
    opacity: 1;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.projects-container {
    margin-top: 60px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.projects-scroll {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 40px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    cursor: grab;
}

.projects-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.projects-scroll::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 calc(33.333% - 27px);
    min-width: calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 3px solid var(--black);
    transition: var(--transition);
    scroll-snap-align: start;
}

.project-card:hover {
    transform: translate(5px, -5px);
    box-shadow: -5px 5px 0px var(--black);
}

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: #292b2d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
    filter: brightness(0.95) contrast(1.05);
}

.project-image .image-placeholder {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--white);
}

.project-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    color: var(--black);
    padding: 15px 25px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--black);
    z-index: 10;
}

.project-image:hover .project-cta {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.project-cta:hover {
    background: var(--black);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-info {
    padding: 30px;
    text-align: center;
}

.project-title {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--black);
}

.project-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    opacity: 0.7;
    margin: 0;
}

/* CONTACT SECTION */
.contact-intro {
    margin-bottom: 80px;
}

.contact-description {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 40px;
    letter-spacing: 0.5px;
}

.contact-form {
    margin-bottom: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 40px;
}

.form-group label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 20px;
    border: 3px solid var(--black);
    background-color: var(--white);
    font-family: inherit;
    font-size: 16px;
    color: var(--black);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    transform: translate(3px, -3px);
    box-shadow: -3px 3px 0px var(--black);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--black);
    color: var(--white);
    border: 3px solid var(--black);
    padding: 20px 40px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.submit-btn:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translate(5px, -5px);
    box-shadow: -5px 5px 0px var(--black);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.contact-item {
    padding: 30px 0;
    border-top: 2px solid var(--black);
}

.contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.contact-value {
    font-size: 18px;
    letter-spacing: 1px;
}

.contact-value a {
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.contact-value a:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background-image: url('../../images/background-hero-home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--black);
    color: var(--white);
    padding: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    text-align: left;
}

.footer-text {
    font-size: 14px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-right {
    text-align: right;
}

.footer-contact {
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact div:first-child {
    font-weight: 600;
    margin-bottom: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .nav {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    section {
        padding: 100px 20px 60px;
    }
    
    .hero-content {
        gap: 25px;
    }
    
    .hero-title {
        font-size: clamp(50px, 7vw, 100px);
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .hero-supporting {
        font-size: 16px;
    }
    
    .hero-bottom {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .section-header {
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .section-number {
        font-size: 80px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-image {
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-scroll {
        padding: 0 20px;
        gap: 30px;
    }
    
    .scroll-hint {
        margin-top: 30px;
        margin-bottom: 0;
    }
    
    .scroll-text {
        font-size: 11px;
    }
    
    .project-card {
        flex: 0 0 calc(50% - 20px);
        min-width: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    
    .project-image {
        height: 200px;
    }
    
    .contact-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-title {
        font-size: clamp(40px, 10vw, 80px);
    }
    
    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .hero-supporting {
        font-size: 14px;
    }
    
    .large-text {
        font-size: 24px;
    }
    
    .about-image {
        width: 250px;
        height: 320px;
    }
    
    .projects-scroll {
        padding: 0 15px;
        gap: 20px;
    }
    
    .scroll-hint {
        margin-top: 20px;
        margin-bottom: 0;
    }
    
    .scroll-text {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    
    .project-card {
        flex: 0 0 calc(100% - 30px);
        min-width: calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
    
    .project-image {
        height: 180px;
    }
}

/* SHOWREEL VIDEO SECTION */
.showreel-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #f8f9fa 100%);
    padding: 120px 80px;
    position: relative;
}

.showreel-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.showreel-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--black);
    opacity: 0.5;
    margin: 0;
    text-align: center;
}

.showreel-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .showreel-section {
        padding: 80px 40px;
    }
    
    .showreel-video-wrapper {
        border-radius: 12px;
    }
}

