/* ==========================================================================
   ONETOMAX AGENCY - MAIN BASE STYLESHEET
   Root variables, typography, global layout and Hero section
   ========================================================================== */

:root {
    --primary: #0080e1;
    --primary-dark: #0066b3;
    --primary-light: #e6f3fc;
    --primary-gradient: linear-gradient(135deg, #0080e1 0%, #005bb8 100%);
    
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    
    --bg-white: #ffffff;
    --bg-light: #fdfbf7;
    --bg-soft-green: #f0f7fe;
    
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 128, 225, 0.18);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 12px 30px rgba(0, 128, 225, 0.10);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION (CHÍNH XÁC THEO MẪU GỐC)
   ========================================================================== */
.hero-section {
    padding: 55px 0 85px;
    background: linear-gradient(180deg, #fdfbf4 0%, #ffffff 100%);
    position: relative;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.22fr;
    gap: 50px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #374151;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-label .label-dot {
    font-size: 0.75rem;
    color: #1f2937;
}

.hero-title {
    font-size: 3.85rem;
    font-weight: 900;
    line-height: 1.14;
    color: #1f2937;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-title .highlight-green {
    color: var(--primary);
}

.typing-cursor {
    color: var(--primary);
    font-weight: 300;
    margin-left: 2px;
    animation: blinkCursor 0.8s infinite;
}

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

.hero-desc {
    font-size: 1.18rem;
    color: #4b5563;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 18px;
}

.btn-hero-solid {
    background-color: var(--primary);
    color: #ffffff;
    padding: 16px 38px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 128, 225, 0.35);
    transition: var(--transition);
}

.btn-hero-solid:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 128, 225, 0.45);
}

.btn-hero-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO MEDIA & 5 FLOATING TEMPLATE ASSETS
   ========================================================================== */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-composition-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    display: flex;
    justify-content: center;
}

.hero-main-advisor {
    width: 100%;
    max-width: 580px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.08));
}

.floating-badge-item {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.floating-badge-item img {
    display: block;
    height: auto;
    width: 100%;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

/* Badge 1: Subscribers */
.badge-subscribers {
    top: 32%;
    left: -50px;
    width: 245px;
    animation: floatSlowSub 4s ease-in-out infinite;
}

@keyframes floatSlowSub {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Badge 2: Chart Projects */
.badge-chart {
    top: 5%;
    right: -35px;
    width: 255px;
    animation: floatSlowChart 5s ease-in-out infinite 0.5s;
}

@keyframes floatSlowChart {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Badge 3: Team 20+ */
.badge-team {
    bottom: 8px;
    left: 14%;
    width: 215px;
    animation: floatSlowTeam 4.5s ease-in-out infinite 1s;
}

@keyframes floatSlowTeam {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Badge 4: Reviews */
.badge-reviews {
    bottom: 28px;
    right: -35px;
    width: 255px;
    animation: floatSlowReviews 4.2s ease-in-out infinite 1.5s;
}

@keyframes floatSlowReviews {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Services Section */
.services-section {
    padding: 90px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 36px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 22px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 26px;
    flex-grow: 1;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.btn-service {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
