/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fec402;
    --white-color: #fcfcfc;
    --black-color: #131211;
    --gradient-primary: linear-gradient(135deg, #fec402 0%, #ffb700 100%);
    --gradient-dark: linear-gradient(135deg, #131211 0%, #2a2a2a 100%);
    --shadow-light: 0 10px 30px rgba(254, 196, 2, 0.1);
    --shadow-dark: 0 10px 30px rgba(19, 18, 17, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Light theme variables */
[data-theme="light"] {
    --black-color: #fcfcfc;
    --white-color: #131211;
    --gradient-dark: linear-gradient(135deg, #fcfcfc 0%, #f0f0f0 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--black-color);
    color: var(--white-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Controls */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 1rem;
}

.language-switcher,
.theme-switcher {
    background: rgba(19, 18, 17, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

[data-theme="light"] .language-switcher,
[data-theme="light"] .theme-switcher {
    background: rgba(252, 252, 252, 0.9);
}

.lang-btn,
.theme-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--white-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.lang-btn.active,
.theme-btn:hover {
    background: var(--primary-color);
    color: var(--black-color);
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 120px;
    right: 2rem;
    z-index: 9999;
}

.whatsapp-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #25D366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(19, 18, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(19, 18, 17, 0.98);
    box-shadow: var(--shadow-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white-color);
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--white-color);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--black-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--black-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--black-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* AI Assistant Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-assistant {
    position: relative;
    width: 300px;
    height: 300px;
}

.ai-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-core {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--black-color);
    z-index: 3;
    animation: pulse 2s infinite;
}

.ai-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 10s linear infinite;
}

.ring-2 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 15s linear infinite reverse;
}

.ring-3 {
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.ai-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.6s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1.2s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.8s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 2.4s;
}

/* Hero Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(254, 196, 2, 0.1);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--black-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(254, 196, 2, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.feature:hover {
    background: rgba(254, 196, 2, 0.2);
    transform: translateX(10px);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-item {
    background: rgba(254, 196, 2, 0.1);
    border: 2px solid rgba(254, 196, 2, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(254, 196, 2, 0.2);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--black-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(254, 196, 2, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 196, 2, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--black-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.service-card p {
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.service-features span {
    background: rgba(254, 196, 2, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, var(--black-color) 100%);
}

.portfolio-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.portfolio-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.portfolio-item {
    min-width: 300px;
    flex: 0 0 auto;
}

.portfolio-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 18, 17, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.portfolio-overlay p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.portfolio-link {
    background: var(--primary-color);
    color: var(--black-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-link:hover {
    transform: scale(1.1);
}

.portfolio-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-btn {
    background: rgba(254, 196, 2, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-btn:hover {
    background: var(--primary-color);
    color: var(--black-color);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--black-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(254, 196, 2, 0.1);
    border: 2px solid rgba(254, 196, 2, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--black-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(254, 196, 2, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(19, 18, 17, 0.5);
    border: 2px solid rgba(254, 196, 2, 0.2);
    border-radius: 10px;
    color: var(--white-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(19, 18, 17, 0.8);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Appointment Section */
.appointment {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, var(--black-color) 100%);
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.appointment-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.appointment-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(254, 196, 2, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.benefit-item:hover {
    background: rgba(254, 196, 2, 0.2);
    transform: translateX(10px);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.appointment-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(254, 196, 2, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, var(--black-color) 100%);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.footer-section h3 span {
    color: var(--primary-color);
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(254, 196, 2, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #b0b0b0;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}

.chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-toggle i {
    font-size: 1.5rem;
    color: var(--black-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--black-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    box-shadow: var(--shadow-dark);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

.chatbot-header {
    background: var(--gradient-primary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--black-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-avatar i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--black-color);
}

.status-indicator.online {
    background: #4CAF50;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    color: var(--black-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.chatbot-info span {
    color: rgba(19, 18, 17, 0.7);
    font-size: 0.9rem;
}

.chatbot-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--black-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(19, 18, 17, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
}

.message {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--primary-color);
}

.bot-message .message-avatar i {
    color: var(--black-color);
    font-size: 0.9rem;
}

.user-message .message-avatar {
    background: #333;
    color: var(--white-color);
    font-weight: bold;
    font-size: 0.8rem;
}

.message-content {
    background: rgba(254, 196, 2, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 70%;
    position: relative;
}

.user-message .message-content {
    background: var(--primary-color);
    color: var(--black-color);
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.3rem;
    text-align: right;
}

.chatbot-quick-actions {
    padding: 1rem;
    border-top: 1px solid rgba(254, 196, 2, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-action {
    background: rgba(254, 196, 2, 0.1);
    border: 1px solid rgba(254, 196, 2, 0.3);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action:hover {
    background: var(--primary-color);
    color: var(--black-color);
}

.chatbot-typing {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.typing-indicator {
    display: flex;
    gap: 0.2rem;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.chatbot-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(254, 196, 2, 0.2);
}

.attachment-btn {
    width: 40px;
    height: 40px;
    background: rgba(254, 196, 2, 0.1);
    border: 1px solid rgba(254, 196, 2, 0.3);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-btn:hover {
    background: var(--primary-color);
    color: var(--black-color);
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(254, 196, 2, 0.1);
    border: 1px solid rgba(254, 196, 2, 0.3);
    border-radius: 25px;
    color: var(--white-color);
    font-size: 0.9rem;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--black-color);
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
/* Global Mobile Optimizations */
@media (max-width: 768px) {
    /* Touch-friendly interactions */
    button, 
    .btn, 
    .nav-link, 
    .service-card, 
    .tech-item,
    .portfolio-item,
    .contact-item a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better text readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Improved form elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        border: 2px solid rgba(254, 196, 2, 0.3);
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(254, 196, 2, 0.1);
    }

    /* Better button sizing */
    .btn {
        padding: 12px 24px;
        font-size: 16px;
        border-radius: 8px;
        font-weight: 600;
    }

    /* Improved spacing */
    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Improved card layouts */
    .service-card,
    .contact-form,
    .appointment-form {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Better navigation */
    .nav-menu {
        padding: 2rem 1rem;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin: 0.5rem 0;
        background: rgba(254, 196, 2, 0.1);
        backdrop-filter: blur(10px);
    }

    /* Improved loading states */
    .loading-overlay {
        backdrop-filter: blur(5px);
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .tech-item {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .service-card {
        padding: 1.25rem 0.75rem;
    }

    .contact-form,
    .appointment-form {
        padding: 1.25rem 0.75rem;
    }

    .chatbot-window {
        width: calc(100vw - 0.5rem);
        height: 350px;
        right: 0.25rem;
        bottom: 0.25rem;
    }

    .whatsapp-float {
        width: 40px;
        height: 40px;
        bottom: 60px;
    }

    .top-controls {
        gap: 0.15rem;
    }

    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

/* Landscape mobile optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 2rem 0;
        min-height: auto;
    }

    .section {
        padding: 2rem 0;
    }

    .chatbot-window {
        height: 300px;
    }

    .nav-menu {
        padding: 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .about-image,
    .service-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mobile-specific optimizations */
.mobile-device {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(254, 196, 2, 0.2);
}

.mobile-device .service-card,
.mobile-device .tech-item {
    transform: none !important;
    transition: background-color 0.2s ease;
}

.mobile-device .service-card:active,
.mobile-device .tech-item:active {
    background-color: rgba(254, 196, 2, 0.1);
}

/* Performance optimizations */
.page-hidden * {
    animation-play-state: paused !important;
}

/* Improved focus states for mobile */
@media (max-width: 768px) {
    .keyboard-navigation *:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    .keyboard-navigation button:focus,
    .keyboard-navigation .btn:focus {
        box-shadow: 0 0 0 3px rgba(254, 196, 2, 0.3);
    }
}

/* Fix for mobile viewport */
html {
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Better mobile text selection */
@media (max-width: 768px) {
    ::selection {
        background: rgba(254, 196, 2, 0.3);
        color: var(--white-color);
    }
    
    ::-moz-selection {
        background: rgba(254, 196, 2, 0.3);
        color: var(--white-color);
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
    }
}
    .container {
        padding: 0 1rem;
    }

    .top-controls {
        top: 10px;
        right: 10px;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
        z-index: 1001;
    }

    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(19, 18, 17, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
        padding: 1rem;
        width: 80%;
        text-align: center;
        border-bottom: 1px solid rgba(254, 196, 2, 0.2);
    }

    .hero {
        padding: 8rem 0 4rem 0;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 120px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .about-content,
    .contact-content,
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tech-item {
        padding: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-form,
    .appointment-form {
        padding: 2rem 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        max-width: 350px;
        height: 450px;
        right: 1rem;
        bottom: 1rem;
    }

    .chatbot-container {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .top-controls {
        top: 5px;
        right: 5px;
        gap: 0.25rem;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .navbar {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 7rem 0 3rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat-item {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .tech-item {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .tech-item i {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .contact-form,
    .appointment-form {
        padding: 1.5rem 1rem;
        margin: 0;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .chatbot-window {
        width: calc(100vw - 1rem);
        max-width: 320px;
        height: 400px;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .chatbot-header h4 {
        font-size: 1rem;
    }

    .chatbot-messages {
        padding: 0.75rem;
    }

    .message {
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .chatbot-input {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .chatbot-input input {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .chatbot-input button {
        width: 36px;
        height: 36px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float {
        bottom: 70px;
        right: 0.5rem;
        width: 45px;
        height: 45px;
    }

    .whatsapp-float i {
        font-size: 1.3rem;
    }

    .quick-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .quick-action {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .about-image {
        max-height: 250px;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem;
    }

    .typing-indicator {
        gap: 0.25rem;
    }

    .typing-dot {
        width: 6px;
        height: 6px;
    }
}

/* Light theme specific styles */
[data-theme="light"] .chatbot-window {
    background: var(--white-color);
    border-color: var(--primary-color);
}

[data-theme="light"] .service-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .appointment-form {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(252, 252, 252, 0.8);
    color: var(--white-color);
}

[data-theme="light"] .navbar {
    background: rgba(252, 252, 252, 0.95);
}

[data-theme="light"] .hero {
    background: var(--black-color);
}

[data-theme="light"] .about {
    background: var(--black-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6b102;
}

/* Selection Styles */
::selection {
    background: var(--primary-color);
    color: var(--black-color);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--black-color);
}
