.container {
  max-width: 1280px;
  padding: 0 1.5rem;
  margin: auto;
  overflow: hidden; }

.btn-main, .btn-light, .btn-dark {
  display: inline-block;
  padding: .8rem 2rem;
  transition: all .5s;
  border: none;
  cursor: pointer; }

.btn-main {
  color: #333;
  background-color: #ffbc00; }

.btn-light {
  color: #333;
  background-color: #f4f4f4; }

.btn-dark {
  color: #f4f4f4;
  background-color: #333; }

button[class^='btn-']:hover,
a[class^='btn-']:hover,
input[class^='btn-']:hover {
  background-color: #ffbc00; }

.bg-main {
  background: #ffbc00;
  color: #fff; }

.bg-light {
  background: #f4f4f4;
  color: #000; }

.bg-dark {
  background: #333;
  color: #fff; }

.bg-medium {
  background: #ccc;
  color: #000; }

.lead {
  font-size: 1.3rem;
  margin-bottom: 2rem; }

.text-center {
  text-align: center; }

.py-1 {
  padding: 1rem 0; }

.py-2 {
  padding: 2rem 0; }

.py-3 {
  padding: 3rem 0; }

.py-4 {
  padding: 4rem 0; }

.my-1 {
  margin: 1rem 0; }

.my-2 {
  margin: 2rem 0; }

.my-3 {
  margin: 3rem 0; }

.my-4 {
  margin: 4rem 0; }

.section-title {
  font-size: 2rem;
  display: block;
  padding-bottom: .5rem;
  text-align: center;
  font-weight: 100;
  text-transform: uppercase; }

.bottom-line {
  height: 2px;
  width: 3rem;
  background: #ffbc00;
  display: block;
  margin: 0 auto 1rem auto; }

.link {
  color: blue;
  font-style: italic;
  font-size: 1.1rem; }
  .link:hover {
    color: #ffbc00; }

.about-paragraph {
  text-align: justify;
  text-align: left; }

.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3); }

.item {
  position: relative;
  background: #ffbc00;
  overflow: hidden; }
  .item::after {
    content: '';
    position: absolute;
    display: block;
    background: inherit;
    opacity: .9;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(2) translateX(-75%) translateY(-75%) rotate(-28deg);
    transition: transform 3s cubic-bezier(0.2, 1, 0.3, 1); }
  .item:hover::after {
    transform: scale(2) translateX(0) translateY(0) rotate(-28deg); }
  .item:hover .item-image {
    transform: scale(1.2); }
  .item:hover .item-text {
    opacity: 1;
    transform: translateY(0); }
  .item-image {
    height: auto;
    transform: translateZ(0);
    display: block;
    transition: transform 750ms cubic-bezier(0.2, 1, 0.3, 1); }
  .item-image:before {
    content: '';
    display: block;
    padding-top: 75%;
    overflow: hidden; }
  .item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 0; }
  .item-text, .item-button {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    text-align: center;
    z-index: 1;
    color: #ffffff;
    transform: translateY(-20%);
    transition: opacity 500ms cubic-bezier(0.2, 1, 0.3, 1), transform 500ms cubic-bezier(0.2, 1, 0.3, 1);
    transition-delay: 300ms; }
  .item-text-wrap {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%); }
  .item-text-title {
    font-size: 2rem;
    padding: 0 1rem;
    margin: 5px 0 0 0; }
  .item-text-category {
    text-transform: uppercase;
    font-size: 1.2rem;
    opacity: .7;
    margin: 0; }
  .item-button {
    position: absolute;
    font-size: 1.2rem;
    opacity: 1;
    border-radius: 50%;
    margin: 0;
    width: 100%;
    top: 80%;
    transform: translateY(-50%);
    transition: transform; }
    .item-button a {
      opacity: .4;
      border-radius: .5rem; }
    .item-button a:hover {
      font-size: 1.2rem;
      opacity: .7;
      background: #333;
      color: #fff;
      margin: 0; }

* {
  margin: 0;
  padding: 0; }

body {
  font-family: 'Dosis', sans-serif;
  line-height: 1.6;
  background: #fff; }

a {
  text-decoration: none;
  color: #333; }

ul {
  list-style: none; }

h2, h3, h4 {
  text-transform: uppercase; }

img {
  width: 100%; }

#logo {
  width: 70px;
  height: 70px;
  color: #fff;
  text-transform: uppercase; }

#main-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem; }
  #main-nav ul {
    display: flex; }
  #main-nav li {
    padding: 1rem 1.5rem; }
  #main-nav a {
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 3px transparent solid;
    padding-bottom: .5rem;
    transition: border-color .5s; }
    #main-nav a:hover {
      border-color: #ccc; }
    #main-nav a.current {
      border-color: #ffbc00; }

#header-home {
  background: url("../img/showcase2.jpg") no-repeat center right/cover;
  height: 100vh;
  color: #fff; }
  #header-home .header-content {
    text-align: center;
    padding-top: 20%; }
  #header-home h1 {
    font-size: 4rem;
    line-height: 1.2; }

#header-inner {
  background: url("../img/showcase2.jpg") no-repeat 20% 30%/cover;
  height: 5.5rem;
  border-bottom: 3px #ffbc00 solid; }

#home-a .specials {
  margin-top: 3rem;
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(4, 1fr); }
  #home-a .specials .fas {
    color: #ffbc00;
    padding-bottom: .4rem; }

