/* Core Variables & Amaterasu-inspired Theme */
:root {
    --charcoal-base: #0f1115;
    --charcoal-surface: #1a1d24;
    --charcoal-border: #2a2e39;
    --orange-vibrant: #ff6600;
    --orange-glow: rgba(255, 102, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #9ba1b0;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default for custom cursor */
}

html, body {
    background-color: var(--charcoal-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal-base); }
::-webkit-scrollbar-thumb { background: var(--charcoal-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-vibrant); }

/* Interactive Canvas */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto; /* Allow mouse interaction for canvas */
}

/* Custom Cursor */
#cursor-dot, #cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--orange-vibrant);
    transition: width 0.2s, height 0.2s;
}

#cursor-follower {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 102, 0, 0.5);
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.2s, height 0.2s;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0) 100%);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--orange-vibrant);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--charcoal-border);
    border-radius: 50px;
    color: var(--text-primary) !important;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--orange-vibrant);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px var(--orange-glow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 35px var(--orange-glow);
}

/* Sections */
section, header {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5%;
}

/* Hero */
#hero {
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--charcoal-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    background: rgba(26, 29, 36, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 5vw;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--text-secondary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Bento Grid */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.bento-card {
    background: var(--charcoal-surface);
    border: 1px solid var(--charcoal-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-card:hover {
    transform: translateY(-5px);
}

/* Fluid Hover Glow Effect */
.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,102,0,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.bento-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.bento-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.featured-card {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, var(--charcoal-surface), #13151a);
    border-color: rgba(255, 102, 0, 0.2);
}

/* Architecture */
.architecture-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.architecture-container h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.arch-text p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

/* Form Styles */
.contact-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.input-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
    resize: none;
}

.input-wrapper label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1.1rem;
}

.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label,
.input-wrapper textarea:focus ~ label,
.input-wrapper textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--orange-vibrant);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--charcoal-border);
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--orange-vibrant);
    transition: width 0.4s ease;
}

.input-wrapper input:focus ~ .input-line::after,
.input-wrapper textarea:focus ~ .input-line::after {
    width: 100%;
}

.form-submit {
    width: 100%;
    border: none;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .nav-links { display: none; } /* Simplified for mobile */
}