/* ==============================================
   ALTOMUH - Premium Corporate Website
   Pure HTML/CSS - Enterprise Grade
   ============================================== */

/* Variables */
:root {
    --gold: #D4AF37;
    --gold-light: #E8C875;
    --navy: #1a2332;
    --cream: #fffbf5;
    --cream-dark: #f5f1e8;
    --white: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-logo img {
    height: 45px;
    transition: height 0.3s;
}

.header.scrolled .header-logo img {
    height: 38px;
}

.header-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.header-nav a:hover {
    color: var(--gold);
}

.header-nav a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: 2px solid var(--gold);
    color: var(--navy);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--gold);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, #fff9ed 50%, var(--cream) 100%);
    padding: 140px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@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); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    max-width: 320px;
    margin: 0 auto 40px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.08));
    animation: fadeInScale 1s ease-out 0.2s both;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-light);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-line {
    width: 0;
    height: 4px;
    background: linear-gradient(to left, var(--gold), var(--gold-light));
    margin: 0 auto 16px;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-line.visible {
    width: 80px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.cert-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.badge {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212,175,55,0.1);
}

.badge:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.badge i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge:hover i {
    transform: scale(1.1) rotateY(10deg);
}

.badge i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.badge h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.badge p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Services Section */
.services {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212,175,55,0.08);
    opacity: 0;
    transform: translateY(40px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.service-card i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover i {
    transform: scale(1.15) rotateZ(5deg);
    color: var(--gold-light);
}

.service-card i {
    font-size: 2.25rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Quality Section */
.quality {
    background: white;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.quality-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--cream);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.quality-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background: white;
}

.quality-card i {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quality-card:hover i {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.quality-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.quality-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Certificates Section */
.certificates {
    background: var(--cream);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cert-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.cert-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clients Section */
.clients {
    background: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-card {
    background: white;
    padding: 48px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.client-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.client-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 180px;
    filter: grayscale(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* Contact Section */
.contact {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212,175,55,0.08);
    opacity: 0;
    transform: translateY(30px);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.contact-card i {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover i {
    transform: scale(1.2) rotateZ(10deg);
    color: var(--gold-light);
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--navy);
    color: white;
    padding: 64px 0 32px;
    text-align: center;
}

.footer-logo {
    max-width: 180px;
    margin: 0 auto 24px;
    opacity: 0.92;
}

.footer-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* English (LTR) Adjustments */
html[lang="en"] body {
    font-family: var(--font-en);
}

html[dir="ltr"] .header-nav a::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .quality-card:hover {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 968px) {
    .header-nav {
        display: none;
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-tagline {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .clients-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-logo {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}
