:root {
    --bg: #0d0d0d;          /* Dark background */
    --text: #e0e0e0;        /* Light text for readability */
    --accent: #00bfff;      /* Bright accent color */
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    --radius: 14px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Hero / Banner */
.hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

/* Navbar (banner text stays unchanged) */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    z-index: 3;
}

.nav-left .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-right a {
    color: white;
    margin-left: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-right a:hover {
    color: var(--accent);
}

/* Banner copyright */
.banner-copyright {
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    color: white;
    font-size: 0.9rem;
    z-index: 4;
}

/* Circuit Background Canvas */
#circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Main Content Boxes (About / News) */
.main-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    background: rgba(25,25,25,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1;
}

.main-content section {
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.8rem;
    color: var(--text);
}

p, li {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

#contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    text-decoration: underline;
}

/* Intro Section */
.intro {
    position: relative;
    max-width: 900px;
    margin: -100px auto 2rem auto;
    padding: 0 2rem;
    z-index: 1;
}

.intro-inner {
    display: flex;
    flex-wrap: wrap;
    background: rgba(25,25,25,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.intro-text {
    flex: 1;
    min-width: 260px;
}

.intro-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.subtitle {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.intro-photo {
    flex: 0 0 180px;
    margin-left: 2rem;
}

.intro-photo img {
    width: 180px;
    height: 240px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top;
    box-shadow: var(--shadow);
}

/* Link List */
.link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    margin-top: 1rem;
}

.link-list li {
    width: 48%;
    margin-bottom: 0.8rem;
}

.link-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.link-list a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 0.5rem;
    border-left: 8px solid var(--accent);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    opacity: 0;
}

.link-list a:hover {
    font-weight: 700;
}

.link-list a:hover::before {
    opacity: 1;
}

/* News Box */
.news-box {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    background: rgba(25,25,25,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.news-card {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.news-card:hover {
    font-weight: 700;
}

/* Footer */
footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text);
    padding: 1.5rem 0;
    border-top: 1px solid #444;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-inner { flex-direction: column; text-align: center; }
    .intro-photo { margin: 1.5rem 0 0 0; }
    .navbar { flex-direction: column; align-items: flex-start; padding: 1rem; }
    .nav-right a { margin-left: 0; margin-right: 1rem; }
    .link-list li { width: 100%; }
}


