:root {
    --bg-color-main: #F8FAFC;
    --bg-color-secondary: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-color: #E56B42; /* Timber Orange Accent */
    --accent-glow: rgba(229, 107, 66, 0.2);
    --surface-color: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 60, 90, 0.4) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.1); }
}

/* Main Container */
.redirect-container {
    position: relative;
    z-index: 1;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    max-width: 700px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Brand Transition Area */
.brand-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pakwood-logo {
    height: 54px; /* Slightly taller to match proportions */
}

.timber-logo {
    height: 54px;
}

.brand:hover .logo-img {
    transform: scale(1.05);
}

.brand-name {
    display: none; /* Hide brand names since logos have text */
}

.arrow-indicator {
    color: var(--text-secondary);
    opacity: 0.5;
    animation: slideRight 2s infinite ease-in-out;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

/* Content Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Redirect Status & Circular Progress */
.redirect-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.progress-ring-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke-dasharray: 163.36; /* 2 * pi * 26 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
}

.redirect-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Button */
.manual-redirect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: var(--bg-color-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.manual-redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 107, 66, 0.2);
    background: var(--accent-color);
    color: #FFFFFF;
}

.manual-redirect-btn svg {
    transition: transform 0.3s ease;
}

.manual-redirect-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
/* Tablet and Mobile Responsive Rules */
@media (max-width: 850px) {
    .redirect-container {
        padding: 3.5rem 2.5rem;
        width: 92%;
    }
    h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 600px) {
    .redirect-container {
        padding: 2.5rem 1.5rem;
        width: 95%;
        border-radius: 16px;
    }
    .brand-transition {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .arrow-indicator {
        transform: rotate(90deg);
    }
    @keyframes slideRight {
        0%, 100% { transform: rotate(90deg) translateY(5px); }
        50% { transform: rotate(90deg) translateY(-5px); }
    }
    h1 {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .logo-img {
        height: 40px;
    }
    .pakwood-logo, .timber-logo {
        height: 46px;
    }
    .manual-redirect-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

@media (max-height: 700px) {
    .redirect-container {
        padding: 2rem 1.5rem;
    }
    .subtitle {
        margin-bottom: 1.5rem;
    }
    .redirect-status {
        margin-bottom: 2rem;
    }
}
