/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Based on professional construction/equipment theme */
    --primary-color: #1a4d7a;
    --primary-dark: #0f2d4a;
    --primary-light: #2d6ba3;
    --secondary-color: #f39c12;
    --secondary-dark: #d68910;
    --accent-color: #e74c3c;
    
    /* Neutral Colors */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

* {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: visible;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Shrink navbar when scrolling down */
.navbar.shrunk {
    padding: 0;
}

.navbar.shrunk .nav-content {
    padding: 0.25rem 0;
    min-height: 50px;
}

.navbar.shrunk .logo-image {
    height: 55px;
    max-width: 160px;
}

.navbar.shrunk .nav-menu {
    gap: 0.8rem;
}

.navbar.shrunk .nav-menu a {
    font-size: 0.85rem;
}

.navbar.shrunk .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    min-height: 60px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
}

.logo a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    background: transparent;
}

.logo-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-image {
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.75) 0%, rgba(15, 45, 74, 0.85) 100%);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 90%;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.5),
                 0 4px 10px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.title-line {
    display: block;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.5),
                 0 4px 10px rgba(0, 0, 0, 0.6);
}


.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: #f8f9fa;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 
                 0 0 15px rgba(0, 0, 0, 0.4),
                 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    transform: translateY(0);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-description {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Services Section */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* Vision & Mission Section */
.vision-mission {
    background: var(--bg-light);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.vision-card,
.mission-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vision-card::before,
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.vision-card:hover::before,
.mission-card:hover::before {
    transform: scaleX(1);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.vision-icon,
.mission-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.vision-icon svg,
.mission-icon svg {
    width: 50px;
    height: 50px;
}

.vision-title,
.mission-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.vision-text,
.mission-text {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.1rem;
}

/* Values Section */
.values {
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.05), rgba(45, 107, 163, 0.05));
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.value-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0.3;
    line-height: 1;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* Products Section */
.products {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-image img.active,
.product-image img.product-main-img {
    opacity: 1;
}

.product-card:hover .product-image img.active,
.product-card:hover .product-image img.product-main-img {
    transform: scale(1);
}

.product-main-img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.8), rgba(45, 107, 163, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}


.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.popular {
    background: var(--accent-color);
}

[dir="rtl"] .product-badge {
    left: auto;
    right: 15px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature {
    font-size: 0.9rem;
    color: var(--primary-color);
    background: rgba(26, 77, 122, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

.product-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.product-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Partners Section */
.partners {
    background: white;
}

.partners-content {
    margin-top: 3rem;
}

.partners-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.partner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.1), rgba(45, 107, 163, 0.1));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px dashed var(--border-color);
    transition: var(--transition);
}

.partner-logo:hover .partner-placeholder {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.15), rgba(45, 107, 163, 0.15));
}

/* AP Stacking Section */
.ap-stacking {
    background: white;
}

.ap-stacking-content {
    margin-top: 3rem;
}

.ap-stacking-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 600;
    color: var(--primary-color);
}

.ap-stacking-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ap-stacking-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: white;
}

.ap-stacking-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.ap-stacking-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

.ap-stacking-image:hover img {
    transform: scale(1.05);
}

