/* --------------------------------- */
/* ----- Basic Setup -----*/
/* --------------------------------- */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("fonts/Mona-Sans.woff2") format("woff2-variations");
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

:root {
  --h1: 3.5rem;
  --h2: 3rem;
  --h3: 2.145rem;
  --h4: 1.5rem;
  --text-large: 1.6rem;
  --text-medium: 1.275rem;
  --text-small: 1.125rem;

  --gradient-brand: radial-gradient(
      at 60% 31%,
      rgb(255, 131, 139) 0px,
      transparent 50%
    ),
    radial-gradient(at 48% 98%, rgba(0, 255, 166, 0.707) 0px, transparent 50%),
    radial-gradient(at 84% 67%, rgb(255, 129, 125) 0px, transparent 50%),
    radial-gradient(at 16% 47%, rgb(255, 90, 112) 0px, transparent 50%),
    radial-gradient(at 73% 11%, rgb(115, 255, 225) 0px, transparent 50%),
    radial-gradient(at 49% 37%, rgba(255, 249, 89, 0.695) 0px, transparent 50%),
    radial-gradient(at 70% 21%, rgba(58, 255, 186, 0.715) 0px, transparent 50%);
  --easing: cubic-bezier(0.86, 0, 0.07, 1);

  --site-max-width: 1280px;
  --gutter-nano: 0.5rem;
  --gutter-micro: 1rem;
  --gutter-x-small: 1.5rem;
  --gutter-small: 2rem;
  --gutter-medium: 2.5rem;
  --gutter-large: 3rem;
  --gutter-x-large: 6rem;
  --gutter-huge: 8rem;

  --scroll-padding: 4.375rem;
  --radius: 85px;
}

