 @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

:root {
  
    --bg-nav:#FFFFFF;
    --color-btn:#2E4493;
    --btn-color:#ffffff;
    --font-colornav:black;
    --btn1:white;
    --bg:#8DC1CD;
    --font-colorbg:#263F5E;
    --font-colorbtbg:#263F5E;
    --bg2:#e5f3fa;
    --font1:#13C5DD;
    --font2:#1D2A4D;
    --font3:#1D2A4D;
    --bg3:#E5F3FA;
    --bg-footer:#1A233A;
    --footer-color:#13C5DD;
    --footer-color2:#a0a6b5;
    --bg-footer2:#111827;
    --footer-links-color:#a0a6b5;
    --btn-color2: #0b0b0b;
    --pColor:rgb(13, 13, 13);
    --card-bg:rgb(255, 255, 255);
    --background-color: #11a2d7;
    --background-color2: #e5f3fa;

}

    /* start-darkMode */
 body.dark-mode {
    --bg-nav: #0a0a0a;         
    --color-btn: #eff4fd;    
    --btn-color: #000000;  
    --btn1:rgb(3, 3, 3);     
    --font-colornav: #fef8f8;   
    --bg: #000000;             
    --font-colorbg: #f9f2f2;   
    --bg2: #000101;             
    --font1: #f3f3f3;          
    --font2: #dbe4ef;           
    --font3: #f1f3f6;         
    --bg3: #0b0f19;             
    --bg-footer: #020617;      
    --footer-color: #38bdf8; 
    --footer-color2: #9ca3af;   
    --bg-footer2: #030712;      
    --footer-links-color: #9ca3af; 
    --btn-color2: gold;
    --pColor:rgb(230, 230, 230);
    --card-bg:rgb(93, 87, 87);
    --background-color: black;
    --background-color2: gray;


}

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

body{ 
    font-family: "Cairo", sans-serif;
    background: #ffff;
    color: #131a2f;
}


button,
input,
select {
    font-family: inherit;
} 

