:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-gold: #c9a227;
    --accent-cyan: #00f0ff;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-hover: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.5s;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Hero Section */
.hero {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: #888;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Portal Container */
.portal-container {
    flex: 1;
    display: flex;
    width: 100%;
    position: relative;
}

/* Business Card Styles */
.business-card {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    overflow: hidden;
    transition: flex var(--transition-speed) ease;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.business-card:last-child {
    border-right: none;
}

/* Background Image */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    transition: background-color var(--transition-speed);
    z-index: 2;
}

/* Content */
.card-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    transform: translateY(0);
    transition: transform var(--transition-speed);
}

.brand-name {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.brand-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
}

.sub-brands {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #bbb;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.sub-brands span {
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.brand-tag {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid white;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

/* Hover Effects */
.business-card:hover {
    flex: 1.5; /* Expands the hovered card */
}

.business-card:hover .card-bg {
    transform: scale(1.1);
}

.business-card:hover .card-overlay {
    background-color: var(--overlay-hover);
}

.business-card:hover .brand-name {
    /* EMU AUDIO glow */
    text-shadow: 0 0 20px rgba(255, 200, 100, 0.5);
}

.business-card.unistar:hover .brand-name {
    /* Unistar glow */
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.business-card:hover .brand-tag {
    opacity: 1;
    transform: translateY(0);
    background: white;
    color: black;
}

/* Specific Stylings */
.emu .brand-name {
    color: #f0e6d2; /* Vintage white */
}

.unistar .brand-name {
    color: #e0f7fa; /* Cool white */
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #555;
    z-index: 20;
    pointer-events: none;
}

/* Responsiveness */
@media (max-width: 768px) {
    .portal-container {
        flex-direction: column;
    }

    .hero {
        height: 20vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }

    .business-card {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .business-card:hover {
        flex: 1; /* Disable expansion on mobile */
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .brand-tag {
        opacity: 1;
        transform: translateY(0);
    }
}
