/* Global Styles */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --accent-color: #06b6d4;
    --text-color: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --card-bg: #ffffff;
    --section-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-hero: rgba(255, 255, 255, 0.1);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --bg-color-rgb: 255, 255, 255;
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --primary-color: #ffd700;
    --secondary-color: #ffed4a;
    --accent-color: #ffd700;
    --text-color: #ffffff;
    --light-bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --section-bg: #1a1a1a;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --nav-bg-hero: rgba(26, 26, 26, 0.1);
    --nav-bg-scrolled: rgba(26, 26, 26, 0.95);
    background-color: var(--light-bg);
}

[data-theme="dark"] .help-card,
[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .timeline-content {
    background-color: var(--card-bg);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Base mobile fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 80px;
}

.nav-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.mobile-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    top: 10px;
    left: 20px;
    transition: transform 0.3s ease;
}

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

.rotating-wave {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: rotate-wave 8s ease-in-out infinite, pulse 2s ease-in-out infinite;
    position: relative;
    transform-origin: center center;
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
}

.rotating-wave::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-bottom: 4px solid var(--accent-color);
    border-left: 4px solid var(--primary-color);
    animation: rotate-wave-reverse 6s linear infinite;
}

.rotating-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation: glow 3s ease-in-out infinite;
}

@keyframes rotate-wave {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes rotate-wave-reverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.5);
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.company-name {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    gap: 5px;
    align-items: center;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(0, 198, 255, 0.4);
}

.company-name .highlight {
    color: #00c6ff;
    text-shadow: 0 0 20px #0072ff, 0 0 40px rgba(0, 198, 255, 0.8);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    top: 30px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.7;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 600;
}

