/* ======================================================
   GLOBAL
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

p {
  font-size: 17px;
}

.text {
  color: #d99a64;
}

h6 {
  color: #fff;
}

/* ======================================================
   NAVBAR
====================================================== */
.clip-navbar {
  background: #311e25;
  padding: 18px 0;
  transition: 0.4s ease;
  z-index: 999;
  clip-path: polygon(0 0,100% 0,100% 80%,85% 100%,15% 100%,0 80%);
}

.clip-navbar.scrolled {
  padding: 10px 0;
}

.logo {
  color: #d99a64 !important;
  font-size: 24px;
}

.logo span {
  color: #fff;
}

.nav-link {
  color: #fff !important;
  font-size: 18px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #d99a64;
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar icons */
.nav-icons {
  display: flex;
  align-items: center;
}

.icon-link i {
  font-size: 20px;
  color: #fff;
  transition: 0.3s;
}

.icon-link i:hover {
  color: #d99a64;
  transform: translateY(-2px);
}

/* ======================================================
   HERO / BANNER
====================================================== */
.hero {
  min-height: 100vh;
  background: url(images/back.jpg) center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 130px; /* fixed navbar space */
  padding-bottom: 60px;
}

.hero h1 {
  line-height: 1.3;
}

/* ======================================================
   SECTIONS
====================================================== */
.section-dark {
  background: #311e25;
  padding: 80px 0;
}

.section-light {
  background: #3b2930;
  padding: 80px 0;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn {
  border-radius: 5px;
  border: 1px solid #d99a64;
  color: #d99a64;
  font-size: 18px;
}

.btn-primary {
  background: #3b2930;
  border: 1px solid #d99a64;
  width: 100px;
}

/* ======================================================
   SERVICES
====================================================== */
.service-card {
  background: transparent;
  border: 1px solid #d99a64;
  text-align: center;
  padding: 30px;
  color: #fff;
}

.service-card i {
  font-size: 40px;
  color: #d99a64;
  margin-bottom: 15px;
}

/* ======================================================
   SKILLS GRID
====================================================== */
#skills .skill-box {
  background: #311e25;
  border-radius: 15px;
  padding: 30px;
  transition: 0.3s ease;
}

#skills .skill-box:hover {
  transform: translateY(-5px);
}

#skills i {
  font-size: 2rem;
  color: #d99a64;
  margin-bottom: 10px;
}

/* ======================================================
   PROJECTS
====================================================== */
#projects .card {
  background: #311e25;
  border-radius: 15px;
  border: 1px solid #d99a64;
  transition: 0.3s;
}

#projects .card:hover {
  transform: translateY(-5px);
}

#projects img {
  height: 200px;
  object-fit: cover;
}

.card-title {
  color: #d99a64;
}

.card-text {
  color: #fff;
}

/* ======================================================
   FORM
====================================================== */
.form-control {
  background: none;
  border: 1px solid #d99a64;
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #fff;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #000;
  padding: 30px 0;
}

.footer i {
  margin: 0 10px;
  font-size: 22px;
  cursor: pointer;
}

/* ======================================================
   MODALS
====================================================== */
.modal-content {
  border: 1px solid #d99a64;
}

.modal-title {
  color: #d99a64;
}

/* ======================================================
   SKILL ORBIT ANIMATION
====================================================== */
.skill-orbit-wrapper {
  position: relative;
  width: 440px;
  height: 440px;
  margin: auto;
}

.orbit {
  position: absolute;
  inset: 0;
  animation: rotate 18s linear infinite;
}

.inner-orbit {
  width: 160px;
  height: 160px;
  margin: auto;
  animation: rotateReverse 14s linear infinite;
}

.orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px;
  border-radius: 50%;
  background: rgba(217,154,100,0.12);
  border: 2px solid #d99a64;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit i {
  color: #d99a64;
}

/* Outer orbit */
.outer-orbit span:nth-child(1) { transform: rotate(0deg) translate(175px); }
.outer-orbit span:nth-child(2) { transform: rotate(90deg) translate(175px); }
.outer-orbit span:nth-child(3) { transform: rotate(180deg) translate(175px); }
.outer-orbit span:nth-child(4) { transform: rotate(270deg) translate(175px); }

/* Inner orbit */
.inner-orbit span:nth-child(1) { transform: rotate(0deg) translate(80px); }
.inner-orbit span:nth-child(2) { transform: rotate(120deg) translate(80px); }
.inner-orbit span:nth-child(3) { transform: rotate(240deg) translate(80px); }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  to { transform: rotate(-360deg); }
}

/* ======================================================
   MOBILE & TABLET FIXES
====================================================== */
@media (max-width: 991px) {

  .clip-navbar {
    clip-path: none;
  }

  .hero {
    padding-top: 140px;
    text-align: center;
  }

  .skill-orbit-wrapper {
    width: 240px;
    height: 240px;
    margin-top: 30px;
  }

  .outer-orbit span:nth-child(1) { transform: rotate(0deg) translate(95px); }
  .outer-orbit span:nth-child(2) { transform: rotate(90deg) translate(95px); }
  .outer-orbit span:nth-child(3) { transform: rotate(180deg) translate(95px); }
  .outer-orbit span:nth-child(4) { transform: rotate(270deg) translate(95px); }

  .inner-orbit {
    width: 120px;
    height: 120px;
  }

  .inner-orbit span:nth-child(1) { transform: rotate(0deg) translate(55px); }
  .inner-orbit span:nth-child(2) { transform: rotate(120deg) translate(55px); }
  .inner-orbit span:nth-child(3) { transform: rotate(240deg) translate(55px); }
}

@media (max-width: 576px) {

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .orbit span {
    width: 34px;
    height: 34px;
    margin: -17px;
  }
}
