/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00cc99;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --max-width: 1200px;
    
    /* Light mode (default) */
    --bg-color: #fff;
    --text-color: #333;
    --navbar-bg: #fff;
    --card-bg: #fff;
    --footer-bg: #333;
    --footer-text: #fff;
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #1a8cff;
    --secondary-color: #00e6ac;
    --bg-color: #121212;
    --text-color: #f4f4f4;
    --navbar-bg: #1e1e1e;
    --card-bg: #2d2d2d;
    --footer-bg: #1e1e1e;
    --footer-text: #f4f4f4;
    --border-color: rgba(255, 255, 255, 0.1);
    --dark-color: #f4f4f4;
    --light-color: #1e1e1e;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0055aa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

.section-header p {
    font-size: 18px;
    color: #666;
}

[data-theme="dark"] .section-header p {
    color: #b0b0b0;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 10px var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

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

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about h2 span {
    color: var(--primary-color);
}

.about p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #666;
}

[data-theme="dark"] .about p {
    color: #b0b0b0;
}

/* Services Section */
.services {
    padding: 80px 0;
}

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

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

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

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

[data-theme="dark"] .service-card {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 36px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

[data-theme="dark"] .service-card p {
    color: #b0b0b0;
}

.btn-service {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.integration-message {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--light-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .benefit-card {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 30px;
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
}

[data-theme="dark"] .benefit-card p {
    color: #b0b0b0;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    position: relative;
}

.testimonial {
    min-width: 100%;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.testimonial-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
}

[data-theme="dark"] .testimonial-content {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    transform: rotate(45deg);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .testimonial-content:after {
    background-color: var(--card-bg);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    font-size: 18px;
}

[data-theme="dark"] .testimonial-content p {
    color: #b0b0b0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 14px;
}

[data-theme="dark"] .author-info p {
    color: #b0b0b0;
}

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

.testimonial-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.testimonial-control:hover {
    background-color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

[data-theme="dark"] .contact-form {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background-color: #3d3d3d;
    border: 1px solid #555;
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.contact-icon i {
    font-size: 20px;
}

.contact-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p a {
    color: #666;
    transition: all 0.3s ease;
}

[data-theme="dark"] .contact-text p a {
    color: #b0b0b0;
}

.contact-text p a:hover {
    color: var(--primary-color);
}

.social-media {
    margin-top: 20px;
}

.social-media h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

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

/* FAQ Section */
.faq {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

[data-theme="dark"] .faq-item {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--footer-text);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: var(--footer-text);
    opacity: 0.8;
    margin-top: 10px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--footer-text);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--footer-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-contact p a {
    color: var(--footer-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-contact p a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--footer-text);
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    [data-theme="dark"] .nav-menu {
        background-color: var(--navbar-bg);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .about h2,
    .section-header h2 {
        font-size: 24px;
    }
    
    .about p,
    .section-header p {
        font-size: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-links ul,
    .footer-services ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links ul li,
    .footer-services ul li {
        margin-bottom: 0;
    }
    }
}

.logo-img {
    max-height: 50px;
    width: auto;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .logo-img {
    filter: brightness(1.2);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    color: var(--secondary-color);
}