#home-b .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr); }
  #home-b .stats li {
    line-height: 2; }
    #home-b .stats li.stats-title {
      font-size: 1.5rem; }
    #home-b .stats li.stats-number {
      font-size: 2rem;
      font-weight: bold; }
  #home-b .stats div {
    padding: 3rem 0; }
    #home-b .stats div:nth-child(odd) {
      background: #f4f4f4; }
    #home-b .stats div:nth-child(even) {
      background: #ccc; }

#home-c .process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
  text-align: center; }
  #home-c .process-step {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 28px;
    background: #ffbc00;
    color: #fff;
    border-radius: 50%;
    height: 15px;
    width: 15px;
    line-height: 15px;
    padding: 1rem;
    transition: all 1s; }
  #home-c .process-icon {
    border-radius: 50%;
    background: #333;
    color: #fff;
    padding: 2rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    position: relative;
    transition: all 1s; }
    #home-c .process-icon:hover {
      background: #ffbc00;
      width: 90px;
      height: 90px;
      line-height: 90px; }
      #home-c .process-icon:hover .process-step {
        background: #333;
        color: #fff; }

#about-a .about-info {
  display: grid;
  grid-template-areas: 'bioimage bio bio'
 'aw1 aw2 aw3';
  grid-gap: 1.2rem; }

#about-a .bio-image {
  grid-area: bioimage; }

#about-a .bio {
  grid-area: bio;
  border-left: 3px solid #ffbc00;
  padding: .8rem; }

#about-a .award-1 {
  grid-area: aw1; }

#about-a .award-2 {
  grid-area: aw2; }

#about-a .award-3 {
  grid-area: aw3; }

#about-a .award-1 .fas,
#about-a .award-2 .fas,
#about-a .award-3 .fas {
  color: #ffbc00;
  margin: 1rem; }

#about-b .progress {
  overflow: hidden;
  height: 20px;
  background: #ccc;
  border-radius: 5px;
  margin-bottom: .6rem; }
  #about-b .progress div {
    height: 100%;
    color: #fff;
    text-align: center;
    background: #ffbc00; }

#about-b #myBtnContainer {
  text-align: center; }

#about-b .piechart-skills {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-bottom: 5rem;
  /* The "show" class is added to the filtered elements */ }
  #about-b .piechart-skills .chart {
    position: relative;
    display: inline-block;
    width: 110px;
    height: 110px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center; }
    #about-b .piechart-skills .chart canvas {
      position: absolute;
      top: 0;
      left: 0; }
  #about-b .piechart-skills .each-skill h4 {
    display: inline;
    text-justify: auto; }
  #about-b .piechart-skills .percent {
    display: inline-block;
    line-height: 110px;
    z-index: 2; }
    #about-b .piechart-skills .percent:after {
      content: '%';
      margin-left: 0.1em;
      font-size: .8em; }
  #about-b .piechart-skills .filterDiv {
    float: left;
    background-color: #333;
    color: #ffffff;
    width: 100px;
    line-height: 100px;
    text-align: center;
    margin: 2px;
    display: none;
    /* Hidden by default */ }
  #about-b .piechart-skills .show {
    display: block; }

#about-c {
  overflow: auto; }
  #about-c .about-logo {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 2rem; }
    #about-c .about-logo img {
      width: 70%; }

#about-d .testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1rem; }
  #about-d .testimonials ul {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    align-items: center; }
    #about-d .testimonials ul img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      margin-right: .5rem; }
  #about-d .testimonials p {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 1rem;
    text-align: justify; }

#contact-a .text-fields {
  display: grid;
  grid-template-areas: 'name email'
 'subject phone'
 'message message';
  grid-gap: 1.2rem;
  margin-bottom: 1.2rem; }
  #contact-a .text-fields .name-input {
    grid-area: name; }
  #contact-a .text-fields .subject-input {
    grid-area: subject; }
  #contact-a .text-fields .email-input {
    grid-area: email; }
  #contact-a .text-fields .phone-input {
    grid-area: phone; }
  #contact-a .text-fields .message-input {
    grid-area: message;
    height: 100px; }
  #contact-a .text-fields .text-input {
    padding: .5rem 1rem; }

#contact-a button[type="submit"] {
  width: 50%; }

#contact-b .contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center; }

#contact-c h1 {
  text-align: center;
  font-size: 4rem; }

#main-footer {
  background: #333;
  color: #fff;
  height: 5rem; }
  #main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    height: 5rem;
    align-items: center; }
    #main-footer .footer-content .social .fab, #main-footer .footer-content .social .ai {
      margin-right: 1rem;
      border: 2px #fff solid;
      border-radius: 50%;
      height: 20px;
      width: 20px;
      line-height: 20px;
      text-align: center;
      padding: 0.5rem; }
      #main-footer .footer-content .social .fab, #main-footer .footer-content .social .ai {
        color: #f4f4f4; }
      #main-footer .footer-content .social .fab:hover, #main-footer .footer-content .social .ai:hover {
        background: #ffbc00; }

