/* --- Global Styles & Variables --- */
:root {
    --primary-color: #f94f6b;
    --hero-bg-color: #6A33FF;
    --bg-light: #f6f9fc; /* Light silver-gray color */
    --blue-accent: #6c63ff;
    --orange-accent: #ff9a62;
    --green-accent: #4ad295;
    --purple-accent: #8e44ad;
    --red-accent: #e74c3c;
    --text-color: #3d4a59;
    --text-light: #7a8aa0;
    --text-on-hero: #ffffff;
    --text-on-hero-light: #e0d4ff;
    --border-color: #eef2f7;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 12px 40px rgba(90, 48, 242, 0.15);
    --font-family-body: 'Poppins', sans-serif;
    --font-family-title: 'Lato', sans-serif;
}

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

body { font-family: var(--font-family-body); color: var(--text-color); background-color: #fff; line-height: 1.7; overflow-x: hidden; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.text-center { text-align: center; }

/* --- Animations --- */
@keyframes drop-in { 0% { transform: translateY(-50px) scale(0.8); opacity: 0; } 75% { transform: translateY(5px) scale(1.02); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes water-drop-bounce { 0%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(-15px) scale(1.05); } 50% { transform: translateY(0) scale(0.95); } 75% { transform: translateY(-5px) scale(1.02); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* --- Header --- */
.main-header { padding: 20px 0; background: transparent; position: absolute; width: 100%; top: 0; left: 0; z-index: 10; }
.main-header .container { display: flex; justify-content: center; align-items: center; }
.logo { font-size: 1.9rem; font-weight: 700; text-decoration: none; color: var(--text-on-hero); font-family: var(--font-family-title); }

/* --- Section Title --- */
.section-header { margin-bottom: 50px; text-align: center; }
.section-title { font-family: var(--font-family-title); font-weight: 900; font-size: 2.8rem; letter-spacing: 0.5px; }

/* --- Hero Section --- */
.hero-section { 
    padding: 120px 0 150px; 
    position: relative; 
    background-color: var(--hero-bg-color); /* Fallback color */
    background-image: url('https://support.bloxden.com/img/header.svg');
}
.hero-content h1 { font-family: var(--font-family-title); font-weight: 900; letter-spacing: 0.5px; font-size: 3.2rem; color: var(--text-on-hero); margin-bottom: 15px; }
.hero-content .subtitle { font-size: 1.1rem; color: var(--text-on-hero-light); max-width: 600px; margin: 0 auto 10px; }
.hero-content .greeting { font-size: 1.1rem; font-weight: 500; margin-bottom: 50px; color: var(--text-on-hero); }

.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.hero-link-item { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.icon-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 2rem; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.2); opacity: 0; animation: drop-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, water-drop-bounce 4s ease-in-out infinite 0.8s; }
.hero-link-item:nth-child(2) .icon-circle { animation-delay: 0.1s, 0.9s; } .hero-link-item:nth-child(3) .icon-circle { animation-delay: 0.2s, 1s; } .hero-link-item:nth-child(4) .icon-circle { animation-delay: 0.3s, 1.1s; } .hero-link-item:nth-child(5) .icon-circle { animation-delay: 0.4s, 1.2s; }
.icon-circle:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.25); transform: translateY(-5px); }
.blue-bg { background-color: var(--blue-accent); } .orange-bg { background-color: var(--orange-accent); } .green-bg { background-color: var(--green-accent); } .purple-bg { background-color: var(--purple-accent); } .red-bg { background-color: var(--red-accent); }
.hero-link-item span { font-weight: 600; color: var(--text-on-hero-light); font-size: 0.9rem; letter-spacing: 0.5px; }

/* --- Decorative Emoji Elements --- */
.deco-element { position: absolute; z-index: 0; animation: float 6s ease-in-out infinite; user-select: none; }
#deco-sphere { width: 50px; height: 50px; background: #ff9a62; border-radius: 50%; top: 40%; left: 15%; opacity: 0.5; }
#deco-devil { font-size: 3rem; top: 30%; right: 18%; transform: rotate(15deg); animation-delay: 1s; }
#deco-kiss { font-size: 4rem; bottom: 40%; right: 15%; transform: rotate(-15deg); animation-delay: 2s; }
#deco-hand { font-size: 3rem; bottom: 25%; left: 10%; transform: rotate(25deg); animation-delay: 3s; color: #4ad295; opacity: 0.8; }
#deco-bubble { font-size: 3.5rem; top: 25%; left: 10%; transform: rotate(-20deg); animation-delay: 0.5s; opacity: 0.8; }
#deco-lifering { font-size: 3rem; bottom: 30%; right: 8%; transform: rotate(20deg); animation-delay: 1.5s; }
#deco-kb-1 { font-size: 3rem; top: 15%; right: 10%; transform: rotate(-15deg); animation-delay: 1s; opacity: 0.1; }
#deco-kb-2 { font-size: 4rem; bottom: 10%; left: 8%; transform: rotate(15deg); animation-delay: 2s; opacity: 0.1; }
#deco-vid-1 { font-size: 3.5rem; top: 20%; left: 12%; transform: rotate(20deg); animation-delay: 1.2s; opacity: 0.1; }
#deco-vid-2 { font-size: 3rem; bottom: 25%; right: 15%; transform: rotate(-20deg); animation-delay: 2.2s; opacity: 0.1; }
#deco-faq-1 { font-size: 4rem; top: 15%; right: 8%; transform: rotate(15deg); animation-delay: 1.4s; opacity: 0.1; }
#deco-faq-2 { font-size: 3.5rem; bottom: 20%; left: 10%; transform: rotate(-15deg); animation-delay: 2.4s; opacity: 0.1; }

/* --- Reusable Dividers --- */
.divider-top, .divider-bottom { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 1; }
.divider-top { top: -1px; }
.divider-bottom { bottom: -1px; }
.divider-top svg, .divider-bottom svg { position: relative; display: block; width: 100%; height: 100px; }
.divider-top .shape-fill, .divider-bottom .shape-fill { fill: #FFFFFF; }

/* --- Section Styling --- */
.search-section { padding: 80px 0; background-color: #fff; }
.kb-section { padding: 80px 0 150px; background-color: #fff; position: relative; }
.videos-section { padding: 150px 0; background-color: var(--bg-light); position: relative; }
.faq-section { padding: 80px 0; background-color: #fff; position: relative; }
.ticket-section { padding: 150px 0 80px; background-color: var(--bg-light); position: relative; }

/* --- Divider Fill Colors UPDATED --- */
.kb-section .divider-bottom .shape-fill { fill: var(--bg-light); }
.videos-section .divider-top .shape-fill { fill: var(--bg-light); }
.videos-section .divider-bottom .shape-fill { fill: #fff; }
.ticket-section .divider-top .shape-fill { fill: var(--bg-light); }


/* --- Search Section --- */
.search-form { position: relative; max-width: 700px; margin: 0 auto; }
.search-form .search-icon { position: absolute; top: 50%; left: 25px; transform: translateY(-50%); color: var(--text-light); }
.search-form input { width: 100%; padding: 20px 25px 20px 60px; font-size: 1.05rem; border-radius: 35px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); outline: none; transition: box-shadow 0.3s ease, border-color 0.3s ease; font-family: var(--font-family-body); }
.search-form input:focus { border-color: var(--blue-accent); box-shadow: var(--card-shadow-hover); }
.search-form button { position: absolute; top: 8px; right: 8px; bottom: 8px; padding: 0 35px; border: none; background-color: var(--blue-accent); color: #fff; border-radius: 25px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; }
.search-form button:hover { background-color: #5a52d4; }

/* --- Shared Card Styles --- */
.kb-card, .video-card, .faq-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
}
.kb-card:hover, .video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}
.kb-card::after, .video-card::after, .faq-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--hero-bg-color);
}

/* --- Knowledge Base Section (White) --- */
.kb-section .section-title { color: var(--text-color); }
.kb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.kb-card { display: flex; align-items: center; gap: 20px; padding: 25px; color: var(--text-color); font-weight: 600; border-radius: 12px; background: #fff; text-decoration: none; border: 1px solid var(--border-color); }
.kb-card i { font-size: 1.4rem; width: 30px; text-align: center; }
.kb-grid a:nth-child(5n+1) i { color: var(--blue-accent); } .kb-grid a:nth-child(5n+2) i { color: var(--orange-accent); } .kb-grid a:nth-child(5n+3) i { color: var(--green-accent); } .kb-grid a:nth-child(5n+4) i { color: var(--purple-accent); } .kb-grid a:nth-child(5n+5) i { color: var(--red-accent); }

/* --- Video Tutorials Section (Light Gray) --- */
.videos-section .section-title { color: var(--text-color); }
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.video-card { background: #fff; border-radius: 15px; text-decoration: none; color: var(--text-color); border: 1px solid var(--border-color); }
.video-thumbnail { height: 200px; background-color: var(--blue-accent); display: flex; justify-content: center; align-items: center; font-size: 3rem; color: #fff; }
.video-card h3 { font-size: 1.3rem; margin: 20px 25px 10px; font-weight: 600; }
.video-card p { font-size: 0.95rem; color: var(--text-light); margin: 0 25px 25px; }

/* --- FAQ Section (White) --- */
.faq-section .section-title { color: var(--text-color); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: #fff; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 20px; }
.faq-question { display: flex; align-items: center; padding: 20px 25px; cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--text-color); }
.faq-question .icon-wrapper { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20px; color: #fff; font-size: 1rem; flex-shrink: 0; }
.faq-item:nth-child(5n+1) .icon-wrapper { background-color: var(--blue-accent); } .faq-item:nth-child(5n+2) .icon-wrapper { background-color: var(--orange-accent); } .faq-item:nth-child(5n+3) .icon-wrapper { background-color: var(--green-accent); } .faq-item:nth-child(5n+4) .icon-wrapper { background-color: var(--purple-accent); } .faq-item:nth-child(5n+5) .icon-wrapper { background-color: var(--red-accent); }
.faq-question .chevron { margin-left: auto; transition: transform 0.3s ease; color: var(--text-light); }
.faq-item.active .chevron { transform: rotate(180deg); color: var(--blue-accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 25px 25px 80px; color: var(--text-light); }
.faq-item.active .faq-answer { max-height: 200px; }

/* --- Support Ticket Section (Light Gray) --- */
.ticket-section .section-title { color: var(--text-color); }
.ticket-section .subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: -20px auto 40px; }
.submit-ticket-btn { display: inline-block; background: var(--primary-color); color: #fff; padding: 16px 45px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; animation: float 5s ease-in-out infinite; }
.submit-ticket-btn:hover { background-color: #e0425a; transform: translateY(-5px); box-shadow: 0 8px 20px rgba(249, 79, 107, 0.45); }

/* --- Footer --- */
.main-footer { padding: 40px 0; text-align: center; background: var(--bg-light); color: var(--text-light); font-size: 0.9rem; }

/* --- Responsive Design --- */
@media (max-width: 992px) { .kb-grid, .videos-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .faq-answer p { padding: 0 25px 25px 25px; } .hero-section { padding-bottom: 100px; } .divider-top svg, .divider-bottom svg { height: 60px; } .deco-element { display: none; } }
@media (max-width: 576px) { .search-form button { position: static; width: 100%; margin-top: 10px; padding: 15px; } .search-form input { border-radius: 10px; padding-left: 50px; } .section-title, .hero-content h1 { font-size: 2.2rem; } }