@import url("https://fonts.googleapis.com/css2?family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Dark theme (default) */
  --bg-primary: #000000;
  --bg-secondary: #020202;
  --bg-gradient-start: #0b0b0d;
  --bg-gradient-end: #000000;
  --text-primary: #689775;
  --text-secondary: #f2f2f8;
  --accent-primary: #c84939;
  --accent-secondary: #511913;
  --card-bg: rgba(26, 31, 58, 0.6);
  --border-color: rgba(121, 215, 148, 0.2);

  /* Shadows — reusable */
  --shadow-card-hover-outer:
    -4px -4px 12px hsla(156, 94%, 86%, 0), 4px 4px 12px transparent;
  --shadow-card-hover-inset:
    inset -22px -14px 14px 2px hsla(137, 94%, 7%, 0.015),
    inset 8px 4px 20px 22px rgb(1, 21, 11);
  --shadow-neomorph-dark:
    8px 8px 20px rgba(0, 0, 0, 0.5), -8px -8px 20px rgba(121, 215, 148, 0.222);
  --shadow-neomorph-dark-inset:
    8px 8px 20px rgba(0, 0, 0, 0.5), -8px -8px 20px rgba(121, 215, 148, 0.2),
    inset 8px 8px 20px rgba(0, 0, 0, 1),
    inset -8px -8px 20px rgba(121, 215, 148, 0.2);

  /* Toggle */
  --toggle-border-w: 2px;
  --toggle-radius: 12px;

  /* Typography */
  --font-main:
    "Quantico", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-gradient-start: #f5f5f7;
  --bg-gradient-end: #e8e8ea;
  --text-primary: #1d1d1f;
  --text-secondary: #212121;
  --accent-primary: #c84939;
  --accent-secondary: #5e17eb;
  --card-bg: rgba(255, 255, 255, 0.8);
  --border-color: rgba(0, 102, 204, 0.2);

  --shadow-card-hover-outer:
    -4px -4px 12px hsla(120, 0%, 60%, 0.141), 4px 4px 12px transparent;
  --shadow-card-hover-inset:
    inset -22px -14px 14px 2px hsla(0, 0%, 27%, 0.1),
    inset 8px 4px 20px 22px rgb(203, 203, 203);
  --shadow-neomorph-dark: 8px 8px 20px #a9a8b7, -8px -8px 20px #fff;
  --shadow-neomorph-dark-inset:
    8px 8px 20px #a9a8b7, -8px -8px 20px #fff, inset -8px -8px 20px #fff,
    inset 8px 8px 20px #a9a8b7;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg,
      var(--bg-gradient-start) 0%,
      var(--bg-gradient-end) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   PARTICLES BACKGROUND
   ============================================================ */

.particles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  z-index: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  padding: 1rem 2rem;
  z-index: 1001;
  transform: translateZ(0);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgb(9 9 12 / 95%);
  box-shadow: 0 10px 20px rgb(12 20 19);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(241, 241, 245, 0.95);
  box-shadow: 0 10px 20px rgb(0 0 0 / 11%);
}

.nav-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Logo */
.logo svg {
  width: 70px;
  height: auto;
  flex-shrink: 0;
  transition: all 0.3s ease;
  --logo-main-color: #fbfbfb;
  --logo-detail-color: #747474;
  --logo-hidden-color: transparent;
}

[data-theme="light"] .logo svg {
  --logo-main-color: #000000;
  --logo-detail-color: #2a2a2a;
}

.logo svg path {
  transition: fill 0.4s ease;
}

.logo:hover svg {
  --logo-main-color: var(--accent-primary);
  --logo-detail-color: var(--accent-primary);
  --logo-hidden-color: var(--accent-primary);
}

/* Nav links */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-close {
  display: none;
}

/* Toggles container */
.toggles-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Language toggle */
.toggle-language {
  position: relative;
  border: solid var(--toggle-border-w) #fbfbfb;
  border-radius: var(--toggle-radius);
  height: 40px;
  width: 80px;
  display: flex;
  align-items: center;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform cubic-bezier(0, 0, 0.3, 2) 0.4s;
}

