:root {
    --bg-color: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --mint: #1fe08b;
    --border-color: #ffffff;
    --border-width: 2px;
}

:root[data-theme="light"] {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #555555;
    --border-color: #000000;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 3rem 2rem;
    line-height: 1.6;
}

.brutal-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    align-items: flex-start;
}

.hero-content {
    flex: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: var(--border-width) solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: var(--bg-color);
}

.social-icon:hover {
    background-color: var(--mint);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--border-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 700;
}

.highlight-underline {
    text-decoration: underline;
    text-decoration-color: var(--mint);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    color: var(--text-primary);
    font-weight: 700;
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 2rem;
}

.interest-box {
    border: var(--border-width) solid var(--border-color);
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
}

.mint-square {
    width: 8px;
    height: 8px;
    background-color: var(--mint);
    display: inline-block;
}

.hero-image-container {
    position: relative;
    width: 340px;
    flex-shrink: 0;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background-color: var(--mint);
    border: var(--border-width) solid var(--border-color);
    z-index: 0;
}

.polaroid {
    position: relative;
    z-index: 1;
    background-color: #111;
    border: var(--border-width) solid var(--border-color);
    padding: 1.2rem;
    color: white;
    display: flex;
    flex-direction: column;
}

.polaroid-header {
    font-size: 0.75rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.polaroid-header .dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.polaroid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    border: 1px solid var(--border-color);
    transition: filter 0.3s ease;
}

.polaroid img:hover {
    filter: grayscale(0%) contrast(1);
}

.polaroid-footer {
    margin-top: 1.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: right;
    color: #999;
    letter-spacing: 1px;
}

/* TECH SPECS */
.tech-specs {
    border: var(--border-width) solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.tech-specs-header {
    background-color: var(--mint);
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border-width) solid var(--border-color);
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.spec-item {
    padding: 1.5rem 1.2rem;
    border-right: var(--border-width) solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-item:last-child {
    border-right: none;
}

.spec-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 800;
}

/* LATEST DEPLOYMENTS */
.deployments-section {
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: var(--border-width) solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.view-repo {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.deployments-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    border: var(--border-width) solid var(--border-color);
    padding: 1.8rem;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: stretch;
}

.card-large {
    /* Full width by default in flex container */
}

.card-mint {
    background-color: var(--mint);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-small-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-wide {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: stretch;
}

.card-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-image-right {
    width: 380px;
    border: var(--border-width) solid var(--border-color);
    position: relative;
    flex-shrink: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-image-right img {
    width: 100%;
    height: auto;
    display: block;
}

.card-icon {
    margin-bottom: auto;
}

.card-top-icon {
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.card-mint p.subtitle, .card-small-left p.subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: var(--text-primary);
}

.verified-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--text-primary);
    color: var(--bg-color);
    font-size: 0.55rem;
    padding: 0.3rem 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.tags {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.tag {
    border: 1px solid var(--border-color);
    font-size: 0.55rem;
    padding: 0.3rem 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-black {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: auto;
    letter-spacing: 0.5px;
}

.card-graphic-wrapper {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-graphic {
    width: 100%;
    height: 70px;
    border: var(--border-width) solid var(--border-color);
    background-size: 10px 10px;
    background-image: linear-gradient(to right, #333 1px, transparent 1px), linear-gradient(to bottom, #333 1px, transparent 1px);
    box-shadow: 4px 4px 0 var(--border-color);
}

/* Animations */
@keyframes wave {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-image-container {
        width: 100%;
        max-width: 340px;
    }
    .tech-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .spec-item {
        border-bottom: var(--border-width) solid var(--border-color);
    }
    .spec-item:nth-child(2), .spec-item:nth-child(4) {
        border-right: none;
    }
    .spec-item:nth-child(3), .spec-item:nth-child(4) {
        border-bottom: none;
    }
    .card {
        flex-direction: column;
    }
    .card-image-right {
        width: 100%;
        height: 200px;
    }
    .card-graphic-wrapper {
        width: 100%;
        margin-top: 1.5rem;
    }
    .card-graphic {
        height: 100px;
    }
}

/* Theme Toggle */
.site-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -1rem;
}

.theme-toggle {
    background: none;
    border: var(--border-width) solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: all 0.2s ease;
    background-color: var(--bg-color);
    z-index: 10;
}

.theme-toggle:hover {
    background-color: var(--mint);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--border-color);
}