html {
    scroll-behavior: smooth;
}
  .container{
    max-width:1200px;
    margin:0 auto;
    padding:0 24px;
    background-color: var(--bg-nav);
    box-shadow: 0 2px 10px rgba(19, 26, 47, 0.06)
  }

  /* ---------- Header ---------- */
  .site-header{
    background:var(--bg-nav);
    position:relative;
    z-index:1000;
    box-shadow:0 1px 4px rgba(0,0,0,0.06);
  }

  .header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:16px 24px;
  }

  .brand{
    display:flex;
    align-items:center;
    gap: 0.6em;
    text-decoration:none;
    flex-shrink:0;
  }
  .brand-mark{
    width:34px; height:34px;
    background:var(--color-btn);
    color:var(--btn-color);
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    font-size:18px;
  }
  .brand-text{
    font-weight:800;
    font-size:1.5rem;
    color: var(--color-btn);
  }

  .main-nav{
    display:flex;
    align-items:center;
    gap:28px;
    flex:1;
    justify-content:center;
  }
  .main-nav a{
    text-decoration:none;
    color:var(--font-colornav);
    font-weight:500;
    font-size:20px;
    white-space:nowrap;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
  }
  .main-nav a:hover{ color:#11a2d7; }

  .header-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
  }

  .btn{
    padding:9px 18px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    font-size:0.9rem;
    white-space:nowrap;
  }
  .btn-primary{
    background:var(--color-btn);
    color:var(--bg-nav);
  }
  .btn-primary:hover{ background:#11a2d7; }

  .toggle-button{
    width:40px; height:40px;
    border-radius:50%;
    border:none;
    background:var(--navy);
    color:var(--btn-color2);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
  }
  .toggle-button:hover{ background:var(--navy-dark); }

  /* Hamburger — hidden on desktop */
  .nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:32px;
    height:32px;
    border-radius: 15px;
    border: 1.5px solid var(--line);
    background:transparent;
    cursor:pointer;
    padding:0;
    flex-shrink:0;
  }

  .header-actions a {
  
   color: var(--btn-color);
   background-color:var(--color-btn)
}
  .nav-toggle span{
    display:block;
    height:2px;
    width:100%;
    background:var(--color-btn);
    border-radius:2px;
    transition:transform 0.25s ease, opacity 0.25s ease;
  }
  /* Turns into an X when open */
  .nav-toggle.is-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2){ opacity:0; }
  .nav-toggle.is-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  /* ---------- Hero ---------- */
  .main{
    background:linear-gradient(180deg, var(--teal-mid) 0%, var(--teal-light) 100%);
    padding: 100px 100px;
    display: flex;
    align-items: center;
    background-image: url('../Images/cc514974491ee807cd9e0759579af702.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
  }
  .text{
    max-width:700px;
    margin:0;
    text-align:left;
  }
  .text h1{
    font-size:clamp(2.25rem, 5vw, 3.5rem);
    line-height:1.1;
    color:var(--font-colorbg);
    margin-bottom:16px;
    display: grid;
  }
  .text h2{
    font-size:clamp(1.4rem, 3vw, 2rem);
    line-height:1.25;
    color:var(--font-colorbg);
    margin-bottom:20px;
    font-weight:600;
  }
  .text p{
    font-size:clamp(1rem, 2vw, 1.15rem);
    line-height:1.6;
    color:var(--font-colorbg);
    margin-bottom:36px;
  }

  .btns{
    display:flex;
    gap:16px;
  }
  .btn1, .btn2{
    display:inline-block;
    padding:16px 28px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
    font-size:1rem;
    text-align:center;
  }
  .btn1{
    background:var(--color-btn);
    color: var(--btn-color);
  }
  .btn2{
    background:var(--color-btn);
    color: var(--btn-color);
  }
  .btn1:hover, .btn2:hover{    
    background: #11a2d7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 162, 215, 0.25); 
}

  /* =======================================================
     MOBILE: screens under 768px
     ======================================================= */
  @media (max-width: 768px){

    .header-inner{
      padding:14px 20px;
    }

    /* Hide the inline nav; it becomes a slide-down drawer */
    .main-nav{
      position:absolute;
      top:100%;
      left:0;
      right:0;
      flex-direction:column;
      align-items:flex-start;
      gap:0;
      background:var(--white);
      box-shadow:0 8px 16px rgba(0,0,0,0.08);
      max-height:0;
      overflow:hidden;
      transition:max-height 0.3s ease;
    }
    .main-nav.is-open{
      max-height:400px; /* enough room for the links */
    }
    .main-nav a{
      width:100%;
      padding:14px 24px;
      border-top:1px solid #eee;
    }

    /* Only keep Sign In visible next to the hamburger;
       stash "New User" inside the drawer-friendly actions row,
       or drop to icon-only — simplest: hide the New User button,
       keep Sign In + hamburger */
    .header-actions{
      gap:8px;
    }
    .header-actions .btn{
      padding:8px 12px;
      font-size:0.82rem;
    }

    .nav-toggle{
      display:flex;
    }

    /* ---- Hero ---- */
    .main{
      padding:56px 20px 64px;
    }
    .text{
      max-width:100%;
      margin:0 auto;
      text-align:center;
    }
    .text h1{
      font-size:clamp(1.9rem, 8vw, 2.5rem);
    }
    .text h2{
      font-size:clamp(1.2rem, 5vw, 1.5rem);
    }
    .text p{
      font-size:1rem;
      padding:0 4px;
    }
    /* Let the copy reflow naturally instead of forcing the
       desktop line breaks */
    .text h2 br,
    .text p br{
      display:none;
    }

    .btns{
      flex-direction:column;
      gap:12px;
    }
    .btn1, .btn2{
      width:100%;
    }

    .toggle-button{
      position:fixed;
      bottom:20px;
      right:20px;
      z-index:1000;
    }
  }

  @media (max-width: 420px){
    .brand-text{ font-size:1.1rem; }
    .text h1{ font-size:1.75rem; }
  }
/* End Home Section */






/* ///////////////////// */


/* Start About Section */ 
.section2
{
    padding: 180px 70px;
    background-color: var(--bg2);
}
.left-section
{
    width: 40%;
    height: 80%;
}
.left-section img
{
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.right-section
{
    width: 60%;
    position: relative;
    top: -25px;
    right: -40px;
}
.About
{
    color: var(--font1);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    width: fit-content;
}
.right-section h1
{
    color: var(--font2);
    font-size: 56px;
    line-height: 67px;
    font-weight: 700;
}
.right-section p.text-muted{
    color:var(--pColor) !important;
}
/* End About Section */ 


/* Start Services */
body{
    padding:0px;
    margin:0px;
    background-color:var(--bg3);
    height:100vh;
}
    /* edite card */
.card{
    /* max-width:300px; */
    margin:0;
}
.card img{
    height:250px!important;
    object-fit:cover;
}
        /* card-transition */
.card{
    border:none;
    box-shadow:0px 3px 7px #1a1a1b14;
    transition: all .5s ease;
}
.card:hover{
    box-shadow:0px 5px 10px rgb(0,0,0,0,.50);
    transform: translatey(-14px);
}
.card-body2 .card-text{
    color:rgb(45, 38, 38);
    font-size:12px;
    font-weight:bolder;
    padding:8px
    
}
/* End Services */

/* Start Footer */

footer {
    background-color:var(--bg-footer); 
    color: var(--footer-color2); 
    font-family: Arial, sans-serif;
    margin-top: 50px;
    bottom: 0;
    position: relative;
    width: 100%;
}


footer .footer-container /* (nesting */ {
    display: flex;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px; /* for responsability */
    margin: auto;
    gap: 2rem;
    flex-wrap: wrap; /* ← عشان الاعمدة تلف فالمساحة تفضل زى ما هى*/
}
footer.footer-col {
    flex: 1;
}


footer h3 {
    color:var(--footer-color); 
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}




.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: var(--footer-color);
}


.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--footer-color2);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-color);
}
.newsletter {
    display: flex;
    margin-bottom: 1.5rem;
}

