@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* Black and White, Lowercase, Cute & Modern Vibe */
:root {
    --bg-color: #0a0a0a;
    --text-color: #fcfcfc;
    --accent-color: #a0a0a0;
    --border-radius: 20px;
}

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

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    text-transform: lowercase;
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
}


h1, h2, h3, h4, p, a, button, input, textarea {
    text-transform: lowercase;
}

h2, h3 {
    z-index: 1;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 0;
    z-index: 1000;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0;
    margin: 0;
}

nav a {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    display: inline-block;
}

/* Hover SVG Animations */
.hover-svg {
    position: absolute;
    pointer-events: none;
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.1s ease;
    overflow: visible;
    z-index: -1;
}

.hover-svg.underline {
    width: 110%;
    height: 0.8em;
    bottom: -0.4em;
    left: -5%;
}

.hover-svg.star {
    width: 1em;
    height: 1em;
    top: -0.4em;
    right: -0.8em;
    transform: rotate(15deg);
}

.hover-svg.circle {
    width: 140%;
    height: auto;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -42%);
}

.hover-svg.heart {
    width: 1em;
    height: 1em;
    bottom: -0.8em;
    left: 50%;
    transform: translateX(-50%);
}

.draw-path {
    stroke-dasharray: 100 110;
    stroke-dashoffset: 102;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.47, 0, 0.74, 0.71);
}

.animate-on-scroll .draw-path {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.47, 0, 0.74, 0.71);
}

nav a:hover .hover-svg,
.animate-on-scroll.in-view .hover-svg {
    opacity: 1;
}

nav a:hover .draw-path,
.animate-on-scroll.in-view .draw-path {
    stroke-dashoffset: 0;
}

/* Header / Landing */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.logo-container {
    margin-bottom: 0;
    max-width: 380px;
    width: 100%;
}

.logo {
    width: 100%;
    height: auto;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 3.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container video, .video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    outline: none;
}

header h2 {
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    margin-top: -0.5rem;
}

/* Sections */
section {
    padding: 3rem 2rem 1rem;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto 2.5rem;
    width: 85%;
    max-width: 400px;
    opacity: 0.8;
}

.divider svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.divider path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slow-draw .draw-path {
    transition: stroke-dashoffset 2.5s cubic-bezier(0.47, 0, 0.74, 0.71) !important;
}

.dot-anim {
    opacity: 0;
}

.in-view .dot-anim {
    animation: fadeInDot 0.2s forwards;
}

@keyframes fadeInDot {
    to { opacity: 1; }
}

/* About */
#about p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 300;
    color: #e8e8e8;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Projects */
.project {
    margin-bottom: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project:last-child {
    margin-bottom: 0;
}

.project h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 1.5px;
}

.project .director {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 300;
}

.project .description {
    margin-bottom: 3.5rem;
    font-weight: 300;
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.8;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery img:hover {
    transform: scale(1.03);
}

.video-wrapper {
    margin-bottom: 2.5rem;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.note {
    margin-top: 1.5rem;
    color: var(--accent-color);
    font-size: 0.95rem;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.contact-form input, .contact-form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 1.2rem 1.5rem;
    font-family: inherit;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: var(--accent-color);
    font-weight: 300;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-form button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 1.2rem;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-transform: lowercase;
    margin-top: 0.5rem;
}

.contact-form button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--accent-color);
    font-size: 0.95rem;
}

/* Scroll to Top */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#scroll-to-top svg {
    width: 60%;
    height: 60%;
    stroke: var(--accent-color);
}

#scroll-to-top.visible {
    opacity: 0.4;
    visibility: visible;
}

#scroll-to-top.visible:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

#scroll-to-top.visible:hover svg {
    stroke: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 1.25rem;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.95rem;
    }

    header {
        padding: 7rem 1.25rem 1.5rem;
        min-height: auto;
    }
    
    .video-container {
        margin-bottom: 1.5rem;
    }
    
    header h2 {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    section {
        padding: 2rem 1.25rem;
    }

    .divider {
        margin: 1rem auto 1.5rem;
        width: 75%;
    }

    .project {
        margin-bottom: 4.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .project h3 {
        font-size: 2.2rem;
        white-space: nowrap;
    }

    .project h3.long-title {
        font-size: clamp(1.2rem, 7.5vw, 2.2rem);
    }
    
    .project .director {
        font-size: clamp(0.85rem, 3.8vw, 1.25rem);
        white-space: nowrap;
    }
    
    #about p {
        font-size: 1.1rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }

    #scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
}
