
/* Contact-section glass card: layout only — colors live in the
   Darkiee brand layer further down (tokens from /assets/css/tokens.css) */
.contact-glass {
  border-radius: 2rem;
  padding: 2.5rem 2rem;
}

.contact .content form {
  border-radius: 1.2rem;
  padding: 2rem 2rem 1rem 2rem;
}

.form-group .field input,
.form-group .message textarea {
  transition: border 0.3s, box-shadow 0.3s;
}

.button-area button {
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  text-transform: capitalize;
}

/* Selection, focus-visible and scrollbar rules live in /assets/css/tokens.css */
*:focus {
  outline: none;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* single source of anchor offset: 65px header + breathing room.
     Must stay below the 130px scroll-spy threshold in script.js */
  scroll-padding-top: 80px;
}

body {
  font-family: "Poppins", sans-serif;
}

/* ===== SCROLL ANIMATION ENHANCEMENTS ===== */
.animate-in {
  animation: fadeInUp 0.8s ease-out;
}

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

/* Enhanced hover animations for interactive elements */
.btn, .bar, .box, .highlight-item, .info-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* scroll-behavior and scroll-padding-top are set in the html reset above */

/* Enhanced section transitions */
section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Preload animation states */
.sr-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.sr-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ADDITIONAL ANIMATION CLASSES ===== */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.slide-in-bottom {
  animation: slideInBottom 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced skill bars animation */
.skills .container .bar {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.skills .container .bar.animate {
  opacity: 1 !important;
  transform: translateY(0);
}

/* Ensure all skill bars are fully visible when animated */
.skills .container .bar.animate * {
  opacity: 1 !important;
}

/* Force visibility for skill icons */
.skills .container .bar .info img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Staggered animation for multiple elements */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-stagger.animate > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.animate > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.animate > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.animate > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.animate > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger.animate > *:nth-child(6) { transition-delay: 0.6s; }

.animate-stagger.animate > * {
  opacity: 1;
  transform: translateY(0);
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}
/* anchor offset comes from html { scroll-padding-top } alone —
   adding scroll-margin-top here would double the offset and break
   the scroll-spy highlight after clicking a nav link */
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 1rem;
}
.heading span {
  color: var(--c-accent);
}
.heading i {
  margin-right: 1rem;
  color: var(--c-accent);
}
header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: #fc8c05;
}
header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  /* constant padding + transparent underline so hover/active never shifts layout */
  padding: 0.5rem 0;
  border-bottom: 0.2rem solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: var(--c-text);
  display: none;
}
@media (max-width: 768px) {
  #menu {
    display: block;
  }
  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: min(80vw, 30rem);
    height: calc(100vh - 6.5rem);
    height: calc(100dvh - 6.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
    align-items: flex-start;
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
    width: 100%;
  }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 0.6rem 0;
    border-radius: 0.5rem;
  }
  header .navbar ul li a {
    display: block;
    padding: 1rem 1.4rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
    border-left: 0.4rem solid transparent;
    border-bottom: none;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem 1.4rem;
    color: #fff;
    border-radius: 0.5rem;
    border-left: 0.4rem solid var(--c-accent);
    border-bottom: none;
  }
  .fa-times {
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle {
    right: 0;
  }
}
/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
  padding: 8rem 2rem 2rem 2rem;
}
.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
  position: relative;
}
.home .image {
  flex: 1 1 40rem;
  z-index: 1;
  position: relative;
}
.home .image img {
  width: 100%;
  max-width: 360px;
  height: auto;            /* override the HTML height="400" attr so aspect-ratio wins */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  /* brand gradient ring — readable in both light & dark */
  border: 4px solid transparent;
  background:
    var(--c-bg, #f8fafc) padding-box,
    var(--g-brand-diag, linear-gradient(135deg, #ff8d28 0%, #8b5cf6 100%)) border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.home .image img:hover {
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.28);
}
.home .content h1 {
  font-size: 5rem;
  font-weight: 800;
  color: #002057;
}
.home .content h1 span {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff8d28 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home .content p {
  font-size: 2.5rem;
  color: #000;
  font-weight: 600;
  padding: 1rem 0;
  margin-bottom: 2.5rem;
}
.home .content p span {
  font-size: 2.5rem;
  color: var(--c-accent);
  font-weight: 600;
  padding: 1rem 0;
}
/* Enhanced Main Button */
.home .btn {
  margin-top: 3.5rem;
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  background: linear-gradient(135deg, #ff8d28 0%, #8b5cf6 100%);
  box-shadow: 0 8px 25px rgba(247, 127, 3, 0.3);
  font-family: "Nunito", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.home .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.home .btn:hover::before {
  left: 100%;
}

.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
  position: relative;
  z-index: 1;
}
.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.home .btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(247, 127, 3, 0.4);
}
.home .btn:hover i {
  transform: translateX(8px);
}
/* Enhanced Social Icons */
.socials {
  position: relative;
  margin-top: 4rem;
}
.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}

/* Beautiful Enhanced Social Icons */
.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.social-icons a:hover::before {
  left: 100%;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icons a.github {
  background: linear-gradient(135deg, #333 0%, #24292e 100%);
  color: #fff;
}
.social-icons a.github:hover {
  background: linear-gradient(135deg, #24292e 0%, #000 100%);
  box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
}

.social-icons a.twitter {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
  color: #fff;
}
.social-icons a.twitter:hover {
  background: linear-gradient(135deg, #0d8bd9 0%, #0a6bb3 100%);
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-icons a.linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
  color: #fff;
}
.social-icons a.linkedin:hover {
  background: linear-gradient(135deg, #005582 0%, #004066 100%);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-icons a.dev {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
}
.social-icons a.dev:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-icons a.instagram {
  background: linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
  color: #fff;
}
.social-icons a.instagram:hover {
  background: linear-gradient(135deg, #c13584 0%, #833ab4 50%, #5b2c87 100%);
  box-shadow: 0 8px 25px rgba(196, 53, 132, 0.4);
}

.social-icons a.medium {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
}
.social-icons a.medium:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
/* social icons end */

/* hero media queries starts*/
@media (max-width: 1024px) {
  .home {
    flex-direction: column-reverse;
    text-align: center;
    padding: 8rem 2rem 3rem 2rem;
    min-height: auto;
    gap: 2rem;
  }
  .home .image img {
    width: 45%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .home {
    padding: 8rem 2rem 2rem 2rem;
  }
  .home .content {
    flex: 1 1 auto;
    padding-top: 1rem;
  }
  .home .image {
    flex: 1 1 auto;
    margin-bottom: 2rem;
  }
  .home .image img {
    width: 50%;
    margin: 0 auto;
  }
  .home .content h1 {
    font-size: 3.5rem;
  }
  .home .content h1 span {
    font-size: 3.5rem;
  }
  .home .content p {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .home .content p span {
    font-size: 2rem;
  }
}

@media (max-width: 450px) {
  .home {
    padding: 8rem 1rem 1rem 1rem;
  }
  .home .btn {
    margin: 2rem 0;
    padding: 1.4rem 2.5rem;
  }
  .home .btn span {
    font-size: 1.5rem;
  }
  .socials {
    margin-top: 2rem;
  }
  .home .image img {
    width: 60%;
    margin: 0 auto;
    margin-top: 1rem;
  }
  .home .content h1 {
    font-size: 3rem;
  }
  .home .content h1 span {
    font-size: 3rem;
  }
  .home .content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  .home .content p span {
    font-size: 1.8rem;
  }
}

@media (max-width: 360px) {
  .home {
    padding: 7rem 0.5rem 1rem 0.5rem;
  }
  .home .image img {
    width: 65%;
    margin-top: 1.5rem;
  }
  .home .content h1 {
    font-size: 2.5rem;
  }
  .home .content h1 span {
    font-size: 2.5rem;
  }
  .home .content p {
    font-size: 1.6rem;
  }
  .home .content p span {
    font-size: 1.6rem;
  }
}
/* hero media queries ends*/
/* hero section end */

/* about section starts */
.about {
  background: rgb(255, 255, 255);
}
.about .row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem;
}
.about .row .image {
  text-align: center;
  flex: 1 1 35rem;
}
.about .row .image img {
  margin: 4rem;
  width: 30rem;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
  transition: 0.3s;
  cursor: pointer;
}
.about .row .image img:hover {
  mix-blend-mode: normal;
}
.about .row .content {
  flex: 1 1 45rem;
  padding: 3rem;
}
.about .row .content h3 {
  color: rgb(27, 27, 27);
  font-size: 2.5rem;
}
.about .row .content .tag {
  font-size: 1.4rem;
  color: #020133;
  font-weight: 600;
  margin-top: 1rem;
}
.about .row .content p {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
  text-transform: none;
}
.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
}
.about .row .content .box-container .box p {
  text-transform: none;
}
.about .row .content .box-container .box p span {
  color: var(--c-accent);
}

/* Enhanced About Section Styles */
.expertise-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #e6f0ff 100%);
  border-radius: 1rem;
  border: 1px solid #e1e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--c-shadow-md);
  border-color: var(--c-accent);
}

.highlight-item i {
  font-size: 3rem;
  color: var(--c-accent);
  min-width: 3rem;
  margin-top: 0.5rem;
}

.highlight-item h4 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.highlight-item p {
  font-size: 1.3rem;
  color: #5a6c7d;
  line-height: 1.4;
  margin: 0;
}

.cert-description {
  color: #5a6c7d;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
  justify-items: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #fff5f5 0%, #f0f8ff 100%);
  border-radius: 1rem;
  border: 1px solid #e8f4f8;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.info-item i {
  font-size: 2.5rem;
  color: var(--c-accent);
  min-width: 2.5rem;
}

.info-item h4 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.info-item p {
  font-size: 1.3rem;
  color: #5a6c7d;
  margin: 0;
}

/* Enhanced Resume Button */
.resumebtn {
  margin-top: 4rem;
}
.resumebtn .btn {
  padding: 1.7rem 3rem;
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  background: linear-gradient(135deg, #ff8d28 0%, #8b5cf6 100%);
  box-shadow: 0 8px 25px rgba(247, 127, 3, 0.3);
  font-family: "Nunito", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.resumebtn .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.resumebtn .btn:hover::before {
  left: 100%;
}

.resumebtn .btn span {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  position: relative;
  z-index: 1;
}
.resumebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.resumebtn .btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(247, 127, 3, 0.4);
}
.resumebtn .btn:hover i {
  transform: translateX(8px);
}
/* about media queries starts*/
@media screen and (max-width: 600px) {
  .about .row .image {
    margin-top: 2rem;
  }
  .about .row .image img {
    margin: 0 auto;
    width: 80%;
    mix-blend-mode: normal;
  }
  .about .row {
    padding: 0.5rem;
    margin-bottom: 7rem;
  }
  .about .row .content {
    padding: 1rem;
  }
  .about .row .content .box-container {
    gap: 0;
  }
  
  /* Enhanced About Section Mobile Styles */
  .expertise-highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .highlight-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .highlight-item i {
    font-size: 2.5rem;
    margin: 0;
  }
  
  .about .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
/* about media queries ends*/
/* about section ends */

/* skills section starts */
.skills {
  min-height: 90vh;
  background: linear-gradient(to bottom, #57059e, #4a00e0);
  padding: 5rem 0;
  margin-bottom: 2rem;
}
.skills h2 {
  color: #fff;
}
.skills .heading span {
  color: rgb(255, 230, 0);
}
.skills .container {
  background: rgba(0, 0, 22, 0.4);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-top: 2rem;
}
.skills .container .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
}
.skills .container .bar {
  margin-bottom: 0;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 22, 0.9);
  transition: 0.3s ease;
  width: 100%;
  max-width: 200px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skills .container .bar:hover {
  box-shadow: 0 8px 20px rgba(0, 2, 68, 0.8) !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
  transform: translateY(-5px);
}
.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  width: 100%;
}
.skills .container .bar .info img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
  transition: all 0.3s ease;
}

.skills .container .bar .info img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.skills .container .bar .info i {
  font-size: 4rem;
}
.skills .container .bar .info span {
  font-size: 1.4rem;
  font-weight: 500;
  font-family: "Poppins";
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
}
/* skills media queries starts*/
@media screen and (max-width: 1200px) {
  .skills .container .row {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 900px) {
  .skills .container .row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .skills .container {
    width: 95%;
  }
}

@media screen and (max-width: 768px) {
  .skills {
    padding: 3rem 0;
    margin-bottom: 1rem;
  }
  .skills .container {
    padding: 2rem 1.5rem;
    margin: 1.5rem auto;
  }
  .skills .container .row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  .skills .container .bar {
    padding: 1.5rem 1rem;
    min-height: 110px;
  }
  .skills .container .bar .info img {
    width: 42px;
    height: 42px;
  }
  .skills .container .bar .info span {
    font-size: 1.2rem;
    line-height: 1.3;
  }
}

@media screen and (max-width: 600px) {
  .skills .container {
    padding: 1.5rem 1rem;
    margin: 1rem auto;
    width: 98%;
  }
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .skills .container .bar {
    padding: 1.5rem 0.8rem;
    min-height: 100px;
    max-width: none;
  }
  .skills .container .bar .info {
    gap: 0.8rem;
  }
  .skills .container .bar .info img {
    width: 38px;
    height: 38px;
  }
  .skills .container .bar .info span {
    font-size: 1.1rem;
    line-height: 1.2;
  }
}

@media screen and (max-width: 480px) {
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .skills .container .bar {
    padding: 1.2rem 0.6rem;
    min-height: 95px;
  }
  .skills .container .bar .info img {
    width: 36px;
    height: 36px;
  }
  .skills .container .bar .info span {
    font-size: 1rem;
    line-height: 1.1;
  }
}

@media screen and (max-width: 360px) {
  .skills .container {
    padding: 1rem 0.5rem;
  }
  .skills .container .row {
    gap: 0.6rem;
  }
  .skills .container .bar {
    padding: 1rem 0.5rem;
    min-height: 85px;
  }
  .skills .container .bar .info {
    gap: 0.6rem;
  }
  .skills .container .bar .info img {
    width: 32px;
    height: 32px;
  }
  .skills .container .bar .info span {
    font-size: 0.9rem;
  }
}
/* skills media queries ends*/
/* skills section ends */


/* experience section starts */
.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}
.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(255, 255, 255);
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  color: #02094b;
  font-family: "Font Awesome\ 5 Free";
}
.experience .left {
  left: 0;
}
.experience .right {
  left: 50%;
}
/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #f68c09;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f68c09;
}
/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #f68c09;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f68c09 transparent transparent;
}
.experience .right::after {
  left: -16px;
}
.experience .content {
  background-color: #f68c09;
  position: relative;
  border-radius: 6px;
}
.experience .content .tag {
  font-size: 1.3rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}
.experience .content .desc {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}
.experience .content .desc h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
.experience .content .desc p {
  font-size: 1.2rem;
}
/* Enhanced More/View All Button */
.morebtn {
  display: flex;
  justify-content: center;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  background: linear-gradient(135deg, #ff8d28 0%, #8b5cf6 100%);
  box-shadow: 0 8px 25px rgba(247, 127, 3, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.morebtn .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.morebtn .btn:hover::before {
  left: 100%;
}

.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
  position: relative;
  z-index: 1;
}
.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.morebtn .btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(247, 127, 3, 0.4);
}
.morebtn .btn:hover i {
  transform: translateX(8px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
  }
  .experience .timeline {
    margin-top: 2rem;
  }
  .experience .timeline::after {
    left: 31px;
  }
  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .experience .container::after {
    font-size: 2.2rem;
  }
  .experience .container::before {
    left: 61px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }
  .experience .left::after {
    left: 15px;
  }
  .experience .right::after {
    left: 15px;
  }
  .experience .right {
    left: 0%;
  }
  .morebtn {
    margin-top: 3rem;
  }
}
/* experience media queries ends */
/* experience section ends */

/* contact section starts */
.contact {
  background: var(--c-surface-alt);
  min-height: 60vh;
}
.contact .container {
  max-width: 1050px;
  width: 100%;
  background: var(--c-surface);
  border-radius: 1.5rem;
  margin: 2rem 5rem;
  box-shadow: var(--c-shadow-sm);
}
.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}
.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}
.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  position: relative;
}
.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}
form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--c-muted);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-bg);
}
.field input::placeholder,
.message textarea::placeholder {
  color: var(--c-muted);
}
.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid var(--c-accent);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: rgb(115, 3, 167);
}
form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}
/* Enhanced Contact Form Button */
.button-area button {
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 1.5rem;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ff8d28 0%, #8b5cf6 100%);
  box-shadow: 0 8px 25px rgba(247, 127, 3, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.button-area button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.button-area button:hover::before {
  left: 100%;
}

.button-area button:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(247, 127, 3, 0.4);
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  color: #fff;
  z-index: 1;
}
.button-area button:hover i {
  left: 10px;
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }
  .contact .container {
    margin: 3rem 0 2rem 0;
  }
  .contact .container .content {
    padding: 18px 12px;
  }
  .contact .content .image-box {
    display: none;
  }
  .contact .content form {
    width: 100%;
    margin: 0 auto;
  }
}
/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: #ffae00;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
  list-style: none;
}
.footer .box-container .box .share a {
  height: 4.4rem;
  width: 4.4rem;
  padding: 0;
  text-align: center;
  border-radius: 1.2rem;
  font-size: 1.8rem;
  margin-right: 1rem;
  display: inline-block;
  line-height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer .box-container .box .share a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.footer .box-container .box .share a:hover::before {
  left: 100%;
}

.footer .box-container .box .share a:active,
.footer .box-container .box .share a:focus,
.footer .box-container .box .share a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer Social Platform Specific Styles */
.footer .box-container .box .share a.github {
  background: linear-gradient(135deg, #333 0%, #24292e 100%);
  color: #fff;
}
.footer .box-container .box .share a.github:hover {
  background: linear-gradient(135deg, #24292e 0%, #000 100%);
  box-shadow: 0 8px 25px rgba(36, 41, 46, 0.4);
}

.footer .box-container .box .share a.linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
  color: #fff;
}
.footer .box-container .box .share a.linkedin:hover {
  background: linear-gradient(135deg, #005582 0%, #004066 100%);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.footer .box-container .box .share a.instagram {
  background: linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
  color: #fff;
}
.footer .box-container .box .share a.instagram:hover {
  background: linear-gradient(135deg, #c13584 0%, #833ab4 50%, #5b2c87 100%);
  box-shadow: 0 8px 25px rgba(196, 53, 132, 0.4);
}

.footer .box-container .box .share a.medium {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
}
.footer .box-container .box .share a.medium:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: #ffae00;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    height: 4rem;
    width: 4rem;
    font-size: 1.6rem;
    margin-right: 0.8rem;
    margin-bottom: 0.5rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: linear-gradient(135deg, #ff8d28 0%, #8b5cf6 100%);
  color: #ffffff;
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */

/* Articles & Blog Section */
.articles {
    background: #fff;
    padding: 5rem 0;
    min-height: auto;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.articles .heading {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 4rem;
}

.articles .heading i {
    color: var(--c-accent);
    margin-right: 1rem;
}

.articles .heading span {
    color: var(--c-accent);
}

.articles-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.articles-content {
    text-align: center;
}

.articles-description {
    color: #5a6c7d;
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.medium-cta {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 2rem;
    padding: 4rem 3rem;
    border: 2px solid #e8f4f8;
    box-shadow: 0 10px 30px rgba(37, 6, 173, 0.1);
    position: relative;
    overflow: hidden;
}

.medium-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 6, 173, 0.05) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.medium-cta:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.medium-content {
    position: relative;
    z-index: 2;
}

.medium-content h3 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.medium-content h3 i {
    color: var(--c-accent);
    font-size: 2.8rem;
}

.medium-content p {
    color: #5a6c7d;
    font-size: 1.4rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.medium-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ff8d28, #8b5cf6);
    color: #ffffff;
    padding: 1.8rem 3.5rem;
    border-radius: 9999px;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(247, 127, 3, 0.3);
    position: relative;
    overflow: hidden;
}

.medium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.medium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(247, 127, 3, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #ff8d28);
}

.medium-btn:hover::before {
    left: 100%;
}

.medium-btn i {
    font-size: 1.4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .articles {
        padding: 4rem 0;
        margin-top: 1rem;
    }
    
    .articles .heading {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .articles-container {
        padding: 0 1rem;
    }
    
    .articles-description {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }
    
    .medium-cta {
        padding: 3rem 2rem;
        border-radius: 1.5rem;
    }
    
    .medium-content h3 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .medium-content h3 i {
        font-size: 2.5rem;
    }
    
    .medium-content p {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }
    
    .medium-btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.4rem;
    }
}

/* AWS Certifications Section - Full Width */
.aws-certifications-section {
    width: 100%;
    background: var(--c-surface);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: var(--c-shadow-lg);
    position: relative;
    overflow: hidden;
}

.aws-certifications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--g-brand-soft);
    pointer-events: none;
}

.certifications-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.certifications-container h3 {
    color: var(--brand-orange-light);
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
    text-shadow: none;
}

.certifications-container h3 i {
    font-size: 2.8rem;
    color: var(--brand-orange-light);
    filter: drop-shadow(0 0 10px var(--c-accent-glow));
}

.certifications-container .cert-description {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
    font-style: normal;
}

.certifications-container .certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.cert-tile {
    background: var(--c-surface);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 152, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    min-height: 280px;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    
    /* Initial animation state */
    transform: translateY(60px) scale(0.9);
    opacity: 0;
    filter: blur(8px);
}

.cert-tile::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff8d28, #8b5cf6, #ff8d28);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

/* Animated state when visible */
.cert-tile.animate {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

/* Shimmer effect when animated */
.cert-tile.animate::after {
    left: 100%;
}

/* Hover effects */
.cert-tile:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 152, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.5);
}

.cert-tile:hover::before {
    opacity: 1;
}

/* Ensure inner div takes full space */
.cert-tile > div {
    width: 100%;
    height: 100%;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force iframe styling */
.cert-tile iframe {
    border: none !important;
    background: transparent !important;
    border-radius: 15px;
    max-width: 100%;
    max-height: 100%;
    width: 150px !important;
    height: 200px !important;
    margin: 0 auto;
    display: block;
}

/* Sequential delays for cascade effect */
.cert-tile:nth-child(1) { transition-delay: 0.1s; }
.cert-tile:nth-child(2) { transition-delay: 0.2s; }
.cert-tile:nth-child(3) { transition-delay: 0.3s; }
.cert-tile:nth-child(4) { transition-delay: 0.4s; }
.cert-tile:nth-child(5) { transition-delay: 0.5s; }
.cert-tile:nth-child(6) { transition-delay: 0.6s; }

/* Floating animation for continuous movement */
.cert-tile.animate {
    animation: float 6s ease-in-out infinite;
}

.cert-tile:nth-child(even).animate {
    animation-delay: -3s; /* Offset even tiles */
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1);
    }
}

/* Pulse effect on hover */
.cert-tile:hover {
    animation: none; /* Stop floating on hover */
    transform: translateY(-15px) scale(1.08);
}

/* AWS Certifications Mobile Responsiveness */
@media (max-width: 1200px) {
  .certifications-container .certifications-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
  }
  .cert-tile {
    width: 200px;
    min-height: 260px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .aws-certifications-section {
    padding: 3rem 1rem;
    margin: 2rem 0;
  }
  .certifications-container {
    padding: 0 1rem;
  }
  .certifications-container h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  .certifications-container .cert-description {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .certifications-container .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
  }
  .cert-tile {
    width: 100%;
    max-width: 180px;
    min-height: 220px;
    padding: 15px;
    margin: 0 auto;
  }
  .cert-tile:hover {
    transform: translateY(-8px) scale(1.03);
  }
  .cert-tile iframe {
    width: 130px !important;
    height: 180px !important;
  }
}

@media (max-width: 480px) {
  .aws-certifications-section {
    padding: 2rem 0.5rem;
  }
  .certifications-container h3 {
    font-size: 2.2rem;
    text-align: center;
  }
  .certifications-container .cert-description {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .certifications-container .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem 0;
  }
  .cert-tile {
    width: 100%;
    max-width: 160px;
    min-height: 200px;
    padding: 12px;
  }
  .cert-tile:hover {
    transform: translateY(-5px) scale(1.02);
  }
  .cert-tile iframe {
    width: 120px !important;
    height: 160px !important;
  }
}

@media (max-width: 360px) {
  .certifications-container .certifications-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .cert-tile {
    max-width: 140px;
    min-height: 180px;
    padding: 10px;
  }
  .certifications-container h3 {
    font-size: 2rem;
  }
  .certifications-container .cert-description {
    font-size: 1.2rem;
  }
  .cert-tile iframe {
    width: 100px !important;
    height: 140px !important;
  }
}

/* Contact Information Section - Full Width */
.contact-info-section {
    width: 100%;
    background: var(--c-surface-alt);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 50px 0;
    margin: 40px 0 0;
    border-radius: 20px 20px 0 0;
}

.contact-info-section .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    background: none;
    border: none;
    border-radius: 0;
}

.contact-info-section .info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--c-surface);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: none;
    border: 1px solid var(--c-border);
    transition: all 0.3s ease;
}

