:root {
    --primary: #0275bc;
    --primary-light: #63cbe8;
    --secondary: #FF914D;
    --accent-green: #48bb78;
    --accent-purple: #9f7aea;
    --accent-pink: #ed64a6;
    --neutral: #848483;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

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

body {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

/* Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-bubble-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-bubble-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.chat-bubble-icon svg {
    width: 28px;
    height: 28px;
}

.chat-bubble-content {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.chat-bubble.active .chat-bubble-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-bubble-content p {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.chat-bubble-content .main-site-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.chat-bubble-content .main-site-btn:hover {
    background: #015a94;
}

/* Add arrow to chat bubble content */
.chat-bubble-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-bubble {
        bottom: 30px;
        right: 20px;
    }
    
    .chat-bubble-icon {
        width: 50px;
        height: 50px;
    }
    
    .chat-bubble-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .chat-bubble-content {
        min-width: 240px;
        right: -10px;
    }
}

/* Hero Container */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 117, 188, 0.8) 0%, rgba(99, 203, 232, 0.7) 100%);
    z-index: -1;
}

/* Navigation */
.hero-nav {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: white;
    color: var(--primary);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
}

/* Logo */
.logo {
    width: 250px;
    height: auto;
    margin: 0 auto 40px;
    display: block;
}

/* Title */
.hero-title {
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Sentence Builder Styles */
.sentence-builder {
    font-size: 1.6rem;
    line-height: 2.5;
    color: white;
    margin-bottom: 40px;
    font-weight: 300;
}

.sentence-builder span {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.inline-select {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid white;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Noto Sans', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230275bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 50px;
    display: inline-block;
    vertical-align: baseline;
}

.inline-select:hover {
    background-color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.inline-select:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Animated Text */
.animated-text {
    display: inline-block;
    min-width: 200px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.animated-text:hover {
    transform: scale(1.05);
}

.animated-text::before {
    content: '👆';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    opacity: 0;
    animation: clickHint 2s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes clickHint {
    0%, 20% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(0);
    }
    30%, 70% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(-5px);
    }
    80%, 100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(0);
    }
}

/* Hide the hint after clicking */
.animated-text.clicked::before {
    display: none;
}

.typewriter-text {
    color: white;
    font-weight: 600;
    position: relative;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 5px;
}

.typewriter-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hidden {
    display: none !important;
}

/* Underline Field Styles */
.sentence-builder-underline {
    font-size: 1.6rem;
    line-height: 2.5;
    color: white;
    margin-bottom: 40px;
    font-weight: 300;
}

.underline-field {
    border: none;
    border-bottom: 3px solid white;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    padding: 0 8px 4px 8px;
    margin: 0 5px;
    display: inline;
    cursor: text;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
    outline: none;
}

.underline-field:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-weight: 400;
    pointer-events: none;
}

.underline-field:nth-child(2):hover {
    border-bottom-color: var(--accent-green);
    background: rgba(72, 187, 120, 0.1);
}

.underline-field:nth-child(4):hover {
    border-bottom-color: var(--accent-purple);
    background: rgba(159, 122, 234, 0.1);
}

.underline-field:nth-child(6):hover {
    border-bottom-color: var(--accent-pink);
    background: rgba(237, 100, 166, 0.1);
}

.underline-field:nth-child(8):hover {
    border-bottom-color: var(--secondary);
    background: rgba(255, 145, 77, 0.1);
}

.underline-field:focus {
    border-bottom-color: var(--secondary);
    border-bottom-width: 4px;
    padding-bottom: 3px;
    background: rgba(255, 255, 255, 0.15);
}

/* Animated underline field styles */
.animated-underline {
    cursor: pointer;
    min-width: 200px;
}

.typewriter-underline {
    color: white;
    font-weight: 600;
    position: relative;
}

.typewriter-underline::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: white;
    animation: blink 1s infinite;
}

/* Accordion Styles */
.summary-sentence {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 300;
    min-height: 40px;
}

.accordion {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 30px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.accordion-item.active {
    border-color: var(--secondary);
    box-shadow: 0 5px 20px rgba(255, 145, 77, 0.3);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.3s ease;
}

.accordion-item.completed .accordion-header {
    background: linear-gradient(135deg, rgba(255, 145, 77, 0.1) 0%, rgba(255, 145, 77, 0.05) 100%);
}

.question {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
}

.selected-answer {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 0 20px 20px 20px;
}

.answer-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.answer-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.answer-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 117, 188, 0.3);
}

/* CTA Button */
.cta-button {
    background: #FFA366;
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 163, 102, 0.4);
    margin-top: 20px;
}

.cta-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 163, 102, 0.5);
    background: #FF914D;
}

.cta-button:disabled {
    background: #FFD4B8;
    cursor: not-allowed;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 20px 15px;
    }
    
    /* Solid backgrounds for buttons on mobile */
    .inline-select {
        background: white;
        font-size: 1rem;
        padding: 4px 10px;
        margin: 0 2px;
    }
    
    .answer-btn {
        background: white;
    }
    
    .answer-btn:hover {
        background: var(--primary);
    }
    
    .cta-button {
        background: #FFA366;
        padding: 14px 40px;
        font-size: 1.2rem;
    }
    
    .cta-button:hover:not(:disabled) {
        background: #FF914D;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .sentence-builder,
    .sentence-builder-underline {
        font-size: 1.1rem;
        line-height: 2.8;
        margin-bottom: 25px;
    }
    
    .sentence-builder-underline {
        text-align: center;
        padding: 0 20px;
    }
    
    .underline-field {
        display: inline-block !important;
        font-size: 1.1rem !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        vertical-align: baseline !important;
        background: transparent !important;
        border-radius: 0 !important;
        border-bottom-width: 2px !important;
        line-height: inherit !important;
    }
    
    .animated-underline {
        display: inline-block !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        vertical-align: baseline !important;
        line-height: inherit !important;
    }
    
    .underline-field:hover {
        background: transparent !important;
    }
    
    .underline-field:focus {
        background: transparent !important;
        border-bottom-width: 2px !important;
        padding-bottom: 2px !important;
    }
    
    .underline-field.hidden {
        display: none !important;
    }

    .inline-select {
        font-size: 1.1rem;
        padding: 8px 18px;
        margin: 0 3px;
        border-radius: 30px;
        display: inline-block;
        background-position: right 18px center;
        padding-right: 45px;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230275bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-size: 18px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }
    
    .logo {
        width: 150px;
        margin-bottom: 20px;
    }
    
    .hero-nav {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .underline-field {
        display: block;
        margin: 10px auto;
        max-width: 300px;
        text-align: center;
    }
    
    .answer-options {
        flex-direction: column;
    }
    
    .answer-btn {
        width: 100%;
    }
}