/* remove underlines and inherit text color */
.kill-link-style {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.kill-link-style:hover {
  opacity: 0.7;
}

/* “magical” animated underline on hover */
.underline--magical {
  position: relative;
  display: inline-block;
}
.underline--magical::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background-color: #10B981;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}
.underline--magical:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Animate.css delay helpers */
.delay1 { animation-delay: 0.2s; }
.delay2 { animation-delay: 0.4s; }
.delay3 { animation-delay: 0.6s; }

.logo-box {
  display: inline-block;
  user-select: none;

  /* Animate.css defaults */
  --animate-duration: 1s;
  --animate-delay: 1s;
  --animate-repeat: 1;
  animation-duration: var(--animate-duration);
  animation-fill-mode: both;
  animation-name: fadeInDown;
  transform: translate3d(0, 0, 0);
  opacity: 1;

  /* Border, sizing & typography */
  border-style: solid;
  border-width: 4px;
  border-radius: .375rem;         
  border-color: #111827;         
  padding: .5rem;                  
  font-size: 1.875rem;               
  line-height: 2.25rem;               
  font-weight: 800;                
  color: #111827;                  
}

.logo-box:hover {
  border-color: #047857;
}

.nav-menu-link {
  display: inline-block;
  margin-left: 1.5rem;   
  margin-right: 0.75rem; 
  padding: 0 0.25rem;    
  font-size: 1.875rem;      
  line-height: 2.25rem;      
  font-weight: 800;        
  cursor: pointer;
  color: inherit;
  text-decoration: none;

  /* persistent underline: a 0.25em high green bar at bottom */
  background-image: linear-gradient(120deg, #35D399 0%, #35D399 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.25em;
  background-position: left bottom;

  /* transitions for the fill and text color */
  transition: background-size 0.4s ease-in-out,
              color           0.4s ease-in-out;
}

.nav-menu-link:hover {
  /* grow that background from bottom → top to fill the whole box */
  background-size: 100% 100%;
  /* switch text to white so it stands out on the green fill */
  color: #000000;
}

#main-nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background-color: transparent;
  z-index: 50;
}

/* pseudo-element draws the green bar */
#main-nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1.5rem;              
  background-color: #35D399;    
  transition: height 0.3s ease-in-out;
  z-index: -1;                 
}

/* When scrolled: expand that bar to fill the nav’s full height */
#main-nav.scrolled::before {
  height: 100%;
}

/* Link colors: dark on white, flip to white on green */
#main-nav .nav-menu-link {
  color: #111827;              
  transition: color 0.3s ease;
  transition: background-size 0.4s ease-in-out, color 0.4s ease-in-out;
}
#main-nav.scrolled .nav-menu-link {
  color: #111827;  
  background-image: linear-gradient(120deg, #ca3bf6 0%, #ca3bf6 100%); /* blue-500 */
  background-repeat: no-repeat;
  background-size: 100% 0.25em;  
  background-position: left bottom;
}

#main-nav.scrolled .nav-menu-link:hover {
  background-size: 100% 100%;    
  color: #030202;                
}

.contact-box {
  display: inline-block;
  user-select: none;
  border: 4px solid #111827;     
  border-radius: .375rem;         
  padding: .5rem;                 
  font-size: 1.875rem;             
  line-height: 2.25rem;             
  font-weight: 800;               
  color: #111827;                
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-box:hover {
  background-color: #111827;     
  color: #ffffff;                
}

/* Honeycomb layout */
.honeycomb-container {
  margin: 3rem auto;
  padding: 1rem 0 2.4rem;
  text-align: center;
  max-width: 50rem;
}

/* Make images block for sizing, then hide them */
.honeycomb-container img {
  width: 100%;
  display: block;
}
.honeycomb-container .honeycomb-item img {
  visibility: hidden;
}

/* Basic hexagon fallback (inline-block) */
.honeycomb-container .honeycomb-item {
  width: 10rem;
  height: 10rem;
  position: relative;
  display: inline-block;
  margin: 0.4rem;
}

/* Goldenrod “outline” hexagon */
.honeycomb-container .honeycomb-item::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background-color: #ca3bf6;  
  clip-path: polygon(
    50% 0%, 93.3% 25%, 93.3% 75%,
    50% 100%, 6.7% 75%, 6.7% 25%
  );
  transform: scale(1.077);
  transition: transform 0.3s;
}
.honeycomb-container .honeycomb-item:hover::before {
  transform: scale(1.154);
}

