@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 70px;
}

:root {
  color-scheme: only light;

  @media (prefers-color-scheme: dark) {
    body {
      background-color: #ffffff !important;
      color: #000000 !important;
    }
  }

  :root {
    --font-color: #717182;
    --border: #0000001a;
  }

  .navbar {
    border: var(--border) 1px solid;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    transition: all 0.3s ease;
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .navbar-brand {
    font-weight: 600;
  }

  .navbar-nav .nav-item .nav-link {
    color: var(--font-color);
    font-weight: 500;
  }

  .navbar-nav .nav-item .nav-link:hover {
    color: #000;
  }

  .hero {
    display: flex;
    padding: 5rem 10%;
    align-items: center;
    min-height: 80vh;
  }

  .hero-content {
    flex: 1;
  }

  .hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  .hero-content span,
  p {
    color: var(--font-color);
  }

  .hero-btns {
    display: flex;
    gap: 1rem;
  }

  .hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .circle-frame {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 15px solid white;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.212);
  }

  .circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .portfolio-btn {
    position: relative;
    padding: 6px 13px;
    background: #000;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    outline: none;
  }

  .star {
    position: absolute;
    fill: #000;
    z-index: -5;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
  }

  .star svg {
    width: 100%;
    height: auto;
  }

  .star-1 {
    top: 20%;
    left: 20%;
    width: 25px;
  }

  .star-2 {
    top: 45%;
    left: 45%;
    width: 15px;
  }

  .star-3 {
    top: 40%;
    left: 40%;
    width: 5px;
  }

  .star-4 {
    top: 20%;
    left: 40%;
    width: 8px;
  }

  .star-5 {
    top: 25%;
    left: 45%;
    width: 15px;
  }

  .star-6 {
    top: 5%;
    left: 50%;
    width: 5px;
  }


  .portfolio-btn:hover {
    background: transparent;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  }

  .portfolio-btn:hover .star {
    fill: #000;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
  }

  .portfolio-btn:hover .star-1 {
    top: -80%;
    left: -30%;
  }

  .portfolio-btn:hover .star-2 {
    top: -25%;
    left: 10%;
  }

  .portfolio-btn:hover .star-3 {
    top: 55%;
    left: -20%;
  }

  .portfolio-btn:hover .star-4 {
    top: 30%;
    left: 110%;
  }

  .portfolio-btn:hover .star-5 {
    top: -20%;
    left: 100%;
  }

  .portfolio-btn:hover .star-6 {
    top: 80%;
    left: 105%;
  }

  .resume-button {
    --main-color: #000;
    --bg-color: #ffffff;
    --bg-color-sub: #f0f0f0;
    position: relative;
    width: 155px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    outline: none;
  }

  .resume-button,
  .button__icon,
  .button__text {
    transition: all 0.3s;
  }

  .resume-button .button__text {
    transform: translateX(15px);
    color: var(--main-color);
    font-weight: 600;
    font-size: 14px;
  }

  .resume-button .button__icon {
    position: absolute;
    transform: translateX(140px);
    height: 100%;
    width: 42px;
    background-color: var(--bg-color-sub);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .resume-button .svg {
    width: 22px;
    fill: var(--main-color);
  }

  .resume-button:hover {
    background: var(--bg-color);
  }

  .resume-button:hover .button__text {
    color: transparent;
  }

  .resume-button:hover .button__icon {
    width: 100%;
    transform: translateX(0);
    background-color: var(--bg-color-sub);
  }

  .resume-button:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px var(--main-color);
  }

  @media (max-width: 950px) {
    .hero {
      flex-direction: column;
      padding: 3rem 5%;
      text-align: center;
      gap: 3rem;
    }

    .hero-content {
      order: 1;
    }

    .hero-image {
      order: 2;
      justify-content: center;
      width: 100%;
    }

    .hero-content h1 {
      font-size: 2.8rem;
      margin-bottom: 1rem;
    }

    .circle-frame {
      width: 300px;
      height: 300px;
      border-width: 12px;
    }

    .hero-btns {
      flex-direction: column;
      width: 100%;
      gap: 1rem;
      align-items: center;
    }

    .portfolio-btn,
    .resume-button {
      width: 100%;
      max-width: 300px;
      justify-content: center;
    }


    .resume-button .button__icon {
      display: none;
    }

    .resume-button .button__text {
      transform: translateX(0);
    }
  }

  /* ----------------hero-section----------- */

  .hero-section {
    width: 100%;
    position: relative;
  }

  .hero-section .hero-bg {
    width: 100%;
    min-height: 100vh;
    background-image: url(../assets/herosectionbg.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
  }


  .about-container {
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .about-text-content {
    flex: 1;
    min-width: 300px;
  }

  .about-name {
    font-size: 2.5rem;
    color: #111;
  }

  .about-desc {
    color: #282b2d;
    line-height: 1.6;
    margin-top: 15px;
  }

  .philosophy-title {
    margin-top: 25px;
    color: #111;
  }

  .philosophy-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
  }

  .philosophy-list li {
    margin-bottom: 8px;
    color: #444;
  }

  .stats-grid {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
  }

  .stat-card:hover {
    transform: translateY(-5px);
  }

  .stat-icon {
    font-size: 2rem;
    display: block;
    filter: grayscale(100%) contrast(120%);
  }

  .stat-number {
    margin: 10px 0 5px 0;
    color: #111;
  }

  .stat-label {
    font-size: 0.9rem;
    color: #282b2d;
    margin: 0;
  }

  @media (max-width: 950px) {

    .about-container {
      flex-direction: column;
      padding: 25px;
      width: 95%;
      gap: 40px;
    }

    .about-text-content {
      text-align: center;
      min-width: 100%;
    }

    .about-name {
      font-size: 2rem;
     
    }

   
    .philosophy-list {
      display: inline-block;
      text-align: left;
   
    }

    .stats-grid {
      grid-template-columns: 1fr 1fr;
  
      gap: 15px;
      min-width: 100%;
    }

    .stat-card {
      padding: 15px 10px;
    }

    .stat-number {
      font-size: 1.5rem;
    }
  }


  .extra-work:not(.d-none) {
    animation: fadeInUp 0.6s ease forwards;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  
  .portfolio-btn {
    transition:
      all 0.3s ease,
      transform 0.2s active !important;
  }

  @media (max-width: 480px) {
    .stats-grid {
      grid-template-columns: 1fr;
    }

    .about-name {
      font-size: 1.8rem;
    }
  }

  .portfolio-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid #00000010;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .portfolio-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #000;
  }

  #portfolio h2 {
    color: #000 !important;
  }

  .progress {
    background-color: #f0f0f0;
    border-radius: 10px;
  }

  .progress-bar {
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
  }

  .tool-card {
    border: 1px solid #0000001a;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 10px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  }

  .tool-card:hover {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  @media (max-width: 950px) {
    #skills {
      text-align: center;
    }

    .skill-item {
      text-align: left;
    }
  }

  .contact-section {
    background-color: #f1f1f3 !important;
  }

  .contact-section .bg-white {
    background-color: #ffffff !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  }

  .contact-section h2,
  .contact-section h3,
  .contact-section h4 {
    color: #111 !important;
  }

  /* ========================
   FOOTER STYLES
======================== */
  .site-footer {
    background-color: #fff;
    padding: 40px 0 0;
    border-top: 1px solid #0000001a;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
  }

  .footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    letter-spacing: 1px;
  }

  .footer-tagline {
    color: #717182;
    font-size: 0.9rem;
    margin: 0;
  }

  .footer-nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: center;
  }

  .footer-nav-links a {
    color: #717182;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .footer-nav-links a:hover {
    color: #000;
  }

  .footer-divider {
    border-color: #717182;
    margin: 0 0 20px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .footer-follow-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #717182;
    margin: 0;
  }

  .footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .footer-socials a {
    color: #717182;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #0000001a;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .footer-socials a:hover {
    color: #000;
    border-color: #000;
    transform: translateY(-3px);
  }

  .footer-socials a svg {
    width: 18px;
    height: 18px;
  }

  .footer-copy {
    color: #717182;
    font-size: 0.8rem;
    margin: 0;
  }

  .footer-dev-credit {
    font-size: 0.7rem;
    color: #00000065;
    margin: 0;
    padding-bottom: 20px;
  }

  .footer-dev-credit a {
    color: #00000065;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-dev-credit a:hover {
    color: #000;
  }

  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .footer-nav-links {
      justify-content: center;
      gap: 18px;
    }

    .footer-socials {
      gap: 12px;
    }
  }

  #about,
  #portfolio,
  #skills,
  #contact {
    scroll-margin-top: 50px;
  }
}