:root {
    --bg: #121212;
    --text: #eaeaea;
    --border: #333;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --font-main: "Inter", "Segoe UI", Tahoma, Geneva, sans-serif;

    --accent-learn: #4a90e2;
    --accent-consult: gold;
    --accent-tools: #33ff99;
    --accent-retro: #ff4dcc;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: #33ff99;
    position: relative;
}

.tagline::after {
    content: "Personal Hub";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tagline:hover::after {
    opacity: 1;
}

/* ---------- Layout Fix Only ---------- */
main {
    max-width: 100%;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ---------- Cards (Shared Base) ---------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background-color: #1e1e1e;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    margin: 0.75rem 0;
}

.card ul li::before {
    content: "→ ";
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ---------- Contact Form Styles ---------- */
.card.contact-form {
    max-width: 600px;
    margin: 0 auto;
    grid-column: span 4;
}

.card.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card.contact-form label {
    font-size: 0.95rem;
    color: #cccccc;
}

.card.contact-form input,
.card.contact-form textarea {
    background-color: #2a2a2a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: #eaeaea;
    font-size: 1rem;
    font-family: var(--font-main);
    resize: vertical;
}

.card.contact-form input:focus,
.card.contact-form textarea:focus {
    outline: none;
    border-color: #33ff99;
    box-shadow: 0 0 5px rgba(51, 255, 153, 0.3);
}

.card.contact-form textarea {
    min-height: 120px;
}

.card.contact-form button {
    background-color: #33ff99;
    color: #000;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.card.contact-form button:hover {
    background-color: #29cc80;
}

/* ---------- Button ---------- */
.button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    text-align: center;
    transition: background-color 0.2s ease;
    text-decoration: none;
    background-color: var(--accent-consult);
    color: #333;
}

/* Arrow Icon in Buttons */
.button .arrow {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.button:hover {
    background-color: #ffd700cc;
}

/* ---------- Section Styles ---------- */

/* Learn Zone */
.card.learn {
    border-left: 6px solid var(--accent-learn);
    background-image: url('images/university-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.card.learn h2 {
    color: var(--accent-learn);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.card.learn a {
    color: var(--accent-learn);
    position: relative;
    transition: color 0.2s ease;
}

.card.learn a:hover {
    color: #ffffff;
}

.card.learn a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    left: 0;
    bottom: -2px;
}

/* Work With Me */
.card.consult {
    border-left: 6px solid var(--accent-consult);
    font-family: "Georgia", serif;
    background-image: linear-gradient(to top left, #1c1c1c, #2a2a2a);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.card.consult h2 {
    color: var(--accent-consult);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

/* Tools Vault */
.card.tools {
    border-left: 6px solid var(--accent-tools);
    background: url('images/matrix-background.png');
    background-size: cover;
    background-position: center;
    font-family: 'Courier New', monospace;
    padding: 2.5rem;
}

.card.tools h2 {
    color: var(--accent-tools);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.card.tools a {
    color: var(--accent-tools);
    position: relative;
    transition: color 0.2s ease;
}

.card.tools a:hover {
    color: #ffffff;
}

.card.tools a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    left: 0;
    bottom: -2px;
}

/* Retro Playroom */
.card.retro {
    border: 1px solid var(--border);
    border-left: 6px solid var(--accent-retro);
    border-radius: var(--radius);
    position: relative;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 6px #ff4dcc;
}

.card.retro h2 {
    color: #ff4dcc;
}

.card.retro p,
.card.retro a {
    color: #ffffff;
}

.card.retro .button {
    background-color: #ff4dcc;
    color: #ffffff;
    box-shadow: 0 0 10px #ff4dcc;
}

.card.retro .button:hover {
    background-color: #cc399e;
    box-shadow: 0 0 15px #ff4dcc;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-link {
    color: #aaaaaa;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    main {
        grid-template-columns: 1fr;
    }
}