/* fonts family */

:root {
    --body-font : "Work Sans", sans-serif;
    --bs-btn-font-family : "Work Sans", sans-serif;
}

/* fonts CSS */
html {
    scroll-behavior: smooth;
}

/* BODY OFFSET FOR FIXED NAVBAR */
body {
  padding-top: 80px;
  font-family: "Work Sans", sans-serif;
}

/* NAVBAR BASE */
#mainNav {
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-top: 15px;
  width: 92%;
  left: 4%;
  right: 4%;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 15px;
}

/* SCROLLED NAVBAR */
#mainNav.scrolled {
  background: rgba(15, 15, 15, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
  width: 96%;
  left: 2%;
  right: 2%;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* HIDDEN NAVBAR (Scroll Down) */
#mainNav.nav-hidden {
  transform: translateY(-150%);
}

/* BRAND */
.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  animation: fadeSlideDown 0.8s ease forwards;
}

/* NAV LINKS */
.navbar-nav .nav-link {
  position: relative;
  margin-left: 15px;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

/* HOVER & ACTIVE COLOR */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

/* UNDERLINE ANIMATION */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--bs-primary);
  transition: width 0.35s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* MOBILE MENU ANIMATION */
.navbar-collapse {
  transition: all 0.4s ease;
}

/* KEYFRAMES */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
    --bs-blue: #4BA1A7;
    --bs-red: #F0756C;
    --bs-orange: #2C2A2A; 
    --bs-yellow: #1c1c1c; /* Dark muted yellow-ish gray */
    --bs-green: #1e221d; /* Dark muted green-ish gray */
    --bs-teal: #1d1b1d; /* Dark muted teal-ish gray */
    --bs-cyan: #222222;
    --bs-black: #000000; 
    --bs-white: #FFFFFF;
    --bs-gray: #444444; 
    
    --bs-link-color: #F8F9FA;
    --bs-link-color-rgb: 248, 249, 250;
    --bs-link-hover-color: #F0756C;
    --bs-link-hover-color-rgb: 240, 117, 108;
    
    --bs-primary: #F0756C;
    --bs-primary-rgb: 240, 117, 108;
    --bs-body-color: #e0e0e0;   
    --bs-body-bg: #121212;
    --bs-info: #C3C3C3; 
    --bs-light-text-emphasis: #c3c3c3;
    
    --swiper-pagination-color: #F0756C;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body , body  [data-bs-theme=light], body [data-bs-theme=dark] {
    --bs-blue: #4BA1A7;
    --bs-red: #F0756C;
    --bs-orange: #2C2A2A;
    --bs-yellow: #1c1c1c;
    --bs-green: #1e221d;
    --bs-teal: #1d1b1d;
    --bs-cyan: #222222;
    --bs-black: #000000; 
    --bs-white: #FFFFFF;
    --bs-gray: #444444;   
    --bs-info: #C3C3C3;
    --bs-body-bg: #121212;
    --bs-body-color: #e0e0e0;
}

.btn-primary {
    --bs-btn-color: var(--bs-black);
    --bs-btn-bg: var(--bs-orange);
    --bs-btn-border-color: var(--bs-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-black);
    --bs-btn-hover-border-color: var(--bs-black);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-bg: var(--bs-black); 
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--bs-link-color);
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    --bs-pagination-hover-bg: var(--bs-black);
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: var(--bs-secondary-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-pagination-active-color: var(--bs-black);
    --bs-pagination-active-bg: #F5E9E9;
    --bs-pagination-active-border-color: #F5E9E9;
    --bs-pagination-disabled-color: var(--bs-secondary-color);
    --bs-pagination-disabled-bg: var(--bs-secondary-bg);
    --bs-pagination-disabled-border-color: var(--bs-border-color);
    display: flex;
    padding-left: 0;
    list-style: none;
}
/* Portfolio Redesign specific styles */
.portfolio-item .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
}

.icon {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
}

.bg-gray {
    background-color: var(--bs-gray) !important;
}

.bg-yellow {
    background-color: var(--bs-yellow) !important;
}

.bg-green {
    background-color: var(--bs-green) !important;
}

.bg-teal {
    background-color: var(--bs-teal) !important;
}

.navbar-nav a.nav-link:hover {
    color: var(--bs-primary) !important;
}

body {
    font-family: var(--body-font);
}

/* font size */
h2,h3,h4,h5,h6 {
    font-weight: 700;
}
.display-1 {
    font-size: calc(4.375rem + 4.5vw);
    font-weight: 900 ;
    font-family: var(--body-font); 
    line-height: 80%;
}
.display-2,
.display-3,
.display-4,
.display-5 {
    font-weight: 700 ;
}
.p-6 {
    padding: 4rem !important;
}

/* navbar */
.navbar svg {
    color: #111111;
}

/* banner color */

.banner {
    color: var(--bs-black);
}

/* line height */

p.a {
    line-height: 10%;
}

.lh-small {
    line-height: 80%;
}

.ls-4 {
    letter-spacing: 0.2rem;
}

/* masonry */
.btn.is-checked {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}
/* paragraph color */
.postf {
    color: var(--bs-gray);
}

.postg {
    color: var(--bs-info);
}

/* width of container */

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1460px;
    }
}

/* testimonial */

.testimonial-card {
  background: var(--bs-black);
  color: var(--bs-white);
}

.testimonial-card .postd {
    color: var(--bs-red);
}