.newsletter input {
    padding: 10px;
    border: none;
    outline: none;
    width: 100%;
}
/* ضبط الفوتر للشاشات المتوسطة (التابلت والآيباد) */
@media (max-width: 992px) {
    footer .footer-container {
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }
    
    footer .footer-col {
        flex: 1 1 45%; /* يظهر كل عمودين بجانب بعض بدلاً من 4 أعمدة مضغوطة */
    }
}

/* ضبط الفوتر للشاشات الصغيرة (الموبايل) */
@media (max-width: 600px) {
    footer .footer-container {
        flex-direction: column; /* تحويل ترتيب الأعمدة إلى رأسي بدلاً من أفقي */
        padding: 2rem 1rem;
        gap: 1.8rem;
        text-align: center; /* لتنسيق النصوص والأيقونات في المنتصف */
    }

    footer .footer-col {
        width: 100%;
    }

    /* توسيط أيقونات التواصل والتفاصيل على الموبايل */
    .contact-details p, 
    .footer-links a {
        justify-content: center;
    }

    /* ضبط نموذج النيوزليتر ليشغل كامل العرض */
    .newsletter {
        flex-direction: column;
        gap: 10px;
    }
}

.newsletter button {
    background-color:var(--footer-color);
    color: var(--bg-nav);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
}


.follow-title {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: var(--footer-color);
    color: var(--bg-nav);
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-links a:hover {
    background-color: var(--bg-nav);
    color: var(--footer-color);
}


.footer-bottom {
    background-color: #111827; 
    text-align: left;
    padding: 1.5rem 10%;
    color: var(--footer-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* End Footer */

