:root {
    --bg: #000814;
    --primary: #0074D9;
    --cyan: #7FDBFF;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --font-fancy: 'Comfortaa', cursive;
    --font-tech: 'Space Grotesk', sans-serif;
    --cursor-size: 20px;
}
[data-theme="light"] {
    --bg: #f0f5ff;
    --primary: #0056b3;
    --cyan: #0074D9;
    --text: #001f3f;
    --glass: rgba(0, 0, 0, 0.02);
    --border: rgba(0, 0, 0, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-tech);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease;
}
#cursor {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), width 0.3s, height 0.3s;
}
#cursor-blur {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.2;
    filter: blur(40px);
    transform: translate(-50%, -50%);
}
.aurora {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.5;
    overflow: hidden;
}
.aurora-item {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: var(--primary);
    animation: move 20s infinite alternate;
}
.aurora-item:nth-child(2) { background: var(--cyan); animation-duration: 25s; right: 0; }
@keyframes move {
    from { transform: translate(-20%, -20%) rotate(0deg); }
    to { transform: translate(20%, 20%) rotate(360deg); }
}
.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}
.main-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    padding: 20px;
}
.hero-section {
    grid-column: span 2;
    padding: 60px 0;
    text-align: left;
}
.hero-section span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--cyan);
    font-weight: 500;
}
h1 {
    font-family: var(--font-fancy);
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-top: 10px;
    line-height: 0.9;
    letter-spacing: -3px;
}
.bento-item {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}
.bento-item:hover {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px) scale(1.02);
}
.bento-item.tall { grid-row: span 1; }
.bento-item.wide { grid-column: span 2; padding: 50px; background: var(--text); color: var(--bg); }
.bento-item h3 { font-family: var(--font-fancy); font-size: 1.5rem; margin-bottom: 10px; }
.bento-item p { font-size: 0.85rem; opacity: 0.7; line-height: 1.4; }
.bento-item .arrow {
    position: absolute;
    bottom: 30px; right: 30px;
    width: 40px; height: 40px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.bento-item:hover .arrow {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #000;
    transform: rotate(-45deg);
}
.theme-toggle {
    position: fixed;
    top: 40px; right: 40px;
    z-index: 100;
    padding: 12px 24px;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}
@media (max-width: 768px) {
    .main-card { grid-template-columns: 1fr; }
    .hero-section { grid-column: span 1; padding: 40px 0; }
    .bento-item.wide { grid-column: span 1; }
    #cursor, #cursor-blur { display: none; }
    * { cursor: auto; }
    body { overflow-y: auto; }
}