/* Fill-in tile via background-image (set by JS) */
.honeycomb-container .honeycomb-item a {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background-size: cover;
  background-position: center;
  clip-path: polygon(
    50% 0%, 93.3% 25%, 93.3% 75%,
    50% 100%, 6.7% 75%, 6.7% 25%
  );
}

/* CSS Grid honeycomb for modern browsers */
@supports (display: grid) {
  /* 3-column honeycomb at small widths */
  @media (min-width: 17rem) {
    .honeycomb-container {
      display: grid;
      max-width: 15rem;
      grid-template-columns: repeat(3, 5rem);
    }
    .honeycomb-container .honeycomb-item {
      grid-column: span 2;
      margin: 0;
      margin-bottom: -1.4rem;
    }
    .honeycomb-container .honeycomb-item:nth-child(even) {
      grid-column: 2;
    }
  }
  /* 4-column honeycomb */
  @media (min-width: 22rem) {
    .honeycomb-container {
      max-width: 20rem;
      grid-template-columns: repeat(4, 5rem);
    }
    .honeycomb-container .honeycomb-item:nth-child(3n+1) {grid-column: 1}
    .honeycomb-container .honeycomb-item:nth-child(3n+2) {grid-column: 3}
    .honeycomb-container .honeycomb-item:nth-child(3n+0) {grid-column: 2}
  }
  /* 6-column honeycomb */
  @media (min-width: 32rem) {
    .honeycomb-container {
      max-width: 30rem;
      grid-template-columns: repeat(6, 5rem);
    }
    .honeycomb-container .honeycomb-item:nth-child(5n+1) {grid-column:1}
    .honeycomb-container .honeycomb-item:nth-child(5n+2) {grid-column:3}
    .honeycomb-container .honeycomb-item:nth-child(5n+3) {grid-column:5}
    .honeycomb-container .honeycomb-item:nth-child(5n+4) {grid-column:2}
    .honeycomb-container .honeycomb-item:nth-child(5n+0) {grid-column:4}
  }
  /* 8-column honeycomb */
  @media (min-width: 42rem) {
    .honeycomb-container {
      max-width: 40rem;
      grid-template-columns: repeat(8, 5rem);
    }
    .honeycomb-container .honeycomb-item:nth-child(7n+1) {grid-column:1}
    .honeycomb-container .honeycomb-item:nth-child(7n+2) {grid-column:3}
    .honeycomb-container .honeycomb-item:nth-child(7n+3) {grid-column:5}
    .honeycomb-container .honeycomb-item:nth-child(7n+4) {grid-column:7}
    .honeycomb-container .honeycomb-item:nth-child(7n+5) {grid-column:2}
    .honeycomb-container .honeycomb-item:nth-child(7n+6) {grid-column:4}
    .honeycomb-container .honeycomb-item:nth-child(7n+0) {grid-column:6}
  }
  /* 10-column honeycomb */
  @media (min-width: 54rem) {
    .honeycomb-container {
      max-width: 50rem;
      grid-template-columns: repeat(10, 5rem);
    }
    .honeycomb-container .honeycomb-item:nth-child(9n+1) {grid-column:1}
    .honeycomb-container .honeycomb-item:nth-child(9n+2) {grid-column:3}
    .honeycomb-container .honeycomb-item:nth-child(9n+3) {grid-column:5}
    .honeycomb-container .honeycomb-item:nth-child(9n+4) {grid-column:7}
    .honeycomb-container .honeycomb-item:nth-child(9n+5) {grid-column:9}
    .honeycomb-container .honeycomb-item:nth-child(9n+6) {grid-column:2}
    .honeycomb-container .honeycomb-item:nth-child(9n+7) {grid-column:4}
    .honeycomb-container .honeycomb-item:nth-child(9n+8) {grid-column:6}
    .honeycomb-container .honeycomb-item:nth-child(9n+0) {grid-column:8}
  }
}
.certifications-swiper {
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;    
  position: relative;   
}

/* still let the inner wrapper overflow so looped clones can slide in/out */
.certifications-swiper .swiper-wrapper {
  overflow: visible !important;
}

.certifications-swiper .swiper-slide {
  background: #1f1f2e;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;      /* card width */
  max-width: 300px;

  position: relative;
  box-shadow:
    0 0 10px rgba(255,255,255,0.1), 
    0 0 20px rgba(53,211,153,0.25);
}

.certifications-swiper .swiper-button-prev,
.certifications-swiper .swiper-button-next {
  overflow: visible;    /* prevent clipping on the buttons */
  z-index: 20;          
}

.certifications-swiper .swiper-pagination-bullet {
  background: #666;
  opacity: 1;
}
.certifications-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