.contact-info-section .info-item:hover {
    transform: translateY(-5px);
    border-color: var(--c-accent);
    box-shadow: var(--c-shadow-md);
}

.contact-info-section .info-item i {
    font-size: 2rem;
    color: var(--c-accent);
    min-width: 40px;
}

.contact-info-section .info-item h4 {
    color: var(--c-text);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-section .info-item p {
    color: var(--c-muted);
    font-size: 1rem;
    margin: 0;
    opacity: 1;
}

/* Mobile Responsive Updates for Full Width Sections */
@media (max-width: 768px) {
    .aws-certifications-section {
        padding: 40px 0;
        margin: 30px 0;
        border-radius: 15px;
    }
    
    .certifications-container {
        padding: 0 20px;
    }
    
    .certifications-container h3 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .certifications-container .cert-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .certifications-container .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .cert-tile {
        padding: 20px;
        min-height: 240px;
        width: 180px;
        border-radius: 15px;
    }
    
    .cert-tile:hover {
        transform: translateY(-10px) scale(1.03);
    }
    
    .contact-info-section {
        padding: 30px 0;
        margin: 30px 0 0;
    }
    
    .contact-info-section .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .contact-info-section .info-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}


/* ============================================================
   DARKIEE BRAND SYSTEM
   dark-first  •  orange × purple  •  deepakpatidar.in
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────
   Tokens + selection/focus/scrollbar now live in the shared
   /assets/css/tokens.css (loaded before this file). ───────── */

/* ── 2. Base ──────────────────────────────────────────────── */
body {
  background: var(--c-bg);
  color: var(--c-text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── 3. Scroll Progress Bar ───────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--g-brand);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── 4. Navbar ────────────────────────────────────────────── */
header {
  background: var(--c-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  gap: 1.5rem;
}

header.scrolled { box-shadow: var(--c-shadow-sm); }

header .logo   { color: var(--c-text); }
header .logo i { color: var(--brand-orange-light); }
header .logo:hover { color: var(--c-accent); }

header .navbar ul li a { color: var(--c-text); }

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#menu { color: var(--c-text); margin-left: 0; }

/* ── 5. Dark-Mode Toggle ──────────────────────────────────── */
#theme-toggle {
  background: transparent;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-text);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background: var(--c-accent-glow);
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: rotate(20deg) scale(1.05);
}

@media (max-width: 768px) {
  .nav-right { display: flex; }
  #theme-toggle { width: 3.2rem; height: 3.2rem; font-size: 1.3rem; }
}

/* ── 6. Hero Section ──────────────────────────────────────── */
.home {
  background: var(--c-bg);
  position: relative;
  isolation: isolate;
}

.home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 40%, rgba(247,127,3,0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(139,92,246,0.10) 0%, transparent 45%);
  pointer-events: none;
}