body.dark {
  --bg-color-primary: #0c0a0a;
  --bg-color-secondary: #161211;
  --important: #fff;
  --sub: #c3c3c3;
  --body: #989898;
  --border: #c0c0c015;
  --border-dark: #c0c0c02f;
  --gradient-border: linear-gradient(to left bottom, #777, #0e0d0d);
  --shadow: 0 1rem 1rem #00000040;
}

body.light {
  --bg-color-primary: #fbfbfb;
  --bg-color-secondary: #ffffff;
  --important: #000;
  --sub: #111;
  --body: #585b63;
  --border: #62626234;
  --border-dark: #5e5e5e1f;
  --gradient-border: linear-gradient(to left bottom, #000000c6, #0e0d0d00);
  --shadow: 0 1rem 1rem rgba(0, 0, 0, 0.25);
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: "Mona Sans", sans-serif;
  box-sizing: border-box;
  scroll-padding-top: var(--scroll-padding);
}

@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 645px) {
  html {
    font-size: 80%;
  }
}

body {
  font-size: var(--text-medium);
  color: var(--body);
  background-color: var(--bg-color-primary);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Improve media defaults */

picture,
svg,
img {
  display: block;
  max-inline-size: 100%;
  object-fit: contain;
}

textarea {
  resize: none;
}

/* --------------------------------- */
/* ----- Typography -----*/
/* --------------------------------- */

input,
textarea,
button {
  font: inherit;
}

p,
h1,
h2,
h3,
.h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.h4 {
  font-stretch: 125%;
  line-height: 1.2;
  color: var(--important);
}

.h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.h2 {
  font-size: var(--h2);
  text-align: center;
}

.h3 {
  font-size: var(--h3);
}

.h4 {
  font-size: var(--h4);
}

@media (max-width: 845px) {
  :root {
    --h1: 2.845rem;
    --h2: 2.45rem;
    --h3: 1.85rem;
  }
}

@media (max-width: 700px) {
  :root {
    --h1: 2.545rem;
  }
}

@media (max-width: 545px) {
  :root {
    --h1: 2.4rem;
    --text-large: 1.5rem;
  }
}

@media (max-width: 485px) {
  :root {
    --h1: 2.145rem;
    --h2: 1.875rem;
    --h3: 1.6rem;
    --text-large: 1.345rem;
  }
}

/* --------------------------------- */
/* ----- Utilities -----*/
/* --------------------------------- */

/* Center and constrain the width of page sections */

.container {
  max-inline-size: var(--site-max-width);
  margin-inline: auto;
}

@media (max-width: 1375px) {
  :root {
    --site-max-width: 1160px;
  }
}

@media (max-width: 1275px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

@media (max-width: 1200px) {
  .container {
    padding-inline: var(--gutter-medium);
  }
}

@media (max-width: 575px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

/* disable scroll when menu is opened */

.lock-screen {
  overflow-y: hidden;
}

/* hides visually and removes from accessibility tree  */

.hidden {
  visibility: hidden;
  transform: translateX(-100%);
}

.transform {
  transform: translateY(6rem);
  opacity: 0;
}

.shown {
  transition: 0.1s;
  color: lightgrey;
}

/* --------------------------------- */
/* ----- Components -----*/
/* --------------------------------- */

.btn {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 18px 60px;
  border-radius: var(--gutter-nano);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

@media (max-width: 700px) {
  .btn {
    padding: 16px 48px;
  }
}

@media (max-width: 485px) {
  .btn {
    font-size: 1.2rem;
    padding: 14px 38px;
  }
}

.btn-cta {
  color: var(--bg-color-primary);
  background-color: var(--important);
}

body.dark .btn-cta:hover,
body.dark .btn-cta:focus {
  box-shadow: #ffffff40 0 0 0 var(--gutter-nano);
}

body.light .btn-cta:hover,
body.light .btn-cta:focus {
  box-shadow: #07070733 0 0 0 var(--gutter-nano);
}

.btn-secondary {
  border: 1px solid var(--border-dark);
  color: var(--important);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--important);
}

.link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-small);
  padding: var(--gutter-nano) 0;
  text-decoration: none;
  color: var(--important);
  position: relative;
}

.link::after,
.link::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-block-start: var(--gutter-nano);
  position: absolute;
  bottom: -1px;
  left: 0;
  transition: 300ms;
}

body.dark .link::before {
  background-color: #d3d3d357;
}

body.dark .link::after {
  background-color: white;
}

body.light .link::before {
  background-color: lightgray;
}

body.light .link::after {
  background-color: black;
}

.link::after {
  background-color: white;
  transform-origin: left;
  transform: scaleX(0);
}

.link:hover::after,
.link:focus::after {
  transform: scaleX(1);
}

/* --------------------------------- */
/* ----- Layout -----*/
/* --------------------------------- */

section:not(:first-child) {
  padding-block-start: var(--gutter-huge);
}

section:first-child {
  padding-block-start: 7rem;
}

@media (max-width: 885px) {
  :root {
    --gutter-huge: 8rem;
    --gutter-x-large: 4rem;
  }
}

main {
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: var(--bg-color-primary);
  transform: translateY(calc(-1 * var(--radius)));
}

@media (max-width: 1185px) {
  :root {
    --radius: 45px;
  }
}

/* --------------------------------- */
/* ----- Menu Button -----*/
/* --------------------------------- */

.menu-btn-container {
  position: fixed;
  width: 100%;
  top: var(--gutter-x-small);
  left: 0;
  z-index: 4;
}

.menu-btn {
  display: block;
  margin-inline-start: auto;
  border: 1px solid var(--border-dark);
  inline-size: 132px;
  padding-block: var(--gutter-nano);
  border-radius: var(--gutter-large);
  text-decoration: none;
  background-color: var(--bg-color-secondary);
  color: var(--important);
  cursor: pointer;
}

.menu-btn,
.nav-items a {
  font-stretch: 125%;
  font-weight: 900;
}

/* --------------------------------- */
/* ----- Navigation -----*/
/* --------------------------------- */

 /* Light Mode*/
body.light .nav {
  min-block-size: 100vh;
  position: fixed;
  width: 100%;
  background-color: #ffffff; /* Light base color */
  background-image: url('images/hero-bg-light.webp'); /* Set the light mode background image */
  background-size: cover; /* Ensures the background covers the navbar area */
  background-position: center center; /* Centers the background image */
  transition: 450ms var(--easing);
  z-index: 3;
}

/* Dark Mode */
body.dark .nav {
  min-block-size: 100vh;
  position: fixed;
  width: 100%;
  background-color: #1a1a1a; /* Dark base color */
  background-image: url('images/hero-bg.webp'); /* Set the dark mode background image */
  background-size: cover; /* Ensures the background covers the navbar area */
  background-position: center center; /* Centers the background image */
  transition: 450ms var(--easing);
  z-index: 3;
}


.nav-items {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%) translateX(-15%);
  list-style-type: none;
}

