/********** QUIET LUXURY THEME (NEW) **********/
:root{
  /* Quiet Luxury palette */
  --bg:#F7F6F2;          /* warm off-white */
  --card:#FFFFFF;
  --text:#111827;        /* deep charcoal */
  --muted:#6B7280;       /* soft gray */
  --line:#E7E5E4;        /* warm line */
  --accent:#6B7F6A;      /* sage (main) */
  --accent2:#C2A66D;     /* subtle gold (tiny use) */

  --radius:18px;
  --shadow: 0 14px 40px rgba(17,24,39,.06);
  --shadow2: 0 10px 26px rgba(17,24,39,.05);
  --glass-bg: rgba(255,255,255,.72);
  --blur: 14px;
  --transition: all .25s cubic-bezier(.2,.8,.2,1);
}

/* Smooth Scroll */
html{ scroll-behavior:smooth; }

body{
  font-family: "Inter","Open Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soft editorial background ornament */
body::before{
  content:"";
  position:fixed;
  inset:-220px;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 16% 16%, rgba(107,127,106,.10), transparent 62%),
    radial-gradient(820px 520px at 88% 22%, rgba(17,24,39,.05), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

/********** Global **********/
*{
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

/********** Back to Top **********/
.back-to-top{
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px; /* modern square-ish */
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107,127,106,.35);
  opacity: .92;
}
.back-to-top:hover{
  transform: translateY(-6px);
  background: rgba(107,127,106,.92);
  opacity: 1;
}

/********** Spacing **********/
.my-6{ margin-block: 3.5rem; }
.py-6{ padding-block: 3.5rem; }

/********** Spinner **********/
#spinner{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247,246,242,.86);
  backdrop-filter: blur(var(--blur));
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
#spinner.show{
  opacity: 1;
  visibility: visible;
}

/********** Buttons **********/
.btn{
  font-weight: 700;
  border-radius: 16px;
  padding: .85rem 1.35rem;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

.btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(520px 220px at 20% 0%, rgba(194,166,109,.20), transparent 55%);
  opacity: 0;
  z-index: 0;
  border-radius: inherit;
  transition: var(--transition);
}
.btn:hover::before{ opacity: 1; }

.btn span, .btn i{ position: relative; z-index: 1; }

.btn-primary{
  background: var(--accent);
  border-color: rgba(107,127,106,.35);
  color:#fff;
  box-shadow: var(--shadow2);
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  color: rgba(17,24,39,.85);
  box-shadow: var(--shadow2);
}
.btn-secondary:hover{
  transform: translateY(-3px);
  background: rgba(107,127,106,.06);
}

.btn-square,
.btn-sm-square,
.btn-lg-square{
  display: grid;
  place-items: center;
  border-radius: 14px; /* no more circles */
  padding: 0;
}
.btn-square{ width: 46px; height: 46px; }
.btn-sm-square{ width: 36px; height: 36px; }
.btn-lg-square{ width: 58px; height: 58px; }

/********** Navbar **********/
.navbar{
  backdrop-filter: blur(var(--blur));
  background: var(--glass-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17,24,39,.05);
  transition: var(--transition);
}
.navbar.fixed-top{
  transform: translateY(-100%);
  opacity: 0;
}
.navbar.show{
  transform: translateY(0);
  opacity: 1;
}

.navbar .navbar-nav .nav-link{
  font-weight: 800;
  font-size: 1.02rem;
  color: rgba(17,24,39,.72);
  padding: 1rem 1.15rem;
  position: relative;
}
.navbar .navbar-nav .nav-link:hover{ color: rgba(17,24,39,.92); }

.navbar .navbar-nav .nav-link::after{
  content:"";
  position:absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  width: auto;
  height: 2px;
  background: rgba(107,127,106,.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
  border-radius: 99px;
}
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after{
  transform: scaleX(1);
}
.navbar .navbar-nav .nav-link.active{
  color: rgba(17,24,39,.92);
}

/********** Header **********/
#home{
  position: relative;
  background: transparent; /* calm, not heavy */
  color: var(--text);
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* elegant hero background */
#home::before{
  content:"";
  position:absolute;
  inset:-120px;
  background:
    radial-gradient(820px 520px at 14% 20%, rgba(107,127,106,.14), transparent 60%),
    radial-gradient(760px 520px at 88% 10%, rgba(17,24,39,.06), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity: 1;
  pointer-events:none;
}
#home .content{
  position: relative;
  z-index: 2;
}

#home h1{
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: rgba(17,24,39,.95);
}

/* typed text output look */
.typed-text-output{
  color: rgba(17,24,39,.70) !important;
  font-weight: 700;
}

#home p{
  font-size: 1.05rem;
  color: rgba(17,24,39,.72);
  margin-top: 1rem;
  max-width: 640px;
}

/********** Typed Cursor **********/
.typed-cursor{
  font-size: 28px;
  color: var(--accent2);
  opacity: .9;
  animation: cursor-blink 1s infinite;
}
@keyframes cursor-blink{
  0%,100%{ opacity:.2; }
  50%{ opacity:1; }
}

