/* --- DESIGN VARIABLES --- */
:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.8);
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-red: #ff0f3b;
    --accent-purple: #bd0fff; 
    --accent-edge: rgba(255, 100, 130, 0.9);
    --accent-glow: rgba(255, 15, 59, 0.6);
    --crystal-shine: rgba(255, 255, 255, 0.9);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--bg-color);
}

#ember-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; 
}

/* --- UNTERER GLOW EFFEKT --- */
.bottom-glow {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    background: radial-gradient(ellipse at center bottom, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    filter: blur(40px);
    mix-blend-mode: screen;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scaleY(1); }
    100% { opacity: 0.6; transform: scaleY(1.15); }
}

/* --- LAYOUT --- */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
}

.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    width: 100%;
    align-items: center;
}

.brand-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 950px) {
    .container { padding: 80px 20px 40px 20px; align-items: flex-start; }
    .layout-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .brand-section {
        align-items: center;
        text-align: center;
    }
    .diamond-scene {
        margin-left: 0 !important; 
    }
}

/* --- 3D DIAMANT --- */
.diamond-scene {
    width: 100px; height: 140px;
    margin-bottom: 25px;
    margin-left: 60px;
    position: relative;
    perspective: 1000px;
}

.diamond-pivot {
    width: 100%; height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: diamondSpin 18s linear infinite;
}

.face {
    position: absolute;
    width: 100px; height: 100px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: rgba(255, 15, 59, 0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-bottom: 2px solid var(--accent-edge);
    transform-origin: center bottom;
    overflow: hidden;
}

.face::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, transparent 40%, var(--crystal-shine) 50%, transparent 60%);
    transform: rotate(45deg); mix-blend-mode: overlay; opacity: 0.6;
    animation: sharpFlash 4s ease-in-out infinite alternate;
}

.top { bottom: 50%; transform-origin: center bottom; }
.t1 { transform: rotateY(0deg) translateZ(28px) rotateX(35deg); background-image: linear-gradient(to top, rgba(255,15,59,0.3), rgba(255,255,255,0.4)); }
.t2 { transform: rotateY(90deg) translateZ(28px) rotateX(35deg); background-image: linear-gradient(to top, rgba(200,0,40,0.4), rgba(255,200,200,0.2)); }
.t3 { transform: rotateY(180deg) translateZ(28px) rotateX(35deg); background-image: linear-gradient(to top, rgba(255,15,59,0.3), rgba(255,255,255,0.1)); }
.t4 { transform: rotateY(270deg) translateZ(28px) rotateX(35deg); background-image: linear-gradient(to top, rgba(150,0,30,0.5), rgba(255,100,100,0.3)); }

.bottom { top: 50%; transform-origin: center top; clip-path: polygon(50% 100%, 0% 0%, 100% 0%); border-bottom: none; border-top: 2px solid var(--accent-edge); }
.b1 { transform: rotateY(0deg) translateZ(28px) rotateX(-35deg); background-image: linear-gradient(to bottom, rgba(255,15,59,0.3), rgba(255,255,255,0.2)); }
.b2 { transform: rotateY(90deg) translateZ(28px) rotateX(-35deg); background-image: linear-gradient(to bottom, rgba(180,0,40,0.4), rgba(255,150,150,0.1)); }
.b3 { transform: rotateY(180deg) translateZ(28px) rotateX(-35deg); background-image: linear-gradient(to bottom, rgba(255,15,59,0.5), rgba(50,0,0,0.3)); }
.b4 { transform: rotateY(270deg) translateZ(28px) rotateX(-35deg); background-image: linear-gradient(to bottom, rgba(200,0,50,0.3), rgba(255,255,255,0.3)); }

.diamond-core {
    position: absolute; width: 40px; height: 60px;
    top: 50%; left: 50%; transform: translate(-50%, -50%) rotateY(45deg);
    background: radial-gradient(circle, #ffffff 0%, var(--accent-red) 60%, transparent 100%);
    filter: blur(10px) drop-shadow(0 0 20px var(--accent-red)); opacity: 0.8;
}

@keyframes diamondSpin {
    0% { transform: rotateX(15deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(15deg) rotateY(360deg) rotateZ(360deg); }
}
@keyframes sharpFlash {
    0% { opacity: 0.1; transform: translateX(-50%) rotate(45deg); }
    20% { opacity: 0.8; }
    100% { opacity: 0.1; transform: translateX(50%) rotate(45deg); }
}

@keyframes glassGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 15, 59, 0.6)) drop-shadow(0 0 20px rgba(255, 15, 59, 0.4)); }
    50% { filter: drop-shadow(0 0 15px rgba(200, 50, 150, 0.6)) drop-shadow(0 0 30px rgba(200, 50, 150, 0.4)); }
    100% { filter: drop-shadow(0 0 10px rgba(189, 15, 255, 0.7)) drop-shadow(0 0 25px rgba(189, 15, 255, 0.5)); }
}

h1 {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 5rem;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -3px;
    color: rgba(255, 255, 255, 0.1); 
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: glassGlow 4s ease-in-out infinite alternate;
}

p.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 15px;
    margin-bottom: 0;
    color: #d0d0d0;
    text-transform: uppercase;
    letter-spacing: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 12px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 15, 59, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 15, 59, 0.2);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px -10px var(--accent-glow);
    background: rgba(30, 30, 30, 0.9);
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.card h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}
.card:hover h2::after { width: 100%; }

.card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

.card::before {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 15, 59, 0.4), transparent);
    transform: skewX(-20deg); transition: none;
}
.card:hover::before { left: 150%; transition: all 0.7s ease; }

footer {
    margin-top: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.5;
}