* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

header {
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #000000;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.6;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    border: 1px solid #333;
    list-style: none;
    padding: 15px 0 10px 0;
    min-width: 150px;
    margin-top: 0;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

main {
    margin-top: 100px;
    padding: 40px;
    min-height: calc(100vh - 200px);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.main-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.tagline {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.content h1 {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: 300;
}

.content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 300;
}

.mission {
    font-size: 20px;
    font-style: italic;
    margin: 40px 0;
    padding: 30px;
    border-left: 2px solid #ffffff;
    opacity: 0.9;
}

.contact-info {
    font-size: 18px;
    line-height: 2;
}

.contact-info a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.6;
}

.director-image {
    text-align: center;
    margin: 30px 0;
}

.director-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.director-info {
    text-align: center;
    margin: -40px 0 40px;
}

.director-info p {
    margin: 0px 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
}

.contact-form {
    margin: 40px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 300;
    transition: border-color 0.3s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select option {
    background-color: #000000;
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #cccccc;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 12px;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: #333333;
}

.submit-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #333333;
}

.project-list {
    margin-top: 40px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s;
}

.project-link:hover {
    opacity: 0.8;
}

.project-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #333;
    align-items: start;
}

.project-link:last-child .project-item {
    border-bottom: none;
}

.project-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border: solid #333;
    border-width: 0 1px 0 0;
    align-self: start;
    margin-top: 45px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    align-self: start;
}

.project-title {
    font-size: 24px;
    margin: 0;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
}

.project-description {
    font-size: 16px;
    font-weight: 300;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.project-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.project-status {
    color: #ffffff;
    font-weight: 400;
}

.project-date {
    color: #999999;
    font-weight: 300;
}

.project-status::after {
    content: " • ";
    color: #999999;
    margin-left: 12px;
}

.publication-list {
    margin-top: 40px;
}

.publication-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s;
}

.publication-link:hover {
    opacity: 0.7;
}

.publication-link:hover .publication-title {
    opacity: 0.8;
}

.publication-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid #333;
}

.publication-link:last-child .publication-item {
    border-bottom: none;
}

.publication-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publication-type {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

.publication-date {
    font-size: 14px;
    font-weight: 300;
    color: #999999;
}

.publication-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.publication-title {
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.publication-description {
    font-size: 16px;
    font-weight: 300;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.download-template-section {
    margin: 30px 0 40px;
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 300;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #333333;
}

.publication-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.publication-header .publication-meta {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 20px;
}

.publication-header .publication-type::after {
    content: " • ";
    color: #999999;
}

.publication-header h1 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.publication-body h2 {
    font-size: 24px;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 20px;
}

.publication-body h2:first-child {
    margin-top: 0;
}

.publication-body p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #e5e5e5;
}

.publication-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.back-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.6;
}

.project-header {
    margin-bottom: 50px;
}

.project-hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-header h1 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 15px;
}

.project-header .project-meta {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.project-body {
    margin-top: 50px;
}

.project-body h2 {
    font-size: 24px;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 20px;
}

.project-body h2:first-child {
    margin-top: 0;
}

.project-body p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #e5e5e5;
}

.project-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.projects-slider-container {
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 0 40px;
    border-top: 1px solid #333;
    padding-top: 80px;
}

.slider-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: left;
}

.slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.slider-project-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    padding: 20px;
    transition: opacity 0.3s;
}

.slider-item:hover .slider-project-item {
    opacity: 0.8;
}

.slider-project-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border: solid #333;
    border-width: 0 1px 0 0;
    margin-top: 5px;
}

.slider-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-project-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-project-title {
    font-size: 24px;
    margin: 0;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.3;
}

.slider-project-description {
    font-size: 16px;
    font-weight: 300;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.slider-project-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.slider-project-status {
    color: #ffffff;
    font-weight: 400;
}

.slider-project-date {
    color: #999999;
    font-weight: 300;
}

.slider-project-status::after {
    content: " • ";
    color: #999999;
    margin-left: 12px;
}

.slider-btn {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.slider-btn:hover {
    opacity: 0.6;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
        font-size: 14px;
    }

    header {
        padding: 15px 20px;
    }

    .logo img {
        height: 40px;
    }

    main {
        padding: 20px;
    }

    .main-logo {
        max-width: 100%;
    }

    .tagline {
        font-size: 18px;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .project-image {
        width: 100%;
        aspect-ratio: 1/1;
    }

    .project-title {
        font-size: 20px;
    }

    .project-description {
        font-size: 16px;
    }

    .project-hero-image {
        max-height: 250px;
    }

    .project-header h1 {
        font-size: 28px;
    }

    .project-body h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    .project-body p {
        font-size: 16px;
    }

    .publication-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .publication-meta {
        flex-direction: row;
        gap: 12px;
    }

    .publication-type::after {
        content: " • ";
        color: #999999;
    }

    .publication-title {
        font-size: 20px;
    }

    .publication-description {
        font-size: 15px;
    }

    .publication-header h1 {
        font-size: 28px;
    }

    .publication-body h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    .publication-body p {
        font-size: 16px;
    }

    .projects-slider-container {
        padding: 0 20px;
        margin: 60px auto 40px;
    }

    .slider-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .slider {
        gap: 10px;
    }

    .slider-project-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .slider-project-image {
        width: 100%;
        aspect-ratio: 1/1;
        margin-top: 0;
    }

    .slider-project-title {
        font-size: 20px;
    }

    .slider-project-description {
        font-size: 16px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    #mainSVG {
        margin: 15px 0;
    }

    #poly, #poly2 {
        stroke-width: 1.5;
    }
}

/* ================================
   Form Message Styles
   ================================ */

.form-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.form-message-error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Loading state for submit button */
button[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed;
}

/* Mobile responsive adjustments for form messages */
@media (max-width: 768px) {
    .form-message {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* ===============================================
   Newsletter Subscription Section
   =============================================== */

.newsletter-signup {
    background-color: #000;
    border-top: 1px solid #333;
    padding: 60px 20px;
    margin-top: 60px;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-container h2 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 15px;
    color: #fff;
}

.newsletter-container > p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    margin-bottom: 20px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

#newsletter-email {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s;
}

#newsletter-email:focus {
    border-color: #cccccc;
}

#newsletter-email::placeholder {
    color: #666;
}

.newsletter-btn {
    padding: 12px 32px;
    font-size: 16px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-weight: 300;
}

.newsletter-btn:hover {
    background-color: #333333;
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 3px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.newsletter-message.show {
    display: block;
}

.newsletter-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.newsletter-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.newsletter-privacy {
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}

/* Newsletter mobile responsiveness */
@media (max-width: 768px) {
    .newsletter-signup {
        padding: 40px 20px;
        margin-top: 40px;
    }

    .newsletter-container h2 {
        font-size: 24px;
    }

    .newsletter-container > p {
        font-size: 14px;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
    }

    #newsletter-email,
    .newsletter-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }
}