.nav-item:not(:last-child) {
  margin-block-end: var(--gutter-x-small);
}

.nav-item a {
  display: inline-block;
  font-size: var(--h2);
  text-decoration: none;
  color: #fff;
}

.nav-item a::after {
  content: "";
  display: block;
  block-size: var(--gutter-nano);
  width: 100%;
  transform: scale(0);
  transform-origin: left;
  background-color: white;
  transition: transform 250ms var(--easing);
}

.nav-item a:hover::after,
.nav-item a:focus::after {
  transform: scale(1);
}

/* --------------------------------- */
/* ----- Header -----*/
/* --------------------------------- */

.header {
  min-block-size: 60vh;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.dark .header {
  background-image: linear-gradient(#0000008b, #000000e6),
    url("images/hero-bg.webp");
}

body.light .header {
  background-image: linear-gradient(#ffffffa2, #ffffffe6),
    url("images/hero-bg-light.webp");
}

.header-textbox {
  width: 100%;
  padding-block: 4rem;
}

.h1 span {
  display: block;
}

.header-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  max-width: 600px;
  margin-block: 1rem 2rem;
  max-inline-size: 745px;
  margin-block-start: var(--gutter-micro);
  margin-block-end: var(--gutter-medium);
}

@media (max-width: 1200px) {
  .header-text {
    max-inline-size: 685px;
  }
}

@media (max-width: 845px) {
  .header-flex {
    flex-direction: row;      /* ✅ keep side-by-side */
    gap: 1.25rem;
    text-align: left;         /* so text stays readable */
  }

  .header-content {
    flex: 1 1 50%;
  }

  .header-image-wrap {
    flex: 0 0 200px;          /* shrink if needed */
  }

  .header-text {
    font-size: calc(var(--text-large) - 0.45rem); /* make smaller to fit */
    max-inline-size: 100%;
  }
}

/* Button container */
.header-btns {
  display: flex;
  flex-wrap: nowrap;  /* ✅ always one row */
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-start;
}

/* Responsive button sizing */
.header-btns a {
  white-space: nowrap;
  flex: 1 1 0;         /* ✅ shrink evenly when needed */
  min-width: 0;        /* ✅ allows shrinking smaller than content */
  text-align: center;
  padding: 0.5rem 0.8rem;   /* slightly smaller padding */
  font-size: clamp(0.7rem, 2vw, 1rem);  /* ✅ scale text */
}


@media (max-width: 400px) {
  .header-textbox {
    left: 0;
    text-align: center;
    padding-inline: 0.6rem;
  }
  .header-btns {
    overflow-x: auto;
    scrollbar-width: none; /* hide scrollbar (Firefox) */
  }
  .header-btns::-webkit-scrollbar {
    display: none; /* hide scrollbar (WebKit) */
  }
}

@media (max-width: 450px) {
  .header-image {
    max-width: clamp(260px, 70vw, 480px);
  }
  .header-flex {
    gap: 0.8rem;
  }
}


/* Layout */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Text Section */
.header-content {
  flex: 1 1 60%;
}

/* Image styles */
.header-image-wrap {
  flex: 1 1 40%; /* Increased from ~260px */
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-image {
  width: 100%;
  max-width: clamp(220px, 50vw, 360px); /* Increased */
  border-radius: 14px;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
}

/* Mobile adjustments */
@media (max-width: 650px) {
  .header-flex {
    gap: 1rem;
  }

  .header-image {
    max-width: clamp(240px, 60vw, 420px); /* ✅ BIGGER */
  }

  .header-content {
    flex: 1 1 50%;
  }

  .header-image-wrap {
    flex: 1 1 50%;
  }

  .header-text {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  }

  .services-section {
    padding: 2.5rem 1rem;
  }
  .service-card {
    padding: 1rem;
  }
}

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

/* --------------------------------- */
/* ----- Services -----*/
/* --------------------------------- */

/* Container */
.services-section {
  padding: 3.5rem 1.25rem;
  max-width: var(--site-max-width);
  margin: 0 auto;
}
  
.services-section .section-title {
  font-size: var(--h2);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--important);
}
  
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ Always 2 per row */
  gap: 1.25rem;
  align-items: stretch;
}
  
  /* Card appearance */
.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(2,6,23,0.18);
  transition: transform 320ms var(--easing), box-shadow 320ms var(--easing), background 320ms var(--easing);
  cursor: pointer;
  outline: none;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 520ms var(--easing), transform 520ms var(--easing), box-shadow 320ms var(--easing);
  will-change: transform, box-shadow;
  border: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color, #6366f1);
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}