.home .content        { position: relative; z-index: 1; }
.home .content h1     { color: var(--c-text); }
.home .content p      { color: var(--c-muted); }

/* Stats row */
.hero-stats {
  display: flex;
  gap: 1.6rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 1.2rem;
  padding: 1.6rem 2rem;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 13rem;
}

.hero-stats .stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--g-brand);
}

.hero-stats .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-family: "Poppins", sans-serif;
  text-transform: none;
}

.hero-stats .stat-label {
  font-size: 1.15rem;
  color: var(--c-muted);
  text-transform: none;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

@media (max-width: 768px) {
  .hero-stats { gap: 1.2rem; }
  .hero-stats .stat-number { font-size: 2.4rem; }
  .hero-stats .stat-label  { font-size: 1.1rem; }
}

@media (max-width: 450px) {
  .hero-stats { gap: 1rem; padding-top: 2rem; }
  .hero-stats .stat { padding: 1.2rem 1.4rem; min-width: 10rem; }
  .hero-stats .stat-number { font-size: 2rem; }
}

/* ── 7. About Section ─────────────────────────────────────── */
.about { background: var(--c-surface); }
.about .heading            { color: var(--c-text); }
.about .row .content h3    { color: var(--c-text); }
.about .row .content .tag  { color: var(--c-accent); }
.about .row .content p     { color: var(--c-muted); }

.highlight-item {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-sm);
}

