:root {
    --primary-color: #00f3ff; /* Cyber Cyan */
    --accent-color: #ff00ff;  /* Neon Pink */
    --bg-color: #050505;      /* Deep Dark Background */
    --text-color: #e0e0e0;    /* Off-white text */
    --header-bg: #0a0a0a;     /* Slightly lighter for header */
    --header-height: 60px;
    --card-bg: #111111;
    --border-color: rgba(0, 243, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', Courier, monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Techy font */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 18px; /* Requirement: Body text 18px */
}

/* Typography Constraints */
.site-title {
    font-size: 24px; /* Requirement: Global Title 24px */
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 22px; /* Requirement: H1 22px */
    color: var(--primary-color); /* Requirement: H1 follows UI color */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2, h3, h4, h5, h6 {
    font-size: 20px; /* Requirement: H2-H6 20px */
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

p, li, a, td, th {
    font-size: 18px; /* Requirement: Body text 18px */
}

/* Layout */
main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 243, 255, 0.1); /* Cyber glow */
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    animation: flash-effect 0.5s infinite alternate;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

@keyframes flash-effect {
    0% { opacity: 1; filter: brightness(100%) drop-shadow(0 0 5px var(--primary-color)); }
    50% { opacity: 0.8; filter: brightness(150%) drop-shadow(0 0 15px var(--accent-color)); }
    100% { opacity: 1; filter: brightness(200%) drop-shadow(0 0 10px var(--primary-color)); }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* Accordion Styles */
.accordion {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border: 1px solid var(--border-color);
    background: rgba(17, 17, 17, 0.8);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 243, 255, 0.1);
    text-shadow: 0 0 5px var(--primary-color);
}

.accordion-header::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Arbitrary large height */
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

/* Article Styles */
.long-form-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: left;
    padding: 2rem;
}

.long-form-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.long-form-content p {
    margin-bottom: 1.5rem;
    color: #cccccc;
}

.feature-image-container {
    text-align: center;
    margin: 3rem 0;
}

.feature-image {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.01);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

.quote-box {
    border: 1px solid var(--accent-color);
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(255, 0, 255, 0.05);
    font-style: italic;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-size: 60px;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.5;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--header-bg);
    padding: 40px 20px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Animation: Jumping/Glitch Effect */
@keyframes jump-glitch {
    0% { transform: translateY(0); text-shadow: 2px 2px 0px var(--accent-color); }
    10% { transform: translateY(-2px); text-shadow: -2px -2px 0px var(--primary-color); }
    20% { transform: translateY(0); text-shadow: 2px 2px 0px var(--accent-color); }
    30% { transform: translateY(-4px); }
    32% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

.jump-text {
    display: inline-block;
    animation: jump-glitch 3s infinite;
    position: relative;
}

.jump-text:hover {
    animation: jump-glitch 0.5s infinite;
}

/* Sections */
section {
    margin-bottom: 60px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-sub {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #aaaaaa;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    margin: 0 10px;
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.05);
}

.btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-secondary {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(255, 0, 255, 0.05);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--header-bg);
    color: var(--accent-color);
    text-transform: uppercase;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        padding: 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        margin: 0;
    }
}
