@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
    color: #fff;
    background-color: #000;
    font-family: 'Montserrat', sans-serif;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    cursor: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
    pointer-events: none;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Floating particles */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}


.title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-size: 3.5em;
    margin: 0;
    letter-spacing: 8px;
    font-weight: 300;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

h1:hover {
    letter-spacing: 12px;
    transform: scale(1.05);
}

p.hu {
    font-size: 1.8em;
    margin: 0;
    font-weight: 300;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.tagline {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 1s ease 0.3s forwards;
}

.card {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: scaleIn 0.8s ease 0.5s forwards;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

#about {
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.foot {
    margin-top: 3rem;
    opacity: 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.7s forwards;
}


a {
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
    padding: 5px 10px;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fff, #888);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

a:hover::after {
    width: 100%;
}

a:visited {
    color: #fff;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Projects grid layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual project card */
.project-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: cardSlideIn 0.6s ease forwards;
    position: relative;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.1);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    opacity: 0.8;
    transition: all 0.4s ease;
    transform: scale(1);
}

.project-card:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-info h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.project-card:hover .project-info h3 {
    letter-spacing: 3px;
    transform: translateX(5px);
}

.project-info p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
    transition: all 0.3s ease;
}

.project-card:hover .project-info p {
    opacity: 1;
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5em;
        letter-spacing: 5px;
    }
    
    .card {
        padding: 2rem;
    }
    
    #main {
        padding: 1rem;
    }
}