/* ===== INDUSTRIAL BRUTALISM x COMIC POP-ART ===== */
@import url('fonts.css');

:root {
    --bg: #F4F4F0;
    --white: #FFFFFF;
    --text: #050505;
    --text-sec: #555555;
    --accent: #FF6600; /* KTM Orange */
    --accent-light: #FFA366;
    --border-w: 3px;
    --shadow-hard: 6px 6px 0px 0px #050505;
    --shadow-hard-hover: 2px 2px 0px 0px #050505;
    --transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    
    --font-macro: 'Archivo Black', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-micro: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Blueprint Grid Background */
body.animated-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 60px 60px; /* Size of the grid squares */
    animation: grid-scroll 30s linear infinite;
}

body.animated-grid-bg .section {
    background-color: transparent; /* Allows the body grid to show through unless overridden inline */
}

@keyframes grid-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-macro);
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(3.5rem, 8vw, 8rem); }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 3rem); }

p {
    font-family: var(--font-body);
    margin-bottom: 1rem;
    max-width: 65ch;
    font-size: 1.125rem;
}

.mono-tag {
    font-family: var(--font-micro);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: var(--text);
    color: var(--white);
    padding: 4px 12px;
    display: inline-block;
    border-radius: 0; /* Brutalist sharp edges */
    margin-bottom: 1rem;
}

.mono-tag.accent {
    background: var(--accent);
    color: var(--white);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
}

.section {
    padding: 8rem 0;
    border-top: var(--border-w) solid var(--text);
    position: relative;
    background: var(--bg);
}

/* Grid System */
.grid-gapless {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    border: var(--border-w) solid var(--text);
    background: var(--text); /* Creates internal borders via gap */
    gap: var(--border-w);
}

.grid-gapless > * {
    background: var(--bg);
}

/* Double Bezel Architecture / Brutalist Panel */
.brutalist-panel {
    background: var(--white);
    border: var(--border-w) solid var(--text);
    padding: 2rem;
    box-shadow: var(--shadow-hard);
    border-radius: 0;
    position: relative;
    transition: var(--transition);
}

.brutalist-panel:hover {
    transform: translate(4px, 4px);
    box-shadow: var(--shadow-hard-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-macro);
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 1.25rem 2.5rem;
    background: var(--text);
    color: var(--white);
    text-decoration: none;
    border: var(--border-w) solid var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-hard);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translate(4px, 4px);
    box-shadow: var(--shadow-hard-hover);
}

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

.btn-secondary {
    background: var(--bg);
    color: var(--text);
}

/* Comic Impact Elements */
.comic-burst {
    position: absolute;
    z-index: -1;
    /* Custom SVG or CSS starburst would go here, simulated with background for now */
}

.text-stroke {
    color: var(--bg);
    text-shadow:
        -1.5px -1.5px 0 var(--text),
         1.5px -1.5px 0 var(--text),
        -1.5px  1.5px 0 var(--text),
         1.5px  1.5px 0 var(--text);
}

.text-stroke-white {
    color: var(--text);
    text-shadow:
        -1.5px -1.5px 0 var(--white),
         1.5px -1.5px 0 var(--white),
        -1.5px  1.5px 0 var(--white),
         1.5px  1.5px 0 var(--white);
}

@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) {
    .text-stroke {
        -webkit-text-stroke: 2.2px var(--text);
        -webkit-text-fill-color: var(--bg);
        text-shadow: none;
    }
    .text-stroke-white {
        -webkit-text-stroke: 2.2px var(--white);
        -webkit-text-fill-color: var(--text);
        text-shadow: none;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pixel-float {
    animation: float 4s ease-in-out infinite;
}

/* Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Responsive Helpers */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .grid-gapless {
        display: flex;
        flex-direction: column;
    }
    .section {
        padding: 4rem 0;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    span.mobile-only {
        display: inline !important;
    }
}

/* First Fold Layout Wrapper */
.first-screen-wrapper {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .first-screen-wrapper {
        height: auto;
        overflow: visible;
    }
}

/* Ensure Calendly popup is always on top of the portfolio drawer */
.calendly-overlay {
    z-index: 999999 !important;
}
