:root {
    --bg-color: #050510;
    --text-color: #e0e0e0;
    --text-color-muted: #8892b0;
    --accent-color: #64ffda;
    --card-bg: #112240;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* 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: 5px;
    height: 5px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: 100px 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: var(--transition);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

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

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1.5rem;
    color: #fff;
    mix-blend-mode: difference;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-heading);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover {
    color: var(--bg-color);
}

.cta-button:hover::before {
    transform: translateX(0);
}

.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1b2735 0%, #050510 100%);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.1), transparent 20%),
                radial-gradient(circle at 80% 20%, rgba(136, 146, 176, 0.15), transparent 25%);
    animation: galaxy-rotate 30s linear infinite;
}

@keyframes galaxy-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Section */
.about-text {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.work-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.work-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #233554;
}

.work-image-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.gradient-1 { background: linear-gradient(135deg, #134E5E 0%, #71B280 100%); }
.gradient-2 { background: linear-gradient(135deg, #302b63 0%, #24243e 100%); }
.gradient-3 { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); }

.work-card:hover .work-image-placeholder {
    transform: scale(1.1);
}

.work-content {
    padding: 1.5rem;
}

.work-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #e6f1ff;
}

.work-desc {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.work-link {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.work-link .arrow {
    margin-left: 5px;
    transition: transform 0.2s;
}

.work-link:hover .arrow {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-color-muted);
}

.contact-email {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #e6f1ff;
    position: relative;
    display: inline-block;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.contact-email:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: #112240;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -10px 0 30px -10px rgba(2, 12, 27, 0.7);
    }

    .nav.nav-active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .menu-toggle {
        display: block;
        z-index: 101;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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