/* visible state */
.service-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.service-title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  margin-bottom: 0.4rem;
}

.service-desc {
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  line-height: 1.45;
}

/* --------------------------------- */
/* ----- Features Services -----*/
/* --------------------------------- */

.service-card.featured {
  border: 2px solid var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-4px);
  overflow: visible;
  position: relative;
}

.service-card.featured:hover {
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-8px) scale(1.03);
}

.service-card.featured .service-title {
  color: var(--accent, #6366f1);
  font-weight: 700;
}

/* Optional badge */
.service-card.featured::before {
  content: "Featured";
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent, #6366f1);
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
}

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------- */
/* ----- Work -----*/
/* --------------------------------- */

.work-boxes {
  padding-block-start: var(--gutter-x-large);
}

.work-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1045px) {
  .work-boxes {
    max-inline-size: fit-content;
    margin-inline: auto;
  }

  .work-box {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .work-img {
    margin-block-end: var(--gutter-medium);
  }
}

.work-box:not(:last-child) {
  margin-block-end: var(--gutter-huge);
}

@media (max-width: 1285px) {
  .work-box:not(:last-child) {
    margin-block-end: 8rem;
  }
}

.work-img iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Ensures the correct aspect ratio for videos */
  max-width: 100%; /* Prevents the iframe from exceeding its container's width */
  border: none;
}


.work-img,
.work-textbox {
  flex-basis: 49%;
}

.work-img {
  max-inline-size: 785px;
  transition: 0.6s all;
}

body.light .work-img {
  box-shadow: var(--shadow);
}

.work-textbox {
  max-inline-size: 445px;
}

@media (max-width: 885px) {
  .work h2 {
    margin-block-start: 45px;
  }
}

@media (max-width: 485px) {
  .work h2 {
    margin-block-start: 0;
  }
}

.work-text {
  margin-block: var(--gutter-micro);
}

.work-technologies {
  list-style-position: inside;
  list-style-type: disc;
  margin-block-end: var(--gutter-x-small);
}

.work-links {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-x-small);
}

.work-links img {
  block-size: 28px;
  inline-size: 28px;
}

body.dark .work-links img {
  filter: invert(1);
}

/* Github icon */

.work-links > a:last-child {
  transition: 0.3s transform ease-in;
}

.work-links > a:last-child:hover,
.work-links > a:last-child:focus {
  transform: scale(1.1);
}

.work-text,
.contact-text,
.work-technologies {
  font-weight: 300;
}

.work-textbox h3,
.work-text,
.work-technologies,
.work-links {
  --delay: 0.2s;
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-play-state: paused;
}

.work-text {
  animation-delay: var(--delay);
}

.work-technologies {
  animation-delay: calc(var(--delay) * 1.5);
}

.work-links {
  animation-delay: calc(var(--delay) * 2);
}

