/* =========================
FILE: style.css
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins', sans-serif;
  background:#f7f3ed;
  color:#333;
  overflow-x:hidden;
}

/* =========================
NAVBAR
========================= */

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 8%;
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(15px);
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid rgba(255,255,255,0.3);
}

.logo img{
  width:130px;
  transition:0.3s;
}

.logo img:hover{
  transform:scale(1.05);
}

.nav-links{
  display:flex;
  list-style:none;
  gap:35px;
}

.nav-links a{
  text-decoration:none;
  color:#2e7dbd;
  font-weight:500;
  position:relative;
  transition:0.3s;
}

.nav-links a::after{
  content:"";
  position:absolute;
  width:0%;
  height:2px;
  background:#c8b091;
  left:0;
  bottom:-6px;
  transition:0.3s;
}

.nav-links a:hover::after,
.nav-links .active::after{
  width:100%;
}

.nav-links a:hover,
.nav-links .active{
  color:#c8b091;
}

/* =========================
HERO
========================= */
.hero{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:80px;
  padding:80px 8%;

  background:
  linear-gradient(
    rgba(247,243,237,0.88),
    rgba(247,243,237,0.88)
  );

  position:relative;
  overflow:hidden;
}

/* soft background glow */

.hero::before{
  content:"";
  position:absolute;
  width:500px;
  height:500px;
  background:#9fd4ee;
  border-radius:50%;
  filter:blur(140px);
  top:-120px;
  right:-120px;
  opacity:0.45;
}

.hero::after{
  content:"";
  position:absolute;
  width:400px;
  height:400px;
  background:#d8c2a7;
  border-radius:50%;
  filter:blur(140px);
  bottom:-120px;
  left:-120px;
  opacity:0.35;
}

.hero-text{
  flex:1;
  position:relative;
  z-index:2;
}

.hero-text h1{
  font-size:78px;
  line-height:1.05;
  color:#2e7dbd;
  margin-bottom:25px;
  font-weight:700;
}

.hero-text p{
  font-size:18px;
  line-height:1.9;
  color:#555;
  max-width:600px;
  margin-bottom:40px;
}

.hero-buttons{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.hero-image{
  flex:1;
  display:flex;
  justify-content:center;
  position:relative;
  z-index:2;
}

.hero-image img{
  width:680px;
  height:520px;

  object-fit:cover;

  border-radius:35px;

  box-shadow:
  0 25px 60px rgba(0,0,0,0.18);

  animation:float 5s ease-in-out infinite;

  transition:0.4s;
}

.hero-image img:hover{
  transform:scale(1.02);
}

/* floating animation */

@keyframes float{
  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-12px);
  }

  100%{
    transform:translateY(0px);
  }
}

/* MOBILE */

@media(max-width:900px){

  .hero{
    flex-direction:column;
    text-align:center;
    padding-top:120px;
    gap:50px;
  }

  .hero-text h1{
    font-size:48px;
  }

  .hero-text p{
    font-size:16px;
    max-width:100%;
  }

  .hero-buttons{
    justify-content:center;
  }

  .hero-image img{
    width:100%;
    height:350px;
  }

}

/* =========================
ANIMATIONS
========================= */

