:root {
    --bg-color: #09090b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #8b5cf6; /* Purple */
    --accent-secondary: #d946ef; /* Violet */
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Background Animated Balls */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 15s infinite alternate ease-in-out;
}

.ball-1 {
    top: -5%;
    left: 5%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    animation-delay: 0s;
}

.ball-2 {
    bottom: -10%;
    right: 0%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.ball-3 {
    top: 30%;
    left: 40%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #6d28d9 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(20px, 50px) scale(1.05); }
}

main {
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.title {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: transparent;
    border: 2px solid var(--accent-secondary);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
    transform: translateY(-2px);
}

.btn:hover::before {
    opacity: 0;
}

/* Scripts Section */
.scripts-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 8rem 2rem 4rem 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Code Space (Glassmorphism) */
.code-space {
    width: 100%;
    max-width: 900px;
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    margin-bottom: 3rem;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-label {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.copy-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 10px;
    border-width: 1px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1.2em;
    overflow: hidden;
}

.text-copy, .text-copied {
    position: absolute;
    white-space: nowrap;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
}

.text-copy {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.text-copied {
    transform: translateY(20px) scale(0.8);
    opacity: 0;
}

.copy-btn.is-copied .text-copy {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
}

.copy-btn.is-copied .text-copied {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.code-body {
    padding: 2rem;
    overflow-x: auto;
}

pre {
    margin: 0;
}

code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre;
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 3.5rem; }
    .subtitle { font-size: 1.2rem; }
    .code-space { margin: 0 1rem; width: auto; }
}
