/* Reset and Base Styles */
html, body, h1, h2, h3, h4, h5, h6, ul {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --orange: rgb(240, 129, 56);
    --green: rgb(120, 213, 112);
}

/* Global Styles */
body {
    background-color: black;
    color: white;
    margin: auto;
    max-width: 1080px;
}

hr {
    margin: 5px;
    color: white;
}

h4, h5, h6 {
    text-align: center;
}
h4 { font-size: 300%; }
h5 { font-size: 250%; margin: 25px 0 10px 0; }
h6 { font-size: 150%; padding-bottom: 10px; }

/* Header */
header {
    padding: 20px;
    background-color: #000;
    color: white;
}
.header-content {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.header-icon {
    font-size: 3rem;
    margin-right: 15px;
}
header h1 {
    font-size: 2rem;
    margin: 0;
    color: white;
}
.description {
    font-size: 1rem;
    color: rgb(178, 178, 178);
    line-height: 1.6;
    max-width: 800px;
    margin-top: 10px;
}

/* Main content */
.main {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 138px - 44px - 62px);
}
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0px 0px 50px;
}
.content, .content2 {
    background-color: black;
    color: white;
    margin-bottom: 5px;
}
.content2 { margin-bottom: 20px; }
.content:last-child, .content2:last-child { margin-bottom: 0; }
.contact3 {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    visibility: hidden;
}
video {
    display: block;
    margin: auto;
}

/* Content */
.content-header {
    padding: 20px 0 20px 0;
    margin: 10px 0 0px 0;
    color: white;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.content-header .header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.content-header .section-icon {
    font-size: 2.2rem;
    color: var(--orange);
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.content-header h1 {
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.content-header .description {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
    max-width: 600px;
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
    justify-items: center;
}
.content-box {
    background: #000000;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.15s;
}

.project-images {
    display: grid;
    width: 100%;
    gap: 5px;
    grid-template-columns: 1fr;
}

.project-images:has(img:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}

.project-thumb {
    width: 100%;
    height: 250px;

    object-fit: cover;
    background: #222;
    display: block;
    max-width: 100%;
}
.project-desc h3 {
    color: var(--orange);
    font-size: 1.3em;
    text-align: center;
}
.project-desc p {
    margin: 0;
    color: #ccc;
    font-size: 0.8em;
    text-align: center;
}

/* Lists */
ul.list {
    list-style-type: square;
    margin: 0 0 25px 20px;
}
ul.nlist {
    list-style-type: circle;
    margin: 0 0 0 20px;
}
ul:not(:last-child) { margin-bottom: 10px; }

/* Table of Contents */
.toc ul {
    text-align: center;
    list-style-type: none;
    font-size: 18px;
    margin: 10px;
}
.toc :link { color: var(--orange); }

/* Hyperlink Styles */
a:link, a:visited {
    text-decoration: none;
    color: white;
}
a:hover, a:active {
    color: white;
}

/* Image Grid */
.imgcontent {
    display: none; /*grid*/
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 5px;
}
.imgcontent .wide { grid-column: span 2; }
.imgcontent .scale-80 { width: 100%; margin: auto; }
.imgcontent img {
    width: 100%;
    height: auto;
    display: block;
}

/* Universal Button Styles */
.button,
.nav-btn,
.primary-footer .social-link {
    background: black;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 5px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
}

.button:hover,
.button:focus,
.nav-btn:hover,
.nav-btn:focus,
.primary-footer .social-link:hover,
.primary-footer .social-link:focus {
    transform: translateY(-4px);
    color: var(--orange);
}

/* Button Container */
.button-container {
    flex: 1 1 20%;
    text-align: center;
    margin: 5px;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin: 10px 0;
    width: 100%;
}
.nav-btn {
    flex: 1 1 0;
    min-width: 100px;
    max-width: 220px;
    text-align: center;
}

/* Footer Styling */
.primary-footer {
    background-color: black;
    color: white;
    padding: 20px 20px;
    text-align: center;
    font-size: 14px;
}
.primary-footer .media {
    margin-bottom: 15px;
}
.primary-footer .social-link i {
    margin-right: 8px;
    font-size: 25px;
}
.primary-footer small {
    display: block;
    margin-top: 20px;
    color: #777;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #353535;
    padding: 5px;
    flex-wrap: wrap;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 100%;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.dropdown-content a {
    color: var(--orange);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #aaaaaa;
    color: black;
}
.dropdown:hover .dropdown-content {
    display: block;
}
