/* Base Styles and Variables */
:root {
    /* Light Theme Colors */
    --primary-color: #0055ff;
    --secondary-color: #003db3;
    --accent-color: #00c2ff;
    --dark-color: #0a192f;
    --light-color: #ffffff;
    --gray-color: #f0f5ff;
    --text-color: #333333;
    --text-light: #666666;
    --card-bg: #ffffff;
    --body-bg: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --primary-color: #2176ff;
    --secondary-color: #64a5ff;
    --accent-color: #00c2ff;
    --dark-color: #0a192f;
    --light-color: #ffffff;
    --gray-color: #15233c;
    --text-color: #e6e6e6;
    --text-light: #a7a7a7;
    --card-bg: #1e2b46;
    --body-bg: #0a192f;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

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

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

ul {
    list-style: none;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* Helper Classes */
.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

/* Section Subtitle */
.section-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 32px;
}

.lang-btn {
    color: var(--light-color);
    font-size: 13px;
    font-weight: 500;
    padding: 0 10px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.lang-btn:active {
    transform: scale(0.95);
}

/* Dark Mode Toggle */
.theme-switch {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-switch:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-switch i {
    font-size: 22px;
    color: var(--light-color);
    transition: var(--transition);
}

.navbar.scrolled .theme-switch {
    background-color: rgba(0, 85, 255, 0.1);
}

.navbar.scrolled .theme-switch:hover {
    background-color: rgba(0, 85, 255, 0.2);
}

.navbar.scrolled .theme-switch i {
    color: var(--text-color);
}

[data-theme="dark"] .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-switch i::before {
    content: "\f185"; /* Sun icon */
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

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

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

/* Section Styles */
section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    width: 100%;
    top: 50px;
    left: 0;
    z-index: 1001;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
}

/* When top bar is hidden, move navbar up */
.top-bar.hidden + header .navbar {
    top: 0;
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--light-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar.scrolled .logo a {
    color: var(--text-color);
}

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

.nav-cta {
    margin-left: 20px;
    margin-right: 20px;
    display: inline-block;
}

.nav-links ul {
    display: flex;
}

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

.nav-links ul li a {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links ul li a {
    color: var(--text-color);
}

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

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

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

.menu-btn, .close-btn {
    display: none;
    color: var(--light-color);
    font-size: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.menu-btn:hover, .close-btn:hover {
    transform: scale(1.1);
}

.navbar.scrolled .menu-btn,
.navbar.scrolled .close-btn {
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    color: var(--light-color);
    padding-top: 150px;
    margin-top: 0;
}

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

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

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.hero-stats .stat-item {
    margin: 0 30px;
    text-align: center;
}

.hero-stats .stat-item .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.hero-stats .stat-item .label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: var(--light-color);
    border: 2px solid var(--light-color);
    border-radius: 50%;
}

.hero-scroll a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Services Section */
.services-section {
    background-color: var(--gray-color);
}

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

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: rgba(0, 85, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

[data-theme="dark"] .service-icon {
    background-color: rgba(33, 118, 255, 0.2);
}

.service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

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

.service-link:hover i {
    transform: translateX(5px);
}

/* Enhanced Services CTA */
.services-cta {
    text-align: center;
    margin-top: 60px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.services-cta-content {
    padding: 40px;
    background-color: var(--card-bg);
    position: relative;
}

.services-cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 85, 255, 0.03) 0%, rgba(0, 194, 255, 0.05) 100%);
    z-index: 0;
}

[data-theme="dark"] .services-cta-content::before {
    background: linear-gradient(135deg, rgba(33, 118, 255, 0.05) 0%, rgba(0, 194, 255, 0.08) 100%);
}

.services-cta-content > * {
    position: relative;
    z-index: 1;
}

.services-cta h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.services-cta p {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-feature {
    display: flex;
    align-items: center;
    background-color: var(--body-bg);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.cta-feature:hover {
    transform: translateY(-5px);
}

.cta-feature i {
    color: var(--primary-color);
    margin-right: 10px;
}

.cta-feature span {
    font-weight: 500;
}

/* Tech Stack Section */
.tech-stack-section {
    padding: 70px 0;
    background-color: var(--body-bg);
}

.tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.tech-logo {
    text-align: center;
    transition: var(--transition);
}

.tech-logo i {
    font-size: 50px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.tech-logo span {
    color: var(--text-light);
    font-size: 14px;
}

.tech-logo:hover {
    transform: translateY(-10px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    right: 25px;
    bottom: -60px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    bottom: 25px;
    opacity: 1;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-to-top i {
    font-size: 20px;
}

/* About Section */
.about-section {
    background-color: var(--body-bg);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-image img {
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
    margin: 10px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    color: var(--text-light);
    font-size: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.about-features .feature {
    display: flex;
    align-items: center;
}

.about-features .feature i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--gray-color);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 50px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--light-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.portfolio-overlay p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.portfolio-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    transition: var(--transition);
}

.portfolio-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--body-bg);
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 350px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 30px;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

.testimonial-rating {
    color: #FFD700;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 14px;
}

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

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
}

.testimonial-arrow:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-color);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-color);
    text-align: center;
    padding: 80px 0;
}

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

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-section {
    background-color: var(--body-bg);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 25px;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(0, 85, 255, 0.1);
}

[data-theme="dark"] .info-item i {
    background-color: rgba(33, 118, 255, 0.2);
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
}

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

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

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

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border-color: #2a3e62;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 70px 0 0;
}

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

.footer-logo a {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

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

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    font-size: 14px;
    transition: var(--transition);
}

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

/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--dark-color);
    z-index: 1002;
    padding: 12px 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 0 30px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.text-size-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 6px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-size-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    position: relative;
}

.text-size-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text-size-btn::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent var(--dark-color) transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.text-size-btn:hover::before,
.text-size-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.easy-language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--light-color);
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 32px;
    white-space: nowrap;
}

