/* CSS RESETTING AND GLOBAL BOX SIZING */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY BASE STYLES */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
    background: #181b23;
    color: #222;
    line-height: 1.6;
}

/* LAYOUT CONTAINERS */
.container {
    width: 95%;
    max-width: 1200px;
    flex: 1 0 auto;
    margin: 3rem auto 0 auto;
    padding: 1rem 1rem;
    position: relative;
    z-index: 1;
    background: #eaeaea;
    color: #232946;
    border: 2px solid #222;
    border-radius: 20px;
    box-shadow: 
    0 4px 32px 8px rgba(24,27,35,0.2),
    0 0 0 100vw rgba(24,27,35,0.35) inset;
}

.sections {
    gap: 2rem;
    display: grid;
    margin: 2rem 0;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* SECTION STYLES */
h2, h3 {
  color: #232946;
}

section, header, .container {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.sections section{
    min-width: 0;
    box-sizing: border-box;
    color: #232946;
    background: #f4f4f7;
    border-left: 4px solid #232946;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-radius: 0.75rem;
    padding: 1.5rem 1.2rem;
}

.sections section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* HEADER STYLES */
header {
    text-align: center;
    padding: 1.2rem 0 0.8rem 0;
    background: #f4f4f7;
    color: #232946;
    box-shadow: 
        0 6px 24px 0 rgba(35,41,70,0.13),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #232946;
    border-radius: 16px 16px 0 0;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
}

header h1 {
    color: #000;
    text-shadow:
        1px 2px 8px #232946,
        0 1px 0 #fff;
}

header hr {
    border: none;
    border-top: 2px solid #393e60;
    width: 95%;
    margin: 0.5rem auto 0.5rem auto;
    border-radius: 2px;
    opacity: 0.8;
}

/* LINK STYLES */
a {
    margin: 0 1rem;
    color: #005ea0;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover, a:focus {
    transform: scale(1.05);
}

/* FOOTER STYLES */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(24,27,35,0.2);
    color: #f4faff;
    padding: 1.5rem 0 1rem 0;
    font-size: 1.05rem;
    flex-shrink: 0;
    position: relative;
}

#visit-counter {
    font-size: 1.7rem;
    font-weight: bold;
    color: #ffb700;
}

#trademark {
    margin: 0;
    font-size: 1rem;
    color: #eaeaea;
    text-align: right;
}

/* MEDIA QUERIES */
@media (min-width: 900px) {
  .sections {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .sections {
    grid-template-columns: 1fr;
  }
}