/* Global Reset & Variables */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #e50914;
    /* Netflix red-ish for bold contrast, or maybe electric blue? Let's go slightly neon blue/purple */
    --accent-color: #5d3fd3;
    --accent-hover: #7b61ff;
    --gray: #888;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    /* Keep custom cursor */
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Hover state for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Opening Animation */
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.opening-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.opening-text span {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.opening-text span:nth-child(1) {
    animation-delay: 0.2s;
}

.opening-text span:nth-child(2) {
    animation-delay: 0.4s;
}

.opening-text span:nth-child(3) {
    animation-delay: 0.6s;
}

.opening-overlay.active {
    transform: translateY(-100%);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 2000;
    /* Higher than full-screen menu */
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Standardized Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}

.menu-toggle .line {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.menu-toggle.active .line {
    background-color: #fff;
    /* Ensure visibility */
}

.menu-toggle.active .line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active .line:nth-child(2) {
    opacity: 0;
    margin-top: 0;
    /* Reset */
}

.menu-toggle.active .line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.menu-link {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.menu-link:hover {
    color: var(--accent-color);
}

.menu-link .number {
    font-size: 1rem;
    position: absolute;
    top: 0;
    right: -30px;
    color: var(--gray);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    /* Initial zoom for parallax */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(5, 5, 5, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.line-wrapper {
    overflow: hidden;
}

.line-reveal {
    display: block;
    transform: translateY(100%);
}

.hero-title span.highlight {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-down .line {
    width: 50px;
    height: 1px;
    background-color: white;
}

/* About Section */
.about-section {
    padding: 150px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text-content h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px white;
}

.about-text-content p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn-underline {
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Work Section */
.work-section {
    padding: 100px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.work-item.large {
    grid-column: span 2;
}

.work-item {
    position: relative;
    cursor: pointer;
}

.work-image {
    width: 100%;
    height: 500px;
    /* Base height */
    overflow: hidden;
    position: relative;
}

.work-item.large .work-image {
    height: 700px;
}

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

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

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
    transform: translateY(0);
}

.work-overlay h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 5px;
}

.work-overlay p {
    color: #ccc;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 80px;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: white;
    background: white;
    color: black;
}

/* Services List */
.services-list-section {
    padding: 150px 0;
}

.service-list {
    border-top: 1px solid var(--border-color);
}

.service-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.service-item .num {
    flex: 0 0 100px;
    font-family: var(--font-heading);
    color: var(--gray);
}

.service-item .name {
    flex-grow: 1;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    transition: padding-left 0.3s;
}

.service-item:hover .name {
    padding-left: 30px;
    color: var(--accent-color);
}

.service-item .arrow {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s;
}

.service-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Section */
.contact-section {
    padding: 100px 0 150px;
}

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

.contact-heading h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 30px;
}

.contact-heading p {
    font-size: 1.2rem;
    color: var(--gray);
}

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

.minimal-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.minimal-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    color: white;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s;
}

.minimal-form input:focus {
    border-bottom-color: var(--accent-color);
}

.circle-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    color: black;
    border: none;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
    float: right;
    margin-top: 20px;
}

.circle-btn:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-right {
    display: flex;
    gap: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 13vw;
    }

    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-item.large {
        grid-column: span 1;
    }

    .service-item .name {
        font-size: 1.5rem;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
        /* Hide custom cursor on mobile */
    }

    body {
        cursor: auto;
    }
}