*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: cursive;
}

:root {
  --dark: #362061;
  --purple: #6C2791;
}

body{
  line-height:1.6;
  background: #f6f5fb;
  color:#333;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-block;
  padding:12px 26px;
  border-radius:30px;
  text-decoration:none;
  font-weight:500;
  transition:.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ss{
  border: solid 2px #8932b8 !important;
  background-color: white;
  color: #842fb2 !important;
}

.btn.primary{
  background:#6a35ff;
  color:black;
}

.btn.light{
  background:#fff;
  color:#6a35ff;
}

.btn.outline{
  border:2px solid #fff;
  color:#fff;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ================= NAVBAR ================= */

.nav-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  position:relative;
}

.logo img{
  width:100px;
}

nav{
  display:flex;
  align-items:center;
  gap:35px;
}

nav a{
  text-decoration:none;
  color:#000;
  font-weight:500;
  position:relative;
  transition:0.3s;
}

nav a:hover{
  color: var(--purple);
}

nav .active{
  color: var(--purple);
}

nav .active::after{
  content: "";
  position:absolute;
  bottom:-15px;
  left:50%;
  transform: translateX(-50%);
  width:130%;
  height:14px;
  background:#FFD84D;
  border-radius:100% / 100%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  z-index:-1;
}

/* ================= HERO ================= */
.hero {
  text-align: center;
  margin-top: 40px;
}

.hero h1 {
  color: #362061;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.4;
}

.hero p {
  margin-top: 10px;
  color: #777;
  letter-spacing: 1px;
}

/* ================= FORM SECTION ================= */

.form-section {
  display: flex;
  justify-content: center;
  margin: 40px 0 80px;
}

.form-container {
  width: 100%;
  max-width: 1000px;
  background: radial-gradient(ellipse 60% 140% at 82% 66%, #362061 0%, #6C2791 100%);
  border-radius: 20px;
  padding: 35px;
  color: white;
}

.project-brief {
  text-align: center;
}

.project-brief h3 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.project-brief p {
  font-size: 13px;
  margin-bottom: 20px;
}

.options {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.option {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.option img{
  width: 60px;
  margin: 0 auto;
}

.option p {
  margin-top: 8px;
  font-size: 14px;
}

.option.active {
  border-color: white;
  background: rgba(255,255,255,0.2);
}

form {
  margin-top: 20px;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row .field {
  flex: 1;
}

.field {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.field label {
  min-width: 95px;
  color: white;
  font-size: 14px;
  text-align: left;
}

.f{
  margin-bottom: 0 !important ; 
}

.field input,
.field textarea {
  flex: 1;
  padding: 14px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 14px;
  background: white;
  color: #333;
}

textarea {
  resize: none;
}

button[type="submit"] {
  background: white;
  color: #362061;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;

  display: block;       
  margin: 20px auto 0;   
}

button[type="submit"]:hover {
  opacity: 0.9;
}

#toast {
  visibility: hidden; 
  min-width: 250px;
  background-color: #362061; 
  color: #FFD84D;       
  text-align: center;
  border-radius: 12px;
  padding: 16px;
  position: fixed;
  top: 20px; 
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.5s, top 0.5s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  top: 50px; 
}

/* ================= FOOTER ================= */

.footer {
  background: #f6f6ff;
  color: black;
  padding: 70px 0 0;
  position: relative; 
  box-shadow: 0 -15px 30px rgba(108, 39, 145, 0.4);
  border-radius: 40px;
}

.footer-container{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
}

.footer-links a{
  display:block;
  color:black;
  margin:8px 0;
  text-decoration:none;
}
.footer-brand .mail {
color : black;
}
.footer-brand p {
  color :#94A3B8;
}

.footer-links h4{
  color: #94A3B8;
}

.footer-bottom{
  text-align:center;
  padding:20px 0;
  margin-top:40px;
  border-top:1px solid #333;
  color:#aaa;
}
.footer-head{
  color: #6C2791;
}

/* ================= HAMBURGER ================= */
.hamburger{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}

.hamburger span{
  height:3px;
  width:25px;
  background-color: #7b3fe4;
  border-radius:3px;
  transition:0.3s;
}

.hamburger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2){
  opacity:0;
}
.hamburger.active span:nth-child(3){
  transform: rotate(-45deg) translate(5px,-5px);
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {

  nav{
    display:none;
    flex-direction:column;
    position:absolute;
    top:70px;
    right:5%;
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    z-index:999;
  }
  nav.show{
    display:flex;
  }
  .hamburger{
    display:flex;
  }
  .nav-content .btn{
    display:none;
  }

  .row {
    flex-direction: column;
  }

  .field {
    flex-direction: column;
    align-items: flex-start;
  }

  .field label {
    margin-bottom: 5px;
  }

  .options {
    flex-direction: column;
  }

  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }


}



/* ===== Fix Contact Fields for Mobile ===== */
@media(max-width: 768px){

  .form-container {
    width: 95%;        /* ياخد معظم عرض الشاشة */
    padding: 20px;     /* Padding مناسب */
    margin: auto;      /* في النص */
  }

  .row {
    flex-direction: column;
    gap: 15px;
  }

  .field {
    flex-direction: column;
    width: 100%;        /* ياخد 100% عرض الفورم */
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .field label {
    width: 100%;        /* Label ياخد عرض كامل */
    text-align: left;
    margin-bottom: 5px;
  }

  .field input,
  .field textarea {
    width: 100%;        /* الحقول ياخد عرض كامل */
    font-size: 14px;    /* تكبير الخط شوية */
    padding: 12px;      /* Padding مناسب */
  }

  button[type="submit"] {
    width: 100%;        /* الزرار ياخد عرض كامل */
    padding: 12px;
    font-size: 16px;
  }
}