/* 
  Arkan Al-Dawliya - Custom CSS 
  Theme Colors: Premium Medical (Deep Blue, Soft Teal, Clean White)
*/

:root {
    /* Color Palette */
    --primary-color: #0d47a1;
    /* Deep Blue */
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --secondary-color: #00acc1;
    /* Teal */
    --secondary-light: #5ddef4;
    --secondary-dark: #007c91;

    --text-main: #2c3e50;
    --text-muted: #607d8b;
    --text-light: #ffffff;

    --bg-main: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #0a192f;

    --border-color: #e0e0e0;

    /* Layout & Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.ltr-text {
    direction: ltr;
    unicode-bidi: embed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.3;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.section-heading h2 span {
    color: var(--secondary-color);
}

.heading-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 20px;
    border-radius: 2px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.4);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   Header & Navigation
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.logo h1 span {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    overflow: hidden;
    padding-top: 80px;
    /* Offset for header */
}

/* Decorative background shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 172, 193, 0.1) 0%, rgba(0, 172, 193, 0) 70%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 71, 161, 0.08) 0%, rgba(13, 71, 161, 0) 70%);
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    z-index: 2;
    position: relative;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: right;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image-grid {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
}

.hero-img-box {
    position: absolute;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
    background-color: white;
}

.img-box-1 {
    width: 280px;
    height: 380px;
    top: 20px;
    right: 20px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.img-box-2 {
    width: 250px;
    height: 320px;
    bottom: 20px;
    left: 20px;
    z-index: 3;
    animation: float 5s ease-in-out infinite reverse;
}

/* =========================================
   About Section
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text>p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.detail-icon {
    font-size: 2rem;
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.detail-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.detail-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.about-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-grid {
    position: relative;
    width: 100%;
    height: 450px;
}

.about-img-1 {
    width: 70%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    border: 4px solid white;
}

.about-img-2 {
    width: 65%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: absolute;
    bottom: 60px;
    left: 0;
    z-index: 2;
    border: 6px solid white;
}

.glass-card {
    position: absolute;
    bottom: 0;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.glass-card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.glass-card p {
    color: var(--secondary-dark);
}

/* =========================================
   Products Section
========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   Contact Section
========================================= */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--secondary-dark);
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 400px;
}

.footer-logo h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo h2 span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: #a0aec0;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #a0aec0;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* =========================================
   Animations & Interactivity
========================================= */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Initial state for scroll animations */
.fade-in-up,
.fade-in-right,
.fade-in-left {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-right {
    transform: translateX(40px);
    /* RTL: moves from right to left to natural position */
}

.fade-in-left {
    transform: translateX(-40px);
    /* RTL: moves from left to right to natural */
}

/* Active state triggered by JS */
.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at top right);
        transition: clip-path 0.5s ease-in-out;
    }

    .nav.open {
        clip-path: circle(150% at top right);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 40px;
        width: 100%;
    }

    .hero-image-grid {
        height: 350px;
        transform: scale(0.8);
        transform-origin: top center;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-image-grid {
        height: 350px;
    }

    .section {
        padding: 50px 0;
    }

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