/* ============== ANIMATED AURORA BACKGROUND ============== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 70% 20%, var(--primary-color) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 80%, var(--secondary-color) 0%, transparent 40%);
    filter: blur(100px);
    opacity: 0.3;
    animation: moveAurora 20s infinite alternate;
}

@keyframes moveAurora {
    from { transform: translate(-20%, -20%) scale(1.2); }
    to { transform: translate(20%, 20%) scale(1.5); }
}


/* ============== HERO SECTION ============== */
#hero { 
    text-align: center; 
    padding: 6rem 0; 
}

.hero-visual { 
    height: 180px; 
    width: 180px; 
    perspective: 1200px; 
    margin: 0 auto 3rem; 
}

.cube { 
    width: 100%; 
    height: 100%; 
    position: relative; 
    transform-style: preserve-3d; 
    animation: rotate 25s infinite linear; 
}

@keyframes rotate {
    from { transform: rotateX(-10deg) rotateY(0); }
    to { transform: rotateX(-10deg) rotateY(360deg); }
}

.face { 
    position: absolute; 
    width: 180px; 
    height: 180px; 
    border: 1px solid var(--primary-color); 
    background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, rgba(129, 140, 248, 0.0) 70%); 
    border-radius: 10px; 
}
.front  { transform: rotateY(0deg) translateZ(90px); }
.back   { transform: rotateY(180deg) translateZ(90px); }
.right  { transform: rotateY(90deg) translateZ(90px); }
.left   { transform: rotateY(-90deg) translateZ(90px); }
.top    { transform: rotateX(90deg) translateZ(90px); }
.bottom { transform: rotateX(-90deg) translateZ(90px); }

h1 { 
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 700; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    text-shadow: 0 0 20px var(--glow-color); 
}

.subtitle { 
    font-size: clamp(1rem, 2.5vw, 1.25rem); 
    max-width: 650px; 
    margin: 0 auto 2.5rem; 
    color: var(--text-muted); 
}

/* Stylish Button */
.btn-primary { 
    position: relative; 
    display: inline-block; 
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color)); 
    color: var(--bg-color); 
    padding: 16px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.btn-primary:hover { 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 10px 30px var(--glow-color); 
}

.btn-primary span { 
    position: relative; 
    z-index: 1; 
}

.btn-primary i { 
    position: absolute; 
    left: -10%; 
    top: -50%; 
    width: 20%; 
    height: 200%; 
    background: rgba(255, 255, 255, 0.3); 
    transform: skewX(-20deg); 
    transition: left 0.6s ease; 
}

.btn-primary:hover i { 
    left: 110%; 
}


/* ============== TOOLS GRID SECTION ============== */
#tools { 
    padding: 6rem 0; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 4rem; 
}

.section-header h2 { 
    font-size: 2.8rem; 
    margin-bottom: 0.5rem; 
}

.section-header p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
}

.tools-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}

.tool-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    padding: 2.5rem 2rem; 
    text-decoration: none; 
    color: var(--text-color); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; 
}

.tool-card:hover { 
    transform: translateY(-10px); 
    background: rgba(30, 41, 59, 0.8); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); 
    border-color: var(--primary-color); 
}

.card-icon { 
    font-size: 3.5rem; 
    line-height: 1; 
    margin-bottom: 1.5rem; 
}

.tool-card h3 { 
    font-size: 1.6rem; 
    margin-bottom: 0.75rem; 
}

.tool-card p { 
    color: var(--text-muted); 
}


/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .tools-grid { grid-template-columns: 1fr; }
    h1 { line-height: 1.2; }
    #hero { padding: 4rem 0; }
    .hero-visual { width: 150px; height: 150px; }
    .face { width: 150px; height: 150px; }
    .front, .back { transform: rotateY(0deg) translateZ(75px); }
    /* (You'll need to adjust all face translates to 75px) */
}
