@media (max-width: 991.98px) {
  #intro {
    background: #fff;
    /* White background for smaller screens */
  }
}

#intro {
  background: #fff;
  /* White background for all screens */
  color: #212529;
  /* Standard dark text color */
  position: relative;
  z-index: 0;
}

#intro .container {
  position: relative;
  z-index: 1;
}

.thick-text {
  color: black;
  -webkit-text-stroke: 1.2px white;
  text-stroke: 1.2px white;

  /* Makes the black part thicker */
  font-weight: 900;
  letter-spacing: -0.5px;
}

.normal-text {
  color: var(--bs-primary);
  /* Bootstrap primary color */
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-weight: 700;
  letter-spacing: 0;
}

body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  /* base weight for normal text */
  color: #212529;
  background-color: #f8f9fa;
}

/* Inverse weighting: smaller text bolder, bigger text lighter */
h1 {
  font-weight: 300;
}

h2 {
  font-weight: 400;
}

h3 {
  font-weight: 500;
}

h4 {
  font-weight: 600;
}

h5,
h6,
p,
a,
span,
small {
  font-weight: 700;
  /* bold for small elements */
}

p {
  font-weight: 700 !important;
}

/* Optional: universal font-family override only if needed */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
div,
span,
nav {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.nav-link {
  font-weight: 500;
  font-size: 18px;
  color: #5b5b5b !important;
}

.nav-link:hover {
  text-decoration: none;
  color: #606060 !important;
}

hr.section-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
}

h2 {
  color: #0d6efd !important;
}

.card:hover .card-body {
  border-color: #0d6efd !important;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

.navbar-brand {
  color: #0d6efd !important;
  text-decoration: none;
}

.social-icon {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

.social-icon:hover {
  transform: scale(1.15);
  filter: grayscale(0%);
}

.icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-fa {
  font-size: 24px;
}

h5 {
  color: #0d6efd !important;
}

.project-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rate>input {
  display: none;
}

.rate {
  display: inline-block;
  ;
  border: 0;
}

.rate>label {
  float: right;
}

/* Showing the stars */
.rate>label:before {
  display: inline-block;
  font-size: 1.1rem;
  font-family: FontAwesome;
  content: "\f005";
  margin: 0;
  padding: 0.3rem .2rem;
  cursor: pointer;
}

/* Half star */
.rate .half:before {
  content: "\f089";
  position: absolute;
  padding-right: 0;
}

/* Click and hover */
input:checked~label,
label:hover~label {
  color: #ffb503;
}

/* hover hightlight */
input:checked+label:hover,
input:checked~label:hover,
input:checked~label:hover~label,
label:hover~input:checked~label {
  color: #cc9000;
}

.rating-star i {
  color: #ffb503 !important;
}

.navbar-light-blue {
  /*005991*/
  background-color: #effaff !important;
}

.text-justify {
  text-align: justify;
}

.show-more {
  color: #0d6efd;
  cursor: pointer;
  display: inline-block;
  margin-top: 5px;
  font-size: 0.875rem;
}

.hover-effect:hover {
  color: #17e4ff !important;
  transition: all 0.3s ease;
}

.social-hover:hover {
  color: #004047 !important;
  transform: scale(1.1);
  transition: all 0.3s ease-in-out;
}

.hover-scale {
  transition: transform 0.3s ease-in-out;
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.25);
}

@media (max-width: 768px) {
  #skills h2 {
    font-size: 1.5rem;
    text-align: center;
  }
}

.jump-hover {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  /* smoother easing */
}

.jump-hover:hover {
  transform: translateY(-3px);
  /* gentle lift */
}

@media (max-width: 768px) {
  #experience h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .ratio-1x1 {
    max-width: 250px !important;
  }
}

@media (max-width: 606px) {
  .ratio-1x1 {
    max-width: 350px !important;
  }
}

@media (max-width: 1006px) {
  .ratio-1x1 {
    max-width: 450px !important;
  }
}

/* Fiverr Gigs Section Styling */
#gigs {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.gig-card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.gig-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 123, 255, 0.15);
  border-color: #0d6efd;
}

.gig-card .card-body {
  padding: 1.5rem;
}

.gig-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: #0d6efd;
}

.gig-desc {
  font-size: 0.95rem;
  color: #212529;
  margin-top: 0.75rem;
}

.gig-btn {
  margin-top: 1rem;
  background-color: #0d6efd;
  border: none;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.gig-btn:hover {
  background-color: #084298;
  color: #ffffff;
}

.gig-icon {
  font-size: 2rem;
  color: #0d6efd;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .gig-title {
    font-size: 1.1rem;
  }

  .gig-desc {
    font-size: 0.875rem;
  }
}

.cert-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 60px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.cert-modal-content {
  position: relative;
  max-width: 90%;
  text-align: center;
}

.cert-modal img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 10px;
}

.cert-modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s;
}

.cert-modal-close:hover {
  color: #808080;
}
/* S+ GRADE UTILITIES */
.fw-black { font-weight: 900; }
.letter-spacing-1 { letter-spacing: 1px; }

/* INTRO / HERO SPECIFIC */
.btn-premium {
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-premium-primary {
    background: #0066ff;
    color: white;
    border: 2px solid #0066ff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #ffffff;
    color: #111111;
    overflow-x: hidden;
    line-height: 1.6;
}

p {
    line-height: 1.8;
    color: #444444;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.9;
    color: #333333;
}

.btn-premium-primary:hover {
    background: #111111;
    border-color: #111111;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.animate-pulse {
    animation: pulse 2s infinite;
}


/* SKILL CARDS S+ */
.skill-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    cursor: default;
}
.skill-card:hover {
    border-color: #0066ff !important;
    transform: translateY(-5px);
}

