/* --- Root Variables for Dark Lavender Theme --- */
:root {
    --primary-color: #1a1029;
    --secondary-color: #2c1c46;
    --accent-color: #9d72ff;
    --text-color: #e8e0ff;
    --glow-color: rgba(157, 114, 255, 0.5);
}

/* --- General Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

/* --- Fixed Navigation Icons --- */
.icon-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
    background: rgba(26, 16, 41, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(157, 114, 255, 0.2);
}

.icon-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.icon-nav a:hover {
    color: var(--accent-color);
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 0 15px var(--glow-color);
}

/* --- Section Styling --- */
.scroll-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    perspective: 1000px; /* Crucial for 3D effect */
}

.hero {
    background-image: radial-gradient(circle at center, var(--secondary-color) 0%, var(--primary-color) 75%);
}

.content-box {
    max-width: 800px;
}

h1, h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--glow-color);
}

p {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(232, 224, 255, 0.8);
}

/* --- Feature Cards Section --- */
.feature-cards {
    display: flex;
    gap: 25px;
    margin-top: 50px;
    justify-content: center;
}

.card {
    background: rgba(44, 28, 70, 0.6);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(157, 114, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 250px;
}

.card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- 3D Scroll Animation Classes --- */
.hidden-3d {
    opacity: 0;
    /* Start position: moved down and tilted back */
    transform: translateY(100px) rotateX(-90deg);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform-origin: top center;
}

.show-3d {
    opacity: 1;
    /* End position: original state */
    transform: translateY(0) rotateX(0);
}