/********** Play Button **********/
.btn-play{
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(17,24,39,.07);
  overflow: hidden;
}

.btn-play::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 999px;
  border: 1px solid rgba(107,127,106,.22);
  box-shadow: 0 0 0 10px rgba(107,127,106,.08);
  pointer-events:none;
}

.btn-play::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}

.btn-play span{
  position: relative;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 14px solid var(--accent);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transition: transform .2s ease;
}

.btn-play:hover span{ transform: scale(1.12); }
.btn-play:hover{
  transform: scale(1.04);
  background: rgba(107,127,106,.06);
}

/********** Modal Video **********/
.modal-video .modal-dialog{
  max-width: 900px;
  margin: 80px auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(17,24,39,.20);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
}
.modal-video .modal-body{
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.modal-video .close{
  position: absolute;
  top: -35px;
  right: -10px;
  background: rgba(17,24,39,.92);
  color: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(17,24,39,.25);
  opacity: .9;
}
.modal-video .close:hover{
  opacity: 1;
  transform: rotate(90deg) scale(1.08);
  background: var(--accent);
}

/********** About **********/
#about{
  position: relative;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5.5rem 2rem;
  box-shadow: var(--shadow2);
}

#about .years{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow2);
}

#about .years .display-1{
  font-size: clamp(5.2rem, 8vw, 9rem);
  line-height: 1;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(120deg, rgba(17,24,39,.92), rgba(107,127,106,.90));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  text-shadow: 0 8px 26px rgba(17,24,39,.08);
}

#about .years h5{
  letter-spacing: 10px;
  text-transform: uppercase;
  color: rgba(17,24,39,.55);
  font-weight: 800;
  opacity: .95;
  margin-top: .75rem;
}
#about .years h5:hover{ color: rgba(17,24,39,.78); }

/********** Skills **********/
#skill{
  position: relative;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5rem 2rem;
  box-shadow: var(--shadow2);
  overflow: hidden;
}

#skill::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(107,127,106,.12), transparent 60%);
  pointer-events:none;
}

#skill .progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 6px rgba(17,24,39,.05);
}
#skill .progress .progress-bar{
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(107,127,106,.95), rgba(194,166,109,.80));
  transition: width 2.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 15px rgba(107,127,106,.22);
}

/* tabs */
#skill .nav-pills{
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(var(--blur));
}
#skill .nav-pills .nav-link{
  color: rgba(17,24,39,.75);
  font-weight: 800;
  border-radius: 999px;
  padding: .75rem 1.4rem;
  background: transparent;
}
#skill .nav-pills .nav-link.active{
  color: rgba(17,24,39,.92);
  background: rgba(107,127,106,.12);
  border: 1px solid rgba(107,127,106,.28);
  box-shadow: 0 10px 20px rgba(17,24,39,.06);
}

/* small HR accent */
#skill .tab-content hr{
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, rgba(107,127,106,.92), rgba(194,166,109,.70));
  border: none;
  border-radius: 4px;
  margin-block: 1.2rem;
  box-shadow: 0 4px 12px rgba(17,24,39,.07);
}

/********** Service **********/
.service-item{
  position: relative;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 2.1rem;
  overflow: hidden;
  transform: translateY(0);
}

.service-item::before{
  content:"";
  position:absolute;
  inset:-30%;
  background: radial-gradient(520px 220px at 20% 0%, rgba(107,127,106,.12), transparent 60%);
  z-index: 0;
}

.service-item:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-item .bg-icon{
  position: relative;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(107,127,106,.10);
  border: 1px solid rgba(107,127,106,.18);
  box-shadow: inset 0 0 25px rgba(255,255,255,.35);
  color: rgba(17,24,39,.85);
  font-size: 1.55rem;
  z-index: 2;
}

.service-item:hover .bg-icon{
  transform: scale(1.06) rotate(2deg);
  background: rgba(107,127,106,.14);
}

.service-item h5, .service-item h4{
  margin-top: 0;
  font-weight: 900;
  color: rgba(17,24,39,.92);
  position: relative;
  z-index: 2;
}

.service-item:hover h5, .service-item:hover h4{
  color: rgba(17,24,39,.95);
}

.service-item p, .service-item span{
  color: rgba(17,24,39,.70);
  margin-top: .6rem;
  font-size: .98rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/********** Portfolio **********/
#portfolio-flters{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-bottom: 3rem;
  list-style: none;
  padding: 0;
}
#portfolio-flters li{
  font-weight: 800;
  font-size: .98rem;
  color: rgba(17,24,39,.76);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}
#portfolio-flters li:hover,
#portfolio-flters li.active{
  color: rgba(17,24,39,.92);
  background: rgba(107,127,106,.12);
  border-color: rgba(107,127,106,.28);
  box-shadow: var(--shadow2);
  transform: translateY(-2px);
}

