/* ARTROQ - Main Stylesheet */

:root {
    /* Primary Colors */
    --primary: #e30613;
    --primary-dark: #c70510;
    --primary-light: #ff1824;

    /* Secondary Colors */
    --secondary: #3c3c3b;
    --secondary-dark: #2a2a29;
    --secondary-light: #4e4e4d;

    /* Accent Colors */
    --accent: #14b8a6;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
    --accent-green: #10b981;

    /* Neutral Colors */
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-dark: #475569;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;

    /* Gradients */
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-blue) 100%);
    --gradient-purple: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);

    /* Shadows */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

nav.scrolled {
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Mobile specific navbar height */
@media (max-width: 768px) {
    nav {
        height: 60px;
    }

    .nav-container {
        padding: 0.5rem 0;
        height: 60px;
    }
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 20px;
    margin: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-direction: row;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.cta-button {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.lang-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1002;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

/* Hero Visual SVG */
.hero-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.1;
    z-index: 1;
}

.hero-visual.parallax-layer {
    will-change: transform;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    max-width: 700px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.secondary-button {
    background: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

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

.hero-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-accent);
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--gradient-purple);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.motto {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gradient);
    border-radius: var(--radius);
    text-align: center;
}

.motto p {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    font-style: italic;
}

.about-visual {
    position: relative;
}

.stats-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-highlight {
    text-align: center;
}

.stat-highlight h3 {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-highlight p {
    color: var(--gray);
    font-size: 1rem;
}

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

.team-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services {
    background: var(--bg-primary);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.services-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

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

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, rgba(60, 60, 59, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

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

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Other Activities */
.other-activities {
    background: var(--bg-tertiary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-top: 4rem;
}

.other-activities h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.activity-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-left-color: var(--primary);
}

.activity-item span {
    color: var(--secondary);
    font-weight: 500;
}

/* Value Proposition Section */
.value-proposition {
    background: var(--gradient);
    color: white;
    position: relative;
}

.proposition-header {
    text-align: center;
    margin-bottom: 3rem;
}

.proposition-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
}

.proposition-header .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.proposition-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.proposition-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.prop-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.proposition-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.proposition-card p {
    opacity: 0.9;
}

/* Advantages Section */
.advantages {
    background: var(--bg-secondary);
}

.advantages-header {
    text-align: center;
    margin-bottom: 3rem;
}

.advantages-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
}

.advantages-list {
    max-width: 900px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.advantage-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.advantage-icon {
    font-size: 2rem;
    min-width: 50px;
    color: var(--primary);
}

.advantage-item h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.advantage-item p {
    color: var(--gray);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Section */
.team {
    background: var(--bg-tertiary);
}

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

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

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

.member-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.team-member h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.member-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.member-desc {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    background: var(--bg-primary);
    padding: 80px 0;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
    margin-bottom: 1rem;
}

.projects-header p {
    color: var(--gray);
    font-size: 1.2rem;
}

/* Scrollable projects with hidden scrollbar */
.projects-wrapper {
    position: relative;
    margin: 0 -20px;
}

.projects-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 1rem;
    padding: 0.5rem 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Hide scrollbar for all browsers */
.projects-scroll-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.projects-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.projects-scroll-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

/* Auto-scroll animations */
.animate-scroll {
    animation: autoScroll 40s linear infinite;
}

.animate-scroll-reverse {
    animation: autoScrollReverse 40s linear infinite;
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes autoScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause animation on hover */
.projects-scroll-container:hover .projects-scroll-track {
    animation-play-state: paused;
}

.project-item {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .projects-wrapper {
        margin: 0 -15px;
    }

    .projects-scroll-container {
        padding: 0.5rem 15px;
    }

    .project-item {
        width: 140px;
        height: 90px;
    }

    .project-item img {
        padding: 10px;
    }

    /* Slower animation on mobile */
    .animate-scroll {
        animation-duration: 30s;
    }

    .animate-scroll-reverse {
        animation-duration: 30s;
    }
}

/* Partners Section */
.partners {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.partners h2 {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary);
}

.partners-categories {
    max-width: 1000px;
    margin: 0 auto;
}

.partner-category {
    margin-bottom: 3rem;
}

.partner-category h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

.partner-logo {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
}

/* Segments Section */
.segments {
    background: var(--bg-tertiary);
}

.segments-header {
    text-align: center;
    margin-bottom: 3rem;
}

.segments-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
}

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

.segment-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.segment-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.segment-card:hover::after {
    transform: scaleX(1);
}

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

.segment-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.segment-card p {
    color: var(--gray);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.contact-info .text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 16px; /* Prevents zoom on iOS */
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--secondary);
    color: white;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    color: white;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
    color: var(--primary);
    text-align: center;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
    opacity: 0.8;
    line-height: 1.8;
}

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

.footer-section li {
    padding: 0.3rem 0;
}

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

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-whatsapp {
    background: #25D366;
}

.fab-phone {
    background: var(--gradient);
}

/* Integrated Parallax Styles */
[data-parallax] {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    width: 100%;
    height: 120%;
    will-change: transform;
    z-index: 0;
}

/* Ensure content is above parallax layers */
[data-parallax] > .container {
    position: relative;
    z-index: 2;
}

/* Hero Parallax Background */
.hero .gradient-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #ffe4e6 50%, var(--bg-tertiary) 100%);
}

/* Services Pattern Background */
.section-bg-pattern {
    width: 100%;
    height: 100%;
    background-image:
            repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(227, 6, 19, 0.03) 35px, rgba(227, 6, 19, 0.03) 70px),
            repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(60, 60, 59, 0.03) 35px, rgba(60, 60, 59, 0.03) 70px);
}

