/* SmartThink3 LMS - Ultra-Modern UX Components */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gray-100);
    overflow-x: hidden;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    font-size: var(--text-base);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Regional Banner */
.regional-banner {
    background: var(--gradient-primary);
    padding: var(--space-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.region-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    color: var(--white);
    font-weight: 500;
}

.region-label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.region-options {
    display: flex;
    gap: var(--space-sm);
}

.region-btn {
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.region-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.region-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Ultra-Modern Header */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.modern-header.scrolled {
    top: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    height: 50px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.brand-logo:hover .logo-img {
    transform: rotate(5deg) scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    margin: 0 var(--space-xs);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.login-btn, .register-btn {
    margin: 0 var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.login-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

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

.register-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

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

/* Hero Section */
.modern-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 120px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.hero-content-modern {
    color: var(--white);
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: float 3s ease-in-out infinite;
}

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

.hero-title-modern {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-modern {
    font-size: var(--text-xl);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.hero-actions-modern {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.btn-modern {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-primary-modern {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.btn-outline-modern {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats-modern {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.stat-item-modern {
    text-align: center;
}

.stat-number-modern {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-modern {
    font-size: var(--text-sm);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-image-modern {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.image-frame:hover {
transform: perspective(1000px) rotateY(0deg);
}

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

.hero-slider {
position: relative;
overflow: hidden;
min-height: 320px;
}

.hero-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity var(--transition-slow);
}

.hero-slide.active {
opacity: 1;
}

.hero-slide .hero-img {
width: 100%;
height: 100%;
object-fit: cover;
}

.image-decoration {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
}

.decoration-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot-1 { top: 20%; left: -10%; animation-delay: 0s; }
.dot-2 { top: 60%; right: -5%; animation-delay: 0.5s; }
.dot-3 { bottom: 30%; left: -8%; animation-delay: 1s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Section Headers */
.section-header-modern {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title-modern {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-modern {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards */
.service-card-modern {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-icon-modern {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: var(--text-2xl);
    color: var(--white);
    transition: all var(--transition-normal);
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.service-title-modern {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.service-description-modern {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.service-link-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.service-link-modern:hover {
    gap: var(--space-md);
    color: var(--primary-dark);
}

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.team-content {
    padding: var(--space-lg);
}

.team-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.team-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1002;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    position: relative;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

.whatsapp-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25d366;
    animation: ripple 2s ease-out infinite;
    z-index: -1;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

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

.chat-header {
    background: #25d366;
    color: var(--white);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h4 {
    margin: 0;
    font-size: var(--text-lg);
}

.status {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.chat-messages {
    padding: var(--space-lg);
    height: 300px;
    overflow-y: auto;
    background: var(--gray-100);
}

.message {
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    max-width: 80%;
}

.message.bot {
    background: var(--gray-200);
    color: var(--text-primary);
}

.message.user {
    background: #25d366;
    color: var(--white);
    margin-left: auto;
}

.chat-input {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-sm);
}

.chat-input input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--transition-normal);
}

.chat-input input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.chat-input button {
    padding: var(--space-sm) var(--space-md);
    background: #25d366;
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.chat-input button:hover {
    background: #128c7e;
}

/* Footer */
.main-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-brand {
    margin-bottom: var(--space-xl);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-newsletter p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-700);
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    color: var(--white);
    outline: none;
    transition: all var(--transition-normal);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-form button {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle-modern {
        font-size: var(--text-lg);
    }
    
    .hero-actions-modern {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats-modern {
        justify-content: center;
    }
    
    .whatsapp-chat {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modern-header {
        top: 0;
    }
    
    .modern-hero {
        margin-top: 60px;
    }
    
    .regional-banner {
        display: none;
    }
    
    .hero-title-modern {
        font-size: var(--text-3xl);
    }
    
    .section-title-modern {
        font-size: var(--text-2xl);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 100px;
    right: var(--space-xl);
    background: var(--white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all var(--transition-normal);
    max-width: 350px;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--accent-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1004;
    transition: width var(--transition-fast);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
