@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap");

:root {
  --body-color: #f8f9fa;
  --color-white: #ffffff;
  --text-color-second: #495057;
  --text-color-third: #3a86ff;

  --first-color: #4361ee;
  --first-color-hover: #3a0ca3;

  --second-color: #4cc9f0;
  --third-color: #f72585;
  --accent-color: #7209b7;

  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;

  --first-shadow-color: rgba(0, 0, 0, 0.1);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  --button-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);

  --gradient-primary: linear-gradient(135deg, #4361ee, #3a0ca3);
  --gradient-secondary: linear-gradient(135deg, #4cc9f0, #4361ee);
  --gradient-accent: linear-gradient(135deg, #f72585, #7209b7);
  --gradient-animated: linear-gradient(
    -45deg,
    #4361ee,
    #4cc9f0,
    #f72585,
    #7209b7
  );

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 50%;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);

  --dark-body-color: #121212;
  --dark-card-color: #1e1e1e;
  --dark-color-white: #ffffff;
  --dark-text-color-second: #ffffff;
  --dark-text-color-third: #7be7ff;

  --dark-first-color: #6a88ff;
  --dark-first-color-hover: #5b2ce4;

  --dark-second-color: #7be7ff;
  --dark-third-color: #ff56a9;
  --dark-accent-color: #9a2ae8;

  --dark-first-shadow-color: rgba(255, 255, 255, 0.12);
  --dark-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  --animation-slow: 3s;
  --animation-medium: 2s;
  --animation-fast: 1s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--body-color);
  color: var(--text-color-second);
  line-height: 1.6;
  font-weight: 400;
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color-second);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: underline;
  font-weight: 500;
  color: var(--first-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--first-color-hover);
}

.nav-link, .footer-menu a, .social_icons a {
  text-decoration: none; /* Keep navigation clean */
}

.nav-link:hover, .footer-menu a:hover {
  text-decoration: underline;
}

.footer-link {
  text-decoration: underline;
  font-weight: 500;
}

::-webkit-scrollbar {
  width: 10px;
  border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--first-color);
  border-radius: 30px;
  opacity: 0.7;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--first-color-hover);
}

.btn {
  font-weight: 500;
  padding: 12px 24px;
  background: var(--color-white);
  color: var(--text-color-second);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: var(--button-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

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

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

.btn > i {
  margin-left: 10px;
  font-size: 1.1rem;
  transition: transform var(--transition-bounce);
}

.btn:hover > i {
  transform: translateX(3px);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.5);
  background: var(--gradient-secondary);
  color: var(--color-white);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3), var(--button-shadow);
}

.btn.blue-btn {
  background: var(--gradient-primary);
  color: var(--color-white);
  animation: pulse 3s infinite;
}

.btn.blue-btn:hover {
  background: var(--first-color-hover);
  box-shadow: 0 10px 25px rgba(58, 12, 163, 0.5);
  animation: none;
}

i {
  font-size: 16px;
}

body {
  background: var(--body-color);
  position: relative;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader svg {
  width: 100px;
  height: 100px;
  animation: rotate 2s linear infinite;
}

#loader-circle {
  fill: none;
  stroke: var(--first-color);
  stroke-width: 4;
  stroke-dasharray: 150, 200;
  stroke-dashoffset: -10;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

.loader-name {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--first-color);
  letter-spacing: 2px;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -125;
  }
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--first-color);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--first-color-hover);
  transform: translateY(-5px);
}

body.dark {
  background: var(--dark-body-color);
  color: var(--dark-text-color-second);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
  color: var(--dark-color-white);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark p {
  color: var(--dark-text-color-second);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark #preloader {
  background: var(--dark-body-color);
}

body.dark #loader-circle {
  stroke: var(--dark-first-color);
}

body.dark .loader-name {
  color: var(--dark-first-color);
  font-weight: 600;
}

