/* Base Styles */
:root {
    /* Colors */
    --bg-primary: #0b0f14;
    --accent-glow: #36e0c1;
    --warm-highlight: #ffd37a;
    --muted-text: #aeb6c0;
    --text-primary: #ffffff;
    --panel-bg: rgba(20, 25, 35, 0.85);
    --btn-primary-bg: var(--accent-glow);
    --btn-primary-text: #0b0f14;
    --btn-secondary-bg: rgba(255, 255, 255, 0.15);
    --btn-secondary-text: var(--text-primary);
    --btn-tertiary-bg: transparent;
    --btn-tertiary-text: var(--muted-text);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Transitions */
    --transition-fast: 360ms cubic-bezier(.22,.9,.36,1);
    --transition-medium: 500ms cubic-bezier(.22,.9,.36,1);
    --transition-slow: 700ms cubic-bezier(.22,.9,.36,1);
    
    /* Shadows */
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 12px 36px rgba(0, 0, 0, 0.25);
    
    /* Sizes */
    --container-max-width: 1200px;
    --container-padding: 24px;
    --border-radius: 12px;
    --btn-height: 56px; /* Increased from 48px to 56px */
}

@media (min-width: 768px) {
    :root {
        --container-padding: 40px;
    }
}

/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Allow vertical scrolling */
    height: 100%;
    width: 100%;
    position: relative;
}

body {
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-x pan-y; /* Enable touch-based panning */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/film-grain.jpg') repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 20px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (min-width: 768px) {
    h1 {
        font-size: 48px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    body {
        font-size: 18px;
    }
}

/* Header & Logo */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem var(--container-padding);
    display: flex;
    justify-content: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(11, 15, 20, 0.9), rgba(11, 15, 20, 0));
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.site-logo {
    width: auto;
    height: 80px;
    max-height: none;
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--warm-highlight);
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .site-logo {
        height: 120px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Layout & Container */
#app {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--container-padding);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
    z-index: 1;
    overflow: hidden;
}

.screen[data-active="true"] {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.screen-content {
    position: relative;
    width: 100%;
    max-width: var(--container-max-width);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

@media (min-width: 768px) {
    .screen-content {
        align-items: center;
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-height);
    padding: 0 28px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1em;
    transition: all var(--transition-fast);
    white-space: nowrap;
    margin-top: 1.5rem;
}

.btn svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
    color: var(--btn-tertiary-text);
    padding: 0 16px;
}

.btn-tertiary:hover {
    color: var(--text-primary);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.btn-glow:hover::after {
    opacity: 1;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn var(--transition-medium) forwards;
}

.fade-in-delayed {
    animation: fadeIn var(--transition-medium) forwards;
    animation-delay: 300ms;
    opacity: 0;
}

.pulse-subtle {
    animation: pulse 2s infinite;
    animation-delay: 1s;
}

/* Footer */
.mortarbit-footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted-text);
    z-index: 10;
    padding: 5px 0;
}

.mortarbit-footer img {
    height: 16px;
    width: auto;
}

@media (max-width: 768px) {
    .mortarbit-footer {
        bottom: 5px;
        font-size: 10px;
    }
    
    .mortarbit-footer img {
        height: 14px;
    }
}
.site-footer {
    background-color: rgba(11, 15, 20, 0.9);
    padding: 3rem var(--container-padding) 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: auto;
    height: auto;
    max-height: none;
}

.footer-logo-text {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--warm-highlight);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--muted-text);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-text);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-logo {
        margin-bottom: 0;
    }
    
    .footer-links {
        margin-bottom: 0;
    }
}
