/* ---------------------- Imports & Base Styles ---------------------- */
@import url(./root.css);

/* Base font size for better rem scaling */
:root {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive base font size */
@media (max-width: 1200px) {
  :root {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  :root {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 13px;
  }
}

/* Responsive container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

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

/* Header  */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--navy);
  color: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
  border-bottom: 4px solid;
  border-image: linear-gradient(
      120deg,
      var(--primary),
      var(--accent),
      var(--primary)
    )
    1;
  border-image-slice: 1;
  backdrop-filter: blur(6px);
}

.header.scrolled {
  background-color: var(--background);
  box-shadow: var(--shadow-light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  height: 10vh;
}

.logo code {
  color: var(--primary);
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: default;
}

.resume-button-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.resume-button {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 0.6rem;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
  cursor: pointer;
  text-shadow: 2px 2px 3px var(--primary);
}

.resume-button:hover {
  background-color: var(--primary);
  color: var(--navy);
  transform: translateY(-2px);
}

.resume-button span {
  font-size: 1.2rem;
  font-weight: 600;
}

.resume-icon {
  font-size: 1.3rem;
}

.resume-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--background);
  border: 1px solid var(--primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 999;
}

.resume-menu a {
  padding: 0.6rem 1rem;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.resume-menu a:hover {
  background-color: var(--primary);
  color: var(--navy);
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .resume-menu {
    right: auto;
    left: -140px;
  }
  .resume-button span {
    display: none;
  }
}

/* constructional modal  */
#constructionModal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease-in-out;
}

#constructionModal .modal-content {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem 3rem;
  color: #ffffff;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  font-family: "Segoe UI", sans-serif;
}

#constructionModal h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #00ff88;
}

#constructionModal p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

#constructionModal button {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  border: none;
  background: #00ff88;
  color: #000;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#constructionModal button:hover {
  background: #00cc6a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-out {
  animation: fadeOut 0.4s ease-in-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

@media (max-width: 480px) {
  #constructionModal .modal-content {
    max-width: 330px;
    padding: 1rem;
  }
}

/* Create Menu  */
#radialMenuWrapper {
  position: fixed;
  bottom: 25px;
  right: 12px;
  z-index: 1001;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(
    115deg,
    var(--primary),
    var(--secondary),
    var(--accent),
    var(--primary),
    var(--secondary)
  );
}

/* Hidden checkbox controller */
#radialMenuWrapper .checkbox {
  width: 60px;
  height: 60px;
  opacity: 0;
  z-index: 10;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
}

/* SVG Hamburger Label */
.hamburger {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.hamburger svg {
  height: 32px;
  width: 32px;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

.checkbox:checked + .hamburger svg {
  transform: rotate(-45deg);
}

.checkbox:checked + .hamburger svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* Options */
#radialMenuWrapper .option {
  position: absolute;
  z-index: -1;
  width: 50px;
  height: 50px;
  padding: 2px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  text-decoration: none;
  background-color: var(--navy);
  color: var(--primary);
  overflow: hidden;
  isolation: isolate;
}

#radialMenuWrapper .option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  background: linear-gradient(
    115deg,
    var(--primary),
    var(--secondary),
    var(--accent),
    var(--primary),
    var(--secondary)
  );
  background-size: 25% 100%;
  animation: animated-border-slide 0.75s linear infinite;
  animation-play-state: paused;
  translate: -5% 0%;
  transition: translate 0.25s ease-out;
  z-index: -1;
}

#radialMenuWrapper .option::before {
  animation-play-state: running;
  transition-duration: 0.75s;
  translate: 0% 0%;
}

@keyframes animated-border-slide {
  to {
    transform: translateX(-25%);
  }
}

#radialMenuWrapper .option span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animation of Options */
.checkbox:checked ~ .option-f {
  transition-delay: 0.1s;
  transform: translateY(-70px);
}
.checkbox:checked ~ .option-e {
  transition-delay: 0.2s;
  transform: translateY(-140px);
}
.checkbox:checked ~ .option-d {
  transition-delay: 0.3s;
  transform: translateY(-210px);
}
.checkbox:checked ~ .option-c {
  transition-delay: 0.4s;
  transform: translateY(-280px);
}
.checkbox:checked ~ .option-b {
  transition-delay: 0.5s;
  transform: translateY(-350px);
}
.checkbox:checked ~ .option-a {
  transition-delay: 0.6s;
  transform: translateY(-420px);
}

