:root {
    --bg-color: #f8f9fa;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent: #6d28d9;
    --accent-light: #8b5cf6;
    --accent-cyan: #0d9488;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated Blobs */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(109, 40, 217, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(45, 212, 191, 0.1), transparent 25%);
    filter: blur(80px);
    animation: slowPulse 10s infinite alternate;
}

@keyframes slowPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-btn {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--glass-bg);
}

.contact-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

main {
    padding: 8rem 5% 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 4vh; /* Reduced from 12vh to pull animation up */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#canvas-container {
    position: relative;
    width: 100vw;
    height: 50vh; /* Reduced from 60vh to pull title up */
    z-index: 10;
    pointer-events: auto; /* Enable mouse interaction */
    margin-top: -8rem; 
    cursor: grab;
}

#canvas-container:active {
    cursor: grabbing;
}

.hero-content {
    position: relative;
    z-index: 15;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards ease-out;
    animation-delay: 0.2s;
    background: transparent;
    padding: 0 2rem;
    margin-top: -10vh; /* Pull title closer to the crystal */
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn.primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.4);
}

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

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.glass-card.visible {
    animation: fadeUp 0.8s forwards ease-out;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.glass-card p {
    color: var(--text-secondary);
}

footer {
    padding: 0 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    margin-bottom: 2rem;
}

.footer-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Magical Language Rotator */
.lang-rotator {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-rotator.magical-hide {
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.8) translateY(-5px);
}
