/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);
    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);
    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(169, 141, 235);
    --second-color: rgb(30, 159, 171);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
}
/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}
/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}
/* ----- COMMON CSS ----- */
/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}
/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}
/* ------- BASE -------- */
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}
/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo {
    position: relative;
    z-index: 1001;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-third);
    position: relative;
    padding-right: 0.8em;
    transition: all 0.3s ease;
}

.logo-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--third-color);
    border-radius: 50%;
    position: absolute;
    right: -0.8em;
    top: -0.4em;
    transition: all 0.3s ease;
    animation: dotBounce 2s infinite;
}

/* Hover Effects */
.logo-link:hover .logo-main {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-link:hover .logo-dot {
    transform: scale(1.2);
    background: var(--first-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-main {
        font-size: 1.5rem;
        padding-right: 0.6em;
    }
    
    .logo-dot {
        width: 10px;
        height: 10px;
        right: -0.6em;
        top: -0.3em;
    }
}

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-main {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.logo-link:hover .logo-main {
    transform: rotateX(15deg) translateY(-2px);
}

.logo-link:active .logo-main {
    transform: scale(0.98);
}

.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}
/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}
/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
    cursor: pointer;
}
/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 5em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    color: var(--first-color)
}
.icon:hover{
    color: var(--first-color-hover);
}
/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}
/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}
/* ----- COMMON CSS ---- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}
/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
    cursor: default;
}
.about-info p{
    text-align: center;
    font-size: 15px;
    color: #777;
}
.about-btn button{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn button:hover{
    background: var(--first-color-hover);
}
/* ----- ABOUT / SKILLS BOX ----- */

.skills-box {
    transition: all 0.4s ease;
    transform: translateY(0);
    margin-bottom: 2.5rem; /* Space between sections */
    padding: 1.25rem;
    cursor: pointer;
}

.skills-box:last-child {
    margin-bottom: 0;
}

/* Hover effect for entire box */
.skills-box:hover {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-3px); /* Subtle lift effect */
}

/* Skills items container */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem; /* Space between skill items */
    margin-top: 1rem;
    cursor: pointer;
}

/* Individual skill items */
.skills-list span {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f4ff;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.skills-list span:hover {
    background: var(--first-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(110, 87, 224, 0.2);
}

/* Title hover effect */
.skills-header h3 {
    transition: color 0.3s ease;
    display: inline-block; /* Required for transform animations */
}

.skills-box:hover .skills-header h3 {
    color: var(--first-color);
    animation: pulse 1.5s infinite;
}

/* Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* ----- PROJECTS SECTION ----- */
.section {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.top-header h1 {
    font-size: 2rem;
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

/* ----- PROJECTS BOX ----- */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.project-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.project-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.project-links {
    margin-top: auto;
}

.project-links .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    background:var(--first-color);
    color: white;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.project-links .btn:hover {
    background: var(--first-color-hover);
}

.loader, .error-message {
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
    font-size: 1.1rem;
    color: #555;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}
.loader:after {
    content: " ";
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #ccc;
    border-color: #0077cc transparent #0077cc transparent;
    animation: loader 1.2s linear infinite;
}
@keyframes loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #d32f2f;
}

/* Responsive */
@media (max-width: 768px) {
    .project-container {
        grid-template-columns: 1fr;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  
  /* Responsive: show hamburger and hide nav-links on small screens */
  @media (max-width: 900px) {
    .hamburger {
      display: flex;
    }
    .nav-links {
      position: fixed;
      top: 60px;
      left: -100%;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.95);
      width: 100%;
      height: calc(100% - 60px);
      padding-top: 2rem;
      gap: 2rem;
      transition: left 0.3s ease-in-out;
      z-index: 1000;
    }
    .nav-links.active {
      left: 0;
    }
  }
/* ----- CONTACT BOX ----- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--first-color);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.contact-info>h2{
    color: var(--color-white);
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 18px;
}
.contact-info::after{
    background: var(--color-white);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: var(--first-color-hover);
    z-index: 2;
}

/* Remove underline and blue color from all links */
.contact-info a,
.contact-info a:visited,
.contact-info a:hover,
.contact-info a:active {
  color: inherit !important;          
  text-decoration: none !important;  
  cursor: pointer;                   
}

/* ----- CONTACT FORM ----- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--first-color);
    color: var(--color-white);
}
.form-button>.btn:hover{
    background: var(--first-shadow-color);
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}
/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}
/* ----- MEDIA QUERY  / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}
/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        transition: left 0.4s ease;
        z-index: 1000;
      }
      
      .nav-menu.active {
        left: 0;
      }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: none;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--first-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-to-top:hover {
    background: var(--first-color-hover);
    transform: translateY(-3px);
}

.scroll-to-top i {
    font-size: 1.5rem;
}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */
@media only screen and (max-width: 540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
}

/* Mobile Menu Styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1100;
  }
  
  .nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #222; 
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* Hamburger toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Hide menu button on desktop, show on mobile */
.nav-menu-btn {
    display: none;
  }
  
  @media (max-width: 900px) {
    .nav-menu {
      position: fixed;
      top: 0;
      right: -100vw;
      width: 60vw;
      height: 100vh;
      background: var(--body-color);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: right 0.3s;
      z-index: 999;
    }
    .nav-menu.responsive {
      right: 0;
    }
    .nav-menu-btn {
        display: block;
        z-index: 1001;
        width: 48px;  
        height: 48px;
        padding: 10px;
    }
    .nav-menu .nav_list {
      margin: 40px 0;
    }
    body.menu-open {
      overflow: hidden;
    }
    .nav-menu .nav_list li {
        padding: 14px 0; 
      }
      .menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.4);
        z-index: 998;
        display: none;
      }
      .menu-overlay.active {
        display: block;
      }
  }
  
/* Form Status Styles */
.form-status {
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 14px;
    display: none;
  }
  
  .form-status.success {
    background-color: #e6ffed;
    color: #2d7a4d;
    border: 1px solid #9be9b8;
  }
  
  .form-status.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ff8a80;
  }
  
  /* Input Validation Styles */
  .input-field.valid {
    border-color: #4CAF50 !important;
  }
  
  .input-field.invalid {
    border-color: #f44336 !important;
  }
  
  /* Loader Animation */
  .loader {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Form Button Loading State */
  .form-button .btn {
    position: relative;
    min-width: 120px;
  }
  
  /* Responsive Form Inputs */
  @media (max-width: 600px) {
    .form-inputs {
      flex-direction: column;
    }
    .input-field {
      width: 100% !important;
    }
  }