.highlight-item:hover {
  border-color: var(--c-accent);
  box-shadow: var(--c-shadow-md);
}

.highlight-item i  { color: var(--c-accent); }
.highlight-item h4 { color: var(--c-text); }
.highlight-item p  { color: var(--c-muted); }

/* ── 8. Skills Section ────────────────────────────────────── */
.skills { background: var(--c-skills-bg); }

.skills .container {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.skills .container .bar {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: none !important;
}

.skills .container .bar:hover {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.35) !important;
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* ── 9. Articles Section ──────────────────────────────────── */
.articles { background: var(--c-bg); margin-top: 0; }

.articles .heading    { color: var(--c-text); }
.articles-description { color: var(--c-muted); }

.medium-cta {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-sm);
}

.medium-cta:hover { box-shadow: var(--c-shadow-md); }

.medium-content h3 { color: var(--c-text); }
.medium-content p  { color: var(--c-muted); }

/* ── 9b. Book Announcement Card ───────────────────────────── */
.book-announce {
  background: var(--c-bg);
  min-height: auto;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.book-announce .heading { color: var(--c-text); }
.book-announce .heading span { color: var(--c-accent); }

.book-announce-container {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.book-card {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 2rem;
  padding: 3.5rem;
  box-shadow: var(--c-shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--g-brand);
}

.book-card:hover {
  box-shadow: var(--c-shadow-md);
  border-color: rgba(255,141,40,0.5);
}

.book-card-cover { flex-shrink: 0; }

.book-card-cover img {
  display: block;
  width: 16rem;
  height: auto;
  border-radius: .8rem;
  box-shadow: var(--c-shadow-md);
  transition: transform 0.3s ease;
}

.book-card-cover:hover img { transform: translateY(-4px) scale(1.02); }

.book-card-content { flex: 1; text-align: left; }

.book-card-badge {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--g-brand);
  padding: .4rem 1.3rem;
  border-radius: 9999px;
  margin-bottom: 1.4rem;
}

.book-card-content h3 {
  color: var(--c-text);
  font-size: 2.6rem;
  font-weight: 700;
}

.book-card-subtitle {
  color: var(--c-accent);
  font-size: 1.5rem;
  font-weight: 600;
  margin: .4rem 0 1.2rem;
  text-transform: none;
}

.book-card-desc {
  color: var(--c-muted);
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 2.4rem;
  text-transform: none;
}

.book-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ff8d28, #8b5cf6);
  color: #ffffff;
  padding: 1.6rem 3.2rem;
  border-radius: 9999px;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(247, 127, 3, 0.3);
}

