* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0f;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #00ffcc;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #b388ff;
    box-shadow: 0 0 15px rgba(179, 136, 255, 0.7);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #00ffcc #1a1a2e;
}

#code-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 15, 1), rgba(26, 26, 46, 0.8));
    overflow: hidden;
    animation: fadeIn 1.5s ease-in-out;
}

#hero-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}

.hero h1 {
    font-size: 4.5rem;
    color: #00ffcc;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.6rem;
    color: #b388ff;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.cta {
    padding: 1rem 2.5rem;
    background: none;
    border: 2px solid #00ffcc;
    color: #00ffcc;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

.cta:hover {
    background: #00ffcc;
    color: #0a0a0f;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.6);
    transform: scale(1.05);
}

.about, .projects, .prompts, .contact {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #1a1a2e;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 0.2s;
}

.projects, .prompts {
    background: #0f0f1a;
}

.about .content, .projects .content, .prompts .content, .contact .content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

#cube-container {
    width: 250px;
    height: 250px;
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.about-text {
    max-width: 500px;
    margin: 2rem auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
}

.project-card {
    background: #1a1a2e;
    padding: 2rem;
    border: 1px solid #b388ff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(5deg);
    box-shadow: 0 0 30px rgba(179, 136, 255, 0.4);
}

.prompt-entry {
    background: #1a1a2e;
    padding: 2rem;
    margin: 1.5rem auto;
    max-width: 800px;
    width: 100%;
    border-left: 5px solid #00ffcc;
    transition: transform 0.3s ease;
}

.prompt-entry:hover {
    transform: translateX(10px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transition: transform 0.4s ease;
}

.social-cube:hover {
    transform: scale(1.2) rotate(10deg);
}

.social-cube canvas {
    width: 100%;
    height: 100%;
}

#audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: #1a1a2e;
    border: 2px solid #00ffcc;
    color: #00ffcc;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#audio-control:hover {
    background: #00ffcc;
    color: #0a0a0f;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(0, 255, 204, 0.7); }
    to { text-shadow: 0 0 25px rgba(0, 255, 204, 1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

section {
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .about { flex-direction: column; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.3rem; }
    .project-grid { grid-template-columns: 1fr; }
    .social-cube { width: 50px; height: 50px; }
    #cube-container { width: 200px; height: 200px; }
}