/* ===== Contact form styling ===== */
.contact_us .responsive-container-block.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}


.contact_us .form-wrapper {
  background: #3c0174;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(202, 59, 246, 0.7);
}

.contact_us .responsive-container-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact_us .responsive-cell-block {
  flex: 1 1 calc(50% - 1rem);
  min-width: 200px;
}
.contact_us .responsive-cell-block.full-width {
  flex: 1 1 100%;
}

.contact_us .input,
.contact_us .textinput {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact_us .input:focus,
.contact_us .textinput:focus {
  outline: none;
  border-color: #ca3bf6;
  box-shadow: 0 0 8px rgba(202, 59, 246, 0.7);
}

.contact_us .submit-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background-color: #ca3bf6;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.contact_us .submit-btn:hover {
  box-shadow: 0 0 12px rgba(202, 59, 246, 0.9);
}

/* Mobile: stack everything */
@media (max-width: 640px) {
  .contact_us .responsive-cell-block {
    flex: 1 1 100%;
  }
}

.contact_us .contact-form-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #ca3bf6;     
}

.model-container {
  flex: 0 0 200px;    /* don’t grow or shrink */
  margin-right: 1.5rem;
}

/* Push the form left instead of centering */
.contact_us .responsive-container-block.container {
  margin: 0;          /* override the auto-centering */
  padding: 1rem 0;    /* keep your vertical padding */
}

.big-globe {
  width: 500px;
  height: 500px;
}

/* Turn  2‑col flex into a 2‑col grid */
.contact_us .container-block.form-wrapper .responsive-container-block {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;             /* space between all rows & columns */
}

/* center the Send Message button */
.contact_us .submit-btn {
  display: block;       
  margin: 1.5rem auto 0;
}

.honeycomb-container .honeycomb-item a {
  cursor: default;
}

.certification-card img {
  max-height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 1rem; /* centers + adds bottom gutter */
}

/* ================================
   Projects Section: Glass Cards
   ================================ */
#projects {
  position: relative;
  padding: 4rem 0;
}

#projects .card-wrapper {
  position: relative;
  width: 320px;
  height: 520px; 
  margin: 0 auto;
}

#projects .card-wrapper .card {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 500px;
  border-radius: 16px;
  background: rgba(25, 25, 25, 0.67);
  backdrop-filter: blur(4px);
  box-shadow:
    inset 0 2px 2px rgba(231,196,160,0.53),
    inset 0 -2px 2px rgba(0,0,0,0.20);
  color: #ccc;
  text-shadow: 1px 1px 3px #333a;
  padding: 24px 42px 24px 24px;
  z-index: 10;
}

#projects .card-wrapper .card h2,
#projects .card-wrapper .card p {
  margin: 8px 0;
}

#projects .card-wrapper .card .button {
  display: inline-block;
  width: fit-content;
  border-radius: 100px;
  padding: 8px 36px;
  margin-top: 12px;
  background: rgba(255,255,255,0.13);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.20),
    inset 120px 0 100px -100px rgba(0,0,0,0.80);
  cursor: pointer;
  transition: box-shadow 0.4s ease-in-out;
}
#projects .card-wrapper .card .button:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.20),
    inset 200px 0 100px -100px rgba(0,0,0,0.60),
    -4px 0 8px 2px rgba(255,255,255,0.13);
}

/* The wobbling “glass‐back” accents */
#projects .card-wrapper .accents {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 520px;
  pointer-events: none;
  user-select: none;
  z-index: 5;
}

#projects .card-wrapper .accents .acc-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  height: 500px;
  background: rgba(238,238,238,0.88);
  opacity: 0.8;
  border-radius: 16px;
  box-shadow:
    inset 0 2px 2px rgba(224,201,178,0.40),
    inset 0 -2px 2px rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}
#projects .card-wrapper .accents .acc-card:nth-child(1) {
  animation: wobble 18s ease-in-out infinite;
}
#projects .card-wrapper .accents .acc-card:nth-child(2) {
  animation: wobble 22s ease-in-out -6s infinite reverse;
}
#projects .card-wrapper .accents .acc-card:nth-child(3) {
  animation: wobble 26s ease-in-out -18s infinite;
}

#projects .card-wrapper .accents .light {
  position: absolute;
  top: 50%; left: -60px;       
  width: 200px; height: 200px;
  border: 4px solid transparent;
  border-top-color: rgba(202,59,246,0.9);
  border-right-color: rgba(202,59,246,0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(202,59,246,0.5);
  animation: spin 2.5s linear infinite;
  pointer-events: none;
  z-index: 5;
}

