@font-face {
    font-family: Inter; 
    src: url('../fonts/Inter.woff2');
    font-weight: normal;
    font-style: normal; 
}

:root {
    --text-color: #f0f0f0;
    --background-color: #000000;
    --border-color: #3a3a3a;
    --spacing-unit: 1.5rem;
    --font-family: Inter, monospace;
}

/* OVERRIDE */
:root.in-iframe {
    /* Transparent frosted glass effect */ 
    --bg-iframe: var(--bg-theme-app, rgba(30,30,30,.3));  
}

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

body {
    background-color: var(--bg-iframe, var(--background-color)); /* Use iframe background if in iframe, otherwise default */
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    padding: var(--spacing-unit);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: .01em;
}

a {
    color: white;
    text-decoration: none;
}
/* --- Main Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

header, footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-unit);
    font-size: 0.9rem;
}

header .address {
    text-align: left;
}

header .socials {
    text-align: right;
}

main {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

/* --- Services Section --- */
.services h2, .projects h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-unit);
}

.services-list {
list-style: none;
}

/* --- Projects Section --- */
.project-item {
    border-bottom: 1px solid var(--border-color);
}

.project-item:first-of-type {
    border-top: 1px solid var(--border-color);
}

.project-trigger {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-color);
    padding: var(--spacing-unit) 0;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.project-trigger:hover {
    opacity: 0.7;
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 var(--spacing-unit);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.project-content.active {
    max-height: 800px;
    padding-top: var(--spacing-unit);
    padding-bottom: calc(var(--spacing-unit) * 2);
    transition: max-height 0.7s ease-in-out, padding 0.7s ease-in-out;
}

.project-details {
    display: flex;
    flex-direction: row;
    gap: calc(var(--spacing-unit) * 2);
    align-items: flex-start;
}

.project-details img {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.project-description {
    line-height: 1.6;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Footer --- */ 
footer {
    display: flex;
    justify-content: space-between; /* Pushes children to opposite ends */
    align-items: center;
    width: 100%;
    font-size: 0.8rem;
    color: #888;
}

/* Styling for the new legal links */
.legal-links {
    font-size: 0.85em; /* Keeps them subtle */
    opacity: 0.7;
}

.legal-links a {
    color: inherit; 
    text-decoration: none;
    transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.legal-links a:hover {
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Optional: adds a slight CRT glow on hover */
}

.legal-links .separator {
    margin: 0 8px;
    opacity: 0.5;
}

.status-dot {
    color: #00FF00; /* Lime Green */
    text-shadow: 0 0 8px #00FF00; /* Adds a glowing effect */
    animation: pulse 2s infinite; /* Runs the animation */
    display: inline-block;
    margin-right: 5px;
    font-size: 1rem;
}

@keyframes pulse {
    0% {
        opacity: 1;
        text-shadow: 0 0 8px #00FF00;
    }
    50% {
        opacity: 0.3;
        text-shadow: 0 0 2px #00FF00;
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 8px #00FF00;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 1.25rem;
    }
    body {
        font-size: 14px;
    }
    .project-details {
        flex-direction: column;
    }
    header, footer {
        font-size: 0.8rem;
    }  
}