/* Networ Error  */
.network-error {
  height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #ffffff;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.network-error {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background: var(--background);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.error-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  max-width: 400px;
  width: 100%;
  backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}

/* Circular Image */
.error-circle {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: url("/public/icons/error.gif") no-repeat center/cover;
  box-shadow: 0 0 25px var(--primary), inset 0 0 15px var(--secondary);
  position: relative;
  animation: pulse 2.5s infinite;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
  margin-bottom: 0.75rem;
}

.error-message {
  font-size: 1rem;
  color: var(--light-slate);
  margin-bottom: 1.5rem;
}

.retry-button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--navy);
  background: var(--primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.retry-button:hover {
  background: var(--secondary);
  color: var(--navy);
  box-shadow: 0 0 20px var(--secondary);
  transform: scale(1.05);
}

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

/* Pulse Glow */
@keyframes pulse {
  0% {
    box-shadow: 0 0 15px var(--primary), inset 0 0 10px var(--secondary);
  }
  50% {
    box-shadow: 0 0 30px var(--accent), inset 0 0 20px var(--secondary);
  }
  100% {
    box-shadow: 0 0 15px var(--primary), inset 0 0 10px var(--secondary);
  }
}

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

@media (max-width: 768px) {
  .error-container {
    padding: 1rem;
  }
  .error-title {
    font-size: 2rem;
  }
}

/* Hero Section  */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  text-align: center;
  padding: 5rem 1rem;
  animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  display: contents;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--light-slate);
  margin-bottom: 0.5rem;
}

.subtitle .name {
  color: var(--primary);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  animation: fadeInIcons 1.2s ease-in-out;
  margin-top: 1rem;
}