[data-theme="light"] .toggle-language {
  border-color: black;
}

.toggle-language>input[type="radio"] {
  display: none;
}

.toggle-language>#choice1:checked~#flap {
  transform: rotateY(-180deg);
}

.toggle-language>#choice1:checked~#flap .content {
  transform: rotateY(-180deg);
}

.toggle-language>#choice2:checked~#flap {
  transform: rotateY(0deg);
}

.toggle-language>label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  font-size: clamp(0.875rem, 1.5vw, 1.1rem);
  font-family: var(--font-main);
  font-weight: bold;
  color: #fbfbfb;
  cursor: pointer;
  text-transform: uppercase;
}

[data-theme="light"] .toggle-language>label {
  color: black;
}

.toggle-language>#flap {
  position: absolute;
  top: calc(0px - var(--toggle-border-w));
  left: 50%;
  height: calc(100% + var(--toggle-border-w) * 2);
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(0.875rem, 1.5vw, 1.1rem);
  font-family: var(--font-main);
  font-weight: bold;
  background-color: #fbfbfb;
  border-radius: 0 var(--toggle-radius) var(--toggle-radius) 0;
  transform-style: preserve-3d;
  transform-origin: left;
  transition: transform cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

[data-theme="light"] .toggle-language>#flap {
  background-color: black;
}

.toggle-language>#flap>.content {
  color: black;
  transition: transform 0s linear 0.25s;
  transform-style: preserve-3d;
  text-transform: uppercase;
}

[data-theme="light"] .toggle-language>#flap>.content {
  color: white;
}

/* Theme toggle switch */
.toggle-switch {
  position: relative;
  width: 90px;
  height: 40px;
  margin-left: 0;
  border: solid var(--toggle-border-w) #ffffff;
  border-radius: 15px;
}

[data-theme="light"] .toggle-switch {
  border-color: black;
}

.switch-label {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  cursor: pointer;
}

.checkbox {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  transition: background-color 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0;
  top: 0;
  background: url("assets/icons/moon.svg") center / 80% auto no-repeat;
  transition: transform 0.3s;
}

