:root {
    --bg-dark: #050505;
    --accent: #3b82f6;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* Section Transitions */
section {
    position: relative;
    z-index: 1;
}

/* Specific Page 1 Sequence Handling */
#page-1 canvas {
    filter: brightness(1.1) contrast(1.05);
}

/* Hover effects for logos */
.logo-btn {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-btn:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 15px rgba(59, 130, 246, 0.2));
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Mobile Menu Open States */
.menu-open #mobile-overlay {
    opacity: 1;
    pointer-events: auto;
}

.menu-open .nav-item {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .btn-line-1 {
    transform: translateY(10px) rotate(45deg);
}

.menu-open .btn-line-2 {
    opacity: 0;
}

.menu-open .btn-line-3 {
    transform: translateY(-10px) rotate(-45deg);
}

/* Typography Enhancements */
.font-premium {
    letter-spacing: -0.02em;
}

/* Typewriter Cursor */
#typewriter::after {
    content: '|';
    display: inline-block;
    color: var(--accent);
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Logo Contrast Plate */
.logo-plate {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.logo-plate:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Cyberpunk Aesthetic & UI Components */
.cyber-border {
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(5, 5, 5, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cyber-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--accent), transparent, #c9a962, transparent);
    z-index: -1;
    opacity: 0.3;
    filter: blur(5px);
    transition: opacity 0.4s ease;
}

.cyber-border:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

.cyber-border:hover::before {
    opacity: 0.6;
}

/* Cyber Button - Klik Link */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-cyber:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 30px var(--accent);
    transform: translateY(-3px) scale(1.05);
}

.btn-cyber::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-cyber:hover::after {
    left: 100%;
}

/* Modern Typewriter Typography */
.type-writer-modern {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
    visibility: hidden;
}

.type-writer-modern.typing-done {
    visibility: visible;
}

.cursor-blink {
    display: inline-block;
    width: 6px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink-tech 0.8s infinite;
}

@keyframes blink-tech {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Transition Effects for Images & Logos */
.group:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) contrast(1.1);
}

.text-neon {
    color: #00f2ff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
}

/* Slide-in Animation */
.slide-left-to-right {
    opacity: 0;
    transform: translateX(-100px);
}