/* Value Proposition Gradient Overlay */
.value-proposition .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Stats Background */
.stats .stats-bg {
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(circle at 10% 20%, rgba(227, 6, 19, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 80% 80%, rgba(227, 6, 19, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Contact Background */
.contact .contact-bg {
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(ellipse at top right, rgba(227, 6, 19, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at bottom left, rgba(20, 184, 166, 0.2) 0%, transparent 50%);
}

/* RTL Support for Arabic */
html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-content,
html[dir="rtl"] .about-content,
html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .service-features li::before,
html[dir="rtl"] .advantage-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .shape-1 {
    left: auto;
    right: 10%;
}

html[dir="rtl"] .shape-2 {
    right: auto;
    left: 10%;
}

/* Fix mobile menu for RTL */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        direction: rtl;
    }

    html[dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
    }

    /* Ensure mobile menu items stack vertically in RTL */
    html[dir="rtl"] .nav-menu li {
        display: block;
        width: 100%;
        text-align: center;
    }

    html[dir="rtl"] .nav-menu .nav-link {
        display: block;
        padding: 0.75rem 1rem;
    }

    html[dir="rtl"] .language-switcher {
        flex-direction: row;
    }
}

/* Mobile Optimization for Parallax */
@media (max-width: 768px) {
    /* Disable parallax transforms on mobile */
    [data-parallax] .parallax-layer {
        transform: none !important;
        position: absolute;
        height: 100%;
    }

    /* Simplify backgrounds on mobile */
    .section-bg-pattern {
        background-image: none;
        background: rgba(248, 250, 252, 0.5);
    }

    /* Reduce complexity of gradient overlays */
    .gradient-overlay,
    .stats-bg,
    .contact-bg {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 1rem 0;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1001;
    }

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

    .nav-menu li {
        margin: 0.25rem 0;
        display: block;
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .nav-menu .cta-button {
        margin: 0.5rem auto;
        display: inline-block;
        padding: 0.5rem 1.5rem;
    }

    .language-switcher {
        margin: 0.5rem 0;
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 100vh;
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        text-align: center;
        width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .team-grid,
    .activities-grid,
    .segments-grid,
    .proposition-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-item {
        width: 120px;
        height: 80px;
    }

    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Improve form on mobile */
    .contact-form {
        padding: 1.5rem;
    }

    /* Better spacing for mobile */
    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .services-header,
    .projects-header,
    .segments-header,
    .advantages-header {
        margin-bottom: 2rem;
    }

    /* Optimize slider for mobile - removed animation */
    .projects-scroll-container {
        -ms-overflow-style: -ms-autohiding-scrollbar; /* IE/Edge */
    }

    /* Stack advantage items better on mobile */
    .advantage-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .advantage-icon {
        margin-bottom: 0.5rem;
    }

    /* Mobile shapes */
    .shape {
        display: none;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small mobile optimization */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .proposition-card {
        padding: 1.5rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .member-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .other-activities {
        padding: 2rem 1rem;
    }

    .activity-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .parallax-layer {
        transform: none !important;
    }

    .shape {
        animation: none !important;
    }

    .slider-row {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    .fab-container,
    .loader-wrapper,
    .mobile-menu-backdrop {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        min-height: auto;
        padding: 2cm 0;
    }

    .service-card,
    .team-member,
    .segment-card {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #ff0000;
        --secondary: #000000;
        --gray: #333333;
        --gray-light: #cccccc;
    }

    .text-gradient {
        background: none;
        -webkit-text-fill-color: var(--primary);
        color: var(--primary);
    }

    .service-card,
    .team-member,
    .proposition-card {
        border: 2px solid var(--secondary);
    }
}

/* Dark mode support (if you want to add it in the future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection colors */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to content link (accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* Utility classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Loading states */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Image loading states */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove blur effect - images should load normally */
img.loading {
    opacity: 0.8;
}

img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Error states */
.error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.success {
    border-color: #10b981 !important;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Tooltip styles (if needed) */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
}

.badge-secondary {
    background: var(--secondary);
}

.badge-success {
    background: var(--accent-green);
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-animated {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Final touches for better UX */
.nav-link,
.cta-button,
.secondary-button,
.lang-btn,
.fab,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure smooth scrolling behavior */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* End of stylesheet */