@keyframes slide-up {
  from {
    transform: translateY(45px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* --------------------------------- */
/* ----- Testimonials -----*/
/* --------------------------------- */
/* Horizontal scroll */
.testimonials {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;   /* Hide scrollbar - Firefox */
}
@media (max-width: 1100px) {
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 645px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* Each slide */
.testimonial {
  display: flex;
  flex-direction: column;
  min-width: 300px;
  flex: 0 0 100%;
  padding: 5%;
  background-color: var(--bg-color-primary);
}

.testimonial-text.clamp { 
  display: -webkit-box; 
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
} 

.testimonial-text {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-x-small);
}

.testimonial-author {
  margin-block-start: auto;
  display: flex;
  align-items: center;
  gap: var(--gutter-micro);
}

.testimonial-author-name {
  margin-block-end: 0.3rem;
}

.testimonial-author-name,
.testimonial-author-job {
  font-size: initial;
}

.testimonial-author > img {
  block-size: 52px;
  inline-size: 52px;
  border-radius: 50%;
  background-color: var(--bg-color-secondary);
  border: 2px solid currentColor;
}

/* Slider layout */
.testimonial-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonials::-webkit-scrollbar {
  display: none;           /* Hide scrollbar - Chrome/Safari */
}

/* Arrow buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background: none;
  border: 1px solid inherit;
  color: inherit;
  cursor: pointer;
  padding: .4rem .6rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 10;
}

.slider-btn.prev {
  left: 1%;
}

.slider-btn.next {
  right: 1%;
}

.testimonial-cta {
  text-align: center;
  margin-top: var(--gutter-small, 1rem);
  font-size: var(--text-small, 0.9rem);
  color: var(--text-color-secondary, #555);
  padding: 0 1rem;
}

.testimonial-cta a {
  color: var(--primary-color, #0073e6);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.testimonial-cta a:hover {
  opacity: 0.7;
}



/* --------------------------------- */
/* ----- Skills -----*/
/* --------------------------------- */

.skills-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.skills-circle {
  position: relative;
  width: clamp(180px, 25vw, 250px);   /* responsive radius */
  height: clamp(180px, 25vw, 250px);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

/* Icon wrapper */
.skill-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(30px, 4vw, 40px);     /* responsive icon size */
  height: clamp(30px, 4vw, 40px);
  margin: calc(clamp(30px, 4vw, 40px) / -2); /* center the icon */
}

.skill-card img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 0.3s;
}

.skill-card img:hover {
  transform: scale(1.5);
  z-index: 10;
}

body.dark .black-logo{
  filter: invert(1);
}

/* Responsive stacking on small screens */
@media (max-width: 700px) {
  .skills-row {
    flex-direction: column;
  }
  .skills-circle {
    margin-bottom: 2rem;
  }
}

/* Circle rotation animation */
@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Position icons around circle dynamically */
.skills-circle .skill-card:nth-child(1)  { transform: rotate(0deg) translate(100px) rotate(0deg); }
.skills-circle .skill-card:nth-child(2)  { transform: rotate(36deg) translate(100px) rotate(-36deg); }
.skills-circle .skill-card:nth-child(3)  { transform: rotate(72deg) translate(100px) rotate(-72deg); }
.skills-circle .skill-card:nth-child(4)  { transform: rotate(108deg) translate(100px) rotate(-108deg); }
.skills-circle .skill-card:nth-child(5)  { transform: rotate(144deg) translate(100px) rotate(-144deg); }
.skills-circle .skill-card:nth-child(6)  { transform: rotate(180deg) translate(100px) rotate(-180deg); }
.skills-circle .skill-card:nth-child(7)  { transform: rotate(216deg) translate(100px) rotate(-216deg); }
.skills-circle .skill-card:nth-child(8)  { transform: rotate(252deg) translate(100px) rotate(-252deg); }
.skills-circle .skill-card:nth-child(9)  { transform: rotate(288deg) translate(100px) rotate(-288deg); }
.skills-circle .skill-card:nth-child(10) { transform: rotate(324deg) translate(100px) rotate(-324deg); }

/* --------------------------------- */
/* ----- Social Presence -----*/
/* --------------------------------- */

.social-presence {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: var(--h2);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(.9rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* Groups */
.social-group {
  margin-bottom: 2.5rem;
}

.social-heading {
  margin-bottom: 1rem;
  font-size: var(--h3);
}

/* Card list */
.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

/* Card */
.social-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  border-color: var(--accent-color, #6366f1);
}

/* Icon */
.social-icon {
  font-size: 1.8rem;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text */
.social-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.social-card p {
  font-size: 0.9rem;
  opacity: 0.75;
}

.social-cta {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  opacity: 0.85;
}

.social-cta a {
  color: var(--accent-color, #6366f1);
  text-decoration: none;
  font-weight: 600;
}

.social-cta a:hover {
  text-decoration: underline;
}


/* --------------------------------- */
/* ----- Contact -----*/
/* --------------------------------- */

.contact-content {
  display: grid;
  grid-template-columns: minmax(245px, 35%) 1fr;
  margin-block: var(--gutter-x-large);
  border: 1px solid var(--border);
  border-radius: var(--gutter-nano);
}

@media (max-width: 1032px) {
  .contact-content {
    display: flex;
    flex-direction: column-reverse;
    max-inline-size: 845px;
    margin-inline: auto;
  }
}

.contact-textbox,
.contact-form {
  padding: var(--gutter-large) var(--gutter-small);
}

.hire-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
  padding: var(--gutter-nano) var(--gutter-micro);
  border-radius: var(--gutter-small);
  position: relative;
  z-index: 1;
  margin-block-end: var(--gutter-small);
  color: var(--important);
}

.hire-alert::before,
.hire-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hire-alert::after {
  background-image: var(--gradient-border);
  z-index: -2;
}

.hire-alert::before {
  background-color: var(--bg-color-primary);
  inset: 1px;
  z-index: -1;
}

.indicator {
  display: inline-block;
  block-size: var(--gutter-nano);
  inline-size: var(--gutter-nano);
  border-radius: 50%;
  background-color: red;
  animation: blink 550ms alternate infinite var(--easing);
}

@keyframes blink {
  100% {
    opacity: 0;
  }
}

.contact-text {
  margin-block-end: var(--gutter-small);
}

.contact-form {
  background-color: var(--bg-color-secondary);
  border-top-right-radius: var(--gutter-nano);
  border-bottom-right-radius: var(--gutter-nano);
}

.form-field label,
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
}

.form-field label {
  color: var(--important);
}

.form-field input,
.form-field textarea {
  font-size: var(--text-small);
  color: var(--sub);
  border: none;
  outline: none;
  border-bottom: 1px solid var(--border);
  background-color: transparent;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #888;
}

.form-field input,
.form-field textarea {
  margin-block-end: var(--gutter-small);
  padding: var(--gutter-nano);
  margin-inline: var(--gutter-nano);
}

.form-field label {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-nano);
  margin-inline-start: var(--gutter-nano);
}

.contact-form button[type="submit"] {
  border: none;
}

/* --------------------------------- */
/* ----- Footer -----*/
/* --------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--gutter-x-large);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 875px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: var(--gutter-small);
  }
  .footer-text {
    text-align: center;
  }
}

.footer-text {
  font-size: var(--text-small);
}

.footer-text a {
  color: var(--sub);
}

.footer-links {
  display: flex;
  gap: var(--gutter-small);
  list-style-type: none;
}

@media (max-width: 1040px) {
  .footer-links {
    gap: var(--gutter-micro);
  }
}

.footer-link img {
  block-size: 40px;
  inline-size: 40px;
}

.footer-link a {
  opacity: 0.875;
  transition: 225ms ease-in opacity;
}

.footer-link a:hover {
  opacity: 1;
}

.footer-copy {
  margin-block-start: var(--gutter-small);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  opacity: 0.7;
  text-align: center;
}

/* --------------------------------- */
/* ----- Theme Switcher -----*/ 
/* --------------------------------- */

.theme-switch {
  /* Track */

  --track-size: calc(var(--thumb-size) * 2);
  --track-padding: 0.225rem;
  --track-inactive: hsl(80 0% 80%);
  --track-active: #d7aefb;

  --track-color-inactive: var(--track-inactive);
  --track-color-active: var(--track-active);

  /* Thumb */

  --thumb-position: 0%;
  --thumb-size: 1.2rem;
  --thumb: hsl(0 0% 100%);
  --thumb-highlight: hsla(0, 0%, 0%, 0.056);

  --thumb-color: var(--thumb);
  --thumb-color-highlight: var(--thumb-highlight);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2ch;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch > span,
.theme-switch > input {
  cursor: pointer;
}

.theme-switch span {
  font-size: 1rem;
  color: var(--sub);
}

.theme-switch > input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: content-box;
  inline-size: var(--track-size);
  block-size: var(--thumb-size);
  padding: var(--track-padding);
  background-color: var(--track-color-inactive);
  border-radius: var(--track-size);
}

.theme-switch > input::after {
  display: block;
  content: "";
  inline-size: var(--thumb-size);
  block-size: var(--thumb-size);
  background-color: var(--thumb-color);
  border-radius: 50%;
  transform: translateX(var(--thumb-position));
  transition: 500ms all cubic-bezier(0.45, 0.05, 0.22, 1.3);
}

input:checked {
  --thumb-position: 100%;
  background-color: var(--track-active);
}


/* --------------------------------- */
/* ----- WhatsApp CTA Block ----- */
/* --------------------------------- */
.whatsapp-cta {
  /* padding: 4rem 1.25rem; */
  text-align: center;
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.whatsapp-sub {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Card */
.whatsapp-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border-dark);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.015)
  );
  box-shadow: 0 8px 22px rgba(2,6,23,0.18);
  transition: transform 280ms var(--easing),
              box-shadow 280ms var(--easing),
              border-color 280ms var(--easing);
  max-width: 520px;
  margin-inline: auto;
}

.whatsapp-card:hover {
  transform: translateY(-6px);
  border-color: #25D366;
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

/* Icon wrapper for your SVG */
.wa-icon-img {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-icon-img img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
}

/* Text */
.wa-text h4 {
  font-size: 1.2rem;
  color: var(--important);
  margin-bottom: 0.25rem;
}

.wa-text p {
  font-size: .95rem;
  opacity: 0.75;
  color: var(--sub);
}


/* --------------------------------- */
/* ----- Blogs Section (Updated) ----*/
/* --------------------------------- */

.blog-section {
  max-width: var(--site-max-width);
  margin: 0 auto;
  /* padding: 3.5rem 1.25rem; */
}

.blog-section .section-title {
  font-size: var(--h2);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--important);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Card */
.blog-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid var(--border-dark);
  box-shadow: 0 8px 22px rgba(2,6,23,0.18);
  transition:
    transform 0.35s var(--easing),
    box-shadow 0.35s var(--easing),
    border-color 0.35s var(--easing),
    background 0.35s var(--easing);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Hover */
.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

/* Blog Thumbnail */
.blog-thumb {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .blog-thumb {
    height: 160px;
  }
}

/* Blog Title */
.blog-title {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--important);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Meta */
.blog-meta {
  font-size: var(--text-small);
  color: var(--sub);
  margin-bottom: 0.75rem;
}

/* Excerpt */
.blog-excerpt {
  font-size: var(--text-small);
  line-height: 1.5;
  flex-grow: 1;
}

/* Read More */
.blog-readmore {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--important);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-small);
}

.blog-readmore::after {
  content: "→";
  transition: transform .3s var(--easing);
}

.blog-card:hover .blog-readmore::after {
  transform: translateX(4px);
}

/* --------------------------------- */
/* ----- Language Switcher ----*/
/* --------------------------------- */

.lang-switcher {
  text-align: right;
  margin: 1rem;
  font-size: 0.9rem;
}

.lang-switcher a {
  color: #007bff;
  text-decoration: none;
  margin-left: 0.5rem;
}

.lang-switcher a:hover {
  text-decoration: underline;
}
