/* ===== Global Reset & Fonts ===== */
* {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', Arial, Helvetica, sans-serif;
}

/* ===== Body Styling ===== */
body {
    background-color: #121212;
    color: white !important;
    direction: rtl;
}

/* ===== h2 ===== */
h2{
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin-bottom: 40px;
    margin-top: 5px;
}

section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== Hero Section ===== */
#hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff66cc, #ffb3e6);
    height: 650px;
    padding: 0 5px;
    color: white;
}

/* ===== Navigation inside Hero ===== */
nav{
    padding: 15px !important;
    background:rgba(255,255,255,0.12) !important;    
    border:1px solid rgba(255,255,255,0.28) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
    color:#fff !important;
    direction: ltr;
}

nav a{
    color: white !important;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, red, #FFFFFF);
    box-shadow: 0 0 5px red;
    transition: 0.4s ease-in-out;
}

nav span{
    color: white !important;
}

nav a:hover::before {
    width: 100%;
}

nav a:hover {
    color: #FF0000 !important;
}

.navbar.scrolled{
    background: rgba(0, 0, 0, 0.6) !important; /* غامق شوية */
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ===== Scrollbar ===== */
body::-webkit-scrollbar{
    width: 12px;
    height: 12px;
}

body::-webkit-scrollbar-track{
    background: #121212;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb{
    background: linear-gradient(180deg, #FF0000, #7a0000);
    border-radius: 10px;
    border: 2px solid #121212;
}

body::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(180deg, #ff3333, #990000);
}
  
*{
    scrollbar-width: thin;
    scrollbar-color: #FF0000 #121212;
}

/* ===== Navbar no support */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))){
    nav{
      background:rgba(255,255,255,0.08);
      border:1px solid rgba(255,255,255,0.16);
    }
  }

/* ===== Hero & About Images ===== */
.hero_images {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#hero img,
#about img {
    width: 250px;
    min-height: 250px;
    cursor: pointer;
    transition: 0.5s ease-in;
    position: relative;
}

#hero img:hover,
#about img:hover {
    transform: translateY(-10px);
    border-radius: 5px;
    box-shadow: 0 0 10px 2px #FF0000;
}

/* ===== Image Bottom Border Animation ===== */
#hero img::before,
#about img::before {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #66ccff, #99e6ff);
    box-shadow: 0 0 5px red;
    transition: 0.4s ease-in-out;
}

#hero img:hover::before,
#about img:hover::before {
    width: 100%;
}

/* ===== About Section ===== */
#about {
    background: linear-gradient(135deg, #66ccff, #99e6ff);
    text-align: center;
    width: 100%;
    height: 800px;
    padding-bottom: 200px;
    margin-top: -5px;
}

#about .about-text p{
    color: #121212;
}

#about .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Single Card Styling ===== */
.card {
    background-color: #1e1e1e;
    border: 1px solid #FF0000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 300px;
    padding: 20px;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    text-align: center;
    height: fit-content;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* ===== Hover Effect for Service Cards ===== */
#Services .card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

/* ===== Team Section ===== */
#team {
    background: linear-gradient(135deg, #cc66ff, #e6b3ff); 
    height: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-top: 2px;
}

#team .card:hover {
    transform: translateY(5px);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

#team .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== Profile Card Content ===== */
#team .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF0000;
    margin-bottom: 15px;
}

/* ===== Service Section ===== */
#Services {
    height: 500px;
    background: linear-gradient(135deg, #ffffff, #e6f0ff);
}

#Services h2{
    color: #121212;
}

.member-name {
    font-size: 22px;
    color: #FF0000;
    margin-bottom: 5px;
}

.speciality {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.country {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

/* ===== Buttons ===== */
.btn-success {
    background-color: #00ffcc;
    border: none;
    color: #121212;
    font-weight: bold;
}

.btn-success:hover {
    background-color: #00e6b8;
    color: #000;
}

/* ===== Modal & Form Styling ===== */
.modal-header {
    direction: ltr !important;
}

.glass-modal {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    border-radius: 10px;
}

.modal .form-control {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #333;
}

.modal .form-control:focus {
    background-color: #1e1e1e;
    color: white;
    border-color: #00ffcc;
    box-shadow: 0 0 5px #00ffcc;
}

.modal .form-label i {
    margin-left: 5px;
    color: #00ffcc;
}

/* ===== Input Layout ===== */
.select-country {
    width: 100px;
    display: inline-block;
    margin-left: 5px;
}

.input-number {
    width: calc(100% - 110px);
    display: inline-block;
}

/* ===== Portfolio Section ===== */
#portfolio{
    min-height: 500px;
    background: linear-gradient(135deg, #ff9966, #ffc299);
    text-align: center;
    padding: 50px 20px;
}

#portfolio .card:hover{
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

#portfolio .card img{
    width: 150px;
    height: 150px;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}

#portfolio .card-projectdetails{
    margin-top: 10px;
}

#portfolio .card-footer .card-button{
    margin-top: 10px;
}

/* ==== Join Us Section ==== */
#join{
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #66ffcc, #99ffe6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #121212;
    align-items: center;
}

#join h2{
    color: #121212;
}

/* ==== Join Us Form ==== */
#joinForm .inputs{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 80%;
}

#joinForm{
    width: 80%;
}

#joinForm .inputs input{
    width: 100%;
}

#joinForm button{
    height: fit-content;
    margin-top: 25px;
    width: 100%;
}

#joinForm .inputs .numbers{
    display: flex;
}

/* ==== Contact Us ===== */
#contactus{
    height: 500px;
    width: 100%;
    background: linear-gradient(135deg, #cc66ff, #ff99e6);
}

#contactus .card{
    transition: 1s linear;
}

#contactus .card:hover{
    transform: rotate(360deg);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

#contactus .card .Github_icon{
    width: 48px;
    height: 48px;
}

/* ==== Footer ===== */
footer{
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}