/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Consolidated CSS Variables for Lighter CSS */
:root {
    /* Primary Blue (Standard Bright Blue) - Used for major backgrounds, cards, main elements */
    --blue-primary: #007BFF; 
    /* Secondary Blue (Electric Blue) - Used for highlights, button states, maximum vibrancy */
    --blue-secondary: #3399FF; 
    /* Accent Gold (Supernova Gold) - Used for hover, dots, key highlights - maximum vibrancy and pop */
    --color-gold: #FFC000; 
    /* Light Background (Pure White) - Used for section backgrounds for maximum contrast */
    --color-light-bg: #FFFFFF; 

  
    --color-white: #ffffff;
    --color-text-dark: #333333; 
    --color-text-grey: #666666; 
    /* Removed --blue-cyan, replacing its usage with gold or primary blue */
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--color-light-bg); /* Changed body background to white */
    color: var(--blue-primary); /* Changed base text color for better readability on light bg */
    display: flex;
    flex-direction: column;
}



/* ===== HERO SECTION ===== */

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

/* Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-controls button {
  width: 60px;              /* عرض الزر */
  height: 100%;             /* ياخذ كامل الطول */
  background: rgba(0, 0, 0, 0);
  color: var(--color-white);
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 0;
  transition: background 0.3s;
}

.slider-controls button:hover {
  background: rgba(0, 0, 0, 0);
}

/* Dots */
.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dots button.active {
  background: var(--color-gold); /* Gold Dot */
}