.checkbox:checked~.slider::before {
  transform: translateX(100%);
  background-image: url("assets/icons/sun.svg");
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg,
      var(--accent-primary),
      var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing cursor */
.hero h1 span[data-i18n="hero.title"]::after {
  content: "|";
  animation: blink 0.7s step-end infinite;
  color: var(--accent-primary);
}

.hero h1 span[data-i18n="hero.title"].typing-complete::after {
  content: none;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-subtitle2 {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--accent-primary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Section headings */
section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg,
      var(--accent-primary),
      var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   SCROLL BUTTON (rotating circular text)
   ============================================================ */

.intro_scroll {
  background: transparent;
  border: none;
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.intro_scroll.is-hidden {
  display: none;
}

.intro_scroll:focus {
  outline: none;
}

.intro_scroll:focus::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 2px dashed var(--accent-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulseFocus 2s ease-in-out infinite;
}

[data-theme="light"] .intro_scroll:focus::before {
  border-color: var(--text-primary);
}

.rotating-svg {
  position: absolute;
  /* inset: 0; */
  overflow: visible;
  top: 0;
  left: 0;
}

.rotating-group {
  animation: rotateText 10s linear infinite;
  transform-origin: 60px 60px;
}

.circular-text {
  fill: var(--accent-primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-main);
}

[data-theme="light"] .circular-text {
  fill: var(--text-primary);
}

/* Arrow icon inside scroll button */
.arrow-down {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.arrow-down::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
}

[data-theme="light"] .arrow-down::before {
  border-color: var(--text-primary);
}

.arrow-down::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 24px;
  height: 24px;
  border-left: 3px solid var(--accent-primary);
  border-bottom: 3px solid var(--accent-primary);
  transform: translate(-50%, -60%) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .arrow-down::after {
  border-color: transparent transparent var(--text-primary) var(--text-primary);
}

#showLessBtn .arrow-down::after {
  transform: translate(-50%, -40%) rotate(135deg);
}

.intro_scroll:hover .arrow-down::after,
.intro_scroll:focus .arrow-down::after {
  opacity: 1;
}

.btn-hero {
  transition: opacity 0.5s ease-in;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */

#skills {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.skills__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.skills__column {
  display: flex;
  flex-direction: column;
}

.skills__title,
.portfolio__title,
.contact-title {
  font-size: clamp(2.5rem, 3vw, 2rem);
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.2;
}


.skills__title .accent-color {
  background: linear-gradient(135deg,
      var(--accent-primary),
      var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills__body {
  flex: 1;
}

.skills__list {
  list-style: none;
  display: grid;
  gap: 3.5rem;
}

/* Scroll-triggered reveal */
.skills__item {
  opacity: 0;
  transform: translateX(100px);
  transition:
    opacity 1.2s ease,
    transform 0.6s ease;
}

.scroll-effect--visible .skills__item {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays (1–10) */
.scroll-effect--visible .skills__item:nth-child(1) {
  transition-delay: 0.1s;
}

.scroll-effect--visible .skills__item:nth-child(2) {
  transition-delay: 0.2s;
}

.scroll-effect--visible .skills__item:nth-child(3) {
  transition-delay: 0.3s;
}

.scroll-effect--visible .skills__item:nth-child(4) {
  transition-delay: 0.4s;
}

.scroll-effect--visible .skills__item:nth-child(5) {
  transition-delay: 0.5s;
}

.scroll-effect--visible .skills__item:nth-child(6) {
  transition-delay: 0.6s;
}

.scroll-effect--visible .skills__item:nth-child(7) {
  transition-delay: 0.7s;
}

.scroll-effect--visible .skills__item:nth-child(8) {
  transition-delay: 0.8s;
}

.scroll-effect--visible .skills__item:nth-child(9) {
  transition-delay: 0.9s;
}

.scroll-effect--visible .skills__item:nth-child(10) {
  transition-delay: 1s;
}

/* Skill card */
.skill-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 150px;
  padding: 1.3rem 1.5rem 1.3rem 2.5rem;
  font-size: 1.3rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease-out;
}

/* Neomorphic shadow layer */
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 150px;
  box-shadow: var(--shadow-neomorph-dark);
  filter: blur(7px);
  z-index: -1;
  transition:
    box-shadow 0.3s ease-out,
    transform 0.3s ease-out;
}

/* Red dot indicator */
.skill-card::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  z-index: 10;
}

@media (hover: hover) {
  .skill-card:hover::before {
    box-shadow: var(--shadow-neomorph-dark-inset);
    transform: scale(1.05);
    transition-duration: 0.1s;
  }
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */

#portfolio {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}



.portfolio-grid {
  display: grid;
  gap: 3rem;
}

/* Project card */
.project-card {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 40px;
  border-radius: 32px;
  box-shadow:
    -4px -4px 12px hsla(152, 100%, 79%, 0.087),
    4px 4px 20px rgb(1, 19, 10);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

[data-theme="light"] .project-card {
  box-shadow:
    -4px -4px 12px #a9a8b7,
    4px 4px 20px #fff;
}

/* Scroll-triggered card reveal */
.project-card.scroll-effect-card {
  opacity: 0;
  transform: translateY(100px);
  transition:
    opacity 1.2s ease,
    transform 0.6s ease;
}

.project-card.scroll-effect-card.scroll-effect--visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.scroll-effect-card:nth-child(1).scroll-effect--visible {
  transition-delay: 0.1s;
}

.project-card.scroll-effect-card:nth-child(2).scroll-effect--visible {
  transition-delay: 0.2s;
}

.project-card.scroll-effect-card:nth-child(3).scroll-effect--visible {
  transition-delay: 0.3s;
}

/* Hidden extra cards (shown via JS) */
.project-card.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.project-card.is-hidden {
  display: none;
}

@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover-outer), var(--shadow-card-hover-inset);
  }
}

/* Project image */
.project-image {
  flex: 0 0 30%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    -4px -4px 12px rgba(255, 255, 255, 0.05),
    4px 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .project-card:hover .project-image {
    transform: scale(1.03);
  }
}

/* Project info */
.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-date {
  padding: 8px 16px;
  margin-bottom: 16px;
  width: 150px;
  border-radius: 16px;
  font-size: 0.9rem;
  color: var(--accent-primary);
  box-shadow:
    inset -2px -2px 4px hsla(156, 100%, 81%, 0.222),
    inset 2px 2px 4px rgba(8, 21, 16, 0.5);
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 2rem;
  color: var(--text-secondary);
}

.project-info p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tags */
.link-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 15px;
}

.link-tags a {
  color: var(--accent-primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--accent-primary);
  box-shadow:
    inset -2px -2px 4px hsla(156, 100%, 81%, 0.222),
    inset 2px 2px 4px rgba(8, 21, 16, 0.5);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

@media (hover: hover) {
  .tag:hover {
    transform: translateY(-2px);
    box-shadow:
      -2px -2px 6px rgba(255, 255, 255, 0.05),
      2px 2px 10px rgba(0, 0, 0, 0.8);
  }
}

/* Portfolio controls */
.portfolio-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  padding: 2rem 1rem 4rem;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 3rem;
}

.contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.contact-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: 0.3s ease-out;
}