@keyframes fadeInIcons {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-icons a {
  width: 50px;
  height: 50px;
  line-height: 50px !important;
  position: relative;
  text-align: center;
  display: inline-block;
  color: var(--primary);
  font-size: 18px;
  transition: all 0.4s ease;
}

.hero-icons a i {
  position: relative;
  z-index: 2;
}

.hero-icons a:before {
  content: "";
  width: 100%;
  height: 100%;
  border: 1px solid var(--primary);
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(45deg);
  transition: 0.3s ease;
  z-index: 1;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.hero-icons a:hover {
  color: var(--navy);
  transform: translateY(-4px) scale(1.1);
}

.hero-icons a:hover:before {
  background: var(--primary);
  box-shadow: 0 0 18px var(--accent), 0 0 28px var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .hero-icons {
    gap: 1rem;
  }

  .hero-icons a {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

/* About Me  */
.about {
  text-align: center;
  background: rgba(2, 12, 27, 0.6);
  display: flex;
  padding: 0.5rem;
}

.about .description {
  margin: 0;
}

.description strong {
  color: var(--light-slate);
}

/* .skills-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: var(--white);
} */

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 3rem;
}
/* .skills-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2a 100%);
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(41, 98, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(156, 39, 176, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
} */

/* .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
} */

/* .skills-container {
  max-width: 1200px;
  margin: 0 auto;
} */

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.skills-category {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.skill-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(110, 142, 251, 0.1) 0%,
    rgba(167, 119, 227, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  will-change: transform, box-shadow, background;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  transform: translateZ(0);
  
  &:hover {
    transform: translateY(-5px) scale(1.05) translateZ(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }
  
  @media (hover: none) {
    &:hover {
      transform: none;
      box-shadow: none;
    }
    
    &:active {
      transform: scale(0.98);
    }
  }
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon-container {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(0.3) brightness(1.2);
}

.skill-card:hover .skill-icon {
  transform: scale(1.2);
  filter: grayscale(0) brightness(1.5);
}

.skill-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
  position: relative;
}

/* Tooltip for skill cards */
.skill-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.skill-card:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Compact mode toggle */
.skills-view-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.toggle-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.toggle-button.active {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border-color: transparent;
}

/* Compact view styles */
.skills-categories.compact-view .skills-category {
  padding: 1rem;
}

.skills-categories.compact-view .skills-grid {
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.skills-categories.compact-view .skill-card {
  padding: 0.75rem 0.5rem;
}

.skills-categories.compact-view .skill-icon-container {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
}

.skills-categories.compact-view .skill-title {
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .skills-categories {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .skills-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.75rem;
  }

  .skill-card {
    padding: 0.75rem 0.5rem;
  }

  .skill-icon-container {
    width: 35px;
    height: 35px;
    margin-bottom: 0.5rem;
  }

  .skill-title {
    font-size: 0.8rem;
  }
}
/* Quetes  */
.daily-quote {
  padding: 5rem 1rem;
  color: var(--lightest-slate);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--green), #64ffda, #a8ffb7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(100, 255, 218, 0.2);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate);
  font-family: var(--font-mono);
  opacity: 0.8;
}

.quote-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 255, 218, 0.1);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--darker-navy);
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

.traffic-circles {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.traffic-circles:hover {
  transform: scale(1.1);
}

.traffic-circles.red {
  background: #ff5f56;
}

.traffic-circles.yellow {
  background: #ffbd2e;
}

.traffic-circles.green {
  background: #27c93f;
}

.tabs-container {
  display: flex;
  gap: 0.5rem;
  position: relative;
  flex-grow: 1;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    height: 4px;
  }
  
  &::-webkit-scrollbar-track {
    background: transparent;
  }
  
  &::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
  }
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--slate);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  opacity: 0.7;
}

.tab-btn:hover {
  opacity: 0.9;
  color: var(--light-slate);
}

.tab-btn.active {
  opacity: 1;
  color: var(--lightest-slate);
  font-weight: 500;
  background: rgba(117, 113, 113, 0.3);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transition: all 0.3s ease;
  opacity: 0;
}

.window-actions {
  display: flex;
  gap: 0.75rem;
}

.window-actions button {
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.window-actions button::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--darker-navy);
  color: var(--light-slate);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.window-actions button:hover::after {
  opacity: 1;
}

.refresh-btn:hover {
  color: var(--green);
  background: rgba(100, 255, 218, 0.1);
  transform: rotate(90deg);
}

.copy-btn:hover {
  color: var(--green);
  background: rgba(100, 255, 218, 0.1);
}

.code-body {
  display: flex;
  min-height: 250px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--dark-navy);
  position: relative;
}

.line-numbers {
  padding: 1rem 0.75rem;
  text-align: right;
  background: var(--darker-navy);
  color: var(--slate);
  user-select: none;
  border-right: 1px solid rgba(100, 255, 218, 0.1);
}

.line-numbers div {
  padding-right: 1rem;
  opacity: 0.6;
}

.code-content {
  flex: 1;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--dark-navy);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--darker-navy);
  transition: background-color 0.3s ease;
}

.code-content.refreshing {
  background-color: rgba(100, 255, 218, 0.05);
}

.code-content::-webkit-scrollbar {
  height: 6px;
}

.code-content::-webkit-scrollbar-track {
  background: var(--darker-navy);
}

.code-content::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: 3px;
}

.code-content pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  tab-size: 2;
}

.keyword {
  color: #c792ea;
  font-weight: 500;
}

.string {
  color: #c3e88d;
}

.comment {
  color: #546e7a;
  font-style: italic;
}

.constant {
  color: #f78c6c;
}

.builtin {
  color: #82aaff;
}

.bracket {
  color: #89ddff;
}

.number {
  color: #ff5370;
}

.quote-author {
  margin-top: 1.5rem;
  color: var(--slate);
  font-style: italic;
  opacity: 0.8;
  padding-left: 2rem;
  position: relative;
}

.quote-author::before {
  content: "//";
  position: absolute;
  left: 0;
  color: var(--green);
  opacity: 0.6;
}

.code-footer {
  padding: 0.75rem 1.25rem;
  background: var(--darker-navy);
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
}

.status-bar span {
  margin-right: 1.5rem;
  opacity: 0.8;
}

.status-bar span:last-child {
  margin-right: 0;
}

.copy-notification {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(100, 255, 218, 0.9);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
  z-index: 10;
}

.copy-notification.show {
  opacity: 1;
  animation: floatUp 0.5s ease forwards;
}

