
:root {
    /* --primary: #242F65; */
       --logo-color: #00BF62; 
    --primary-color: #0d6efd;
    --primary-border-color: #0a58ca;
     --primary-hover-color: #0b5ed7;
    --primary-hover-border: #0a53be;
    
     --primary-bg-store: #FF90E8;
      --primary-border-store: #E872D4;
      
       --primary-hover-border-store: #E872D4;
        --primary-hover-bg-store: #E872D4;

    --secondary-color: #f5f5f5;
    --secondary-border-color: #d1d1d1;
    --secondary-hover-color: #e0e0e0;
    --secondary-hover-border: #b5b5b5;

     --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;

    
}


/* Page body padding */
body { padding-top: 80px; }

/*.back-to-top {*/
/*    position: fixed;*/
/*    display: none;*/
/*    right: 45px;*/
/*    bottom: 45px;*/
/*    z-index: 99;*/
/*}*/

.logo-color{
    color: var(--logo-color);
}



.floating-btn {
    position: fixed;
    width: 50px !important;           /* same width */
    height: 50px !important;          /* same height */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;    /* circular buttons */
    font-size: 24px;       /* icon size */
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.back-to-top {
 
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99; /* circular button */
        /* icon size */
}

.back-to-top i {
    line-height: 1;        /* ensures vertical center */
}

@media (max-width: 767px) {
    .back-to-top {
        display: none !important;     /* hide on mobile if needed */
    }
}




.whatsapp-btn {
    left: 45px;
    bottom: 45px;
    z-index: 2000;

}


.text-primary {
    color: var(--primary-color) !important; /* Replace with your desired color */
}



.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #fff;
    /* background-color: #242F65; */
    background-color: var(--primary-color);
    border: var(--primary-border-color) solid 2px;
    border-radius: 100px;
    z-index: 1000;
}


.btn-primary:hover{
     color: #f5f5f5;
    background-color: var(--primary-hover-color);
     border: var(--primary-hover-border) solid 2px;

}





.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
/*.navbar.fixed-top {*/
/*    display: none;*/
/*    transition: .5s;*/
/*}*/

.navbar .navbar-nav .nav-link {
    padding: 20px 25px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary-color);
}








@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}


/*** Header ***/

 #home {
    position: relative;
    margin-bottom: 6rem;
    height: auto;
    /* background: url(../img/android-bg-1.png) left top no-repeat; */
    background-color: #000000;
    overflow: hidden; 
    padding-top: 3rem;
    padding-bottom: 2rem;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;  /* Centers vertically */
   
} 






#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('../img/android-bg.png') left top no-repeat; */
    background-size: cover;
  
    opacity: 0.3;
    z-index: 1;
} 


.text-dark{
    font-size: 1.3rem;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.custom-portfolio-btn {
    z-index: 1000;
    border-radius: 100px;
    border: var(--primary-border-store) solid 2px;
    background-color: var(--primary-bg-store); /* Set your desired color */
    color: #333; /* Text color */
    min-width: 156px;
}
.custom-portfolio-btn:hover {
    color: white; /* Text color */
    background-color: var(--primary-hover-bg-store); /* Darker shade for hover effect */
     border: var(--primary-hover-border-store) solid 2px;
     color: #000;
}

custom-hire-header-btn{
z-index: 1000;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}




 


/*** About ***/
#about .years .display-1 {
    font-size: 10rem;
    line-height: 9rem;
   
}

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}


/*** Skills ***/
#skill .progress {
    height: 1rem;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
}

#skill .tab-content hr {
    width: 30px;
}


/*** Service ***/
.service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .2s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.portfolio-img {
    position: relative;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /*background: rgba(98, 68, 197, .9);*/
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}









/* General styles for contact links */
.contact-link {
    text-decoration: none;
    color: black; /* Default text color */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover effect for contact links */
.contact-link:hover {
    color: black; /* Primary color on hover */
    /*text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);*/
}

/* Specific styles for WhatsApp link */
.whatsapp-link .contact-link {
    color: rgba(0, 0, 0, 0.863); 
    font-size: 1.2rem;
    font-weight: bold;
}

.whatsapp-link .contact-link:hover {
    color: black; 
}

/* Specific styles for Email link */
.email-link .contact-link {
    color: rgba(0, 0, 0, 0.863); 
    font-size: 1.2rem;
    font-weight: bold;
}

.email-link .contact-link:hover {
    color: black; 
}



#project{
    overflow: hidden;
}


#contact {
    clear: both;
    margin-top: 30px;
    margin-bottom: 30px;
   
}


.portfolio-img img {
    height: 500px; 
    width: 500px; 

    object-fit: fill; 
}




.div-button {
    width: 100%; /* Adjust size as needed */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.473); /* Semi-transparent black */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}



.portfolio-img {
    width: 100%; /* Full width of the container */
    max-width: 500px; /* Maximum size */
    aspect-ratio: 1 / 1; /* Maintains a perfect square */
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the square properly */
}






.blog-img {
  height: 200px;       /* Fixed height for all blog images */
  object-fit: cover;   /* Crops images nicely without stretching */
  width: 100%;         /* Full width */
}



.blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-img {
  height: 220px;       /* uniform image size */
  object-fit: cover;   /* crop to fit */
}






/* social sidebar */
  .social-sidebar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  background: #07E1B5;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  overflow: hidden;
}

.social-sidebar a {
  color: #0d6efd;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: all 0.3s ease;
}

