/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fcab4b;
    --secondary-color: #0D425D;
    --accent-color: #fe6040;
    --bg-color: #ecf0f1;
    --card-bg: #ffffff;
    --text-color: #34495e;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --link-color: #309DB9;
    --link-hover: #14638c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header
   =========================== */
.header {
    background-color: #000;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .container {
    position: relative;
    padding: 0;
}

.header-banner {
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.header-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.header-logo .logo-image {
    max-width: 500px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.header-polykite-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 11;
}

.polykite-logo-image {
    max-width: 120px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ===========================
   Navigation
   =========================== */
.navigation {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-links li a:hover {
    background-color: var(--primary-color);
}

/* ===========================
   Main Content Grid
   =========================== */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ===========================
   Sections
   =========================== */
.section {
    background-color: var(--card-bg);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 6px solid var(--primary-color);
    box-shadow: 0 3px 0 0 var(--accent-color);
}

.section h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.section-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===========================
   Features List
   =========================== */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.6;
}

.features-list li:before {
    content: "▸";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ===========================
   Video Grid
   =========================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.video-placeholder {
    background-color: #000;
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 4px;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.video-link a:hover {
    text-decoration: underline;
}

/* ===========================
   Image Grid
   =========================== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* ===========================
   Logo Grid
   =========================== */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.logo-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.logo-item h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1rem;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

/* ===========================
   Awards List
   =========================== */
.awards-list {
    list-style: none;
    padding: 0;
}

.awards-list li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* ===========================
   Contact Info
   =========================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    word-break: break-word;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.contact-item a {
    color: var(--link-color);
    text-decoration: none;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

/* ===========================
   Sidebar / Factsheet
   =========================== */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.factsheet {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.factsheet h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 6px solid var(--primary-color);
    box-shadow: 0 3px 0 0 var(--accent-color);
}

.fact-group {
    margin-bottom: 25px;
}

.fact-group h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fact-group p {
    margin: 5px 0;
    color: var(--text-color);
}

.fact-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

.fact-group ul {
    list-style: none;
    padding: 0;
}

.fact-group ul li {
    padding: 5px 0;
}

.fact-group a {
    color: var(--link-color);
    text-decoration: none;
}

.fact-group a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ===========================
   Additional Links / Buttons
   =========================== */
.additional-links {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.additional-links h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.download-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.download-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
    opacity: 0.8;
}

/* ===========================
   Image Modal
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary-color);
}

.modal-caption {
    margin: 20px auto;
    text-align: center;
    color: #ccc;
    padding: 10px;
    max-width: 700px;
}

/* ===========================
   Responsive Design
   =========================== */
@media screen and (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .header-logo .logo-image {
        max-width: 400px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links li a {
        padding: 12px 20px;
    }

    .section {
        padding: 25px;
    }

    .header-logo .logo-image {
        max-width: 300px;
    }

    .polykite-logo-image {
        max-width: 80px;
    }

    .header-polykite-logo {
        top: 10px;
        right: 10px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .header-logo .logo-image {
        max-width: 200px;
    }

    .section {
        padding: 20px;
    }

    .factsheet {
        padding: 20px;
    }
}