#projects .card-wrapper .accents .light.sm {
  position: absolute;
  top: 20%; right: -40px;       
  width: 140px; height: 140px;
  border: 4px solid transparent;
  border-top-color: rgba(202,59,246,0.9);
  border-right-color: rgba(202,59,246,0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(202,59,246,0.5);
  animation: spin 1.5s linear infinite;
  animation-delay: 0.2s;
  pointer-events: none;
  z-index: 5;
}

#projects .card-wrapper .accents {
  .top-light {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 284px;
    height: 6px;
    background: #fffef9;
    border-radius: 10px;
    box-shadow:
      0   0px  1px  1px  #ffc78e,
      0   1px   2px  1px  #ff942977,
      0   2px   6px  1px  #e98b2d77,
      0   4px  12px  0px  #ff9e3d99,
      0  12px  20px 12px  #ff800044;
    z-index: 5;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Animations */
@keyframes wobble {
  0%   { transform: translateX(-50%) translateY(20px) rotate(-3deg) scale(1); }
  20%  { transform: translateX(-50%) translateX(-44px) translateY(-8px) rotate(6deg) scale(1.02); }
  60%  { transform: translateX(-50%) translateX(32px) translateY(18px) rotate(-8deg) scale(1); }
  80%  { transform: translateX(-50%) translateX(-42px) translateY(-22px) rotate(12deg) scale(0.94); }
  100% { transform: translateX(-50%) translateY(20px) rotate(-3deg) scale(1); }
}

accents .acc-card {
  animation: wobble 18s linear infinite alternate both;
}

/* ————— Projects: spinning purple trail ————— */
#projects .card-wrapper {
  width: 320px;
  height: 520px; 
  position: relative;
  margin-bottom: 4rem; 
}

/* outer ring */
#projects .card-wrapper .accents .light {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border: 4px solid transparent;
  border-top-color: rgba(202,59,246,0.9);
  border-right-color: rgba(202,59,246,0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(202,59,246,0.5);
  animation: spin 5s linear infinite;
  pointer-events: none;
  z-index: 5;
}

/* inner ring */
#projects .card-wrapper .accents .light.sm {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border: 4px solid transparent;
  border-top-color: rgba(202,59,246,0.9);
  border-right-color: rgba(202,59,246,0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(202,59,246,0.5);
  animation: spin 3s linear infinite;
  animation-delay: 0.2s;
  pointer-events: none;
  z-index: 5;
}


/* 360° spin keyframes */
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==== peek‑out rings for Projects cards ==== */
#projects .card-wrapper .accents .light {
  left: -60px;           
  top: 70%;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center center;
}

/* inner ring peeks out right */
#projects .card-wrapper .accents .light.sm {
  left: auto;            
  right: -40px;        
  top: 20%;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center center;
}

/* spin animation must preserve that translateY(-50%) */
@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

#projects {
  background-color: #343434;  
  padding-top: 4rem;          
  padding-bottom: 4rem;
}

@media (max-width: 640px) {
  .big-globe {
    width: 400px;
    height: 400px;
  }
}

/* mobile‑only tweaks */
@media (max-width: 640px) {
  html {
    font-size: 14px;  
  }

  /* reduce the card‑wrapper width so it never overflows */
  #projects .card-wrapper {
    width: 90%;
    max-width: 280px;   
    height: auto;
  }

  /* make the glass card itself fluid */
  #projects .card-wrapper {
    width: 90%;
    max-width: 280px;

    height: 520px;
  }


  /*hide or tweak the purple rings on mobile: */
  #projects .card-wrapper .accents .light,
  #projects .card-wrapper .accents .light.sm {
    display: none;
  }

  /* tighten up nav/logo/font sizes */
  .logo-box {
    padding: .5rem;
    font-size: 1.5rem;
  }
  .nav-menu-link, .contact-box {
    font-size: 1.25rem;
  }


}

/* ─────── socials ─────── */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #fff;
  color: #444;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.75rem;      /* icon size */
  transition: background 0.3s, color 0.3s, transform 0.3s;
  position: relative;
}

.social-button:hover {
  transform: scale(1.1);
  color: #fff;
}

/* platform brand colors */
.social-button--linkedin   { color: #0077b5; }
.social-button--github     { color: #6e5494; }
.social-button--instagram {color: #e4405f;}

/* hover background same as brand */
.social-button--linkedin:hover { background: #0077b5; }
.social-button--github:hover   { background: #6e5494; }
.social-button--instagram:hover {background: #e4405f; color: #fff;}

.mv-hidden-progress {
  display: none;
  visibility: hidden;
}

