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

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure the body takes up the full screen height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    padding: 0; 
}

/* Restored Section Logic */
.hero, .section {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem; /* Restored original base size */
}

/* Universal Header Size - Dialed back from "too big" */
h1, .typing-header {
    font-size: 3rem; /* Standard title size */
    font-weight: 700; /* Standard Bold */
    margin-bottom: 0.5rem;
}

h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Restored Hero setup exactly as you had it */
.hero {
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    text-align: center;
    gap: 2rem; 
    padding: 0 20px;
    box-sizing: border-box;
}

.hero h1, 
.hero p, 
.hero .scroll-btn, .hero .typing-header {
    margin: 0 !important;
}

/* fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Restored Original Scroll Button Dimensions */
.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff; 
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0 !important;

    opacity: 0;
    transform: translateY(15px);
    animation: btnFadeIn 0.8s ease forwards 0.5s;
}

.scroll-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.scroll-btn:hover, .scroll-btn:active {
    background: #fff;
    color: #000; 
}

@keyframes btnFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure the body takes up the full screen height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.viewport-center {
    display: flex;
    width: 100%;
    /* Use flex-grow to occupy all space not taken by the navbar */
    flex-grow: 1; 
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Ensure the split content container is also centered */
.split-content {
    display: flex;
    width: 100%;
    max-width: 1100px;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

/* Ensure the image container also stays centered vertically */
.image-group {
    flex: 1;
    display: flex;
    flex-direction: column; /* Keeps the 'Circa' text underneath */
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.text-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    text-align: center;
    gap: 1.2rem;
}

.image-group img {
    width: 100%;
    max-width: 380px; 
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

/* Global Mobile Responsiveness */
@media (max-width: 850px) {
    .split-content {
        flex-direction: column;
        gap: 2rem;
    }
    .image-group {
        order: -1;
    }
    .image-group img {
        max-width: 300px;
    }
}

/* 20s Redirect Timer */
.timer-track {
    width: 180px;
    height: 2px;
    background: #222;
    overflow: hidden;
    margin-top: 5px;
}

.timer-progress {
    height: 100%;
    background: #fff;
    width: 100%;
    animation: countdown 15s linear forwards;
    transform-origin: left;
}

@keyframes countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}