/* Reset default margin and padding */
:root {
    --primary-color: #005293;
    --secondary-color: #ff9900;
    --text-color: #fff;
    --bg-overlay: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: 'Calibri', sans-serif;
    color: var(--text-color);
    background-color: #000;
    overflow-y: auto;
}

/* Dashboard Styles */
.dashboard {
    background: 
	url('assets/gifs/background.gif') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Header Group */
.header-group {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.header-group h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.logo img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.dashboard h1 {
    font-size: 6rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Company Links */
.company-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.company-link {
    text-decoration: none;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    justify-content: flex-start; /* Align content to top */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-link:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.company-link img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.company-link span {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard {
        padding: 1.5rem;
    }

    .header-group h2 {
        font-size: 1.3rem;
    }

    .dashboard h1 {
        font-size: 2rem;
    }

    .company-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .company-link {
        padding: 1rem;
        min-height: 160px;
    }

    .company-link img {
        width: 60px;
        height: 60px;
    }

    .company-link span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 1rem;
    }

    .header-group h2 {
        font-size: 1.1rem;
    }

    .dashboard h1 {
        font-size: 1.5rem;
    }

    .company-links {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .company-link {
        min-height: 120px;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        padding: 1rem;
    }

    .company-link img {
        margin-right: 1rem;
        margin-bottom: 0;
        width: 50px;
        height: 50px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .dashboard {
        padding: 1rem;
        justify-content: flex-start;
    }

    .company-links {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }

    .company-link {
        min-height: 120px;
    }
}