:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-light: #f5f5f5;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --rainbow-gradient: linear-gradient(
        45deg,
        #ff0080,
        #ff8c00,
        #ffd700,
        #00ff00,
        #00ffff,
        #0080ff,
        #8000ff
    );
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    cursor: none;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        circle,
        rgba(255, 0, 128, 0.3) 0%,
        rgba(255, 140, 0, 0.25) 15%,
        rgba(255, 215, 0, 0.2) 30%,
        rgba(0, 255, 0, 0.15) 45%,
        rgba(0, 255, 255, 0.1) 60%,
        rgba(0, 128, 255, 0.05) 75%,
        transparent 100%
    );
    filter: blur(40px);
    transform: translate(-50%, -50%);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition-smooth);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--primary-black);
    transition: transform 0.3s var(--transition-smooth);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    background-color: var(--primary-white);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.logo {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    letter-spacing: -5px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    transition: text-shadow 0.3s ease;
}


.logo-number {
    position: relative;
    z-index: 1;
}

.logo-number .char {
    position: relative;
    color: var(--primary-black);
}

.logo-text {
    font-weight: 300;
    letter-spacing: 2px;
    margin-left: 10px;
    position: relative;
    z-index: 1;
}

.logo-text .char {
    position: relative;
    z-index: 2;
}

.logo-subtitle {
    font-size: 18px;
    letter-spacing: 8px;
    color: var(--gray-dark);
    opacity: 0.7;
    font-weight: 300;
}

.tagline {
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    transition: text-shadow 0.3s ease;
}


.hero-shadow {
    display: none;
}

.logo-shadow {
    display: none;
}


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

.services {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    background-color: var(--gray-light);
    scroll-snap-align: start;
    padding: 120px 0 80px;
    position: relative;
}

.services .container {
    width: 100%;
}

.section-title {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.section-title:hover::before {
    opacity: 0.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background-color: var(--primary-white);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--transition-smooth);
    cursor: pointer;
}

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

.service-card:hover .service-shadow {
    opacity: 1;
}

.service-shadow {
    position: absolute;
    inset: -2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(20px);
    will-change: opacity;
}

.service-card[data-service="ai"] .service-shadow {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.4), rgba(0, 150, 255, 0.3));
}

.service-card[data-service="gacha"] .service-shadow {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 140, 0, 0.3));
}

.service-card[data-service="slide"] .service-shadow {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.4), rgba(0, 200, 100, 0.3));
}

.service-card[data-service="dx"] .service-shadow {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.4), rgba(180, 0, 255, 0.3));
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    font-weight: 900;
    opacity: 0.05;
    line-height: 1;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-dark);
    opacity: 0.8;
}

.contact {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    background-color: var(--primary-black);
    color: var(--primary-white);
    text-align: center;
    scroll-snap-align: start;
    padding: 80px 0;
    position: relative;
}

.contact .section-title {
    color: var(--primary-white);
}

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

.contact-text {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-link {
    display: inline-block;
    font-size: 24px;
    color: var(--primary-white);
    text-decoration: none;
    padding: 20px 40px;
    border: 2px solid var(--primary-white);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.contact-link:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.contact-shadow {
    display: none;
}

.contact-link:hover .contact-shadow {
    display: none;
}

.contact-link span {
    position: relative;
    z-index: 2;
}

footer {
    background-color: var(--gray-dark);
    color: var(--primary-white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    opacity: 0.8;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-black);
    border-radius: 25px;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.6;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background-color: var(--primary-black);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: clamp(40px, 15vw, 80px);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 40px 30px;
    }
    
    .contact-link {
        font-size: 18px;
        padding: 15px 30px;
    }
    
    .services {
        padding: 100px 0 60px;
    }
}