.easy-language-btn i {
    font-size: 14px;
    opacity: 0.9;
}

/* Mobile Responsive Styles for Top Bar */
@media screen and (max-width: 768px) {
    .top-bar {
        height: 40px;
        padding: 8px 0;
    }

    .top-bar .container {
        padding: 0 15px;
    }

    .text-controls {
        gap: 10px;
    }

    .text-size-controls {
        padding: 3px;
        gap: 5px;
        height: 28px;
    }

    .text-size-btn {
        font-size: 12px;
        padding: 0 6px;
        min-width: 24px;
        height: 24px;
    }

    .text-size-btn::before {
        font-size: 11px;
        padding: 3px 6px;
        bottom: -25px;
    }

    .easy-language-btn {
        font-size: 12px;
        padding: 0 10px;
        height: 28px;
        gap: 4px;
    }

    .easy-language-btn i {
        font-size: 13px;
    }

    .lang-toggle {
        height: 28px;
    }

    .lang-btn {
        font-size: 12px;
        padding: 0 8px;
        height: 24px;
        min-width: 28px;
    }
}

/* Media Queries - Improved Mobile Experience */
@media screen and (max-width: 991px) {
    html {
        font-size: 95%;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--card-bg);
        padding: 80px 40px;
        z-index: 1100;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        padding: 0;
        width: 100%;
    }

    .nav-links ul li {
        margin: 20px 0;
        margin-left: 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
    }
    
    .nav-links.active ul li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: calc(0.1s * var(--i));
    }

    .nav-links ul li a {
        color: var(--text-color) !important;
        font-size: 18px;
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-links ul li a::after {
        bottom: 5px;
    }

    .menu-btn, .close-btn {
        display: block;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar.scrolled .menu-btn, 
    .navbar.scrolled .close-btn {
        background-color: rgba(0, 85, 255, 0.1);
    }

    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        color: var(--text-color);
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .nav-cta {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stats .stat-item {
        margin: 0;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    /* Make buttons more touch-friendly on mobile */
    .btn {
        padding: 14px 30px;
    }
    
    /* Adjust service cards for better mobile viewing */
    .service-card {
        padding: 30px 20px;
    }
    
    /* Make CTA features stack on mobile for better spacing */
    .cta-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-feature {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Adjust language toggle on mobile */
    .lang-toggle {
        margin-right: 10px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 90%;
    }
    
    section {
        padding: 70px 0;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .service-card,
    .portfolio-item {
        transform: none !important;
    }

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

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-slider {
        height: 400px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 10px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        border-radius: 4px;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
    }

    .newsletter-form input {
        border-radius: 4px;
    }
    
    /* Adjust hero section for mobile */
    .hero-section {
        background-attachment: scroll;
    }
    
    /* Make testimonial author info layout better on small screens */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin: 0 auto 15px;
    }
    
    /* Improve mobile scrolling */
    .scroll-to-top {
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .navbar {
        top: 40px;
    }

    .top-bar.hidden + header .navbar {
        top: 0;
    }

    .hero-section {
        padding-top: 120px;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 85%;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h3::after,
    .footer-services h3::after,
    .footer-newsletter h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a:hover,
    .footer-services ul li a:hover {
        padding-left: 0;
    }
    
    /* Adjustments for very small screens */
    .logo a {
        font-size: 20px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Make service cards stack better */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Improve CTA section on small screens */
    .services-cta-content {
        padding: 30px 15px;
    }
    
    .cta-icon {
        font-size: 32px;
    }
    
    /* Make the navigation menu take full width on very small screens */
    .nav-links {
        width: 100%;
    }
}

/* Page Header Styles */
.page-header {
    background: var(--gradient-primary);
    padding: 150px 0 50px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Team Stats Styles */
.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    text-align: center;
}

.team-stats .stat {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.team-stats .stat:hover {
    transform: translateY(-5px);
}

.team-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-stats .stat-text {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Values Grid Styles */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Features Styles */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.about-features .feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.about-features .feature:hover {
    transform: translateX(5px);
}

.about-features .feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-features .feature span {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* About Section Specific Styles */
.about-section {
    padding: 30px 0 80px;
}

.about-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 40px 0 20px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .team-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .about-section h2 {
        font-size: 1.8rem;
    }

    .about-section h3 {
        font-size: 1.3rem;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .page-header {
    background: var(--gradient-dark);
}

[data-theme="dark"] .team-stats .stat,
[data-theme="dark"] .value-card,
[data-theme="dark"] .about-features .feature {
    background: var(--bg-dark);
}

[data-theme="dark"] .team-stats .stat-text,
[data-theme="dark"] .value-card h4,
[data-theme="dark"] .about-features .feature span {
    color: var(--text-light);
}

[data-theme="dark"] .value-card p {
    color: var(--text-light-secondary);
} 