body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #222;
}

html {
    scroll-behavior: smooth;
}

a {
    transition: color 0.2s ease;
}

nav {
    background-color: #1f3a5f;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

nav a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

#theme-toggle {
    margin-left: 20px;
    background: none;
    border: 1px solid white;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

#theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, p, ul {
    margin-left: 40px;
    margin-right: 40px;
}

h1 {
    margin-top: 40px;
    color: #1f3a5f;
}

h2 {
    margin-top: 50px;
    color: #1f3a5f;
    border-bottom: 2px solid #d9e2ef;
    padding-bottom: 8px;
}

p, li {
    font-size: 18px;
    line-height: 1.6;
}

ul {
    padding-left: 60px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
    margin-top: 0;
}

.project-card a {
    color: #1f3a5f;
    font-weight: bold;
}

.project-card img,
.project-card video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 6px;
}

.hero {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero p {
    margin-bottom: 18px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-links a {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #1f3a5f;
}

.hero-links a:hover {
    text-decoration: underline;
}

.hero-image img {
    display: block;
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.media-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
}

.media-row img {
    width: calc(33.33% - 8px);
    max-width: calc(33.33% - 8px);
    height: auto;
    border-radius: 6px;
}

.media-row video {
    width: 100%;
    max-width: 600px;
    border-radius: 6px;
}

.arvr-media-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
}

.arvr-media-row img {
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.arvr-media-row video {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 6px;
}

.quick-links a {
    color: #1f3a5f;
    font-weight: bold;
    text-decoration: none;
    margin-right: 12px;
}

.quick-links a:hover {
    text-decoration: underline;
}

.honor-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
}

.honor-media img {
    max-width: 450px;
    width: auto;
    height: auto;
    border-radius: 6px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 25px 40px;
}

.projects-grid .project-card {
    margin: 0;
    height: 100%;
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image img {
        width: 180px;
    }

    .media-row img {
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .arvr-media-row img {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    nav a {
        margin: 8px 10px;
    }

    #theme-toggle {
        margin-top: 10px;
    }
}

@media (max-width: 700px) {
    .contact-card h3 {
        gap: 8px;
    }

    .contact-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 700px) {
    h1, h2, p, ul {
        margin-left: 20px;
        margin-right: 20px;
    }

    .project-card {
        margin: 20px 20px;
    }

    .container {
        padding: 10px;
    }
}

@media (max-width: 700px) {
    .honor-media {
        margin-left: 0;
        margin-right: 0;
    }

    .honor-media img {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== DARK MODE ===== */

body.dark-mode {
    background-color: #121212;
    color: #e6e6e6;
}

body.dark-mode nav {
    background-color: #0b2239;
}

body.dark-mode nav a.active {
    color: #ffffff;
}

body.dark-mode p,
body.dark-mode li {
    color: #dddddd;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #9ecbff;
}

body.dark-mode .project-card a,
body.dark-mode .quick-links a,
body.dark-mode .hero-links a {
    color: #9ecbff;
}

body.dark-mode .project-card,
body.dark-mode .hero {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode h2 {
    border-bottom: 2px solid #2f4358;
}

body.dark-mode #theme-toggle {
    border-color: #dddddd;
    color: #dddddd;
}

body.dark-mode #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-icon {
    filter: brightness(1);
}
