@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=swap');

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

::selection {
    background-color: #00d062;
    color: #f5f5f5;
}

::-moz-selection {
    background-color: #00d062;
    color: #f5f5f5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
    cursor: none;
}

body.loading {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    animation: fadeIn 0.8s ease-in;
}

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

body.glitch-active {
    animation: glitchBody 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

body.glitch-active .container {
    animation: glitchContainer 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitchBody {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitchContainer {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    10% {
        clip-path: inset(10% 0 85% 0);
        transform: translate(-5px, 5px);
    }
    20% {
        clip-path: inset(80% 0 0 0);
        transform: translate(5px, -5px);
    }
    30% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(-5px, 0);
    }
    40% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(5px, 5px);
    }
    50% {
        clip-path: inset(0 0 80% 0);
        transform: translate(-5px, -5px);
    }
}

@media (pointer: coarse) {
    body {
        cursor: auto !important;
    }
    .cursor-follower {
        display: none !important;
    }
    .email {
        cursor: pointer !important;
    }
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 208, 98, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    filter: blur(8px);
    animation: pulse 2s ease-in-out infinite;
    transition: left 0.1s ease-out, top 0.1s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.video-section {
    flex: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.video-section video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.content-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 80px;
}

.text-content {
    max-width: 600px;
}

.main-text {
    font-size: 21.33px; 
    line-height: 1.5;
    margin-bottom: 60px;
    font-weight: 400;
}

.contact-info {
    margin-top: 40px;
}

.contact-prompt {
    font-size: 14pt; 
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 400;
}

.email {
    font-family: 'Kalam', cursive;
    font-size: 16pt;
    line-height: 1.5;
    margin-top: 8px;
    font-weight: 400;
    color: #00d062;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    cursor: none;
    text-shadow: none;
    outline: none;
}

.email:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 0.9),
                 0 0 40px rgba(255, 255, 255, 0.8),
                 0 0 50px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.email:focus {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 0.9),
                 0 0 40px rgba(255, 255, 255, 0.8),
                 0 0 50px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

.projects-link {
    display: inline-block;
    text-decoration: none;
    margin-top: 40px;
    cursor: none;
}

.projects-link:hover .projects-text {
    text-decoration: underline;
    animation: bounce 0.6s ease;
}

.projects-text {
    font-size: 14pt;
    line-height: 1.5;
    color: #b5b5b5;
    margin: 0;
    font-weight: 400;
    font-style: italic;
    transition: text-decoration 0.3s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container {
        position: relative;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .video-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding: 0;
        z-index: 1;
        flex: none;
    }

    .video-section video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }
    
    .content-section {
        position: relative;
        z-index: 2;
        flex: none;
        width: 100%;
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        animation: blurIn 0.8s ease-out 2.5s forwards;
    }

    @keyframes blurIn {
        to {
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
    }

    .text-content {
        max-width: 100%;
        padding: 40px 32px;
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 3s forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-text {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 40px;
        color: #f5f5f5;
    }

    .contact-info {
        margin-top: 40px;
    }
    
    .contact-prompt {
        font-size: 15px;
        margin-bottom: 6px;
        color: #e0e0e0;
    }

    .email {
        font-size: 18px;
        display: inline-block;
        margin-top: 12px;
        cursor: pointer;
    }

    .email:hover {
        color: #ffffff !important;
    }

    .projects-link {
        margin-top: 48px;
        cursor: pointer;
    }

    .projects-text {
        font-size: 14px;
        line-height: 1.6;
        color: #b5b5b5;
    }
}