@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f3b7d;      /* Signature Kraft Blue */
    --accent-color: #f25f22;       /* Signature Kraft Orange */
    --accent-glow: rgba(242, 95, 34, 0.45);
    --bg-dark: #0a0e17;            /* Deep dark blue-gray */
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(10, 14, 23, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-input-bg: rgba(255, 255, 255, 0.06);
    --glass-input-border: rgba(255, 255, 255, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background image styling matching Image 3 */
.bg-container {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('assets/images/construction-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.35) contrast(1.1);
    z-index: -2;
    transform: scale(1.02);
    animation: bgPulse 20s infinite alternate ease-in-out;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 0%, rgba(10, 14, 23, 0.6) 100%);
    z-index: -1;
}

@keyframes bgPulse {
    0% { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.06) translate(1%, 1%); }
}

/* Page wrapper and structure */
.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    z-index: 1;
}

/* Header layout */
.header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.kraft-logo {
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.kraft-logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 15px rgba(15, 59, 125, 0.5));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Main Content Styling */
.main-content {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto 0;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.45em;
    color: var(--accent-color);
    margin-bottom: 3.5rem;
    text-shadow: 0 2px 10px rgba(242, 95, 34, 0.25);
    animation: pulseGlow 3s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { opacity: 0.85; text-shadow: 0 2px 8px rgba(242, 95, 34, 0.15); }
    100% { opacity: 1; text-shadow: 0 2px 15px rgba(242, 95, 34, 0.45); }
}

/* Countdown Timer Styling */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    width: 100%;
    max-width: 550px;
    margin-bottom: 3.5rem;
}

.countdown-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 1.2rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.countdown-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(15, 59, 125, 0.2);
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.countdown-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Progress Section Styling */
.progress-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 3.5rem;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
}

.progress-percent {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

.progress-status-text {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.progress-bar-container {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 80%, #ff7f4d 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-glow);
    position: relative;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Subscription Form Styling */
.notify-container {
    width: 100%;
    max-width: 480px;
    min-height: 52px;
}

.notify-form {
    display: flex;
    width: 100%;
    background: var(--glass-input-bg);
    border: 1px solid var(--glass-input-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 0.3rem 0.3rem 0.3rem 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.notify-form:focus-within {
    border-color: rgba(242, 95, 34, 0.5);
    box-shadow: 0 8px 30px rgba(242, 95, 34, 0.15), 0 0 0 1px rgba(242, 95, 34, 0.25);
    transform: translateY(-1px);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    width: 100%;
}

.email-input::placeholder {
    color: var(--text-dim);
}

.notify-btn {
    background: var(--accent-color);
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.7rem 1.6rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.notify-btn:hover {
    background: #ff7133;
    box-shadow: 0 6px 18px rgba(242, 95, 34, 0.6);
    transform: translateX(1px);
}

.notify-btn:active {
    transform: scale(0.97);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.notify-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Success Form State */
.notify-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.notify-success p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2ecc71;
    letter-spacing: 0.02em;
}

.hidden {
    display: none !important;
}

@keyframes scaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Footer Styling */
.footer {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.social-icon:hover {
    color: var(--accent-color);
    border-color: rgba(242, 95, 34, 0.5);
    background: rgba(242, 95, 34, 0.08);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* About Us Overlay Panel */
.about-overlay-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
    padding: 2rem;
}

.about-overlay-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.close-about-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 2.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.close-about-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.about-content {
    width: 100%;
    max-width: 800px;
    text-align: left;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-white);
    line-height: 1.2;
}

.about-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.about-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    padding-left: 1.2rem;
    border-left: 3px solid var(--primary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.about-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.about-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Chat Widget Styling */
.chat-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    font-family: var(--font-body);
}

.chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(15, 59, 125, 0.45);
    transition: var(--transition-smooth);
    position: relative;
}

.chat-fab:hover {
    background: #144f9c;
    box-shadow: 0 10px 35px rgba(15, 59, 125, 0.6);
    transform: scale(1.05) translateY(-2px);
}

.chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--accent-color);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: bounceBadge 2.5s infinite;
}

@keyframes bounceBadge {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2px); }
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 330px;
    height: 400px;
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom right;
    transition: var(--transition-smooth);
}

.chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.chat-header {
    background: rgba(15, 59, 125, 0.8);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    margin-right: 0.6rem;
    position: relative;
    box-shadow: 0 0 8px #2ecc71;
}

.chat-header-info {
    flex: 1;
}

.chat-header-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.02em;
}

.chat-header-info span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.chat-close {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-close:hover {
    color: var(--text-white);
}

.chat-messages {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}

.message.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom-left-radius: 4px;
}

.message.outgoing {
    align-self: flex-end;
    background: var(--primary-color);
    color: var(--text-white);
    border-bottom-right-radius: 4px;
}

.msg-time {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    text-align: right;
}

.chat-input-area {
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.6rem;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-white);
    outline: none;
    font-size: 0.8rem;
}

.chat-input-area input:focus {
    border-color: rgba(15, 59, 125, 0.5);
}

.chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-send-btn:hover {
    background: #144f9c;
    transform: scale(1.05);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 1.5rem 1.2rem;
    }
    
    .countdown-container {
        gap: 0.6rem;
    }
    
    .countdown-box {
        padding: 1rem 0.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .about-overlay-panel {
        padding: 1.5rem;
    }

    .close-about-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .chat-window {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .notify-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.8rem;
        box-shadow: none;
    }

    .notify-form:focus-within {
        box-shadow: none;
        transform: none;
    }

    .email-input {
        background: var(--glass-input-bg);
        border: 1px solid var(--glass-input-border);
        border-radius: 25px;
        padding: 0.8rem 1.2rem;
        width: 100%;
        text-align: center;
    }

    .email-input:focus {
        border-color: rgba(242, 95, 34, 0.5);
    }

    .notify-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.6rem;
    }
    
    .chat-widget-container {
        bottom: 1.2rem;
        right: 1.2rem;
    }
    
    .chat-window {
        width: calc(100vw - 2.4rem);
        right: -0.2rem;
        height: 380px;
    }
}