.lang-btn:hover {
    color: var(--primary-color);
    opacity: 1;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .dark-mode-toggle {
    color: var(--text-color);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    top: 10px;

}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-actions {

    }
    .nav-actions {
        position: fixed;
        right: 20px;
        top: 20px;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        z-index: 1001;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--nav-bg);
        padding: 80px 20px 20px;
        transition: 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-actions {
        position: absolute;
        right: 20px;
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    /* Move language switcher and dark mode toggle into mobile menu */
    .nav-actions {
        right: 10px;
        position: absolute;
    }

    .logo {
        transform: scale(0.7);
        left: -20px;
    }

    .lang-switcher,
    .dark-mode-toggle {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--nav-bg);
        padding: 80px 20px 20px;
        transition: 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 998;
    }

    .nav-menu.active {
        right: 0;
        width: 100%;
    }

    .nav-menu .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Add mobile menu versions of language switcher and dark mode toggle */
    .nav-menu .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
        right: 0;
    }

    .nav-menu .lang-switcher,
    .nav-menu .dark-mode-toggle {
        display: flex;
        justify-content: center;
    }

    .hamburger {
        display: block;
        z-index: 999;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

[data-theme="dark"] .navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-logo,
[data-theme="dark"] .logo-dev,
[data-theme="dark"] .logo-eu,
[data-theme="dark"] .lang-btn,
[data-theme="dark"] .dark-mode-toggle {
    color: var(--text-color);
}

[data-theme="dark"] .logo-wave {
    color: var(--primary-color);
}

[data-theme="dark"] .hamburger .bar {
    background-color: var(--text-color);
}


[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .lang-btn:hover,
[data-theme="dark"] .dark-mode-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    padding-top: calc(4rem + env(safe-area-inset-top));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background: linear-gradient(rgba(157, 130, 130, 0.9), rgba(24, 97, 140, 0.7)), url(https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: var(--transition);
}

[data-theme="dark"] .hero {
    background: linear-gradient(rgba(112, 192, 238, 0.88), rgba(0, 0, 0, 0.58)), url(https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    color: var(--white);
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--section-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

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

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

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-color);
    margin: 1rem 0;
    transition: var(--transition);
}

.service-card p {
    color: var(--text-color);
    opacity: 0.9;
    transition: var(--transition);
}

/* Technologies Section */
.technologies {
    background-color: var(--section-bg);
    padding: 5rem 2rem;
    transition: var(--transition);
}

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

.tech-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tech-category h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    color: var(--text-color);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.tech-category i {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 5%;
    background-color: var(--section-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.portfolio-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Team Section */
.team {
    padding: 5rem 5%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 1rem;
}

.team-member {
    text-align: center;
    transition: var(--transition);
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.team-member h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Partners Section */
.partners {
    padding: 4rem 0;
    background-color: var(--light-bg);
    overflow: hidden;
}

[data-theme="dark"] .logo-slide img {
    filter: contrast(1.5);
}

.logo-carousel {
    width: 900px;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    margin: 0 auto;
}

.logo-slide {
    display: flex;
    animation: scroll 25s linear infinite;
    gap: 2rem;
    width: fit-content;
}

.logo-slide img {
    height: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

@media (max-width: 768px) {
    .logo-slide img {
        height: 40px;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: var(--section-bg);
}

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

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
}

/* Hide placeholder on focus */
textarea:focus::placeholder {
  color: transparent;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .g-recaptcha {
    margin: 1rem 0;
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .contact-form .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }
}

/* Captcha Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    background: var(--light-bg);
    padding: 0.75rem;
    border-radius: 4px;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    min-width: 120px;
}

#captchaAnswer {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
}

.refresh-captcha {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.refresh-captcha:hover {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    #captchaAnswer {
        width: 100%;
    }
}

/* FAQ Section */
.faq {
    background-color: var(--section-bg);
    padding: 6rem 2rem;
}

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

.faq-item {
    background: var(--card-bg);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(var(--bg-color-rgb), 0.5);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 10px;
}

.faq-item.active .faq-answer p {
    opacity: 0.9;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 1rem;
    }
    
    .faq-toggle {
        font-size: 1.2rem;
    }
}

/* Help Section Styles */
.help-section {
    background-color: var(--section-bg);
    padding: 5rem 0;
}

.help-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.help-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.help-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.help-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.help-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.help-cta {
    text-align: center;
    margin-top: 4rem;
}

.help-cta-text {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.help-cta .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.help-cta .cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .help-card {
        padding: 1.5rem;
    }

    .help-card i {
        font-size: 2rem;
    }

    .help-card h3 {
        font-size: 1.25rem;
    }

    .help-cta-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: var(--white);
    padding: 3rem 5% 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-right {
        gap: 1rem;
    }
    
    .language-switcher {
        margin-right: 1rem;
        position: relative;
        top: 35%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Metrics Section */
.performance {
    padding: 6rem 2rem;
    background-color: var(--section-bg);
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.metric-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.performance-graph {
    text-align: center;
}

.bar-container {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.bar {
    width: 80px;
    position: relative;
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
}

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
}

.competitor {
    height: 200px;
    background: var(--secondary-color);
    opacity: 0.7;
}

.our-performance {
    height: 250px;
    background: var(--primary-color);
}

.performance-badge {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: 0aa1e6;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.security-shield {
    text-align: center;
}

.security-shield i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.security-shield p {
    margin: 1rem 0;
}

.security-proven {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    background: rgba(var(--bg-color-rgb), 0.5);
    margin: 1.5rem 0 !important;
}

.shield-features {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
}

.shield-features li {
    margin: 0.5rem 0;
}

.shield-features i {
    font-size: 1rem;
    margin-right: 0.5rem;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .bar-container {
        height: 200px;
    }
    
    .bar {
        width: 60px;
    }
    
    .competitor {
        height: 130px;
    }
    
    .our-performance {
        height: 162px;
    }
}

/* Infrastructure Section */
.infrastructure {
    background-color: var(--section-bg);
    padding: 6rem 2rem;
}

.infra-container {
    max-width: 1200px;
    margin: 0 auto;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.infra-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.infra-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.infra-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.infra-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.infra-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.infra-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.infra-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.infra-features {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.infra-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.infra-features li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.infra-benefits {
    margin-top: 4rem;
    text-align: center;
}

.infra-benefits h3 {
    color: var(--text-color);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

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

.benefit-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 0.75rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--text-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .infra-grid {
        grid-template-columns: 1fr;
    }
    
    .infra-card.featured {
        transform: scale(1);
    }
    
    .infra-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline Section */
.timeline {
    background-color: var(--section-bg);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

.timeline-wrapper {
    position: relative;
    padding: 2rem 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 4rem 0;
    width: 50%;
    padding-right: 2.5rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 2.5rem;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -6px;
}

.timeline-content {
    position: relative;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
    border-left: none;
    border-right: 10px solid var(--card-bg);
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.timeline-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.timeline-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    margin: 1rem 0;
    padding-left: 1rem;
}

.timeline-details li {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-details li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

.timeline-duration {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Timeline Hover Effects */
.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(var(--bg-color-rgb), 0.2);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Timeline Responsive Design */
@media (max-width: 1400px) {
    .timeline-wrapper::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding: 0;
        margin: 2rem 0;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-dot {
        left: 24px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 24px;
    }

    .timeline-content::before {
        left: -10px;
        border-right: 10px solid var(--card-bg);
        border-left: none;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        border-right: 10px solid var(--card-bg);
        border-left: none;
    }
    .navbar {
        height: 115px;
    }
    .logo {
        position: relative;
        justify-content: center;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Container width fixes */
    .container, 
    .services-container,
    .tech-container,
    .portfolio-container,
    .infra-container,
    .timeline-container,
    .faq-container,
    .contact-container,
    .footer-content {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* Section padding adjustments */
    section {
        padding-left: 0;
        padding-right: 0;
    }

    /* Grid adjustments */
    .services-grid,
    .tech-grid,
    .portfolio-grid,
    .infra-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    /* Card width fixes */
    .service-card,
    .tech-category,
    .portfolio-item,
    .infra-card,
    .timeline-content,
    .faq-item {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    /* Image container fixes */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Navigation adjustments */
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
        height: 80px;
    
    }

    .logo {
        position: relative;
    }

    .nav-container {
        position: initial;
    
    }

    /* Hero section fixes */
    .hero-content {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Timeline specific fixes */
    .timeline-wrapper {
        width: 100%;
        padding: 2rem 0;
    }

    .timeline-item {
        width: 100%;
        padding: 0;
        margin: 2rem 0;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* Performance section fixes */
    .metrics-container {
        padding: 0;
        width: 100%;
    }

    .metric-card {
        width: 100%;
        margin: 1rem 0;
    }

    /* Contact form fixes */
    .contact-form form {
        width: 100%;
        padding: 0;
    }

    input, textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer adjustments */
    .footer {
        padding: 3rem 1rem 1rem;
    }
}

/* Additional mobile fixes for specific sections */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
    }

    .timeline-icon i {
        font-size: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .logo {
        transform: scale(0.5);
        position: inherit;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}

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

.scroll-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

[data-theme="dark"] .scroll-to-top {
    background-color: var(--primary-color-light);
    color: var(--dark-text);
}

[data-theme="dark"] .scroll-to-top:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero {
        background-position: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero {
        padding: 0 1rem;
        padding-top: calc(4rem + env(safe-area-inset-top));
    }
}
