/* Website Service Page Styles */

.website-service-main {
    min-height: calc(100vh - 200px);
    padding-bottom: 4rem;
}

/* Hero Section */
.service-hero {
    text-align: center;
    padding: 5rem 2rem 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-hero-title {
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-main {
    display: block;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.hero-sub {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid - 2 per row */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--blue-primary);
    transform: translateY(-5px);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.find-out-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    width: fit-content;
}

/* Character Popup Layout */
.character-popup {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.character-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.character-container {
    position: relative;
    width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible; /* Allow skin to overlap bubble */
}

.character-skin-canvas {
    width: 320px;
    height: 400px;
    image-rendering: pixelated;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: margin-top 0.4s ease-out;
    z-index: 1; /* Skin sits behind the bubble slightly */
}

/* Speech Bubble Styles */
.speech-bubble {
    position: absolute;
    top: 0;
    background: #ffffff;
    border: 3px solid var(--grey-dark);
    border-radius: 20px;
    padding: 1.5rem;
    width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2; /* Bubble stays on top */
}

.bubble-content p {
    color: var(--grey-dark);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 600;
}

.bubble-tail {
    position: absolute;
    bottom: -25px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #ffffff;
}

.bubble-tail::before {
    content: '';
    position: absolute;
    top: -33px;
    left: -23px;
    width: 0;
    height: 0;
    border-left: 23px solid transparent;
    border-right: 23px solid transparent;
    border-top: 33px solid var(--grey-dark);
}

/* Pointing Logic */
.character-popup.left-side .bubble-tail { left: 20%; transform: rotate(15deg); }
.character-popup.right-side .bubble-tail { left: 80%; transform: rotate(-15deg); }

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 163, 255, 0.05));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--blue-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Mobile Scaling */
@media (max-width: 768px) {
    .features-container { grid-template-columns: 1fr; }
    .speech-bubble { width: 320px; }
    .character-popup { transform: scale(0.55) translateY(50px); transform-origin: bottom center; }
}