/* item */
.portfolio-item{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  background: rgba(255,255,255,.78);
}
.portfolio-item:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* image */
.portfolio-img img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform .7s ease, filter .6s ease;
}
.portfolio-item:hover .portfolio-img img{
  transform: scale(1.06);
  filter: brightness(.86) contrast(1.02);
}

/* overlay buttons */
.portfolio-btn{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.75rem;
  background: linear-gradient(180deg, transparent 20%, rgba(17,24,39,.72) 100%);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius);
}
.portfolio-item:hover .portfolio-btn{
  opacity: 1;
  padding-bottom: 2rem;
}

.portfolio-btn .btn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.86);
  color: rgba(17,24,39,.86);
  font-weight: 800;
  padding: .55rem 1.05rem;
  border-radius: 999px;
}
.portfolio-btn .btn:hover{
  background: rgba(107,127,106,.10);
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(17,24,39,.18);
}

/* title overlay pill (if you use it) */
.portfolio-title-overlay{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  color:#fff;
  font-size: 18px;
  font-weight: 900;
  text-align:center;
  background: rgba(17,24,39,.35);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 999px;
  max-width: 90%;
  line-height: 1.25;
}

/********** Team + Testimonial **********/
.team-item{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(var(--blur));
}
.team-item:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.team-item img{
  width: 100%;
  border-radius: var(--radius);
  transition: transform .6s ease, opacity .6s ease, filter .6s ease;
}
.team-item:hover img{
  opacity: .92;
  transform: scale(1.05);
  filter: brightness(1.02);
}

.team-item .team-text{
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(17,24,39,.70);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  opacity: 0;
  transform: translateY(22px);
  transition: var(--transition);
}
.team-item:hover .team-text{
  opacity: 1;
  transform: translateY(0);
}
.team-item .team-text .socials a{
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  transition: var(--transition);
}
.team-item .team-text .socials a:hover{
  background: rgba(107,127,106,.45);
  transform: rotate(8deg) scale(1.12);
}

/* testimonial wrapper */
.testimonial-section{
  position: relative;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow: hidden;
  padding: 5rem 2rem;
}

/* testimonial item */
.testimonial-carousel .testimonial-item{
  position: relative;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow2);
}
.testimonial-carousel .testimonial-item:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* testimonial images */
.testimonial-item img{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(194,166,109,.55);
}
.testimonial-item:hover img{
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(17,24,39,.12);
}

/* text + names */
.testimonial-item .testimonial-text{
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(17,24,39,.80);
  font-weight: 500;
  line-height: 1.8;
}
.testimonial-item .testimonial-name{
  margin-top: .75rem;
  font-weight: 900;
  color: rgba(17,24,39,.92);
  font-size: 1.05rem;
}

/********** Floating Avatars Left/Right **********/
.testimonial-left,
.testimonial-right{
  position: relative;
  perspective: 1000px;
}

.testimonial-left img,
.testimonial-right img{
  position: absolute;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(17,24,39,.08);
  backdrop-filter: blur(8px);
  transition: transform .8s cubic-bezier(0.23,1,0.32,1),
              box-shadow .6s ease, filter .5s ease;
  cursor: default;
}

.testimonial-left img:hover,
.testimonial-right img:hover{
  transform: scale(1.14) rotate(4deg);
  box-shadow: 0 14px 40px rgba(17,24,39,.14);
  filter: brightness(1.03);
}

/* positions */
.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3){
  width: 80px;
  height: 80px;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  animation: floatY 6s ease-in-out infinite;
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2){
  width: 65px;
  height: 65px;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  animation: floatX 8s ease-in-out infinite alternate;
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1){
  width: 55px;
  height: 55px;
  bottom: 10%;
  right: 10%;
  animation: floatY 7s ease-in-out infinite reverse;
}

@keyframes floatY{
  0%,100%{ transform: translateY(0) translateZ(0); }
  50%{ transform: translateY(-14px) translateZ(0); }
}
@keyframes floatX{
  0%,100%{ transform: translateX(0) translateZ(0); }
  50%{ transform: translateX(14px) translateZ(0); }
}

/********** Owl Dots **********/
.testimonial-carousel .owl-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  margin-top: 2.2rem;
}

.testimonial-carousel .owl-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(17,24,39,.16);
  position: relative;
}
.testimonial-carousel .owl-dot::after{
  content:"";
  position:absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(107,127,106,.75);
  opacity: 0;
  transform: scale(.7);
  transition: var(--transition);
}
.testimonial-carousel .owl-dot:hover{
  transform: scale(1.2);
  background: rgba(194,166,109,.25);
}
.testimonial-carousel .owl-dot.active::after{
  opacity: 1;
  transform: scale(1);
  background: linear-gradient(135deg, rgba(107,127,106,.95), rgba(194,166,109,.70));
  box-shadow: 0 0 12px rgba(17,24,39,.18);
}

/********** Reduce Motion **********/
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
