/* ================= ROOT ================= */
:root{
  --brand: #2F4DBA;
  --brand-2: #1F3A8A;
  --accent: #F2994A;
  --bg: #FFFFFF;
  --section-bg: #F7F8FC;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-light: #6B7280;
  --button-bg: #3F455A;
  --border: #cbcdcf;
  --cta-dark: #1C1C1C;
  --cta-text: #FFFFFF;
  --glass: rgba(47,77,186,0.08);
  --line: #000;
  --radius: 10px;
  --font-sans: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(to right, #eee, rgb(69 65 65 / 42%)), url(/assets/home/banner.jpg);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-inner{
  width: 100%;
  max-width: 1200px;
  margin-left: 120px;   
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.hero-title{
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 800;
  color: var(--line);
  line-height: 1.15;
  margin-bottom: 16px;
}

.word{
  position: relative;
  display: inline-block;
  margin-right: 16px;
  cursor: pointer;
}

.hero-line{
  position: absolute;
  left: 0;
  top: 75px;
  width: 100%;
  height: 14px;
}

.word{
  position:relative;
  display:inline-block;
  margin-right:24px;
  cursor:pointer;
  padding-bottom:18px;
}

.hero-line{
  position:absolute;
  left:0;
  top:72px;
  width:100%;
  height:14px;
}
.u-line{
  fill:none;
  stroke:var(--line);
  stroke-width:2;
}

.wave{
  stroke-dasharray:var(--len);
  stroke-dashoffset:0;
}

.word.is-hover .wave{
  stroke:url(#rgb-gradient);
  animation:wave-ltr 3.2s ease forwards;
}

.word.is-leave .wave{
  stroke:url(#rgb-gradient);
  animation:wave-rtl 3.2s ease forwards;
}

.word.is-reset .wave{
  stroke:var(--line);
  animation:none;
}


.dev-underline-base{
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  pointer-events: none;

  background: var(--line);

  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    #000 0 18px,
    transparent 20px 26px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    #000 0 18px,
    transparent 20px 26px
  );
}


.dev-underline{
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2.5px;
  pointer-events: none;

  /* gradient layer */
  background: linear-gradient(
    90deg,
    #F2994A 0%,
    #EB5757 35%,
    #2F4DBA 70%,
    #27AE60 100%
  );

  -webkit-mask-image: repeating-linear-gradient(
    90deg,
    #000 0 18px,
    transparent 20px 26px
  );
  mask-image: repeating-linear-gradient(
    90deg,
    #000 0 18px,
    transparent 20px 26px
  );

  -webkit-mask-size: 0% 100%;
  mask-size: 0% 100%;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  opacity: 0;
  mix-blend-mode: normal;
}


.word-dev.is-hover .dev-underline{
  opacity: 1;
  animation:
    dev-dash-reveal 5s forwards,
    fade-in 0.3s linear forwards;
  animation-timing-function:
    cubic-bezier(0.20, 1, 0.30, 1),
    linear;
}

.word-dev.is-leave .dev-underline{
    opacity: 1;
  animation: dev-dash-hide 1.5s forwards;
  animation-timing-function: ease-out;
}

.word-dev.is-hover .dev-underline-base,
.word-dev.is-leave .dev-underline-base{
  opacity: 0;
}

.word-dev.is-reset .dev-underline-base{
  opacity: 1;
}

.word-dev.is-reset .dev-underline{
  opacity: 0;
  -webkit-mask-size: 0% 100%;
  mask-size: 0% 100%;
}

.dev-underline-base,
.dev-underline{
  transition: opacity 0.2s linear;
  
}



@keyframes fade-in{
  from{opacity:0}
  to{opacity:1}
}

@keyframes dev-dash-reveal{
  from{
    -webkit-mask-size: 0% 100%;
            mask-size: 0% 100%;
  }
  to{
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
  }
}

@keyframes dev-dash-hide{
  from{
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
  }
  to{
    -webkit-mask-size: 0% 100%;
            mask-size: 0% 100%;
  }
}



@keyframes wave-ltr{
  from{stroke-dashoffset:var(--len)}
  to{stroke-dashoffset:0}
}

@keyframes wave-rtl{
  from{stroke-dashoffset:0}
  to{stroke-dashoffset:var(--len)}
}



.reputation{
  background: var(--bg);
  padding: 20px 0;
}

.reputation-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.reputation-title{
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 60px;
}

.reputation-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Card */
.rep-card{
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  background: var(--card);
  transition: all 0.3s ease;
}

.rep-card:hover{
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

/* Icon */
.rep-icon{
  margin-bottom: 20px;
}

.rep-icon img{
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Text */
.rep-card h3{
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.rep-card p{
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
}

.about{
  background: #ffffff;
  padding: 30px 0;
}

.about-container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}


.about-image{
  max-width: 500px;
}

.about-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2{
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.about-text p{
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
  max-width: 480px;
}

.about-btn{
  width: 180px;
  height: 44px;
  border-radius: 999px;
  background: #d9d9d9;
  border: none;
  margin-top: 10px;
}

.about-btn a{
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-btn:hover{
  background: #bfbfbf;
  cursor: pointer;
}

/* SECTION */
.expertise{
  background: #ffffff;
  padding: 30px 20px;
}

.expertise-container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TITLES */
.expertise-title{
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
}

.expertise-subtitle{
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.expertise-desc{
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 55px;
  line-height: 1.6;
}

/* GRID */
.expertise-grid-top{
  display: grid;
  grid-template-columns: 2fr 1.3fr;  /* BIG | SMALL */
  gap: 28px;
  margin-bottom: 28px;
  max-width: 1100px;
}


.expertise-grid-bottom{
  display: grid;
  grid-template-columns: 1.3fr 2fr;  /* SMALL | BIG */
  gap: 28px;
  max-width: 1100px;
}


/* BIG cards */
.expertise-grid-top .expertise-card:first-child,
.expertise-grid-bottom .expertise-card:last-child{
  max-width: 680px;
}

/* SMALL cards */
.expertise-grid-top .expertise-card:last-child,
.expertise-grid-bottom .expertise-card:first-child{
  max-width: 500px;
}


/* CARD */
.expertise-card{
  background: #F5F5F5;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  transition: all 0.3s ease;
}

.expertise-card:hover{
  transform: scale(1.01);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}



/* CONTENT */
.card-content{
  max-width: 320px;
}

.card-dot{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card-dot i{
  font-size: 16px;
  color: #ffffff;
}


.expertise-card:hover .card-dot{
  background: #1F3A8A;
}

.expertise-card:hover .card-dot i{
  transform: scale(1.1);
  transition: transform 0.2s ease;
}


.card-content h3{
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.card-content p{
  font-size: 14px;
  color: #4B5563;
  line-height: 1.6;
}

/* IMAGE */
.expertise-card img{
  max-width: 150px;
  height: auto;
  align-self: center;
}



.cta{
  position: relative;
  background: url("/assets/home/cta-bg.jpg") center / cover no-repeat;
  padding: 70px 0;
  color: var(--bg);
}

/* Dark overlay */
.cta::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.cta-container{
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.cta-content{
  flex: 0.8;
}

/* TEXT */
.cta-title{
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}

.cta-desc{
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
}

.cta-desc a{
  color: #ffffff;
  text-decoration : none;
  
}

/* BUTTON */
.cta-btn{
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-btn a{
  text-decoration: none;
  color: #ffffff;
}

.cta-btn:hover{
  background: #ffffff;
  border-color: #ffffff;
}

.cta-btn a:hover{
  color: #000;
}

.industries{
  padding: 30px 10;
  background: var(--bg);
}

.industries-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.industries-title{
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
}

.industries-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


.industry-card{
  position: relative;
  display: block;
  height: 320px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.industry-card:hover{
  transform: translateY(-4px);
}


.industry-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.industry-card:hover img{
  transform: scale(1.08);
}


.industry-overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 95px;                 
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #3F455A;         
}


.industry-overlay h3{
  font-size: 16px;
  font-weight: 700;
  margin-top: 1px;
  margin-bottom: 0;
  color: #ffffff;
}

.industry-overlay p{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #E5E7EB;
}

.read-more{
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.industry-card:hover .read-more{
  opacity: 1;
  transform: translateX(0);
}


/* ==============================
   CONTACT SECTION
================================ */

.contact{
  padding: 30px 20px;
  background: var(--bg);
  text-align: center;
}

.contact-container{
  max-width: 680px;
  margin: 0 auto;
}

/* TITLE */
.contact-title{
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-subtitle{
  font-size: 15px;
  color: #4B5563;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ==============================
   FORM
================================ */

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ROW (Name + Phone) */
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* INPUTS */
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
  outline: none;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: #9CA3AF;
}

/* TEXTAREA */
.contact-form textarea{
  min-height: 120px;
  resize: none;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: #2F4DBA;
}

/* NOTE */
.form-note{
  font-size: 13px;
  color: #6B7280;
  text-align: left;
}

.form-note span{
  color: #EF4444;
  font-weight: 600;
}

/* BUTTON */
.contact-btn{
  margin-top: 5px;
  align-self: center;
  width: 160px;
  padding: 12px 0;

  background: var(--button-bg);
  color: #ffffff;
  border: none;
  border-radius: 4px;

  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-btn:hover{
  background: #2F3548;
}


.form-message {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  color: #22c55e; /* green */
}

.form-message.error {
  color: #ef4444; /* red */
}


.required-name{
  padding-left: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ctext x='0' y='8' fill='%23EF4444' font-size='12'%3E*%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left calc(8ch + 20px) center;
}

.required-phone{
  padding-left: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ctext x='0' y='8' fill='%23EF4444' font-size='12'%3E*%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left calc(4.5ch + 20px) center;
}

.required-email{
  padding-left: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ctext x='0' y='8' fill='%23EF4444' font-size='12'%3E*%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left calc(4ch + 20px) center;
}


@media (max-width: 480px){
  
  /* HERO */

  .hero{
    min-height: 45vh;
    margin-top: 10%;
  }
  .hero-inner{
    padding: 0;
    margin-left: 0px !important;
    justify-content: space-around;
  }

  .hero-title{
    font-size: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
  }

  .hero-line {
    top: 40px;
  }


  /* REPUTATION */
  .reputation-cards{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ABOUT */
  .about-container{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* EXPERTISE */
  .expertise-grid-top,
  .expertise-grid-bottom{
    grid-template-columns: 1fr;
  }

  .expertise-card{
    flex-direction: column;
  }

  /* INDUSTRIES */
  .industries-grid{
    grid-template-columns: 1fr;
  }

  .industry-card{
    height: 220px;
  }

  /* CONTACT */
  .form-row{
    grid-template-columns: 1fr;
  }
}


@media (min-width: 481px) and (max-width: 768px){

  .hero{
    min-height: 50vh;
    margin-top: 10%;

  }

  .hero-inner{
    padding: 0;
    margin-left: 0px !important;
    display: flex;
    flex-direction: column;
  }

  .hero-title {
    font-size: 33px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  
  }

  .hero-line {
    top: 48px;
  }

  .dev-underline{
    bottom: 4px;
  }

  .reputation{
    padding: 20px 0;
  }

  .reputation-cards{
    grid-template-columns: 1fr;
  }

  .reputation-title {
    margin-bottom: 20px;
  }

  .about-container{
    grid-template-columns: 1fr;
    gap: 50px;
   
  }

  .expertise-grid-top,
  .expertise-grid-bottom{
    grid-template-columns: 1fr;
  
  }

  .expertise-grid-top .expertise-card:last-child, .expertise-grid-bottom .expertise-card:first-child{
    max-width: 100%;
  }

  .expertise-card{
    flex-direction: column;
  }

  .cta{
    padding: 30px 0;
  }

   .cta-content{
    text-align: center;
  }

  .industries-grid{
    grid-template-columns: repeat(1, 1fr);
  }

  .cta-container{
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px){

  .hero{
    min-height: 70vh;
  }

  .hero-inner{
    padding-left: 30px;
    margin-left: 10px !important;
    max-width: 750px;  
  }

  .hero-line {
    top: 40px;
  }

  .dev-underline{
    bottom: 2;
  }

  .hero-title{
    font-size: 32px;
  }

  .reputation-cards{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Make the last card span full width */
  .reputation-cards .rep-card:last-child{
    grid-column: 1 / -1;
    text-align: center;
  }

  .about-container{
    gap: 60px;
  }


  .cta-container {
    flex-direction: column;
    align-content: space-around;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .cta-content{
    text-align: center;
  }

  .cta{
    padding: 20px 0;
  }

  .industries-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (min-width: 1025px) and (max-width: 1366px){

  .hero{
    min-height: 80vh;
  }

  .hero-inner{
    align-items: center;
    justify-content: center;
    margin-left: 10px !important;
  }

  .hero-title{
  font-size: 47px;
  }

  .hero-line{
    top: 68px;
  }

  .dev-underline{
    top: 72px;
  }


  .reputation-cards{
    grid-template-columns: repeat(3, 1fr);
  }

  .industries-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}
