/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: #f5f5f5;
    color: #000;
    overflow-x: hidden;
    line-height: 1.5;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px;
    background-color: #f5f5f5;
    border-bottom: 2px solid #000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.logo-box {
    width: 20px;
    height: 20px;
    background-color: #000;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

nav ul {
    display: flex;
    gap: 30px;
    font-weight: 700;
}

nav a {
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.marquee {
    overflow: hidden;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    padding: 15px 0;
    margin-bottom: 50px;
    background-color: #000;
    color: #f5f5f5;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    margin-right: 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

h1 {
    font-family: 'Work Sans', sans-serif;
    font-size: 7vw;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    position: relative;
}

.subtitle {
    font-size: 24px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid #000;
}

.image-caption {
    position: absolute;
    right: -10px;
    bottom: -10px;
    background-color: #000;
    color: #f5f5f5;
    padding: 8px 15px;
    font-size: 14px;
}

.scroll-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 50;
}

.scroll-indicator span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    animation: scroll-down 2s ease infinite;
}

@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Work Section */
.work {
    padding: 100px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 5px;
    background-color: #000;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
}

.project {
    position: relative;
    border: 2px solid #000;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
}

.project-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: #000;
    color: #f5f5f5;
    font-size: 20px;
    font-weight: 700;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    background-color: #f5f5f5;
    border-top: 2px solid #000;
}

.project-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-type {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.view-project {
    display: inline-block;
    padding: 8px 0;
    font-weight: 700;
    position: relative;
}

.view-project::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.view-project:hover::after {
    transform: scaleX(1);
}

/* About Section */
.about {
    padding: 100px 20px;
    background-color: #000;
    color: #f5f5f5;
}

.about-content {
    max-width: 1440px;
    margin: 0 auto;
}

.about .section-title::after {
    background-color: #f5f5f5;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.skill-category h4 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.skill-category h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #f5f5f5;
}

.skill-category ul {
    margin-left: 10px;
}

.skill-category li {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border: 2px solid #f5f5f5;
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid #f5f5f5;
    z-index: -1;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background-color: #f5f5f5;
}

.contact-content {
    max-width: 1440px;
    margin: 0 auto;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-text {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-list li {
    margin-bottom: 30px;
}

.contact-label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.7;
}

.contact-value {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact-value::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-value:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    font-size: 16px;
    font-weight: 700;
    position: relative;
}

.socials a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.socials a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 14px;
    opacity: 0.7;
}

input, textarea {
    padding: 15px;
    background-color: transparent;
    border: 2px solid #000;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    resize: none;
}

input:focus, textarea:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.05);
}

.submit-btn {
    background-color: #000;
    color: #f5f5f5;
    border: none;
    padding: 15px 30px;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 50px 20px;
    border-top: 2px solid #000;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.back-to-top {
    font-weight: 700;
    position: relative;
}

.back-to-top::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0.3);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.back-to-top:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 10vw;
    }
    
    .about-columns, .contact-columns {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .socials {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* JavaScript cursor effect simulation */
a:hover ~ .cursor, 
button:hover ~ .cursor {
    width: 40px;
    height: 40px;
    background-color: #000;
}