.hero.split-hero {
    background: var(--blue-primary); /* Vibrant Blue Hero Background */
    color: var(--color-white);
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.hero-text h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-text h1 {
    font-size: 44px;
    margin: 8px 0;
    line-height: 1.05;
    font-weight: 800;
    color: var(--color-white);
}

.hero-text h2 {
    font-size: 20px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.hero-image {
    flex: 1;
    min-height: 500px;
    background-image: url("images/home.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 60px;
}

/* ===== STATISTICS SECTION ===== */
.wrap-section {
    background: var(--color-light-bg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 920px;
}

.card {
    background: var(--blue-primary); /* Vibrant Blue Card Background */
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
}

.card:active {
    transform: translateY(2px);
}

.label {
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 26px;
    font-weight: bold;
}

.value {
    font-size: 46px;
    font-weight: 700;
    color: var(--color-white);
}

.unit {
    color: var(--color-white);
    font-weight: bold;
}
/* rio*/
/* ===== ROI SECTION STYLES (Variables moved to top :root) ===== */


.roi {
    height: 400px;
    margin: 0;
    background: var(--color-light-bg);
    color: var(--color-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    min-height: 400px;
}

/* ===== Sidebar ===== */
.sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 180px;
    background: var(--blue-primary); /* Vibrant Blue Sidebar */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 2;
    
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;


}

.sidebar button {
    width: 140px;
    background: var(--blue-primary);
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 15px;
    color: var(--color-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar button.active {
    
    color: var(--color-gold); /* Gold Active Button */
  
}

.sidebar button:hover {
    
    color: var(--color-gold); /* Gold Hover */
    transform: translateY(-2px);
}

/* ===== Main Frame ===== */
.frame {
    background: var(--color-white);
    border: 14px solid var(--blue-primary); /* Vibrant Blue Border */
    border-radius: 12px;
    padding: 30px 40px 70px 40px;
    box-shadow: 0 8px 30px rgba(9,30,66,0.08);
    text-align: center;
    position: relative;
    height: 320px;
    width: 80%;
    max-width: 850px;
    margin-left: 200px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.frame:hover {
    box-shadow: 0 12px 40px rgba(9,30,66,0.12);
}

.title {
    color: var(--color-text-grey);
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===== Responsive Big Number ===== */
.big-number {
    font-weight: 800;
    color: var(--blue-primary); /* Vibrant Blue Number */
    margin: 10px 0 25px 0;
    word-break: break-word;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);

    transition: all 0.3s ease;
    line-height: 1.1;
    
    /* الحجم الأساسي للارقام الصغيرة */
    font-size: 72px;
    
    /* خاصية التقليل التلقائي للخط */
    font-size: clamp(22px, 5.5vw, 56px);

}





.unit {
    color: var(--color-text-grey);
    font-size: 16px;
    font-weight: 500;
}

.buttons {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== Dropdown Styles ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn {
    border: 2px solid var(--blue-primary); /* Vibrant Blue Border */
    color: var(--blue-primary); /* Vibrant Blue Text */
    background: var(--color-white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    min-width: 120px;
}

.btn:hover {
    background: var(--blue-secondary); /* Use lighter blue for hover */
    color: var(--color-white);
    border-color: var(--blue-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.3);
}

.dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 2px solid var(--blue-primary);
    border-radius: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 10;
    overflow: hidden;
    margin-bottom: 8px;
}

.dropdown-content button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--color-white);
    border: none;
    color: var(--blue-primary);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content button:last-child {
    border-bottom: none;
}

.dropdown-content button:hover {
    background: var(--blue-secondary); /* Use lighter blue for hover */
    color: var(--color-white);
    
}

.dropdown.open .dropdown-content {
    display: block;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade.show {
    opacity: 1;
}



/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 25px;
    background: var(--color-light-bg);
    color: var(--color-text-dark);
    text-align: center;
}

.about-title {
    text-align: center;
    margin-bottom: 25px;
}

/* Grouped Styles for Section Titles - Lighter CSS */
.about-title h2,
.services-title h2,
.referenc-title h2 {
    display: inline-block;
    background: var(--blue-secondary); /* Gold Background */
    color: var(--color-white); /* Vibrant Blue Text on Gold */
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 26px;
    font-weight: bold;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container p {
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
}

.about-container b {
    color: var(--blue-primary);
}

.about-img {
    width: 500px;
    height: 500px;
    border-radius: 10px;
}

/* ===== SOLUTIONS SECTION ===== */
.services-section {
    padding: 50px 20px;
    background: var(--color-light-bg);
    color: var(--color-text-dark);
}

.services-title {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.services-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    width: 100%;
}

.services-horizontal-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 300px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-horizontal-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.services-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.services-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.services-card-title {
    font-size: 1.4rem;
    margin: 0;
    color: #2c3e50;
}

.services-card-text {
    font-size: 1rem;
    color: #555;
    margin: 10px 0 15px;
}

.services-card-link {
    background: var(--blue-primary); /* Vibrant Blue Button */
    color: var(--color-white);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 30px;
    transition: background 0.3s ease;
    align-self: center;
}

.services-card-link:hover {
    background: var(--blue-secondary);
}

/* ===== CLIENTS SECTION ===== */
.referenc-section {
    padding: 50px 20px;
    background: var(--color-light-bg);
    color: var(--color-text-dark);
}

.referenc-title {
    text-align: center;
    margin-bottom: 40px;
}

.logo-slider {
    overflow: hidden;
    white-space: nowrap;
}

.logo-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

.logo-slider {
    cursor: grab;
}

.logo-slider.dragging {
    cursor: grabbing;
}

.logo-track img {
    height: 60px;
    margin: 0 30px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-track img:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}






/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    header { padding: 15px 30px; }
    nav a { font-size: 14px; }
    .hero-text h1 { font-size: 36px; }
    .hero-text h2 { font-size: 20px; }
    .services-carousel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-inner { flex-direction: column; }
    .hero-image { min-height: 300px; margin-top: 20px; }
    .about-container { flex-direction: column; }
    .about-img { width: 100%; height: auto; }
    .services-carousel { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
    .iso-img, .awt-img { justify-content: center; }
}

@media (max-width: 600px) {
    header { padding: 10px 20px; flex-direction: row; }
    nav { flex-wrap: wrap; justify-content: flex-end; gap: 15px; }
    nav a { font-size: 12px; margin: 0; }
    .hero-text h3 { font-size: 16px; }
    .hero-text h1 { font-size: 24px; }
    .hero-text h2 { font-size: 16px; }
    .wrap-section { padding: 30px 20px; }
    .wrap { grid-template-columns: 1fr; }
}