/* styles.css - extracted from index.html */

/* Basic reset and layout */
html, body {
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #0b1220);
    color: #ffffff;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 20px;
    box-sizing: border-box;
}

/* Container */
.welcome {
    text-align: center;
    padding: 20px 28px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
    color: #fff;
    letter-spacing: 1px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
}

/* Typewriter text */
.typewriter {
    display: inline-block;
    font-size: clamp(22px, 6vw, 56px);
    white-space: nowrap;
    overflow: hidden;
    border-right: .12em solid rgba(255,255,255,0.85);
    box-sizing: content-box;
    vertical-align: middle;
}

/* Caret blink */
@keyframes blinkCaret {
    50% { border-color: transparent; }
}
.typewriter.typing {
    animation: blinkCaret 700ms steps(1) infinite;
}

/* Accessibility: visually hidden but available to screen readers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive tweaks for tablet and mobile */
@media (max-width: 1024px) {
    .typewriter { font-size: clamp(20px, 7.5vw, 48px); }
    .welcome { padding: 18px 22px; }
}
@media (max-width: 768px) {
    .typewriter { font-size: clamp(18px, 10vw, 36px); }
    .welcome { padding: 14px 18px; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .typewriter { border-right: none !important; }
    .typewriter, .welcome { transition: none !important; }
}
