:root {
    --primary: #1a365d;
    --primary-light: #2a4a7f;
    --secondary: #3182ce;
    --accent: #38a169;
    --accent-hover: #2f855a;
    --dark: #1a202c;
    --gray-900: #2d3748;
    --gray-700: #4a5568;
    --gray-500: #718096;
    --gray-300: #e2e8f0;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --danger: #e53e3e;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER / NAVBAR ==================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo .logo-img {
    width: 100px;
    height: 100px;
    margin: -28px 0;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-logo h1 {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.nav-logo h1 span {
    color: var(--secondary);
    font-weight: 400;
    font-size: 14px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none !important;
}

.nav-gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: none;
    font-size: 20px;
    transition: var(--transition);
}

.nav-gear:hover {
    background: var(--gray-100);
    transform: rotate(45deg);
}

.nav-gear::after {
    display: none !important;
}

.nav-gear .gear-icon {
    line-height: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-content h2 {
    font-size: 48px;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h2 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.hero-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #63b3ed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.hero-card h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 10px;
}

.hero-card p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.hero-stat {
    text-align: center;
    padding: 15px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.hero-stat .number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat .label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .badge {
    display: inline-block;
    background: rgba(49,130,206,0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-alt {
    background: var(--gray-100);
}

/* ==================== SERVICES CARDS ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.service-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:nth-child(1) .icon { background: #dbeafe; }
.service-card:nth-child(2) .icon { background: #dcfce7; }
.service-card:nth-child(3) .icon { background: #fef3c7; }
.service-card:nth-child(4) .icon { background: #fce7f3; }

.service-card:hover .icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-card a:hover {
    gap: 10px;
}

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-item .fi-icon {
    width: 50px;
    height: 50px;
    background: rgba(49,130,206,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 14px;
    color: var(--gray-500);
}

.features-image {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--white);
    text-align: center;
}

.features-image .big-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.features-image h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.features-image p {
    opacity: 0.9;
}

/* ==================== NUMBERS / STATS ==================== */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.number-item .num {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.number-item .text {
    font-size: 15px;
    color: var(--gray-500);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-card .stars {
    color: #f6ad55;
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-card .quote {
    font-size: 17px;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.testimonial-card .author-info h4 {
    font-size: 16px;
    color: var(--dark);
}

.testimonial-card .author-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.slider-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* ==================== BLOG GRID ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
    opacity: 0.9;
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-tag {
    display: inline-block;
    background: rgba(49,130,206,0.1);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 15px;
}

.blog-card .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-500);
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(5px);
}

.info-card .info-icon {
    width: 50px;
    height: 50px;
    background: rgba(49,130,206,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.info-card p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--white);
    text-align: center;
}

.login-left h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.login-left p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 400px;
}

.login-left .login-logo {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.login-left .login-features {
    margin-top: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-left .login-features .feat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0.9;
}

.login-left .login-features .feat-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--gray-100);
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.login-box h3 {
    font-size: 26px;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-box > p {
    color: var(--gray-500);
    margin-bottom: 30px;
    font-size: 14px;
}

.login-box .form-group input {
    padding: 14px 16px;
}

.login-box .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
}

.login-box .login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-500);
}

.login-box .login-footer a {
    color: var(--secondary);
    font-weight: 600;
}

.login-box .login-footer a:hover {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #a0aec0;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
}

/* ==================== CHAT ASSISTANT ==================== */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(26,54,93,0.4);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    color: var(--white);
}

.chat-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26,54,93,0.5);
}

.chat-launcher .chat-icon-close {
    display: none;
}

.chat-widget.open .chat-launcher .chat-icon-open {
    display: none;
}

.chat-widget.open .chat-launcher .chat-icon-close {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-header .info h4 {
    font-size: 15px;
    font-weight: 600;
}

.chat-header .info p {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-header .info .status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f7fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeInUp 0.3s ease;
}

.chat-msg.bot {
    background: var(--white);
    color: var(--gray-700);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: var(--shadow);
}

.chat-msg.user {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-msg .quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-msg .quick-options button {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.chat-msg .quick-options button:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.chat-typing {
    display: none;
    align-self: flex-start;
    background: var(--white);
    padding: 12px 16px;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow);
}

.chat-typing.show {
    display: flex;
    gap: 4px;
    align-items: center;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    background: #a0aec0;
    border-radius: 50%;
    animation: typing 1.2s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border-top: 1px solid var(--gray-300);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--secondary);
}

.chat-input-area .send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-input-area .send-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.chat-launcher-notification {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.whatsapp-float {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 56px;
    height: 56px;
    padding: 0;
    background: #25d366;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    z-index: 998;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.whatsapp-float .wa-label {
    max-width: 0;
    opacity: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.whatsapp-float:hover {
    width: 210px;
    padding: 0 18px;
    justify-content: flex-start;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover .wa-label {
    max-width: 200px;
    opacity: 1;
    margin-left: 10px;
}

.wa-badge {
    position: fixed;
    bottom: 143px;
    right: 18px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    z-index: 999;
    pointer-events: none;
    animation: pulse 1.5s infinite;
}

.wa-panel {
    position: fixed;
    bottom: 165px;
    right: 25px;
    width: 300px;
    max-width: calc(100vw - 40px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 22px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.wa-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-panel .wa-panel-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #a0aec0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.wa-panel .wa-panel-close:hover {
    background: #edf2f7;
    color: #1a202c;
}

.wa-panel h4 {
    font-size: 17px;
    color: #1a202c;
    margin-bottom: 6px;
}

.wa-panel p {
    font-size: 13px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
}

.wa-panel .wa-form {
    display: flex;
    flex-direction: column;
}

.wa-panel .wa-form label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.wa-panel .wa-form input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    margin-bottom: 14px;
    transition: var(--transition);
}

.wa-panel .wa-form input:focus {
    border-color: #25d366;
}

.wa-panel .wa-submit {
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.wa-panel .wa-submit:hover {
    background: #1ebe5b;
    transform: translateY(-1px);
}

.chat-msg .quick-options button.whatsapp-opt {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
}

.chat-msg .quick-options button.whatsapp-opt:hover {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #ffffff;
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 90px;
        width: 50px;
        height: 50px;
    }

    .wa-badge {
        bottom: 132px;
    }

    .wa-panel {
        bottom: 150px;
        right: 15px;
    }

    .chat-window {
        width: 100%;
        height: calc(100vh - 100px);
        bottom: 75px;
        right: -15px;
        max-width: calc(100vw - 10px);
    }
}
        width: 100%;
        height: calc(100vh - 100px);
        bottom: 75px;
        right: -15px;
        max-width: calc(100vw - 10px);
    }
}

/* ==================== BLOG DETAIL ==================== */
.blog-detail {
    padding: 120px 0 80px;
}

.blog-detail .container {
    max-width: 800px;
}

.blog-detail h1 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-detail .meta {
    display: flex;
    gap: 20px;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.blog-detail .content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--gray-700);
}

.blog-detail .content p {
    margin-bottom: 20px;
}

/* ==================== PAGE HERO (inner pages) ==================== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==================== SERVICE DETAIL CARDS ==================== */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary);
}

