/* Base: Strong Typography, Immersive, Responsive (Tailwind/Bootstrap Inspired Utilities) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif; /* Typography heavy */
}

body {
    background: black; /* Isolated black for logo */
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background: Tight Gradient Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 50%), 
                repeating-linear-gradient(45deg, rgba(0, 255, 0, 0.05) 0px, rgba(0, 255, 0, 0.05) 1px, transparent 1px, transparent 20px);
    opacity: 0.5;
    pointer-events: none;
    animation: parallax 20s linear infinite; /* Animation for motion */
}

@keyframes parallax {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

/* Hero/Logo: Isolated, Pulsing Animation with 3D Container */
.hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

#logo-container {
    position: absolute;
    top: 20%;
    z-index: -1; /* Behind img for modeling overlay */
}

.logo {
    max-width: 80%;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

/* Hexagon Grid: 4 Sections, Clip-Path, Hover Parallax (Figma-Style) */
.hex-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 800px;
}

.hex {
    width: 200px;
    height: 230px;
    background: rgba(0, 0, 0, 0.8);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.hex:hover {
    transform: rotate(5deg) scale(1.1) translateY(-10px); /* Parallax hover */
    box-shadow: 0 0 20px cyan;
}

.hex a {
    color: cyan;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Tooltips: Techno Popups (Dense Info) */
[title] {
    position: relative;
}

[title]::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: lime;
    padding: 0.5rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 0.8rem;
}

[title]:hover::after {
    opacity: 1;
}

/* Upper Right Gridbox: Blends, Discoverable */
.hidden-gridbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 255, 0, 0.1);
    padding: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    opacity: 0.5;
    transition: opacity 0.3s;
    color: black;
}

.hidden-gridbox:hover {
    opacity: 1;
}

.hidden-gridbox a {
    color: black;
    text-decoration: none;
}

/* Contact: Glowing Button Animation */
.contact {
    margin: 2rem 0;
}

.contact-btn {
    background: linear-gradient(45deg, cyan, lime);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: black;
    text-decoration: none;
    font-weight: 900;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px cyan; }
    to { box-shadow: 0 0 20px lime; }
}

/* Footer: Credits, Dot Link, Dense Links/Forms (Robust Responsive) */
footer {
    text-align: center;
    padding: 1rem;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credits {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.dot-link {
    font-size: 0.5rem;
    color: gray;
    text-decoration: none;
}

.links-section {
    display: flex;
    flex-direction: column; /* Tailwind: flex flex-col */
    align-items: center;
    gap: 1rem; /* Dense info */
}

.links-section ul {
    list-style: none;
    display: flex;
    gap: 1rem; /* Tailwind: flex gap-4 */
}

.links-section a {
    color: cyan;
    text-decoration: none;
    font-size: 0.8rem;
}

.stylized-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
    margin: 1rem auto; /* Bootstrap: mx-auto */
    padding: 1rem;
    border: 1px solid cyan;
    border-radius: 8px;
    animation: fadeIn 1s; /* Animation for UX */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stylized-form label {
    font-weight: 500;
}

.stylized-form input {
    padding: 0.5rem;
    border: 1px solid lime;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.form-btn {
    background: cyan;
    color: black;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-btn:hover {
    background: lime;
}

#poll-viz {
    margin-top: 1rem;
    border: 1px solid lime; /* Expert data viz frame */
}

/* Responsive: Mobile-First (Bootstrap Media Queries) */
@media (max-width: 768px) {
    .hex-grid {
        grid-template-columns: 1fr;
    }
    .hex {
        width: 150px;
        height: 173px;
    }
    .links-section {
        padding: 0 1rem;
    }
}