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

html {
    scroll-behavior: smooth;
}

/* Neon Colors */
:root {
    --neon-cyan: rgb(0, 255, 255);
    --neon-pink: rgb(255, 0, 150);
    --neon-green: rgb(120, 255, 120);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.3rem;
}

h1, h2 {
    text-shadow: 0 0 8px rgba(255, 0, 150, 0.4);
}

/* Header */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #ccc;
}

.logo {
    justify-self: start;
}

.logo a {
    font-size: 20px;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.logo img {
    height: 150px;
    width: 150px;
}

/* Navigation */
nav {
    justify-self: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

nav a:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

nav a:hover::after {
    width: 100%;
    background: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Theme Toggle */
.theme-toggle {
    justify-self: end;
}

#themeButton {
    width: 42px;
    height: 42px;
    border: 1px solid #ccc;
    background: transparent;
    color: inherit;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 8px var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
    transition: all 0.3s ease;
}

#themeButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 14px var(--neon-cyan);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 8px 15px;
}

.dropdown-menu li a {
    display: block;
}

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

/* Banner */
.banner {
    padding: 80px 40px;
    text-align: center;
}

.banner h1 {
    margin-bottom: 20px;
}

.banner p {
    max-width: 700px;
    margin: 20px auto 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

/* Example Resources */
.example-resources {
    padding: 60px 40px;
}

.example-resources h2 {
    margin-bottom: 20px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
    gap: 25px;
    justify-content: center;
}

.resource-card {
    width: 260px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #ccc; 
    border-radius: 6px;     

    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}
.resource-card h3 {
    text-shadow: 0 0 8px var(--neon-green);
    margin-bottom: 10px;
}

.resource-card p {
    margin-bottom: 10px;
}

.resource-card a {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 4px;
}

.resource-card a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.resource-card a:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

.resource-card a:hover::after {
    width: 100%;

    background: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Resource Card Images - GLOBAL */
.resource-card img {
    width: 100%;
    height: 160px;          /* consistent height across all cards */
    object-fit: contain;    /* keeps full image visible (no cropping) */
    display: block;
    margin-bottom: 15px;
}

/* Optional: tighter card layout */
.resource-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}




/* All Resources */
.all-resources {
    padding: 60px 40px;
}

.resource-links {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.resource-links li {
    margin-bottom: 10px;
}

/* To Top Button */
#toTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: inherit;
    border-radius: 6px;
    box-shadow: 0 0 8px var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#toTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 14px var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

#toTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Footer */
footer {
    background: #f2f2f2;
    padding: 60px 40px 20px 40px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

footer ul {
    list-style: none;
    margin-top: 10px;
    padding: 0;
}

footer a {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 4px;
}

footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

footer a:hover::after {
    width: 100%;
    background: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

footer h4 {
    text-shadow: 0 0 8px var(--neon-green);
    margin-bottom: 10px;
}

footer img {
    height: 200px;
    width: 200px;
}

.copyright {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

/* Dark Mode */
body.dark-mode {
    background-color: #0a0a0f;
    color: #ffffff;
}

body.dark-mode h1,
body.dark-mode h2 {
    text-shadow: 0 0 8px var(--neon-pink);
}

body.dark-mode header {
    border-bottom: 1px solid #444;
}

body.dark-mode .dropdown-menu {
    background: #222;
    border-color: #444;
}

body.dark-mode .resource-card {
    border-color: #444;
}

body.dark-mode footer {
    background: #1a1a1a;
}

body.dark-mode .copyright {
    border-top: 1px solid #444;
}

body.dark-mode #themeButton {
    border-color: #444;
}

/* Responsive */
@media (max-width: 900px) {
    header {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 20px;
    }

    nav {
        justify-self: start;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .theme-toggle {
        justify-self: start;
    }

    .resource-grid {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .banner {
        padding: 60px 20px;
    }

    .example-resources,
    .all-resources {
        padding: 40px 20px;
    }

    header,
    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo img {
        height: 110px;
        width: 110px;
    }
}

/* About / Contact Page */
.about-contact-section {
    padding: 60px 40px;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 25px;
    justify-content: center;
}

.about-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.08);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.about-card h2 {
    margin-bottom: 15px;
    text-shadow: 0 0 8px var(--neon-green);
}

.about-card p {
    margin-bottom: 15px;
}

.about-card a {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 4px;
}

.about-card a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.about-card a:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

.about-card a:hover::after {
    width: 100%;
    background: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.profile-card {
    text-align: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px auto;
    border: 1px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
}

.contact-card p strong {
    color: inherit;
}

.about-card:last-child {
    font-size: 0.95rem;
    opacity: 0.9;
}
body.dark-mode .about-card {
    border-color: #444;
    background: rgba(255, 255, 255, 0.02);
}

body.dark-mode .profile-image {
    border-color: #444;
}

@media (max-width: 500px) {
    .about-contact-section {
        padding: 40px 20px;
    }
}