/* Global Styles */
:root {
    --primary-color: #c91b1b;
    --secondary-color: #1e1e1e;
    --text-light: #ffffff;
    --text-dark: #121212;
    --accent-color: #475569;
    --background-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    width: 300px; /* Adjust as needed */
}

.logo-p {
    height: 40px;
    z-index: 1;
    display: block;
}

.logo-chevron {
    height: 40px;
    position: absolute;
    left: 90px; /* Adjust this value to position the X correctly */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 3;
}

.logo-text {
    height: 40px;
    position: absolute;
    left: 0px; /* Adjust this value to position the RXIMA text correctly */
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 2;
}

.scrolled .logo-chevron {
    left: 68px; /* Adjust this value to position the X next to the P when scrolled */
}

.scrolled .logo-text {
    opacity: 0;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
}

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

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Language Switcher */
.lang-switcher {
    margin-left: 20px;
    position: relative;
    cursor: pointer;
}

.lang-switcher-current {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--secondary-color);
}

.lang-switcher-current i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.lang-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 101;
}

.lang-switcher-dropdown a {
    display: block;
    padding: 5px 15px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher-dropdown a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.lang-switcher:hover .lang-switcher-dropdown {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

.mobile-nav .lang-switcher-mobile {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-nav .lang-switcher-mobile p {
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.mobile-nav .lang-options {
    display: flex;
    gap: 15px;
}

.mobile-nav .lang-option {
    padding: 8px 15px;
    border-radius: 5px;
    background-color: var(--background-light);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-nav .lang-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 150px 0 80px;
}

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

.hero-text {
    width: 50%;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    width: 45%;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    margin-top: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    margin-right: 15px;
}

.btn:hover {
    background-color: #a51515;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 27, 27, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Value Proposition */
.value-prop {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--accent-color);
}

.value-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.value-card {
    width: 30%;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

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

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

.value-card-icon i {
    color: white;
    font-size: 1.5rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.value-card p {
    color: var(--accent-color);
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: white;
}

.team-image-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--accent-color);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-card {
    width: 48%;
    margin-bottom: 40px;
    display: flex;
}

/* Special styling for the fifth service card */
.service-card:nth-child(5) {
    width: 100%;
    justify-content: center;
}

.service-card:nth-child(5) .service-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(201, 27, 27, 0.1);
    margin-right: 20px;
    line-height: 0.8;
}

.service-card:nth-child(5) .service-content {
    text-align: center;
    max-width: 800px;
}

.service-card:nth-child(5) .service-content ul {
    display: inline-block;
    text-align: left;
}

.service-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(201, 27, 27, 0.1);
    margin-right: 20px;
    line-height: 0.8;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-content ul {
    list-style: none;
}

.service-content ul li {
    margin-bottom: 10px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.service-content ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 10px;
}

.services-conclusion {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    max-width: 800px;
    margin: 40px auto 0;
    color: var(--secondary-color);
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Solutions by Industry */
.solutions {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.solutions .section-title {
    color: var(--text-light);
}

.solutions .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.industry-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.industry-card {
    width: 30%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s;
}

.industry-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

/* Tagline */
.tagline {
    padding: 100px 0;
    text-align: center;
    background-color: white;
}

.tagline h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.logo-icon {
    width: 80px;
    margin: 0 auto;
    display: block;
}

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

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

.contact-info {
    width: 45%;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.contact-details {
    margin-bottom: 40px;
}

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

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

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-text h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-text p {
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-form {
    width: 50%;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #a51515;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 27, 27, 0.3);
}

/* Form Message Styles */
.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid #2ed573;
}

.form-message.error {
    background-color: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid #ff4757;
}

/* Footer */
footer {
    padding: 50px 0;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-logo {
    width: 30%;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

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

.footer-links {
    width: 20%;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

.social-links a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header Adjustments */
    .header-container {
        padding: 15px 20px;
    }
    
    /* Logo Adjustments */
    .logo-container {
        width: 200px;
        margin-right: auto;
    }
    
    /* Hide Desktop Nav on Mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: block;
        z-index: 999;
    }
    
    /* Mobile Navigation */
    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 998;
        padding: 80px 30px 30px;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }
    
    .mobile-nav.active {
        display: block;
        transform: translateX(0);
    }
    
    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
    }
    
    .mobile-nav ul li {
        margin: 0;
        margin-bottom: 15px;
    }
    
    .mobile-nav ul li a {
        font-size: 1.2rem;
        text-decoration: none;
        color: var(--secondary-color);
        font-weight: 500;
        display: block;
        padding: 8px 0;
    }
    
    /* Mobile Menu Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 997;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Hero Section Adjustments */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-image {
        width: 100%;
    }
    
    /* Button Adjustments */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }
    
    /* Value Cards */
    .value-card {
        width: 100%;
    }
    
    /* Service Cards */
    .service-card {
        width: 100%;
    }
    
    /* Industry Cards */
    .industry-card {
        width: 100%;
    }
    
    /* Contact Section */
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 15px;
    }
    
    .social-links a {
        margin: 0 10px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    .tagline h2 {
        font-size: 2rem;
    }
}

/* Contact Image Styling */
.contact-image {
    margin-top: 30px;
    text-align: center;
}

.contact-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Adjust spacing in contact info section */
.contact-info {
    display: flex;
    flex-direction: column;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .contact-image {
        margin-bottom: 30px;
    }
}

/* Animated service numbers */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.service-number {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.in-view .service-number {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

/* Stagger animation for each card */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }

/* Mesh background positioning */
.mesh-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.hero .mesh-background,
.solutions .mesh-background {
    opacity: 0.3;
}

/* Ensure content is above mesh */
.hero-content,
.solutions .container {
    position: relative;
    z-index: 2;
}