/* SEVICTI Main Stylesheet
    Branding: Emerald Green & Forest Green 
    Design: Premium Academic / Professional
*/

:root {
    --brand-primary: #16a34a; /* Emerald Green */
    --brand-secondary: #14532d; /* Deep Forest Green */
    --brand-accent: #f59e0b; /* Gold/Yellow Accent */
    --text-main: #111827;
    --text-muted: #4b5563;
    --bg-body: #fcfdfe;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --border-color: rgba(229, 231, 235, 0.8);
}

/* --- Global Resets & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Utility Top Bar (Arrowhead Design) --- */
.top-bar {
    height: 48px;
    background: var(--brand-secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.top-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.bg-segment-yellow {
    background: var(--brand-accent);
    width: 35%;
    margin-left: 28%;
    position: relative;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15px 50%);
    margin-right: -20px;
}

.bg-segment-right {
    background: var(--brand-secondary);
    flex-grow: 1;
    clip-path: polygon(20px 0%, 0% 50%, 20px 100%, 100% 100%, 100% 0%);
}

.top-bar-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left, .top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-left span, .top-right span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-center {
    position: absolute;
    left: 46%;
    transform: translateX(-50%);
    color: rgba(0, 0, 0, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.65rem;
    pointer-events: none;
    font-weight: 800;
}

/* --- Main Header Navigation --- */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-secondary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.logo-text h1 span {
    color: var(--brand-primary);
    font-weight: 400;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--brand-primary);
}

/* --- Header Actions (Search/Join) --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.icon-btn:hover {
    background: var(--brand-primary);
    color: white;
}

.btn-join {
    background: var(--brand-primary);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

.btn-join:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
}

/* --- Hero Section & Components --- */
.hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: #0b1120;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.badge {
    display: inline-block;
    background: var(--brand-accent);
    color: #000;
    padding: 5px 15px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--brand-accent);
    padding-left: 20px;
    max-width: 600px;
}

/* --- Statistics Bar Overlay --- */
.stats-bar {
    background: white;
    padding: 3rem 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 { font-size: 2.2rem; color: var(--brand-primary); font-weight: 800; }
.stat-item p { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }

/* --- Grid & Content Cards --- */
.section { padding: 7rem 0; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    transition: all 0.4s;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.card-img { height: 250px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-category {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--brand-primary);
    color: white;
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-body { padding: 2.5rem; }

/* --- Footer --- */
footer {
    background: var(--brand-secondary);
    color: #d1fae5;
    padding: 7rem 0 3rem;
}

footer h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 12px;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-accent);
}

.footer-links a {
    color: #d1fae5;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .header-content { height: 75px; }
    nav, .top-center { display: none; }
    .top-bar-bg { display: none; }
    .top-bar { background: var(--brand-secondary); font-size: 0.65rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 640px) {
    .stats-bar { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
}