/* CSS - main.css */
:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --secondary: #ff6b00;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333333;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
    transition: var(--transition);
}

body.dark-mode {
    background-color: var(--dark);
    color: var(--light);
    --text: #f0f0f0;
    --gray: #2d2d2d;
    --border: #444;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--light);
}

.btn-secondary:hover {
    background-color: #e05d00;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark);
    color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--light);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--light);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--dark);
    padding: 0.75rem 1rem;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--gray);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.25rem;
    cursor: pointer;
}

.search-form {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light);
    padding: 1rem;
    box-shadow: var(--shadow);
    border-radius: 4px;
    width: 300px;
}

.search-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.theme-toggle button {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.25rem;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #333 100%);
    color: var(--light);
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--light);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 5px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* Trust Badges */
.trust-badges {
    background-color: var(--gray);
    padding: 2rem 0;
    text-align: center;
}

.trust-badges p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.badges-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.badges-grid img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.badges-grid img:hover {
    opacity: 1;
}

/* Services Grid */
.featured-services {
    background-color: var(--light);
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* About Section */
.about-section {
    background-color: var(--gray);
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.experience-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background-color: var(--secondary);
    color: var(--light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.experience-badge span {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.experience-badge small {
    font-size: 0.875rem;
    display: block;
}

/* Case Studies */
.case-studies {
    background-color: var(--light);
}

.case-study-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.case-study {
    min-width: 80%;
    scroll-snap-align: start;
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.case-study-image {
    height: 250px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 2rem;
    flex: 1;
}

.case-study-result {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Blog Section */
.blog-section {
    background-color: var(--gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.read-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 4rem 0;
}

.cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Glossary Preview */
.glossary-preview {
    background-color: var(--light);
}

.glossary-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.glossary-term {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--gray);
    border-radius: 4px;
    color: var(--text);
    transition: var(--transition);
}

.glossary-term:hover {
    background-color: var(--primary);
    color: var(--light);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--light);
    padding-left: 5px;
}

.footer-contact address p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    font-style: normal;
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.footer-newsletter h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.footer-newsletter button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal p {
    opacity: 0.7;
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--light);
}

.footer-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-badges img {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.chat-toggle:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary);
    color: var(--light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.chat-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background-color: var(--primary);
    color: var(--light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    font-size: 1.25rem;
}

.chat-body {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
}

.chat-input button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background-color: var(--primary-dark);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 102, 204, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loader p {
    font-weight: 500;
    color: var(--text);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary);
    color: var(--light);
    padding: 0.75rem 1.5rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-section .container {
        flex-direction: column;
    }
    
    .about-content {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-actions {
        order: 1;
    }
    
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
    }
    
    .logo {
        order: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .main-nav {
        order: 2;
        width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study {
        min-width: 100%;
    }
}