@media (max-width: 800px) {
  #header-home {
    height: 30rem; }
    #header-home .header-content {
      padding-top: 5rem; } }

@media (max-width: 500px) {
  #main-nav {
    flex-direction: column;
    align-items: center; }
    #main-nav li {
      padding: 1rem; }
  #header-home {
    height: 10rem;
    border-bottom: 3px solid #ffbc00;
    background-position: 20% 30%; }
    #header-home .header-content {
      display: none; }
  #header-inner {
    height: 10rem; }
  #home-a .specials,
  #home-b .stats,
  #home-c .process,
  #about-d .testimonials,
  #contact-b .contact-info,
  .items {
    grid-template-columns: 1fr; }
  #home-a .specials div {
    border-bottom: 1px #f4f4f4 solid;
    padding-bottom: 1rem; }
    #home-a .specials div:last-child {
      border: none;
      padding-bottom: 0; }
  #home-b .stats div {
    padding: 2rem 0 1rem 0; }
  #main-footer {
    height: 10rem; }
    #main-footer .footer-content {
      flex-direction: column;
      margin-top: 1rem;
      padding: 2rem;
      height: 7rem; }
  #about-a .about-info {
    grid-template-areas: 'bioimage'
 'bio'
 'aw1'
 'aw2'
 'aw3'; }
  #about-b #myBtnContainer {
    display: grid;
    grid-gap: .5rem; }
  #about-b .piechart-skills {
    overflow: auto; }
    #about-b .piechart-skills .each-skill {
      padding-right: 1rem; }
  #about-c {
    display: none; }
  #contact-a .text-fields {
    grid-template-areas: 'name'
 'subject'
 'phone'
 'email'
 'message'; }
  #contact-b div {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px #555 solid; }
    #contact-b div:last-child {
      border: none;
      margin-bottom: 0;
      padding-bottom: 0; }
  #contact-c h1 {
    font-size: 2rem; } }

@media (max-height: 580px) {
  #header-home .header-content {
    padding-top: 3rem; } }

@media (max-height: 330px) {
  #header-home .header-content h1 {
    font-size: 2rem; } }

.progress {
  background: #ccc;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: .6rem;
}

.progress-bar {
  background: #ffbc00;
  color: #fff;
  height: 100%;
  width: 0;
  line-height: 20px;
  text-align: center;
  transition: width 2s ease;
}
.language-circles {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.lang-box {
  text-align: center;
  width: 150px;
}

.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--value) * 1%), #eee 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  position: relative;
  margin: auto;
}

.circle::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}

.circle span {
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}

.level-text {
  margin-top: 0.7rem;
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
/* =========================================
   MOBILE MENU FIXES (Paste at bottom of main.css)
   ========================================= */

/* =========================================
   UNIVERSAL MOBILE FIX (Paste at bottom of main.css)
   ========================================= */

/* 1. The LLM Resume Button (Gradient Pill) */
.btn-nav-highlight {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    display: inline-block;
    margin-top: 5px;
}

/* 2. Animations */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 1s ease-out forwards; }
.fade-in-delay-1 { animation-delay: 0.3s; }
.fade-in-delay-2 { animation-delay: 0.6s; }
.fade-in-delay-3 { animation-delay: 0.9s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* 3. MOBILE LAYOUT - WORKS ON WHITE AND DARK PAGES */
@media (max-width: 800px) {
    
    /* A. NAV CONTAINER: Solid Dark Background 
       This ensures text is visible on both Dark Home & White About pages */
    #main-nav {
        background-color: #222; /* Solid dark grey */
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Slight shadow for separation */
    }

    #main-nav #logo {
        margin-bottom: 1rem; /* Space below logo */
        max-width: 60px;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    #main-nav li {
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #333; /* subtle divider */
    }
    
    /* Remove border from last item */
    #main-nav li:last-child {
        border-bottom: none;
    }

    #main-nav a {
        font-size: 1.1rem;
        color: #fff !important; /* Force white text */
        display: block;
    }

    /* B. HOME PAGE SPECIFIC FIXES */
    /* Ensure the background image covers the screen and text isn't hidden */
    #header-home {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("../img/showcase2.jpg") no-repeat center center/cover !important;
        height: auto !important;
        min-height: 100vh;
        padding-bottom: 3rem;
    }

    #header-home .header-content {
        padding-top: 2rem !important;
        padding-bottom: 2rem;
        display: block !important;
    }
    
    #header-home h1 {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    /* C. INNER PAGE HEADER FIX (For About/Work pages) */
    /* If you have a shorter header on other pages, this ensures it fits */
    #header-inner {
        height: auto !important;
        padding-bottom: 1rem;
        background: #333 !important; /* Match the nav background if image fails */
    }
}