/* Hover colors */
.social-sidebar .facebook {
  background: #1877f2;
  color: #fff;
}
.social-sidebar .instagram {
  background: linear-gradient(45deg, #feda75, #d62976, #962fbf, #4f5bd5);
  color: #fff;
}
.social-sidebar .github {
  background: #333;
  color: #fff;
}

/* Icon Animation on Hover */
.social-sidebar a i {
  transition: transform 0.3s ease;
}
.social-sidebar a:hover i {
  transform: scale(1.3) rotate(10deg);
}

/* Optional subtle bounce animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.social-sidebar a:hover i {
  animation: bounce 0.6s;
}

/* Hide on small screens */
@media (max-width: 991px) {
  .social-sidebar {
    display: none !important;
  }
}

/* social sidebar end*/

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* circle */
}


.btn-fixed {
  min-width: 160px; /* adjust so it fits the longest text */
}



/* Blog card styling */
.blog-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background: #fff;
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.blog-img { height: 200px; object-fit: contain; }
.category-badge { margin-right: 5px; margin-top: 5px; padding-top: 5px; padding-bottom: 6px; }
.blog-meta { font-size: 0.9rem; color: #6c757d; margin-top: auto; }






.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}



/* Fix image sizing and avoid layout shifts */
.header-img {
  max-height: 500px;   /* keep image from growing too big */
  height: auto;
  object-fit: contain; /* keep proportions */
}



html {
  overflow-y: scroll;
}

body.modal-open {
  padding-right: 0 !important;
  overflow-y: auto;
}



/* youtube video demp Center modal and fit viewport */

.portfolio-img {
    width: 100%; /* Full width of the container */
    max-width: 500px; /* Maximum size */
    aspect-ratio: 1 / 1; /* Maintains a perfect square */
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the square properly */
}


/*.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0 auto;
}

.bazar-modal {
  width: auto;
  min-width: 250px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}*/


.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0 auto;
  max-width: 100vw; /* prevent overflow horizontally */
  overflow-x: hidden;
}

.bazar-modal {
  width: auto;            /* responsive width based on viewport */
  max-width: 400px;       /* reasonable max for desktop view */
  min-width: 250px;
  max-height: 92vh;
  overflow-y: auto;       /* allow vertical scroll if content too tall */
  overflow-x: hidden;     /* prevent horizontal cutting */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box; /* ensures padding doesn’t push width */
}

/* Phone mockup container */
.phone-frame {
  background: #000;
  border-radius: 3px;
  padding: 6px 3px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  overflow: hidden;
  aspect-ratio: 9 / 18;
  height: 72vh;
  position: relative;
  max-width: 100vw; /* prevent cutoff */
}

/* Handle mobile and desktop-site-on-mobile */
@media screen and (max-device-width: 768px) {
  .bazar-modal {
    width: auto;
    max-width: 95vw;
  }
  .modal-dialog {
    padding: 0 5px;
  }
  
  .phone-frame {
      padding: 6px 6px;
  }
}


#projectCounter {
  bottom: 0; /* stick to bottom edge */
  left: 50%;
  transform: translateX(0%) translateY(50%); /* nudges slightly off edge */
  background: rgba(40, 40, 40, 0.85); /* semi-transparent gray background */
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1;
  z-index: 5;
  margin-bottom: 8px;
  pointer-events: none; /* prevent blocking interactions */
  backdrop-filter: blur(4px); /* optional: frosted-glass effect */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* gives soft lift */
  transition: all 0.25s ease-in-out;
}



/* Custom top bar layout */
.modal-header-custom {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header-custom .github-btn {
  position: absolute;
  left: 0;
}

.modal-header-custom .close-btn {
  position: absolute;
  right: 0;
}

.modal-title-text {
  font-size: 1rem;
  color: #fff;
}

/* Phone mockup */
/*.phone-frame {
  background: #000;
  border-radius: 3px;
   padding: 6px 0px; 
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  overflow: hidden;
  aspect-ratio: 9 / 18;
  height: 75vh;
  
  position: relative;
 
}*/

.phone-frame iframe {
  border: none;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}



.youtube-placeholder{
      border: none;
  width: 100%;
  height: 100%;
}

/* Keep modal centered on resize */
.modal.show .modal-dialog {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Prevent body scroll */
.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}



.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

/*youtube video demo end*/




#aiTeacherCounter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  z-index: 5;
}




/* Hide carousel arrows until loaded */
#projectCarousel .carousel-control-prev,
#projectCarousel .carousel-control-next {
  opacity: 0;
  pointer-events: none;             /* prevent clicks when invisible */
  transition: opacity 0.4s ease;
  z-index: 5;
}

#projectCarousel.loaded .carousel-control-prev,
#projectCarousel.loaded .carousel-control-next {
  opacity: 1;
  pointer-events: auto;             /* clickable only after loaded */
}

/* Loader overlay */
#mockupLoader {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;             /* 👈 no blocking clicks when hidden */
  transition: opacity 0.3s ease;
  z-index: 10;                      /* above carousel while active */
}

#mockupLoader.active {
  opacity: 1;
  pointer-events: all;              /* 👈 only blocks while visible */
}

#mockupLoader small {
  font-size: 0.85rem;
  opacity: 0.9;
  letter-spacing: 0.4px;
}




#projectVideo.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

#projectVideo.invisible {
  opacity: 0 !important;
  visibility: hidden !important;
}






.youtube-placeholder {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.youtube-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.play-btn {
  font-size: 4rem;
  background: none;
  border: none;
  color: white;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 3;
}

.video-loader {
  z-index: 4;
  transition: opacity 0.3s ease;
}