.book-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(247, 127, 3, 0.4);
  background: linear-gradient(135deg, #8b5cf6, #ff8d28);
}

.book-card-btn:hover i { transform: translateX(4px); }

@media (max-width: 768px) {
  .book-announce {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .book-card {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
  }

  .book-card-cover img { width: 14rem; }

  .book-card-content { text-align: center; }

  .book-card-content h3 { font-size: 2.2rem; }
}

/* ── 10. Experience Timeline ──────────────────────────────── */
.experience { background: var(--c-bg); }
.experience .heading { color: var(--c-text); }

.experience .timeline::after { background: var(--c-border); width: 2px; }

.experience .container::after {
  background-color: var(--c-surface);
  border: 3px solid var(--c-accent);
  color: var(--c-accent);
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  line-height: 28px;
  right: -18px;
  box-shadow: 0 0 0 6px var(--c-accent-glow);
}

.experience .right::after { left: -18px; }

.experience .container::before { display: none !important; }

.experience .content {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 1.2rem;
  box-shadow: var(--c-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.experience .content:hover {
  box-shadow: var(--c-shadow-md);
  transform: translateY(-4px);
  border-color: rgba(255,141,40,0.5);
}

/* Company tag — brand gradient strip */
.experience .content .tag {
  background: var(--g-brand-diag);
  padding: 1.1rem 1.8rem;
}

.experience .content .tag h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.experience .content .desc {
  padding: 1.2rem 1.8rem 1.6rem;
  margin-left: 0;
}

.experience .content .desc h3 {
  color: var(--c-text);
  font-size: 1.45rem;
  font-weight: 600;
}

.experience .content .desc p {
  color: var(--c-accent);
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: none;
}

.experience .content .desc p::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--c-accent);
  border-radius: 50%;
}

/* ── 11. Contact Section ──────────────────────────────────── */
.contact { background: var(--c-surface-alt); }

.contact .container {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-sm);
}

