/* ==================================================
   TechCense - Tech That Makes Sense
   Free & open-source. Deploy on GitHub Pages, Netlify, etc.
   ================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f1117;
    --bg-card: #1a1d28;
    --bg-card-hover: #222639;
    --text: #e8edf5;
    --text-muted: #8b93a6;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --green: #4ade80;
    --red: #f87171;
    --border: #2a2e3a;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- HEADER ---------- */
header {
    border-bottom: 1px solid var(--border);
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--accent);
}

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

nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

/* ---------- HERO ---------- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(108, 99, 255, 0.08), transparent 70%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

/* ---------- CARD GRID ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    background: var(--bg-card-hover);
}

.card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.card-body {
    padding: 20px;
}

.tag {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    color: var(--accent-light);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.meta {
    font-size: 0.8rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

.rating {
    color: #facc15;
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.pros-cons {
    list-style: none;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.pros-cons li {
    margin-bottom: 4px;
}

.pros {
    color: var(--green);
    margin-right: 6px;
}

.cons {
    color: var(--red);
    margin-right: 6px;
}

/* ---------- TRUST SECTION ---------- */
.trust-section {
    padding: 60px 0;
    background: rgba(108, 99, 255, 0.03);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}

.trust-item i {
    color: var(--accent);
    margin-bottom: 16px;
}

.trust-item h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.newsletter p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    min-width: 280px;
    outline: none;
    transition: border 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.small {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
    padding: 60px 0 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- FILTER TAGS ---------- */
.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---------- ABOUT PAGE ---------- */
.about-content {
    padding: 20px 0 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-text h2 {
    font-size: 1.4rem;
    margin: 32px 0 12px;
}

.about-text h2:first-of-type {
    margin-top: 0;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.about-text ul {
    list-style: none;
    margin-bottom: 16px;
}

.about-text ul li {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.about-text ul li i {
    margin-right: 8px;
}

.program-list {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.program {
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.program h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.program h4 i {
    margin-right: 8px;
    color: var(--accent);
}

.program p {
    font-size: 0.85rem;
    margin: 0;
}

/* Sidebar */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.sidebar-card i {
    color: var(--accent);
    margin-bottom: 12px;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sidebar-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 40px;
}

.footer-inner {
    text-align: center;
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner .small {
    margin-top: 8px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 12px;
    }

    nav ul {
        gap: 16px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        min-width: auto;
        width: 100%;
        max-width: 360px;
    }
}