@keyframes float{
  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-15px);
  }

  100%{
    transform:translateY(0px);
  }
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(40px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fadeIn{
  from{
    opacity:0;
  }

  to{
    opacity:1;
  }
}

/* =========================
BUTTONS
========================= */

.btn{
  background:linear-gradient(135deg,#2e7dbd,#4ca8d8);
  color:white;
  padding:15px 34px;
  border-radius:50px;
  text-decoration:none;
  font-weight:600;
  display:inline-block;
  transition:0.35s;
  border:none;
  cursor:pointer;

  box-shadow:0 10px 25px rgba(46,125,189,0.25);
}

.btn:hover{
  transform:translateY(-4px);
  box-shadow:0 15px 35px rgba(46,125,189,0.35);
}

.btn-outline{
  border:2px solid #2e7dbd;
  color:#2e7dbd;
  padding:13px 32px;
  border-radius:50px;
  text-decoration:none;
  font-weight:600;
  transition:0.35s;
  background:white;
}

.btn-outline:hover{
  background:#2e7dbd;
  color:white;
  transform:translateY(-4px);
}

/* =========================
FEATURES
========================= */

.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:35px;
  padding:100px 8%;
}

.card{
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(12px);

  padding:45px;
  border-radius:30px;

  box-shadow:
  0 15px 40px rgba(0,0,0,0.08);

  transition:0.4s;
  border:1px solid rgba(255,255,255,0.4);
}

.card:hover{
  transform:translateY(-12px);
}

.card h3{
  color:#2e7dbd;
  font-size:24px;
  margin-bottom:18px;
}

.card p{
  line-height:1.8;
  color:#555;
}

/* =========================
CTA
========================= */

.cta{
  padding:120px 8%;
  text-align:center;

  background:
  linear-gradient(135deg,#2e7dbd,#63b5dd,#c8b091);

  color:white;
}

.cta h2{
  font-size:52px;
  margin-bottom:35px;
}

/* =========================
PAGES
========================= */

.page-hero{
  padding:140px 8% 70px;
  text-align:center;
  background:
  linear-gradient(rgba(247,243,237,0.88),
  rgba(247,243,237,0.88)),
  url("Cape Town logo.png");

  background-size:cover;
  background-position:center;
}

.page-hero h1{
  font-size:60px;
  color:#2e7dbd;
}

.content-section,
.contact-section,
.form-section{
  padding:80px 8%;
}

.content-box,
.contact-card,
form{
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(10px);

  padding:55px;
  border-radius:35px;

  box-shadow:
  0 15px 40px rgba(0,0,0,0.08);
}

.content-box h2,
.contact-card h2{
  color:#2e7dbd;
  margin-bottom:20px;
}

.content-box p,
.contact-card p{
  margin-top:18px;
  line-height:1.9;
  color:#555;
}

/* =========================
FORM
========================= */

form{
  max-width:750px;
  margin:auto;
}

form input,
form textarea{
  width:100%;
  padding:18px;
  margin-bottom:22px;

  border:none;
  border-radius:16px;

  background:#f5f5f5;
  font-size:16px;

  transition:0.3s;
}

form input:focus,
form textarea:focus{
  outline:none;
  background:white;

  box-shadow:
  0 0 0 3px rgba(46,125,189,0.15);
}

form button{
  width:100%;
  padding:18px;
  border:none;

  background:linear-gradient(135deg,#2e7dbd,#4ca8d8);

  color:white;
  font-size:18px;
  font-weight:600;

  border-radius:16px;
  cursor:pointer;

  transition:0.35s;
}

form button:hover{
  transform:translateY(-4px);
}

/* =========================
FOOTER
========================= */

footer{
  text-align:center;
  padding:35px;
  background:#2e7dbd;
  color:white;
  margin-top:50px;
}

/* =========================
WHATSAPP
========================= */

.whatsapp{
  position:fixed;
  bottom:25px;
  right:25px;

  width:70px;
  height:70px;

  background:#25D366;
  border-radius:50%;

  display:flex;
  justify-content:center;
  align-items:center;

  color:white;
  text-decoration:none;
  font-size:34px;

  box-shadow:
  0 12px 30px rgba(0,0,0,0.25);

  transition:0.3s;
}

.whatsapp:hover{
  transform:scale(1.12);
}

/* =========================
SCROLLBAR
========================= */

::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-thumb{
  background:#2e7dbd;
  border-radius:10px;
}

::-webkit-scrollbar-track{
  background:#f1f1f1;
}

/* =========================
MOBILE
========================= */

@media(max-width:900px){

  .hero{
    flex-direction:column;
    text-align:center;
    padding-top:120px;
  }

  .hero-text h1{
    font-size:48px;
  }

  .hero-text p{
    font-size:16px;
  }

  .hero-image img{
    width:300px;
  }

  .navbar{
    flex-direction:column;
    gap:20px;
  }

  .nav-links{
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
  }

  .page-hero h1{
    font-size:42px;
  }

  .cta h2{
    font-size:38px;
  }

  .content-box,
  .contact-card,
  form{
    padding:35px;
  }

}