/* style.css - Zaun & Chemtech Theme */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-dark: #0a0f0d;
    /* Grimy darkness */
    --bg-darker: #060907;
    --bg-card: rgba(10, 15, 13, 0.9);

    --rust: #a05a2c;
    --rust-light: #c27a4e;
    --rust-dark: #633314;

    --copper: #8c4c1a;
    --copper-dark: #5c300c;

    --chemtech: #39ff14;
    /* Toxic green */
    --chemtech-glow: 0 0 10px rgba(57, 255, 20, 0.6), 0 0 25px rgba(57, 255, 20, 0.4);

    --text-main: #d1d5db;
    /* Slightly duller text */
    --text-muted: #828a86;
    /* Murky gray-green */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image:
        linear-gradient(rgba(10, 15, 13, 0.92), rgba(10, 15, 13, 0.92)),
        url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1" fill="%238c4c1a" fill-opacity="0.15"/></svg>');
}

/* Keep the font, but darken the tone for a tarnished look */
h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: 'Cinzel', serif;
    color: var(--rust);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

section {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-darker);
    border-bottom: 2px solid var(--rust-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

nav strong {
    font-size: 1.5rem;
    color: var(--chemtech);
    text-shadow: var(--chemtech-glow);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--rust-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--chemtech);
    transition: width 0.3s ease;
    box-shadow: var(--chemtech-glow);
}

nav a:hover {
    color: var(--chemtech);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

nav a:hover::after {
    width: 100%;
}

.spacer {
    height: 72px;
}

/* Section Styling */
section h2 {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto 40px;
    position: relative;
    padding: 0 70px;
    box-sizing: border-box;
}

section h2::before,
section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(20px, 5vw, 50px);
    height: 3px;
    background: linear-gradient(to right, transparent, var(--rust-dark), transparent);
}

section h2::before {
    right: 100%;
    margin-right: 15px;
}

section h2::after {
    left: 100%;
    margin-left: 15px;
}

@media (max-width: 576px) {
    section h2 {
        padding: 0;
        margin-bottom: 24px;
        font-size: 2rem;
    }

    section h2::before,
    section h2::after {
        display: none;
    }
}

/* Hero Section */
#hero {
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Toxic gas radial gradient */
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.05) 0%, transparent 65%);
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

#hero h1 strong {
    color: var(--chemtech);
    text-shadow: var(--chemtech-glow);
}

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

/* About Me */
#about {
    text-align: center;
}

/* Skills Section */
#skills ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

#skills li {
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid var(--rust-dark);
    border-radius: 2px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#skills li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--rust-dark);
    transition: background 0.3s;
}

#skills li:hover {
    border-color: var(--rust);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(57, 255, 20, 0.05);
}

#skills li:hover::before {
    background: var(--chemtech);
    box-shadow: var(--chemtech-glow);
}

#skills strong {
    color: var(--rust-light);
    font-family: 'Cinzel', serif;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Projects Section */
.card {
    background: var(--bg-card);
    border: 1px solid var(--copper-dark);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--chemtech);
    box-shadow: var(--chemtech-glow);
    transform: translateY(-8px);
}

.card-title {
    color: var(--rust-light);
}

.card-text {
    color: var(--text-muted);
}

.card-img-top {
    border-bottom: 3px solid var(--rust-dark);
    height: 200px;
    object-fit: cover;
    background-color: #111814;
    /* Dark murky placeholder */
    /* Add a grimy overlay */
    filter: sepia(0.5) hue-rotate(60deg) saturate(1.5) contrast(1.2);
    transition: filter 0.4s;
}

.card:hover .card-img-top {
    filter: sepia(0) hue-rotate(0) saturate(1) contrast(1);
}

.btn-outline-primary {
    color: var(--chemtech);
    border-color: var(--chemtech);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    background: transparent;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.2);
}

.btn-outline-primary:hover {
    background: rgba(57, 255, 20, 0.1);
    /* Subtle toxic tint */
    color: var(-- chemtech);
    box-shadow: var(--chemtech-glow);
    border-color: var(--chemtech);
}

/* Contact Section */
#contact {
    text-align: center;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--copper-dark);
    padding: 20px 0;
    text-align: center;
}

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

/* Scrollbar styling for Zaun */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--rust-dark);
    border-radius: 0px;
    /* Harsher edges */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rust);
}

/* Info Panel (Aligned Wrapper for About & Contact) */
.info-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--rust-dark);
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 1.8;
}

.info-panel p {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-links a {
    display: inline-block;
    padding: 10px 25px;
    border: 1px dashed var(--rust);
    background: rgba(0, 0, 0, 0.3);
    color: var(--rust-light);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-links a:hover {
    background: rgba(57, 255, 20, 0.05);
    border-color: var(--chemtech);
    color: var(--chemtech);
    box-shadow: var(--chemtech-glow);
    border-style: solid;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .info-panel {
        padding: 20px;
        margin: 0 15px;
    }

    .contact-links {
        flex-direction: column;
        gap: 10px;
    }

    .contact-links a {
        width: 100%;
        box-sizing: border-box;
    }
}