/* Certifications Section */
.certifications {
    background: var(--bg-light);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cert-icon svg {
    width: 40px;
    height: 40px;
}

.cert-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    color: var(--primary-color);
    opacity: 0.2;
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-quote svg {
    width: 60px;
    height: 60px;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* FAQ Section */
.faq {
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
    flex-shrink: 0;
    margin-right: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(26, 77, 122, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

[dir="rtl"] .progress-bar {
    left: auto;
    right: 0;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
    background: transparent;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-description {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
/* Desktop Styles - Adjust hero section for desktop only */
@media (min-width: 769px) {
    .hero-content {
        max-width: 750px;
        padding: 2.5rem 2rem;
        width: 85%;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-content {
        max-width: 650px;
        padding: 2.5rem 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ap-stacking-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Medium Tablets (iPads in portrait) */
@media (max-width: 820px) and (min-width: 769px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background: white;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    [dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
    }

    [dir="ltr"] .nav-menu.active {
        left: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-content {
        min-height: 55px;
        padding: 0.25rem 0;
    }

    .logo-image {
        height: 50px;
        max-width: 130px;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.75rem 0;
        display: block;
        width: 100%;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }

    [dir="ltr"] .lang-switcher {
        margin-left: 1rem;
        margin-right: auto;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
        padding-top: 60px;
    }

    .hero-content {
        padding: 1.75rem 1.25rem;
        margin: 0 10px;
        width: calc(100% - 20px);
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 
                     0 0 15px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-stats {
        flex-direction: row;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
        flex: 1;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .values-grid,
    .certifications-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .product-image {
        height: 220px;
        min-height: 220px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .product-features {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .feature {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vision-card,
    .mission-card {
        padding: 2rem;
    }

    .vision-title,
    .mission-title {
        font-size: 1.75rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .partner-logo {
        padding: 1.5rem;
        height: 120px;
    }

    .ap-stacking-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ap-stacking-description {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Extra Large Mobile Devices (iPhone Pro Max, etc.) */
@media (max-width: 768px) and (min-width: 431px) {
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        padding: 1.4rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .nav-content {
        min-height: 50px;
        padding: 0.2rem 0;
    }

    .logo-image {
        height: 45px;
        max-width: 110px;
    }

    .nav-menu {
        top: 50px;
        max-width: 100%;
        padding: 1.5rem;
    }

    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.625rem 0;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        min-height: 100vh;
        height: 100vh;
        padding-top: 50px;
    }

    .hero-content {
        padding: 1.25rem 0.875rem;
        margin: 0 5px;
        width: calc(100% - 10px);
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .product-image {
        height: 200px;
        min-height: 200px;
    }

    .service-card,
    .cert-card {
        padding: 2rem;
    }

    .service-title,
    .cert-title {
        font-size: 1.3rem;
    }

    .value-card {
        padding: 2rem;
    }

    .value-number {
        font-size: 3rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .product-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .partner-logo {
        padding: 1.25rem;
        height: 100px;
    }

    .ap-stacking-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ap-stacking-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .vision-mission-grid {
        gap: 1.5rem;
    }

    .vision-card,
    .mission-card {
        padding: 1.5rem;
    }

    .vision-title,
    .mission-title {
        font-size: 1.5rem;
    }

    .vision-icon,
    .mission-icon {
        width: 80px;
        height: 80px;
    }

    .values-grid {
        gap: 1rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Extra Small Devices (iPhone SE, smaller phones) */
@media (max-width: 375px) {
    .hero-content {
        padding: 1rem 0.75rem;
        margin: 0 3px;
        width: calc(100% - 6px);
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0.875rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav-content {
        min-height: 45px;
    }

    .logo-image {
        height: 40px;
        max-width: 100px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 80px 0 60px;
    }

    .hero-content {
        padding: 1.5rem 1.25rem;
        margin: 1rem 10px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        width: auto;
        padding: 0.75rem 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* High-DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title,
    .hero-subtitle,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .hero-content {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* RTL Support */
[dir="rtl"] .footer-links a:hover,
[dir="rtl"] .social-link:hover {
    padding-right: 0;
    padding-left: 5px;
}

[dir="ltr"] .footer-links a:hover,
[dir="ltr"] .social-link:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .nav-menu {
    right: -100%;
}

[dir="rtl"] .nav-menu.active {
    right: 0;
}

[dir="ltr"] .nav-menu {
    left: -100%;
    right: auto;
}

[dir="ltr"] .nav-menu.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

[dir="ltr"] .back-to-top {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        right: -100%;
        left: auto;
    }

    [dir="rtl"] .nav-menu.active {
        right: 0;
        left: auto;
    }

    [dir="ltr"] .nav-menu {
        left: -100%;
        right: auto;
    }

    [dir="ltr"] .nav-menu.active {
        left: 0;
        right: auto;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