.service-detail-card .sd-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-detail-card h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-detail-card p {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-detail-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-detail-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.service-detail-card ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

/* ==================== CALCULATOR ==================== */
.calculator-section {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-result {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}

.calc-result .result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
}

.calc-result .result-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 5px;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 30px;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==================== ABOUT PAGE ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
}

.about-content h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.8;
}

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

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card .v-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-image {
        order: -1;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-page {
        flex-direction: column;
    }

    .login-left {
        min-height: auto;
        padding: 60px 40px;
    }

    .login-right {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: var(--transition);
        gap: 15px;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links .nav-gear {
        justify-content: flex-start;
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .number-item .num {
        font-size: 36px;
    }

    .page-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .login-box {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px;
    }
}

/* ==================== PHOTO ABOUT ==================== */

/* ==================== TUTORIAIS ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.video-wrap {
    position: relative;
    padding-top: 56.25%;
    background: var(--gray-900);
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

.video-info p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
}

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

.tutorial-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.tutorial-card .t-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 18px;
    transition: var(--transition);
}

.tutorial-card:nth-child(1) .t-icon { background: #dbeafe; }
.tutorial-card:nth-child(2) .t-icon { background: #dcfce7; }
.tutorial-card:nth-child(3) .t-icon { background: #fef3c7; }
.tutorial-card:nth-child(4) .t-icon { background: #fce7f3; }
.tutorial-card:nth-child(5) .t-icon { background: #ede9fe; }
.tutorial-card:nth-child(6) .t-icon { background: #fee2e2; }

.tutorial-card:hover .t-icon {
    transform: scale(1.1);
}

.tutorial-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.tutorial-card p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 15px;
}

.tutorial-card span {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== UTILITY ==================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Success message */
.success-message {
    display: none;
    background: #dcfce7;
    color: #16a34a;
    padding: 15px 20px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.success-message.show {
    display: block;
}