.s-plus-transition {
    transition: all 0.3s ease;
}


/* CERTIFICATE & EXPERIENCE S+ */
.certificate-card-s-plus {
    transition: all 0.3s ease;
    background: #ffffff;
}
.certificate-card-s-plus:hover {
    border-color: #0066ff !important;
    transform: translateY(-5px);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}


/* CERT MODAL NAVIGATION */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    align-items: center;
    justify-content: center;
}

.cert-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.cert-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid #ffffff;
    transition: opacity 0.2s ease;
}

  /* --- Rating System --- */
.rate-s-plus {
    display: inline-block;
    border: 0;
    height: 40px;
    padding: 0;
    width: auto; /* Ensure it expands to fit stars */
}
.rate-s-plus > input {
    display: none;
}
.rate-s-plus > label {
    float: right;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0 1px; /* Add 1px padding to prevent clipping */
    position: relative;
    width: 0.9rem; /* Slightly wider to prevent corner cut */
    overflow: hidden;
    white-space: nowrap;
}
.rate-s-plus > label:before {
    display: inline-block;
    font-size: 1.6rem;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f005"; /* Full Star icon for both halves */
}
.rate-s-plus > .full:before {
    text-indent: -0.9rem; /* Show the right half of the star */
}
.rate-s-plus > .half:before {
    text-indent: 0; /* Show the left half of the star */
}

/* Space between star pairs */
.rate-s-plus > .full {
    margin-left: 0; /* Touch the half-star of the same pair */
}
.rate-s-plus > .half {
    margin-left: 10px; /* Space between this star and the next one to the left */
}
/* Ensure the first star on the right has no extra margin */
.rate-s-plus > .full:first-of-type {
    margin-left: 0;
}
.rate-s-plus > input:checked ~ label,
.rate-s-plus:not(:checked) > label:hover,
.rate-s-plus:not(:checked) > label:hover ~ label {
    color: #0066ff;
}
.rate-s-plus > input:checked + label:hover,
.rate-s-plus > input:checked ~ label:hover,
.rate-s-plus > label:hover ~ input:checked ~ label,
.rate-s-plus > input:checked ~ label:hover ~ label {
    color: #0052cc;
}

/* Review Cards */
.review-card {
    border-radius: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    border-color: #0066ff !important;
}

/* Glass Card refined */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.cert-nav-btn:hover {
    background: #0066ff;
    border-color: #0066ff;
    color: white;
}

.cert-nav-btn.prev { left: -80px; }
.cert-nav-btn.next { right: -80px; }

@media (max-width: 992px) {
    .cert-nav-btn.prev { left: 10px; }
    .cert-nav-btn.next { right: 10px; }
    .cert-nav-btn { padding: 10px 15px; font-size: 1.2rem; }
}

.cert-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.cert-modal-close:hover { color: #0066ff; }


/* LINE ICON EFFECTS */
.skill-line-icon {
    color: transparent !important;
    -webkit-text-stroke: 1.5px #0066ff;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-line-icon {
    -webkit-text-stroke: 1.5px #111111;
}

.skill-line-img {
    filter: grayscale(100%) brightness(0.8) opacity(0.8);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-line-img {
    filter: none;
    opacity: 1;
}

/* Premium Form Inputs */
.card .form-control {
    background-color: #ffffff !important;
    border: 2px solid #cbd5e0 !important; /* Prominent, clear border */
    transition: all 0.2s ease-in-out !important;
    font-size: 0.95rem;
    color: #2d3748 !important;
}

.card .form-control:hover {
    border-color: #a0aec0 !important;
}

.card .form-control:focus {
    background-color: #fff !important;
    border-color: #0066ff !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15) !important;
    outline: none !important;
}

.card label {
    color: #4a5568;
    font-weight: 600;
}

/* --- Architectural Blueprint Contact --- */
.letter-spacing-2 { letter-spacing: 2px; }
.form-group-architect {
    border-bottom: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
    margin-bottom: 1.5rem;
    padding-bottom: 5px;
    background: transparent !important;
    width: 100%;
}
.form-group-architect:focus-within {
    border-color: #0d6efd;
}
.form-group-architect .form-label {
    display: block;
    margin-bottom: 0.5rem !important;
    color: #0d6efd !important;
}
.form-control-minimal {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 0 !important;
    font-weight: 600 !important;
    color: #111111 !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important; /* Force full width */
}
.form-control-minimal::placeholder {
    color: #a0aec0 !important;
    font-weight: 400;
}
/* Aggressive Textarea Reset */
textarea.form-control-minimal {
    min-height: 150px !important;
    resize: none !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
}

/* Footer Social Hover Enhancement */
.footer-social-btn:hover {
    border-color: #0066ff !important;
    color: #ffffff !important;
    background: rgba(0, 102, 255, 0.1);
}
.footer-social-btn img {
    filter: brightness(0) invert(1); /* Force dark icons to white */
    opacity: 0.7;
    transition: all 0.3s ease;
}
.footer-social-btn:hover img {
    opacity: 1;
}
.hover-text-white:hover {
    color: #ffffff !important;
}