.contact-glass {
  background: var(--c-surface) !important;
  border: 1px solid var(--c-border) !important;
  box-shadow: var(--c-shadow-sm) !important;
  backdrop-filter: none !important;
}

.contact .content form,
.contact-glass form {
  background: var(--c-bg) !important;
  border: 1px solid var(--c-border) !important;
  box-shadow: none !important;
}

.form-group .field input,
.form-group .message textarea,
form .field input,
form .message textarea {
  background: var(--c-bg) !important;
  border: 1.5px solid var(--c-border-strong) !important;
  color: var(--c-text) !important;
}

.field input::placeholder,
.message textarea::placeholder { color: var(--c-muted); }

.form-group .field input:focus,
.form-group .message textarea:focus,
.field input:focus,
.message textarea:focus {
  border-color: var(--c-accent) !important;
  box-shadow: 0 0 0 3px var(--c-accent-glow) !important;
  outline: none !important;
}

.button-area button {
  background: var(--g-brand-diag) !important;
  box-shadow: 0 4px 14px rgba(247,127,3,0.3) !important;
  border-radius: 9999px !important;
}

.button-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247,127,3,0.45) !important;
}

form i { color: var(--c-muted); }
.field input:focus ~ i,
.message textarea:focus ~ i { color: var(--c-accent); }