/* 3.5 FAQs
/*----------------------------------------------*/
.accordion-item{
    background: var(--bs-yellow);
  }
  h5 button.accordion-button{
    font-family: var(--body-font);
    background: var(--bs-yellow);
  }
  .accordion-button:focus {
    border: none;
    outline: 0;
    box-shadow: none;
  }
  .accordion-button:not(.collapsed) {
    background: none;
    box-shadow: none;
  }

  .accordion-button::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z'/%3E%3C/svg%3E");
  }
  .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222z'/%3E%3C/svg%3E");
    transform: rotate(180deg);
  }

html {
    scroll-behavior: smooth;
}

/* styles page */
/* 
a {
    color: rgba(var(--bs-black), var(--bs-link-opacity, 1));
    text-decoration: none;
}

a:hover {
    --bs-black: var(--bs-link-hover-color-rgb);
} */

/* blog */

.page-link {
    color: var(--bs-black);
}

.page-link:hover {
    z-index: 2;
    color: var(--bs-pagination-hover-color);
    background-color: var(--bs-pagination-hover-bg);
    border-color: var(--bs-pagination-hover-border-color);
}

.active>.page-link, .page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: var(--bs-pagination-active-bg);
    border-color: var(--bs-pagination-active-border-color);
}

/* ==========================================================
   ✨ GLOBAL VANTA & MICRO-ANIMATIONS 
   ========================================================== */
body {
    background-color: transparent !important;
}

/* Custom Glass Panel */
.glass-panel {
    background: rgba(18, 18, 18, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.floating-icon svg {
    animation: float 4s ease-in-out infinite;
}

#skills .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 5s ease-in-out infinite;
    transition: background 0.3s;
}

#skills .icon:hover {
    background: rgba(240, 117, 108, 0.1);
}

/* Hero Background Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--bs-primary);
    top: -10%;
    left: -10%;
    animation: float 7s ease-in-out infinite;
}

.hero-shape-2 {
    width: 500px;
    height: 500px;
    background: var(--bs-blue);
    bottom: -20%;
    right: -10%;
    animation: float 9s ease-in-out infinite reverse;
}

/* Magnetic Button Smooth Reset */
.btn {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s linear !important;
    will-change: transform;
}
.btn:hover {
    z-index: 10;
}

/* 3D Card Hover Glow Effects */
.card, .bg-yellow, .bg-green, .bg-teal {
    position: relative;
    transform-style: preserve-3d;
}
.card:hover, .bg-yellow:hover, .bg-green:hover, .bg-teal:hover {
    box-shadow: 0 15px 35px rgba(240, 117, 108, 0.15) !important;
    z-index: 10;
}
.js-tilt-glare {
    border-radius: inherit;
}

/* Certificate Redesign */
.certificate-card {
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.certificate-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.certificate-card:hover .certificate-img {
    transform: scale(1.05);
}
.certificate-card:hover .certificate-overlay {
    opacity: 1;
}
.certificate-swiper .swiper-pagination-bullet {
    background: var(--bs-primary);
}

/* ==========================================================
   📱 MOBILE RESPONSIVE DESIGN (Phones ≤768px)
   ========================================================== */

@media (max-width: 768px) {

  /* --- General Page Layout --- */
  html, body {
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
  }

  section {
    padding: 50px 15px;
  }

  .container {
    width: 100%;
    padding: 0 15px;
  }

  /* --- Navbar --- */
  .navbar {
    padding: 10px 15px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

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

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 10px 0;
  }

  .offcanvas {
    width: 80%;
  }

  /* --- Banner / Hero Section --- */
  .banner {
    text-align: center;
    padding: 60px 15px;
    background-position: center;
    background-size: cover;
  }

  .banner h1,
  .banner .display-1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .banner p {
    font-size: 0.95rem;
    margin-top: 10px;
  }

  .banner .btn {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 10px;
    font-size: 1rem;
  }

  /* --- About Section --- */
  #about .row {
    flex-direction: column;
    text-align: center;
  }

  #about .col-lg-4,
  #about .col-md-6 {
    margin-bottom: 25px;
  }

  #about img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }

  /* --- Skills Section --- */
  #skills .d-flex {
    flex-direction: column;
    align-items: center;
  }

  #skills .icon {
    margin-bottom: 10px;
  }

  #skills h5 {
    font-size: 1.2rem;
  }

  #skills p {
    font-size: 0.95rem;
  }

  /* --- Portfolio Section --- */
  #portfolio img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  #portfolio .section-header h2 {
    font-size: 2rem;
  }

  #portfolio .section-header h4 {
    font-size: 1rem;
  }

  /* --- Testimonials Section --- */
  .testimonial-card {
    margin: 10px 0;
    padding: 1.5rem;
    text-align: center;
  }

  .testimonial-card p {
    font-size: 0.95rem;
  }

  /* --- Contact Section --- */
  #contact {
    text-align: center;
  }

  #contact h2 {
    font-size: 2rem;
  }

  #contact p,
  #contact a {
    font-size: 0.95rem;
    word-wrap: break-word;
  }

  #contact .col-md-5 {
    margin-bottom: 25px;
  }

  /* --- Footer --- */
  footer {
    text-align: center;
    padding: 40px 15px;
  }

  footer h5 {
    font-size: 1rem;
  }

  footer p,
  footer a {
    font-size: 0.9rem;
  }

  footer .row > div {
    margin-bottom: 20px;
  }

  /* --- Utility --- */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

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

  .hide-sm {
    display: none;
  }

}
