/* ===========================
   CSS Variables & Resets
   =========================== */
:root {
    --primary: #1a3a46;
    --secondary: #da7100;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===========================
   Skip Link (Accessibility)
   =========================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Container
   =========================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: 0 4px 20px var(--shadow);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

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

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

/* ===========================
   Language Switcher
   =========================== */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: relative;
}

.lang-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lang-name {
    display: none;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
}

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

.lang-current:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.lang-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: var(--transition);
}

.lang-dropdown.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 120px;
}

.lang-dropdown.active .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-link {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.lang-link:last-child {
    border-bottom: none;
}

.lang-link:hover {
    background-color: var(--bg-light);
    color: var(--secondary);
}

.lang-link.active {
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 600;
}

[dir="rtl"] .lang-options {
    right: auto;
    left: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
    min-height: 44px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c06400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(218, 113, 0, 0.4);
}

.btn-primary:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, rgba(26, 58, 70, 0.85) 0%, rgba(42, 90, 110, 0.85) 100%), 
                url('images/hero-bg.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 8rem 0 6rem;
    margin-top: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(218, 113, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero .btn-primary {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Sections
   =========================== */
.section-light {
    background-color: var(--bg-light);
}

.section-white {
    background-color: var(--white);
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    transition: width 0.8s ease;
}

.section-title.animate::after {
    width: 120px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ===========================
   About Section
   =========================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-sign {
    text-align: center;
    margin-bottom: 2rem;
}

.sign-img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.sign-img.animate {
    opacity: 1;
    transform: scale(1);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-content p:nth-child(2) {
    transition-delay: 0.2s;
}

.about-content p:nth-child(3) {
    transition-delay: 0.4s;
}

/* ===========================
   Clients Section
   =========================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.client-logo {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.client-logo.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.client-logo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px var(--shadow-lg);
}

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

/* ===========================
   Section Divider
   =========================== */
.section-divider {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 70, 0.7) 0%, rgba(42, 90, 110, 0.7) 100%);
}

/* ===========================
   Services Grid
   =========================== */
.services-grid,
.supplies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card,
.supply-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    position: relative;
    overflow: hidden;
}

.service-card::before,
.supply-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 113, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before,
.supply-card:hover::before {
    left: 100%;
}

.service-card.animate,
.supply-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-card:hover,
.supply-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px var(--shadow-lg);
}

.service-icon,
.supply-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon,
.supply-card:hover .supply-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg,
.supply-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(218, 113, 0, 0.2));
}

.service-title,
.supply-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-description,
.supply-description {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================
   Mission Section
   =========================== */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    border-left: 4px solid var(--secondary);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mission-card:nth-child(2) {
    transform: translateX(30px);
}

.mission-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.mission-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 4px;
    background: var(--secondary);
    transition: height 0.8s ease 0.3s;
}

.mission-card.animate::before {
    height: 100%;
}

.mission-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease 0.4s;
}

.mission-card.animate .mission-icon {
    opacity: 1;
    transform: scale(1);
}

.mission-icon svg {
    width: 100%;
    height: 100%;
}

.mission-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mission-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.0625rem;
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.required {
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(218, 113, 0, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
}

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

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

.form-success {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success.show {
    display: block;
    animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

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

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

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 4px 12px rgba(218, 113, 0, 0.4);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

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

/* ===========================
   Mobile Responsive (< 768px)
   =========================== */
@media (max-width: 767px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transform: translateX(-100%);
        transition: var(--transition);
        box-shadow: 2px 0 10px var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
    }

    .nav .lang-switcher {
        padding: 1.5rem 2rem;
        border-top: 1px solid var(--border-color);
    }

    .nav .lang-dropdown {
        width: 100%;
    }

    .nav .lang-current {
        width: 100%;
        height: 52px;
        min-width: unset;
        justify-content: space-between;
        padding: 0 1rem;
        font-size: 1rem;
    }

    .nav .lang-options {
        width: 100%;
        min-width: unset;
    }

    .nav #current-lang {
        display: none;
    }

    .nav .lang-name {
        display: block;
        flex: 1;
        text-align: start;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    section {
        padding: 3rem 0;
    }

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

    .logo-img {
        height: 40px;
    }

    .section-divider {
        height: 200px;
        background-attachment: scroll;
    }
}

/* ===========================
   Tablet Responsive (768px - 1023px)
   =========================== */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .supplies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* ===========================
   Desktop Responsive (>= 1024px)
   =========================== */
@media (min-width: 1024px) {
    .container {
        max-width: 1140px;
    }

    .hero {
        padding: 10rem 0 8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    section {
        padding: 5rem 0;
    }

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

    .service-card:hover,
    .supply-card:hover {
        transform: translateY(-8px);
    }

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

/* ===========================
   RTL (Right-to-Left) Support
   =========================== */
[dir="rtl"] .mission-card {
    border-left: none;
    border-right: 4px solid var(--secondary);
}

[dir="rtl"] .mission-card::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .mission-card:nth-child(2) {
    transform: translateX(-30px);
}

[dir="rtl"] .mission-card:nth-child(2).animate {
    transform: translateX(0);
}

[dir="rtl"] .nav {
    transform: translateX(100%);
}

[dir="rtl"] .nav.active {
    transform: translateX(0);
}

@media (max-width: 767px) {
    [dir="rtl"] .nav {
        left: auto;
        right: 0;
    }
}