/* contact-form shortcut links (replace exposed email) */
.contact-link {
  color: var(--c-accent);
  font-weight: 600;
  text-transform: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-link:hover { border-bottom-color: var(--c-accent); }

/* ── 12. Footer ───────────────────────────────────────────── */
.footer { background: var(--c-footer-bg); }

/* ── 13. Mobile navbar theming ───────────────────────────── */
/* drawer-only: on desktop the navbar must stay transparent over the
   glass header — an unscoped background paints a visible strip */
@media (max-width: 768px) {
  header .navbar { background-color: #0a1020; }

  [data-theme="light"] header .navbar { background-color: #f8fafc; }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    background-color: rgba(255, 141, 40, 0.08);
  }

  [data-theme="light"] header .navbar ul li a.active,
  [data-theme="light"] header .navbar ul li a:hover {
    background-color: rgba(201, 98, 0, 0.08);
  }
}

/* ── 14. Light-mode mobile nav text fix ───────────────────── */
@media (max-width: 768px) {
  [data-theme="light"] header .navbar ul li a {
    color: var(--c-text);
  }
}

/* ── 15. Scroll-to-top brand button ───────────────────────── */
#scroll-top {
  background: var(--g-brand-diag);
  color: #ffffff;
  box-shadow: var(--c-shadow-md);
}

/* ── 16. Cert tile brand surface ──────────────────────────── */
.cert-tile {
  background: var(--c-surface);
  border-color: var(--c-border);
  box-shadow: var(--c-shadow-md);
}

.cert-tile:hover {
  border-color: var(--c-accent) !important;
  box-shadow: var(--c-shadow-lg) !important;
}

.certifications-container .cert-description {
  color: var(--c-muted);
  opacity: 1;
}

/* ── 17. Hero h2 span gradient text insurance ─────────────── */
.home .content h1 span {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 18. Hero typed text accent ───────────────────────────── */
.home .content p span { color: var(--c-accent); }

/* ── 19. Footer brand link colors ────────────────────────── */
.footer .box-container .box p i { color: var(--c-accent); }
.footer .box-container .box a:hover { color: var(--c-accent); }
.footer .credit a { color: var(--c-accent); }

/* ── 20. Ask-AI chat widget styles moved to assets/css/ask-ai.css ── */

/* ── 21. Contact form: validation + status ───────────────── */
/* per-field error message */
.field-error {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  margin: 0 0 0 0.4rem; font-size: 1.25rem; line-height: 1.4; color: #ef4444;
  text-transform: none;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}
.field-error.show { max-height: 4rem; opacity: 1; margin: 0.4rem 0 0.6rem 0.4rem; }
.field-error::before { content: "\26A0"; margin-right: 0.5rem; font-size: 1.2rem; }
/* invalid field highlight (works with the existing form styles) */
.field.invalid input,
.message.invalid textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.field.invalid i { color: #ef4444 !important; }

/* status line */
.contact-status {
  margin-top: 1.4rem; font-size: 1.45rem; line-height: 1.5; min-height: 1.6rem;
  color: var(--c-muted); text-transform: none; transition: color 0.2s ease;
}
.contact-status.is-ok {
  color: #16a34a; font-weight: 600;
  background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 1.1rem 1.4rem; border-radius: 1rem; animation: contact-pop 0.3s ease;
}
.contact-status.is-err { color: #ef4444; font-weight: 600; }
.contact-status.is-warn { color: var(--c-accent); font-weight: 600; }
.contact-status.is-sending { color: var(--c-muted); }
@keyframes contact-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* submit button sending state */
.button-area button.sending { opacity: 0.75; cursor: progress; }
.button-area button.sending i { animation: contact-spin 0.8s linear infinite; }
@keyframes contact-spin { to { transform: rotate(360deg); } }

/* Global reduced-motion: tame heavy hero animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ── 22. Homepage Featured Projects section (theme-aware) ─── */
.projects { background: var(--c-bg); padding: 6rem 0 7rem; min-height: auto; position: relative; z-index: 1; }
.projects .heading { color: var(--c-text); }
.home-projects-grid {
  display: grid; gap: 2.4rem; max-width: 120rem; margin: 0 auto; padding: 0 2rem;
  grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
}
.home-projects-grid .proj-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 1.6rem;
  box-shadow: var(--c-shadow-md);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.home-projects-grid .proj-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--g-brand-diag); opacity: 0; transition: opacity .3s ease; z-index: 2; }
.home-projects-grid .proj-card:hover { transform: translateY(-6px); border-color: var(--c-accent); box-shadow: var(--c-shadow-lg); }
.home-projects-grid .proj-card:hover::before { opacity: 1; }
.home-projects-grid .proj-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-alt); }
.home-projects-grid .proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.home-projects-grid .proj-card:hover .proj-thumb img { transform: scale(1.06); }
.home-projects-grid .proj-badge {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.15rem; font-weight: 700; color: #fff; padding: .5rem 1.1rem; border-radius: 5rem;
  background: rgba(8,12,22,0.72); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.home-projects-grid .live-dot { width: .8rem; height: .8rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: proj-ping 1.8s infinite; }
@keyframes proj-ping { 70%, 100% { box-shadow: 0 0 0 .7rem rgba(74,222,128,0); } }
.home-projects-grid .proj-body { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; flex: 1; }
.home-projects-grid .proj-tag {
  align-self: flex-start; font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--c-accent); background: var(--c-accent-glow); border: 1px solid var(--c-border-strong); padding: .45rem 1.1rem; border-radius: 5rem;
}
.home-projects-grid .proj-body h3 { font-size: 2rem; font-weight: 700; color: var(--c-text); margin: 0; line-height: 1.25; }
.home-projects-grid .proj-body p { font-size: 1.4rem; line-height: 1.6; color: var(--c-muted); margin: 0; }
.home-projects-grid .proj-tech { display: flex; flex-wrap: wrap; gap: .6rem; }
.home-projects-grid .proj-tech span { font-size: 1.15rem; color: var(--c-text); background: var(--c-surface-alt); border: 1px solid var(--c-border); padding: .4rem .9rem; border-radius: .7rem; }
.home-projects-grid .proj-links { display: flex; gap: 1rem; margin-top: .6rem; flex-wrap: wrap; }
.home-projects-grid .proj-btn {
  display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 600; text-decoration: none;
  padding: .9rem 1.6rem; border-radius: 5rem; color: var(--c-text); background: var(--c-surface-alt);
  border: 1px solid var(--c-border-strong); transition: transform .2s ease, filter .2s ease;
}
.home-projects-grid .proj-btn:hover { transform: translateY(-2px); }
.home-projects-grid .proj-btn.primary { background: var(--g-brand-diag); border: none; color: #fff; }
.projects-cta { text-align: center; margin-top: 4.5rem; }
.projects-allbtn {
  display: inline-flex; align-items: center; gap: .8rem; font-size: 1.6rem; font-weight: 700; text-decoration: none;
  padding: 1.4rem 3rem; border-radius: 5rem; color: #fff; background: var(--g-brand-diag);
  box-shadow: 0 8px 24px rgba(139,92,246,.3); transition: transform .2s ease, box-shadow .2s ease;
}
.projects-allbtn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(139,92,246,.45); color: #fff; }
@media (max-width: 480px) { .home-projects-grid { grid-template-columns: 1fr; } }