@keyframes floatUp {
  0% {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -70%);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-container {
  animation: fadeIn 0.6s ease forwards;
}

/* Responsive Design */
/* ====================== Media Queries ====================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Adjust container padding */
  .container {
    padding: 0 2rem;
  }
  
  /* Adjust header height */
  .header-container {
    padding: 1.5rem 1rem;
  }
  
  /* Adjust section padding */
  section {
    padding: 6rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .header-container {
    padding: 1.25rem 1rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  /* Adjust typography for better readability */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .daily-quote {
    padding: 3rem 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --section-padding: 4rem 0;
  }
  
  .header-container {
    padding: 1rem 0.75rem;
    height: auto;
    min-height: 70px;
  }
  
  .logo code {
    font-size: 1.4rem;
  }
  
  .resume-button {
    padding: 0.5rem;
    font-size: 1rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .daily-quote {
    padding: 2.5rem 1.25rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3.5rem 0;
  }
  
  .header-container {
    padding: 0.75rem 0.5rem;
    height: auto;
    min-height: 60px;
  }
  
  .logo code {
    font-size: 1.3rem;
  }
  
  .resume-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
  
  section {
    padding: 3.5rem 0;
  }
  
  h1 {
    font-size: 2rem;
    line-height: 1.15;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  .daily-quote {
    padding: 2rem 1rem;
  }
  
  /* Adjust grid layouts for mobile */
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Improve touch targets */
  button, 
  .btn, 
  a[role="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
  }
  
  /* Optimize typography for small screens */
  body {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Improve form elements */
  input,
  textarea,
  select {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  /* Adjust spacing */
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2::after {
    width: 60px;
  }
}

  .section-title {
    font-size: 2rem;
  }

  .quote-container {
    border-radius: 8px;
  }

  .code-body {
    font-size: 0.85rem;
    min-height: 200px;
  }

  .status-bar span {
    margin-right: 1.2rem;
    font-size: 0.65rem;
  }

  .window-actions button::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .daily-quote {
    padding: 2rem 0.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .code-header {
    padding: 0.5rem 1rem;
  }

  .code-body {
    font-size: 0.8rem;
  }

  .quote-author {
    margin-top: 1rem;
    padding-left: 1.5rem;
  }

  .window-actions {
    gap: 0.5rem;
  }

  .tabs-container {
    gap: 0.25rem;
  }

  .tab-btn {
    font-size: 0.8rem;
    padding: 0.25rem;
  }
}

/* Git repos  */
.repos-container {
  display: flex;
  gap: 1rem;
  /* margin-top: 2rem; */
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1rem 0;
}

.repo-card {
  min-width: 250px;
  background: rgba(2, 12, 27, 0.7);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.repo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 255, 136, 0.4);
}

.repo-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.repo-name {
  font-size: 1.2rem;
  color: var(--secondary);
  text-shadow: 0 1px 4px rgba(0, 255, 136, 0.3);
}

.visit-github {
  text-align: center;
  margin: 1rem 0 2rem;
}

.github-link {
  display: inline-block;
  background: var(--primary);
  color: #ffff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  text-shadow: 1px 2px 4px black;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.github-link i {
  margin-right: 0.5rem;
}

.github-link:hover {
  box-shadow: 2px 2px 4px var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .github-link {
    padding: 0.5rem 1rem;
  }
}

/* Experience  */
.experience-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.experience-card {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease;
}

.experience-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 0 25px var(--primary);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.role-company {
  flex-grow: 1;
}

.experience-role {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 600;
}

.experience-company {
  color: var(--light-slate);
  font-style: italic;
  font-size: 1rem;
}

.experience-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--light-slate);
}

.meta-date svg,
.meta-location svg {
  margin-right: 0.5rem;
  vertical-align: middle;
  stroke: var(--accent);
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list li {
  margin-bottom: 0.4rem;
  position: relative;
  color: var(--white);
}

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

.item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-icon {
  color: var(--accent);
  font-size: 1.3rem;
  display: inline-block;
}

.item-description {
  font-size: 0.95rem;
  color: var(--light-slate);
  line-height: 1.6;
  text-align: justify;
}

.tech-stack {
  margin-top: 2.5rem;
}

.stack-title {
  font-size: 1rem;
  color: #ccd6f6;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-period {
    align-items: flex-start;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* Work  */
.projects {
  text-align: center;
  position: relative;
  z-index: 1;
}

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.project-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-card {
  width: 100%;
  min-width: 280px;
  max-width: 100%;
  background: rgba(2, 12, 27, 0.7);
  border-radius: var(--border-radius);
  margin: 0 auto;
  transition: var(--transition);
  box-shadow: 4px 4px 6px rgba(0, 255, 136, 0.2);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.6s ease, box-shadow 0.4s ease;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: perspective(1000px) rotateY(3deg) scale(1.03);
  box-shadow: 6px 6px 8px rgba(0, 255, 136, 0.4);
  z-index: 2;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 255, 136, 0.3);
}

.project-info p {
  font-size: 1rem;
  color: var(--light-slate);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--dark-slate);
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.section-description {
  max-width: 700px;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
  color: var(--light-slate);
  line-height: 1.6;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-card {
    min-width: 85%;
    max-width: 85%;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }

  .project-info h3 {
    font-size: 1.25rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* strength  */
.strengths-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.strengths {
  padding: 80px 20px;
  /* background: linear-gradient(135deg, #0a192f, #111827); */
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00ff88;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #bac9f5;
  margin-bottom: 40px;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.strength-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px 20px;
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.strength-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0px 10px 25px rgba(0, 255, 136, 0.3);
}

.icon-bg {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
  box-shadow: 0px 5px 15px rgba(0, 255, 136, 0.2);
  transition: transform 0.3s ease;
}

.strength-card:hover .icon-bg {
  transform: scale(1.1);
}

.strength-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.strength-desc {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* Contact  */
.contact {
  position: relative;
  padding: 6rem 1rem;
  color: var(--light-slate);
  overflow: hidden;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-header {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form-container {
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(2, 12, 27, 0.7);
  padding: 1rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark);
  transition: all 0.3s ease;
}

.contact-form:hover {
  border-color: var(--primary);
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--light-slate);
  color: var(--lightest-slate);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--light-slate);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group .underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.form-group input:focus ~ .underline,
.form-group textarea:focus ~ .underline {
  width: 100%;
}

.form-group label.active {
  top: -0.5rem;
  font-size: 0.8rem;
  color: var(--primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(2, 12, 27, 0.7);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.info-content h3 {
  color: var(--lightest-slate);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.info-content a,
.info-content p {
  color: var(--light-slate);
  transition: color 0.3s ease;
  text-decoration: none;
}

.info-content a:hover {
  color: var(--primary);
}

.contact-social {
  text-align: center;
  margin-top: 4rem;
}

.contact-social p {
  margin-bottom: 1.5rem;
  color: var(--light-slate);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(2, 12, 27, 0.7);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-links a i {
  font-size: xx-large;
  fill: var(--light-slate);
  transition: fill 0.3s ease;
}

.social-links a:hover i {
  color: var(--navy);
}

.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 4rem 1rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Custom Button Styles */
.button {
  --primary: #ff5569;
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 14px;
  --lightest-slate: #ccd6f6;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 200px;
  padding: 20px;
  height: 68px;
  font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  color: var(--lightest-slate);
  margin-top: 1rem;
  overflow: hidden;
  background: transparent;
}

/* .button:hover { */
/* transform: scale(1.02); */
/* box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04); */
/* } */

.button:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}

.state {
  position: relative;
  z-index: 3;
  display: flex;
  padding-left: 29px;
}

.state p {
  display: flex;
  align-items: center;
  justify-content: center;
}

.state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state .icon svg {
  overflow: visible;
}

/* Outline */
.outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}

/* Letters */
.state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}

.button:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}

.button:focus p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}

@keyframes wave {
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
    color: var(--primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
    filter: blur(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}

@keyframes disapear {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

/* Plane */
.state--default .icon svg {
  animation: land 0.6s ease forwards;
}

.button:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}

.button:focus .state--default svg {
  animation: takeOff 0.8s linear forwards;
}

.button:focus .state--default .icon {
  transform: rotate(0) scale(1.25);
}

@keyframes takeOff {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: translateX(70px) rotate(45deg) scale(2);
  }
  100% {
    opacity: 0;
    transform: translateX(160px) rotate(45deg) scale(0);
  }
}

@keyframes land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Contrail */
.state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}

.button:focus .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}

@keyframes contrail {
  0% {
    width: 0;
    opacity: 1;
  }
  8% {
    width: 15px;
  }
  60% {
    opacity: 0.7;
    width: 80px;
  }
  100% {
    opacity: 0;
    width: 160px;
  }
}

/* States */
.state--default span:nth-child(4) {
  margin-right: 5px;
}

.state--sent {
  display: none;
}

.state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}

.button:focus .state--default {
  position: absolute;
}

.button:focus .state--sent {
  display: flex;
}

.button:focus .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}

.button:focus .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }
  30% {
    opacity: 1;
    transform: scale(0.6);
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .button {
    min-width: 180px;
    padding: 15px;
    height: 60px;
    font-size: 16px;
  }
}

/* Footer  */
.footer {
  background: var(--navy);
  color: var(--light-slate);
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo code {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  animation: glow 2s infinite alternate;
}

.footer-bottom {
  /* margin-top: 2rem; */
  font-size: 0.9rem;
  color: var(--lightest-slate);
  border-top: 1px solid var(--light-slate);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .footer-links {
    gap: 1rem;
  }

  .footer-logo code {
    font-size: 1.1rem;
  }
}

.footer-links li a i {
  font-size: 1.2rem;
  margin-right: 0.4rem;
  color: var(--light-slate);
}

.footer-links li a span {
  display: inline;
}

@media (max-width: 768px) {
  .footer-links li a span {
    display: none; /* Hide text */
  }

  .footer-links li a i {
    font-size: 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

section {
  padding: 4rem 2rem;
  background: rgba(2, 12, 27, 0.4);
}

/* ------------------ Section Title ------------------ */
.section-title {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 900;
  text-align: center;
  position: relative;
  background: linear-gradient(
    120deg,
    var(--primary),
    var(--accent),
    var(--primary)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animatedGradient 5s linear infinite;
  margin-bottom: 1rem;
  text-shadow: 0 3px 20px rgba(0, 255, 136, 0.3);
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.description {
  font-size: 1rem;
  color: var(--light-slate);
  margin-bottom: 1rem;
}

/* ------------------ Tech Tags ------------------ */
.tech-tags {
  display: flex;
  overflow: auto;
  scrollbar-width: none;
  gap: 0.4rem;
  /* justify-content: center; */
}

.tech-tags span {
  font-size: 0.85rem;
  background: rgba(96, 239, 255, 0.15);
  color: var(--secondary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  white-space: nowrap;
  cursor: default;
  text-shadow: 2px 3px 3px black;
}

.tech-tags span:hover {
  background: var(--primary);
  color: #ffff;
}

/* ------------------ Keyframes ------------------ */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes animatedGradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  section {
    padding: 4rem 1.5rem;
  }
}
@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }
}

/* Context Menu */
#customMenu {
  display: none;
  position: fixed;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid var(--dark-slate);
  border-radius: var(--border-radius);
  padding: 8px 0;
  min-width: 220px;
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: var(--shadow-dark), inset 0 0 20px rgba(0, 255, 136, 0.1);
  opacity: 0;
  /* transform: scale(0.95); */
  /* transition: var(--transition); */
}

#customMenu.visible {
  display: block;
  opacity: 1;
  transform: scale(1);
}

#customMenu .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--light-slate);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

#customMenu .menu-item:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--navy);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-light);
  transform: translateX(4px);
}

#customMenu i {
  color: var(--primary);
  font-size: 1.1rem;
  transition: var(--transition);
}

#customMenu .menu-item:hover i {
  color: var(--navy);
  transform: scale(1.2) rotate(10deg);
}

/* Submenu */
.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: rgba(9, 22, 41, 0.9);
  border: 1px solid var(--dark-slate);
  border-radius: var(--border-radius);
  padding: 6px 0;
  min-width: 180px;
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.menu-item.has-submenu:hover .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--light-slate);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.submenu a:hover {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  color: var(--navy);
  box-shadow: var(--shadow-light);
  transform: translateX(3px);
}