body.dark .btn {
  background: var(--dark-second-color);
  color: var(--dark-color-white);
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

body.dark nav {
  background: var(--dark-body-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark .nav-name {
  color: var(--dark-text-color-third);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .nav-link {
  color: var(--dark-text-color-second);
  font-weight: 500;
}

body.dark .active-link {
  color: var(--dark-first-color);
  font-weight: 600;
  text-shadow: 0 0 5px rgba(90, 120, 255, 0.3);
}

body.dark .featured-name {
  color: var(--dark-color-white);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark .typedText {
  color: var(--dark-text-color-third);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(93, 219, 255, 0.4);
}

body.dark .featured-text-info {
  color: #000;
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.01em;
}

body.dark .project-box,
body.dark .contact-info {
  background: var(--dark-card-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark .project-box:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .project-content i {
  color: var(--dark-text-color-third);
  background: rgba(93, 219, 255, 0.1);
}

body.dark .project-box h3 {
  color: var(--dark-color-white);
  font-weight: 600;
}

body.dark .project-box p {
  color: var(--dark-text-color-second);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .contact-info > h2,
body.dark .contact-info > p {
  color: var(--dark-color-white);
}

body.dark .skills-box {
  background: var(--dark-card-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.dark .skills-list span {
  background: rgba(123, 231, 255, 0.15);
  color: var(--dark-color-white);
  border: 1px solid rgba(123, 231, 255, 0.3);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .skills-list span:hover {
  background: rgba(123, 231, 255, 0.25);
  color: var(--dark-color-white);
  border: 1px solid rgba(123, 231, 255, 0.4);
  box-shadow: 0 0 10px rgba(123, 231, 255, 0.2);
}

body.dark footer {
  background: var(--dark-body-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark footer .footer_menu_list a {
  color: var(--dark-text-color-second);
  font-weight: 500;
}

body.dark footer .footer_menu_list a:hover {
  color: var(--dark-text-color-third);
}

body.dark .scroll-btn {
  background: var(--dark-body-color);
  color: var(--dark-text-color-second);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark .scroll-btn:hover {
  background: var(--dark-card-color);
  color: var(--dark-text-color-third);
}

body.dark .moon-sun :is(#moon, #sun) {
  color: #000;
}

body.dark .top-header h1 {
  color: var(--dark-color-white);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.dark .top-header span {
  color: var(--dark-text-color-second);
  opacity: 1;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.01em;
}

body.dark .skills-header h3 {
  color: var(--dark-color-white);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

body.dark .skill-name-level h4 {
  color: var(--dark-color-white);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .skill-name-level p {
  color: var(--dark-text-color-third);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(123, 231, 255, 0.4);
}

body.dark .progress-bar {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark .progress {
  background: var(--dark-text-color-third);
  box-shadow: 0 0 10px rgba(123, 231, 255, 0.5);
}

.nav-logo.dark span {
  color: var(--dark-color-white);
}

.mode {
  display: flex;
  align-items: center;
}

.moon-sun {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  overflow: hidden;
}

.moon-sun:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.moon-sun:active {
  transform: scale(0.95);
}

.moon-sun::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.moon-sun:hover::before {
  opacity: 1;
}

.moon-sun :is(#moon, #sun) {
  position: absolute;
  color: var(--first-color);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  font-size: 20px;
  z-index: 1;
}

#sun {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

body.dark .moon-sun {
  background: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark .moon-sun:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.dark #sun {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: var(--dark-text-color-third);
}

body.dark #moon {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

.container {
  width: 100%;
  position: relative;
}

nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding-inline: 9vw;
  transition: all var(--transition-normal);
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

body.dark nav {
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--first-color);
  letter-spacing: -0.5px;
  font-family: "Poppins", sans-serif;
}

.nav-logo span {
  position: relative;
  top: -5px;
  margin-left: 2px;
  font-size: 2.5rem;
  color: var(--third-color);
  font-weight: 700;
}

.nav-menu,
.nav_menu_list {
  display: flex;
  align-items: center;
}

.nav-menu .nav_list {
  list-style: none;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color-second);
  font-weight: 500;
  padding: 8px 15px;
  margin-inline: 5px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-bounce);
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  color: var(--first-color);
  background: rgba(67, 97, 238, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

.nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

.nav-menu-btn {
  display: none;
}

.nav-menu-btn i {
  font-size: 24px;
  cursor: pointer;
  color: var(--first-color);
}

.active-link {
  position: relative;
  color: var(--first-color);
  background: rgba(67, 97, 238, 0.1);
  font-weight: 600;
}

.active-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  animation: borderGlow 2s infinite;
}

.nav_list .circle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--first-color);
  border-radius: 50%;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform var(--transition-bounce);
  opacity: 0;
}

.nav_list:hover .circle {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

body.dark .nav_list .circle {
  background-color: var(--dark-first-color);
  box-shadow: 0 0 5px var(--dark-first-color);
}

body.dark .icon {
  background: var(--dark-color-white);
}

body.dark .icon i {
  color: var(--dark-body-color);
}

.wrapper {
  padding-inline: 10vw;
}

.featured-box {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  padding-top: 80px;
}

#vanta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

body.dark #vanta-background {
  background-color: rgba(0, 0, 0, 0.1);
}

.floating-code {
  position: absolute;
  font-family: "Fira Code", monospace;
  color: var(--first-color);
  font-size: 18px;
  font-weight: 500;
  pointer-events: none;
  animation: float 15s linear infinite;
  opacity: 0.5;
  text-shadow: 0 0 5px rgba(67, 97, 238, 0.3);
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

.featured-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  gap: 2rem;
}

.featured-text {
  position: relative;
  display: flex;
  justify-content: center;
  align-content: center;
  min-height: 70vh;
  flex-direction: column;
  width: 50%;
  padding-left: 20px;
  z-index: 2;
}

.featured-text-card {
  margin-bottom: 1rem;
}

.featured-text-card span {
  background: var(--gradient-accent);
  color: var(--color-white);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
  letter-spacing: 0.5px;
}

.featured-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-color-second);
  margin-block: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

.typedText {
  text-transform: capitalize;
  color: var(--first-color);
  font-weight: 600;
}

.featured-text-info {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-color-second);
  max-width: 90%;
}

.featured-text-btn {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-text-btn > .code-btn,
.about-btn .code-btn {
  background: #2d2d2d;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Consolas", "Monaco", monospace;
  border: 1px solid #444;
  position: relative;
  overflow: hidden;
}

.code-brackets {
  color: #ff79c6;
  font-weight: bold;
}

.code-text {
  color: #50fa7b;
  font-weight: 500;
}

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

.featured-text-btn > .code-btn:hover::before,
.about-btn .code-btn:hover::before {
  left: 100%;
}

.featured-text-btn > .code-btn:hover,
.about-btn .code-btn:hover {
  background: #1a1a1a;
  box-shadow: 0 0 10px rgba(80, 250, 123, 0.5), 0 0 20px rgba(80, 250, 123, 0.3),
    0 0 30px rgba(80, 250, 123, 0.1);
  border-color: #50fa7b;
}

body.dark .featured-text-btn > .code-btn,
body.dark .about-btn .code-btn {
  background: #1a1a1a;
  border: 1px solid #333;
}

body.dark .featured-text-btn > .code-btn:hover,
body.dark .about-btn .code-btn:hover {
  background: #000000;
  box-shadow: 0 0 10px rgba(80, 250, 123, 0.5), 0 0 20px rgba(80, 250, 123, 0.3),
    0 0 30px rgba(80, 250, 123, 0.1);
  border-color: #50fa7b;
}
.social_icons {
  display: flex;
  margin-top: 5em;
  gap: 30px;
}
.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: 100%;
  left: 0;
  transition: all var(--transition-normal);
  z-index: -1;
}

.icon:hover {
  color: var(--color-white);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.icon:hover::before {
  top: 0;
}

.icon i {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-bounce);
  color: var(--text-color-second);
}

body.dark .icon {
  background: var(--dark-color-white);
}

body.dark .icon i {
  color: var(--dark-body-color);
}

body.dark .icon:hover {
  box-shadow: 0 10px 20px rgba(123, 231, 255, 0.4);
}

body.dark .icon:hover i {
  color: var(--dark-color-white);
}

.icon:hover i {
  transform: scale(1.2);
}

.featured-image {
  display: flex;
  justify-content: right;
  align-content: center;
  min-height: 80vh;
  width: 50%;
}

.image {
  margin: auto 0;
  width: 380px;
  height: 380px;
  border-radius: 55% 45% 55% 45%;
  overflow: hidden;
  animation: imgFloat 7s ease-in-out infinite;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

.laptop-wrapper {
  position: relative;
  width: 400px;
  height: 240px;
  transform-style: preserve-3d;
  animation: laptopFloat 7s ease-in-out infinite;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes laptopFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
  }
  50% {
    transform: translateY(0) rotateX(0deg) rotateY(5deg);
  }
  75% {
    transform: translateY(15px) rotateX(-5deg) rotateY(0deg);
  }
}

.laptop {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(0deg) rotateZ(0deg);
  transition: transform 0.5s ease;
}

.laptop:hover {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.laptop-screen {
  position: relative;
  width: 100%;
  height: 70%;
  background: #333;
  border: 8px solid #444;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  transform-origin: bottom;
  transform-style: preserve-3d;
  box-shadow: 0 0 0 1px #666;
}

.laptop-screen::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #666;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  z-index: 10;
}

.laptop-screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.laptop-keyboard {
  position: relative;
  width: 100%;
  height: 30%;
  background: #555;
  border-radius: 0 0 10px 10px;
  transform-origin: top;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  padding: 5px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.laptop-keys {
  width: 100%;
  height: 70%;
  background: #444;
  margin-top: 5px;
  border-radius: 5px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  padding: 5px;
}

.laptop-keys::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: keyboardLight 3s linear infinite;
}

.key-press {
  animation: keyPress 0.3s ease-out;
}

@keyframes keyPress {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

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

.laptop-trackpad {
  width: 30%;
  height: 20%;
  background: #333;
  margin: 5px auto;
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.laptop-shadow {
  position: absolute;
  bottom: -30px;
  left: 5%;
  width: 90%;
  height: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(15px);
  z-index: -1;
}

.mini-site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20px;
  background: var(--first-color);
  border-radius: 5px;
  padding: 0 10px;
}

.mini-site-logo {
  font-weight: bold;
  color: white;
  font-size: 10px;
}

.mini-site-nav {
  display: flex;
  gap: 5px;
}

.mini-nav-item {
  width: 20px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.mini-site-hero {
  display: flex;
  height: 60px;
  background: #f5f5f5;
  border-radius: 5px;
  padding: 5px;
}

.mini-site-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding-left: 5px;
}

.mini-site-title {
  width: 80%;
  height: 8px;
  background: #333;
  border-radius: 2px;
}

.mini-site-subtitle {
  width: 60%;
  height: 5px;
  background: #666;
  border-radius: 2px;
}

.mini-site-buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.mini-site-btn {
  width: 25px;
  height: 8px;
  background: var(--first-color);
  border-radius: 2px;
}

.mini-site-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin: auto 5px;
  border: 2px solid var(--first-color);
}

.mini-site-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-site-projects {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  height: 40px;
}

.mini-project-card {
  flex: 1;
  background: #eee;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.mini-project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--first-color);
}

body.dark .laptop-screen-content {
  background: #222;
}

body.dark .mini-site-hero {
  background: #333;
}

body.dark .mini-site-title {
  background: #555;
}

body.dark .mini-site-subtitle {
  background: #777;
}

body.dark .mini-project-card {
  background: #444;
}

body.dark .laptop-screen {
  border-color: #222;
  box-shadow: 0 0 0 1px #111;
}

body.dark .laptop-keyboard {
  background: #333;
}

body.dark .laptop-keys {
  background: #222;
}

body.dark .laptop-trackpad {
  background: #111;
}

@keyframes imgFloat {
  50% {
    transform: translateY(10px);
    border-radius: 45% 55% 45% 55%;
  }
}
.scroll-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 60px;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color-second);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
  animation: scrollBtnPulse 2s infinite;
  border: 1px solid rgba(67, 97, 238, 0.1);
}

.scroll-btn i {
  font-size: 24px;
  color: var(--first-color);
  animation: scrollArrowBounce 2s infinite;
}

.scroll-btn p {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.scroll-btn:hover {
  background: var(--gradient-primary);
  color: var(--color-white);
  transform: translateX(-50%) translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.scroll-btn:hover i {
  color: var(--color-white);
}

@keyframes scrollBtnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
  }
}

@keyframes scrollArrowBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.section {
  padding-block: 5em;
  position: relative;
}

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

.row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 50px;
  position: relative;
  z-index: 1;
}
.col {
  display: flex;
  width: 50%;
}

.top-header {
  text-align: center;
  margin-bottom: 5em;
  position: relative;
  z-index: 1;
}
.top-header h1 {
  font-weight: 600;
  color: var(--text-color-second);
  margin-bottom: 10px;
}
.top-header span {
  color: #999;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color-second);
  margin-bottom: 15px;
}

.about-info {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-block: 30px 70px;
  padding-inline: 20px;
  width: 100%;
  background: var(--color-white);
  box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
  border-radius: 20px;
  transition: all var(--transition-normal);
}
.about-info p {
  text-align: center;
  font-size: 15px;
  color: #777;
}

body.dark .about-info {
  background: var(--dark-card-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.about-btn button {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: var(--first-color);
  color: var(--color-white);
  border-radius: 30px;
}
.about-btn button:hover {
  background: var(--first-color-hover);
}

.skills-box {
  margin: 10px;
}
.skills-header {
  margin-bottom: 30px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.skills-list span {
  font-size: 14px;
  background: var(--first-color);
  color: var(--color-white);
  padding: 2px 10px;
  border-radius: 5px;
}

.skills-progress {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.skill-item {
  width: 100%;
}

.skill-name-level {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-name-level h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color-second);
}

.skill-name-level p {
  font-size: 14px;
  font-weight: 600;
  color: var(--first-color);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  animation: progressShine 2s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar:hover::after {
  opacity: 1;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(500%);
  }
}

.progress {
  height: 100%;
  background: var(--gradient-animated);
  background-size: 300% 300%;
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.progress.animated {
  animation: gradientFlow 3s ease infinite;
}

.skill-item:hover .progress {
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
}

.skill-name-level {
  transition: transform var(--transition-fast);
}

.skill-item:hover .skill-name-level {
  transform: translateX(5px);
}

body.dark .skill-name-level h4 {
  color: var(--dark-color-white);
}

body.dark .skill-name-level p {
  color: var(--dark-first-color);
}

body.dark .progress-bar {
  background: #333;
}

body.dark .progress {
  background: var(--gradient-animated);
  background-size: 300% 300%;
}

.projects-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  perspective: 1500px;
}

.laptop-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.laptop-description {
  text-align: center;
}

.laptop-description h3 {
  margin-bottom: 5px;
  color: var(--first-color);
}

.laptop-description p {
  color: var(--text-color-second);
  font-size: 15px;
}

.project-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.project-box {
  position: relative;
  width: 30%;
  height: 280px;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.project-content {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 25px;
  transform: translateZ(20px);
  transition: all var(--transition-normal);
  z-index: 5;
}

.project-box > i {
  font-size: 50px;
  color: #00b5e7;
  margin-bottom: 25px;
}

.project-content i {
  font-size: 36px;
  color: var(--first-color);
  margin-bottom: 20px;
  background: rgba(67, 97, 238, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.project-box:hover .project-content i {
  background: var(--first-color);
  color: var(--color-white);
  transform: scale(1.1);
}

.tilt-effect {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: all 0.3s ease;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: var(--hover-shadow);
  z-index: 10;
}

.project-box label a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--first-color);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--border-radius-md);
  background: rgba(67, 97, 238, 0.1);
  transition: all var(--transition-fast);
}

.project-box label a::after {
  content: "→";
  margin-left: 5px;
  transition: transform var(--transition-fast);
}

.project-box:hover label a {
  color: var(--color-white);
  background: var(--first-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.project-box:hover label a::after {
  transform: translateX(5px);
}

.project-content {
  position: relative;
  z-index: 5;
}

.project-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--first-color), var(--second-color));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  border-radius: 20px;
}

.project-box:hover::before {
  opacity: 0.9;
}

.project-box h3,
.project-box p,
.project-box i {
  transition: color 0.3s ease;
}

.project-box:hover h3,
.project-box:hover p,
.project-box:hover i {
  color: var(--color-white);
}

.code-terminal {
  width: 100%;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

.terminal-header {
  display: flex;
  align-items: center;
  background: #252526;
  padding: 10px 15px;
  border-bottom: 1px solid #333;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background: #ff5f56;
}

.terminal-button.yellow {
  background: #ffbd2e;
}

.terminal-button.green {
  background: #27c93f;
}

.terminal-title {
  color: #ddd;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 14px;
}

.terminal-body {
  padding: 20px;
  color: #f8f8f2;
  font-family: "Consolas", "Monaco", monospace;
}

.contact-info {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  z-index: 5;
}

.contact-info .code-comment,
.contact-info .code-line,
.contact-info .code-property,
.contact-info .code-keyword,
.contact-info .code-variable,
.contact-info .code-property-name,
.contact-info .code-string {
  position: relative;
  z-index: 2;
}

.code-comment {
  color: #6272a4;
  margin-bottom: 10px;
}

.code-line {
  margin-bottom: 10px;
}

.code-keyword {
  color: #ff79c6;
  font-weight: bold;
}

.code-variable {
  color: #bd93f9;
}

.code-property {
  margin-left: 20px;
  margin-bottom: 5px;
}

.code-property-name {
  color: #ffb86c;
}

.code-string {
  color: #f1fa8c;
}

body.dark .code-terminal {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-control {
  background: transparent;
}

.input-field,
textarea {
  background: #282a36;
  border: 1px solid #44475a;
  color: #f8f8f2;
  font-family: "Consolas", "Monaco", monospace;
}

.input-field::placeholder,
textarea::placeholder {
  color: #6272a4;
}

.input-field:focus,
textarea:focus {
  border-color: #bd93f9;
  outline: none;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.form-inputs {
  display: flex;
  gap: 10px;
  width: 100%;
}
.input-field {
  width: 50%;
  height: 55px;
  background: transparent;
  border: 2px solid #aaa;
  border-radius: 10px;
  padding-inline: 20px;
  outline: none;
  transition: all var(--transition-normal);
  position: relative;
}

.input-field:focus,
textarea:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  transform: translateY(-2px);
}

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

textarea {
  width: 100%;
  height: 250px;
  background: transparent;
  border: 2px solid #aaa;
  border-radius: 10px;
  padding: 15px 20px;
  outline: none;
  resize: none;
  transition: all var(--transition-normal);
}
.form-button > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--second-color);
  color: var(--color-white);
}
.form-button > .btn:hover {
  background: var(--first-color-hover);
}
.form-button i {
  font-size: 18px;
  rotate: -45deg;
}

.form-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: var(--border-radius-md);
  font-family: "Fira Code", monospace;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.form-status.success {
  background: rgba(46, 204, 113, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
  opacity: 1;
}

.form-status.error {
  background: rgba(231, 76, 60, 0.2);
  color: var(--error-color);
  border: 1px solid var(--error-color);
  opacity: 1;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 30px;
  background: #f8f8f8;
  padding-block: 40px 60px;
}
.top-footer p {
  font-size: 25px;
  font-weight: 600;
}
.middle-footer .footer-menu {
  display: flex;
}
.footer_menu_list {
  list-style: none;
}
.footer_menu_list a {
  text-decoration: none;
  color: var(--text-color-second);
  font-weight: 500;
  margin-inline: 20px;
  position: relative;
  transition: all var(--transition-normal);
  padding: 5px 0;
}

.footer_menu_list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.footer_menu_list a:hover {
  color: var(--first-color);
  transform: translateY(-3px);
}

.footer_menu_list a:hover::after {
  width: 100%;
}
.footer-social-icons {
  display: flex;
  gap: 30px;
}

body.dark .footer-social-icons .icon {
  background: var(--dark-color-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark .footer-social-icons .icon i {
  color: var(--dark-body-color);
  font-size: 18px;
}

body.dark .footer-social-icons .icon:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(123, 231, 255, 0.4);
}

body.dark .footer-social-icons .icon:hover i {
  color: var(--dark-color-white);
}
.bottom-footer {
  font-size: 14px;
  margin-top: 10px;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--first-color);
}

.stat-text {
  font-size: 14px;
  color: #777;
}

.testimonials-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.testimonial-box {
  position: relative;
  width: 30%;
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-content {
  position: relative;
  padding: 30px;
  width: 100%;
  height: 100%;
  transform: translateZ(20px);
  transition: transform 0.5s ease;
}

.testimonial-box:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.testimonial-quote {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--first-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-quote i {
  color: var(--color-white);
  font-size: 20px;
}

.testimonial-text {
  margin-top: 15px;
  margin-bottom: 25px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color-second);
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color-second);
  margin-bottom: 5px;
}

.client-info p {
  font-size: 14px;
  color: #777;
}

body.dark .testimonial-box {
  background: var(--dark-body-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

body.dark .testimonial-text {
  color: var(--dark-text-color-second);
}

body.dark .client-info h4 {
  color: var(--dark-color-white);
}

body.dark .client-info p {
  color: var(--dark-text-color-second);
}

.certificates-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.certificate-box {
  display: flex;
  flex-direction: column;
  width: 30%;
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-bounce);
  position: relative;
  z-index: 1;
}

.certificate-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-animated);
  background-size: 300% 300%;
  animation: gradientFlow 3s ease infinite;
  z-index: 2;
  transition: height 0.3s ease;
}

.certificate-box:hover::before {
  height: 10px;
}

.certificate-box:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.certificate-box:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

.certificate-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.certificate-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.2));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-box:hover .certificate-img::after {
  opacity: 1;
}

.certificate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.certificate-box:hover .certificate-img img {
  transform: scale(1.1) rotate(1deg);
}

.certificate-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.certificate-box:hover .certificate-info {
  transform: translateY(-5px);
}

.certificate-info h3 {
  margin-bottom: 10px;
  color: var(--text-color-second);
  transition: color 0.3s ease;
}

.certificate-box:hover .certificate-info h3 {
  color: var(--first-color);
}

.certificate-info p {
  color: #777;
  font-size: 14px;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.certificate-info .btn {
  margin-top: auto;
  align-self: flex-start;
  animation: pulse 3s infinite;
}

.certificate-box:hover .certificate-info .btn {
  animation: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.project-box p {
  color: #777;
  font-size: 14px;
  margin: 10px 0 15px;
  text-align: center;
  padding: 0 15px;
}

#year {
  display: inline-block;
}

body.dark .certificate-box {
  background: var(--dark-card-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark .certificate-box:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .certificate-box::before {
  background: var(--gradient-animated);
  opacity: 0.9;
}

body.dark .certificate-info h3 {
  color: var(--dark-color-white);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark .certificate-info p {
  color: var(--dark-text-color-second);
  font-weight: 400;
}

body.dark .certificate-info .btn {
  background: var(--dark-first-color);
  box-shadow: 0 5px 15px rgba(90, 120, 255, 0.3);
}

body.dark .certificate-info .btn:hover {
  background: var(--dark-first-color-hover);
  box-shadow: 0 8px 20px rgba(90, 120, 255, 0.4);
}

body.dark .stat-number {
  color: var(--dark-text-color-third);
  font-weight: 700;
  font-size: 32px;
  text-shadow: 0 0 12px rgba(123, 231, 255, 0.5);
  letter-spacing: 0.02em;
}

body.dark .stat-text {
  color: var(--dark-color-white);
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
}

body.dark .about-stats {
  background: rgba(30, 30, 30, 0.5);
  border-radius: 12px;
  padding: 15px 10px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark .input-field,
body.dark textarea {
  background: rgba(30, 30, 30, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--dark-color-white);
}

body.dark .input-field:focus,
body.dark textarea:focus {
  border-color: var(--dark-first-color);
  box-shadow: 0 0 0 3px rgba(90, 120, 255, 0.2);
  background: rgba(30, 30, 30, 0.8);
}

body.dark .input-field::placeholder,
body.dark textarea::placeholder {
  color: rgba(240, 240, 240, 0.6);
}

body.dark .code-terminal {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.95);
}

body.dark .terminal-body {
  background: rgba(25, 25, 25, 0.95);
}

body.dark .code-keyword {
  color: #ff79c6;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 121, 198, 0.3);
}

body.dark .code-variable {
  color: #8be9fd;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(139, 233, 253, 0.3);
}

body.dark .code-property-name {
  color: #50fa7b;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(80, 250, 123, 0.3);
}

body.dark .code-string {
  color: #f1fa8c;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(241, 250, 140, 0.3);
}

body.dark .code-line {
  color: #f8f8f2;
  font-weight: 500;
}

@media only screen and (max-width: 1024px) {
  .featured-text {
    padding: 0;
  }
  .laptop-wrapper {
    width: 350px;
    height: 210px;
  }
}

@media only screen and (max-width: 900px) {
  .certificate-box {
    width: 45%;
  }

  .laptop-wrapper {
    width: 320px;
    height: 190px;
  }
  .nav-button {
    display: none;
  }
  .nav-menu.responsive {
    left: 0;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    width: 100%;
    min-height: 450px;
    height: 90vh;
    transition: 0.3s;
  }
  .nav_menu_list {
    flex-direction: column;
  }
  .nav-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .featured-box {
    flex-direction: column;
    justify-content: center;
    height: 100vh;
  }
  .featured-text {
    width: 100%;
    order: 2;
    justify-content: center;
    align-content: flex-start;
    min-height: 60vh;
  }
  .social_icons {
    margin-top: 2em;
  }
  .featured-image {
    order: 1;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    margin-top: 65px;
  }
  .laptop-wrapper {
    width: 280px;
    height: 170px;
  }
  .row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
  }
  .col {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .about-info,
  .contact-info {
    width: 100%;
  }
  .project-container {
    justify-content: center;
  }
  .project-box {
    width: 80%;
  }
}

@media only screen and (max-width: 540px) {
  .certificate-box {
    width: 100%;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
  .featured-name {
    font-size: 40px;
  }
  .project-box {
    width: 100%;
  }
  .form-inputs {
    flex-direction: column;
  }
  .input-field {
    width: 100%;
  }
  .laptop-wrapper {
    width: 280px;
    height: 170px;
  }
}

@media only screen and (max-width: 380px) {
  .laptop-wrapper {
    width: 200px;
    height: 130px;
  }
  .mini-site-projects {
    display: none;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: var(--button-shadow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--button-shadow);
  }
}

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

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

@keyframes borderGlow {
  0% {
    box-shadow: 0 0 5px var(--first-color);
  }
  50% {
    box-shadow: 0 0 20px var(--first-color), 0 0 30px var(--second-color);
  }
  100% {
    box-shadow: 0 0 5px var(--first-color);
  }
}

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

@keyframes rotateIn {
  from {
    transform: rotate(-10deg) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

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