.contact-button img {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 5;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease-out;
}

.contact-button:hover img {
  transform: scale(1.1);
}

[data-theme="light"] .contact-button img {
  filter: brightness(0);
}

.contact-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-neomorph-dark);
  filter: blur(7px);
  transition:
    box-shadow 0.3s ease-out,
    transform 0.3s ease-out;
}

@media (hover: hover) {
  .contact-button:hover::before {
    box-shadow: var(--shadow-neomorph-dark-inset);
    transform: scale(1.05);
    transition-duration: 0.1s;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes rotateText {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseFocus {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  /* Nav */

  .hamburger {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient-start);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
  }

  .nav-links a {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 500;
  }

  .menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    color: var(--text-secondary);
    z-index: 1000;
  }

  .nav-links.active .menu-close {
    display: block;
  }

  .nav-container {
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    display: flex;
    width: 100%;
  }

  .logo svg {
    width: 54px;
    flex-shrink: 0;
  }


  .toggles-container {
    order: 2;
    display: flex;
    gap: 0.8rem;
    align-items: center;
  }

  .toggle-language,
  .toggle-switch {
    width: 70px;
    height: 35px;
  }

  .slider::before {
    width: 30px;
    height: 30px;
  }

  #skills {
    padding: 3rem 2rem;
  }

  #portfolio {
    padding: 3rem 1.2rem;
  }

  .portfolio-grid {
    gap: 2rem;
  }

  .project-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 20px;
    border-radius: 24px;
  }

  .project-image {
    flex: none;
    width: 100%;
    height: 200px;
    border-radius: 14px;
  }

  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-info {
    justify-content: flex-start;
  }

  .project-date {
    width: fit-content;
    font-size: 0.75rem;
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .project-info p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .link-tags {
    gap: 0.6rem;
    margin-bottom: 12px;
  }

  .tech-tags {
    gap: 0.5rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .portfolio-controls {
    gap: 2rem;
    margin-top: 2rem;
  }

  /* Contacts */
  .contacts {
    gap: 1.5rem;
  }

  .contact-button,
  .contact-button::before {
    width: 70px;
    height: 70px;
  }

  .contact-button img {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 767px) {
  .skills__inner {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 1rem 1.2rem 1rem 2.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .project-card {
    padding: 20px;
  }

  .project-date {
    font-size: 0.85rem;
  }

  .skill-card {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    font-size: 0.85rem;
  }

  .contacts {
    gap: 1rem;
  }

  .contact-button,
  .contact-button::before {
    width: 60px;
    height: 60px;
  }

  .contact-button img {
    width: 30px;
    height: 30px;
  }
}