:root {
  --bg-left: #080c24;
  --bg-right: #100f32;
  --panel: rgba(22, 29, 55, 0.88);
  --panel-strong: rgba(19, 25, 45, 0.95);
  --panel-border: rgba(156, 162, 255, 0.17);
  --text: #e9edff;
  --muted: rgba(200, 213, 245, 0.9);
  --accent-cyan: #7fe8ff;
  --accent-violet: #8f76ff;
  --accent-pink: #f751b1;
  --shadow: 0 24px 56px rgba(6, 9, 23, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1120px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 25%, rgba(34, 34, 52, 0.95), rgba(12, 16, 40, 0.98));
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  visibility: visible;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  color: #e8edff;
  font-family: "Poppins", sans-serif;
}

.preloader-content p {
  margin-top: 14px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: rgba(241, 247, 255, 0.95);
}

.preloader-cube {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(150, 160, 255, 0.7);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(143, 114, 255, 0.6), rgba(243, 80, 171, 0.6));
  animation: spin3d 1.6s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
  transform-style: preserve-3d;
  box-shadow: 0 0 30px rgba(90, 140, 255, 0.45), 0 18px 38px rgba(28, 34, 66, 0.55);
}

@keyframes spin3d {
  0% {
    transform: perspective(220px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    box-shadow: 0 0 22px rgba(117, 139, 255, 0.8), 0 16px 26px rgba(18, 24, 54, 0.5);
  }
  50% {
    transform: perspective(220px) rotateX(180deg) rotateY(180deg) rotateZ(45deg);
    box-shadow: 0 0 32px rgba(240, 80, 170, 0.95), 0 20px 32px rgba(24, 28, 56, 0.58);
  }
  100% {
    transform: perspective(220px) rotateX(360deg) rotateY(360deg) rotateZ(90deg);
    box-shadow: 0 0 22px rgba(117, 139, 255, 0.8), 0 16px 26px rgba(18, 24, 54, 0.5);
  }
}

@media (max-width: 760px) {
  .preloader-cube {
    width: 58px;
    height: 58px;
  }
  .preloader-content p {
    font-size: 0.93rem;
  }
}

html.light-mode {
  --bg-left: #f5f7fb;
  --bg-right: #e8ecf5;
  --panel: rgba(240, 242, 248, 0.9);
  --panel-strong: rgba(235, 240, 250, 0.95);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text: #1a1f3a;
  --muted: rgba(60, 75, 110, 0.8);
  --accent-cyan: #0099cc;
  --accent-violet: #6b5aff;
  --accent-pink: #d63a7a;
  --shadow: 0 22px 45px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 49.8%, rgba(255, 255, 255, 0.01) 50%, rgba(255, 255, 255, 0.01) 100%),
    linear-gradient(115deg, var(--bg-left) 0%, #111a31 45%, var(--bg-right) 100%);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.light-mode body {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 49.8%, rgba(0, 0, 0, 0.01) 50%, rgba(0, 0, 0, 0.01) 100%),
    linear-gradient(115deg, var(--bg-left) 0%, #f0f3fb 45%, var(--bg-right) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 15% 10%, rgba(94, 110, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(236, 88, 168, 0.12), transparent 32%),
    radial-gradient(circle at 90% 75%, rgba(160, 90, 255, 0.09), transparent 26%);
}

html.light-mode body::before {
  background:
    radial-gradient(circle at 15% 10%, rgba(107, 90, 255, 0.06), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(214, 58, 122, 0.08), transparent 32%),
    radial-gradient(circle at 90% 75%, rgba(107, 90, 255, 0.05), transparent 26%);
}

html.light-mode .internship-card {
  background: linear-gradient(180deg, rgba(235, 240, 252, 0.95), rgba(222, 230, 248, 0.92));
  border-color: rgba(100, 110, 200, 0.2);
}

html.light-mode .internship-card h3 {
  color: #0099cc;
}

html.light-mode .internship-company {
  color: #1a1f3a;
}

html.light-mode .internship-description {
  color: rgba(50, 70, 110, 0.9);
}

html.light-mode .internship-badge {
  background: rgba(100, 110, 200, 0.15);
  border-color: rgba(100, 110, 200, 0.3);
  color: rgba(75, 90, 150, 0.95);
}

html.light-mode .internship-chip {
  background: rgba(100, 110, 200, 0.12);
  border-color: rgba(100, 110, 200, 0.2);
  color: rgba(75, 90, 150, 0.9);
}


html.light-mode .moments-card {
  background: linear-gradient(180deg, rgba(235, 240, 252, 0.95), rgba(222, 230, 248, 0.92));
  border-color: rgba(100, 110, 200, 0.2);
}

html.light-mode .moments-card p {
  color: rgba(50, 70, 110, 0.9);
}

body::after {
  background:
    linear-gradient(98deg, transparent 40%, rgba(255, 255, 255, 0.035) 40.7%, rgba(255, 255, 255, 0.01) 44%, transparent 44.3%);
  opacity: 0.6;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 76px 0;
}

.section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(12, 19, 38, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(90deg, #8d82ff, #f253ab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  color: rgba(240, 245, 255, 0.98);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 999px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.theme-toggle .theme-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.theme-toggle:active .theme-icon {
  transform: rotate(20deg);
}


.hero {
  padding-top: 46px;
  min-height: 620px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: start;
}

.hero-copy {
  max-width: 560px;
  padding: 42px 0 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 5vw, 5.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 span {
  color: #66e0ff;
}

.hero-role {
  margin: 28px 0 26px;
  font-size: 1.05rem;
  color: rgba(209, 221, 255, 0.9);
}

html.light-mode .hero-role {
  color: rgba(34, 47, 78, 0.95);
}

.hero-text {
  margin: 0;
  max-width: 540px;
  color: rgba(220, 227, 255, 0.94);
  font-size: 1rem;
  line-height: 1.95;
}

html.light-mode .hero-text {
  color: rgba(26, 38, 60, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink));
  box-shadow: 0 14px 24px rgba(122, 98, 255, 0.24), 0 0 26px rgba(232, 87, 170, 0.2);
}

.btn-secondary {
  border-color: rgba(65, 214, 255, 0.82);
  color: var(--accent-cyan);
  background: rgba(16, 25, 46, 0.55);
  box-shadow: inset 0 0 0 1px rgba(65, 214, 255, 0.16);
}

.btn-full {
  width: 100%;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 30px -30px 0 10px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.02) 10%, rgba(255, 255, 255, 0.01) 30%, rgba(255, 255, 255, 0.06) 31%, rgba(255, 255, 255, 0.01) 33%, rgba(255, 255, 255, 0.01) 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.35;
}

.identity-pill {
  position: absolute;
  top: 84px;
  left: 112px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(17, 23, 43, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.portrait-frame {
  position: absolute;
  top: 145px;
  right: 70px;
  width: 300px;
  height: 360px;
  padding: 10px;
  border-radius: 48% 52% 58% 42% / 42% 36% 64% 58%;
  background: linear-gradient(135deg, rgba(86, 128, 255, 0.85), rgba(252, 93, 182, 0.72));
  box-shadow: 0 28px 64px rgba(6, 10, 25, 0.44), 0 0 58px rgba(100, 78, 236, 0.32);
  overflow: hidden;
  animation: portrait-pulse 5.8s ease-in-out infinite;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 42%),
    radial-gradient(circle at 80% 25%, rgba(255, 152, 198, 0.14), transparent 35%);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 25%, rgba(255, 193, 214, 0.2), transparent 45%),
    radial-gradient(circle at 75% 20%, rgba(85, 190, 255, 0.18), transparent 38%),
    radial-gradient(circle at 50% 75%, rgba(200, 255, 255, 0.12), transparent 50%);
  z-index: -1;
  filter: blur(2px);
}

.portrait-ring {
  width: 100%;
  height: 100%;
  padding: 11px;
  border-radius: 46% 54% 58% 42% / 49% 43% 58% 54%;
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: ring-glow 5.5s ease-in-out infinite;
}

.portrait-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 38% 62% 64% 36% / 40% 44% 56% 60%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
}


.portrait-ring {
  width: 100%;
  height: 100%;
  padding: 8px;
  border-radius: 30px;
  background: rgba(12, 19, 38, 0.9);
}

.portrait-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

.identity-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8cff90, #4ac2ff);
  box-shadow: 0 0 10px rgba(74, 194, 255, 0.6);
}

.floating {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 2rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  animation: drift 6.5s ease-in-out infinite;
}

@keyframes portrait-pulse {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 28px 64px rgba(6, 10, 25, 0.44), 0 0 58px rgba(100, 78, 236, 0.32);
  }
  50% {
    transform: translateY(-6px) rotate(0.75deg);
    box-shadow: 0 34px 70px rgba(6, 10, 25, 0.42), 0 0 70px rgba(137, 91, 255, 0.35);
  }
}

@keyframes ring-glow {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 0 23px rgba(156, 145, 255, 0.22);
  }
}

.floating-bolt {
  top: 156px;
  left: 64px;
}

.floating-rocket {
  top: 320px;
  right: 14px;
  animation-delay: -2s;
}

.floating-bulb {
  top: 420px;
  left: 88px;
  animation-delay: -3.2s;
}

.section-heading {
  display: grid;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  color: #121e4b;
}

.section-heading span {
  width: 204px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink));
}

.projects-grid,
.skills-grid,
.contact-grid {
  display: grid;
  gap: 34px;
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.project-card,
.skill-card,
.contact-card,
.contact-form {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(38, 48, 77, 0.94), rgba(34, 43, 69, 0.88));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.project-card {
  overflow: hidden;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
}

.project-art {
  height: 188px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #7264ff, #f14f9d);
  overflow: hidden;
}

.project-art .project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-art span {
  font-size: 3rem;
}

.project-body {
  padding: 22px 24px 24px;
}

.project-body h3 {
  margin: 0 0 14px;
  color: var(--accent-cyan);
  font-size: 1.18rem;
  font-weight: 700;
}

.project-body p {
  margin: 0;
  min-height: 84px;
  color: rgba(232, 238, 247, 0.7);
  line-height: 1.65;
  font-size: 0.94rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(81, 74, 166, 0.45);
  border: 1px solid rgba(146, 132, 255, 0.14);
  color: rgba(172, 167, 255, 0.9);
  font-size: 0.8rem;
}

.social-section {
  padding-top: 84px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 500px));
  justify-content: center;
  gap: 26px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.social-card {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(38, 48, 77, 0.94), rgba(20, 29, 55, 0.82));
  border: 1px solid rgba(112, 139, 236, 0.24);
  box-shadow: 0 26px 70px rgba(4, 8, 20, 0.36);
  min-height: 470px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.social-card .social-art {
  min-height: 238px;
}

.social-body {
  flex: 1;
  padding: 22px 24px 26px;
}

.social-art {
  position: relative;
  min-height: 312px;
  overflow: hidden;
}

.social-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 0 22px 22px;
}

.social-card-instagram .social-art {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 15%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(135deg, #833ab4 0%, #c13584 50%, #fd1d1d 100%);
}

.social-card-facebook .social-art {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.15), transparent 16%),
    radial-gradient(circle at 77% 18%, rgba(255, 255, 255, 0.15), transparent 18%),
    linear-gradient(180deg, #51b7f5 0%, #39a7ef 35%, #2d80cc 100%);
}

.social-card-instagram .social-art::before {
  content: "";
  position: absolute;
  inset: auto 18px 0 auto;
  width: 54%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.social-card-facebook .social-art::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 48%;
  aspect-ratio: 1;
  transform: translateX(-40%);
  border-radius: 50%;
  background: rgba(220, 240, 249, 0.8);
}

.social-card-facebook .social-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(188, 200, 206, 0.85), rgba(168, 180, 186, 0.95));
}

.social-body {
  padding: 30px 30px 32px;
}

.social-body h3 {
  margin: 0 0 14px;
  color: #0aaed1;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
}

.social-body p {
  margin: 0;
  color: rgba(217, 227, 255, 0.95);
  font-size: 0.98rem;
  line-height: 1.8;
}

.social-chip-row {
  margin-top: 22px;
  gap: 12px;
}

.social-chip {
  padding: 9px 15px;
  background: #dfe0ff;
  border: 1px solid rgba(153, 156, 255, 0.22);
  color: #6672ff;
  font-size: 0.82rem;
}

.social-badge,
.social-bubble,
.social-figure {
  position: absolute;
}

.social-badge {
  border-radius: 18px;
  border: 1px solid rgba(168, 193, 255, 0.24);
  box-shadow: 0 18px 40px rgba(16, 12, 61, 0.24);
}

.social-badge-message {
  top: 16px;
  right: 54px;
  width: 40%;
  min-width: 180px;
  padding: 18px 18px 64px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  background: linear-gradient(180deg, rgba(54, 56, 142, 0.76), rgba(31, 27, 95, 0.8));
}

.social-badge-message::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent);
  box-shadow: 0 14px 0 rgba(255, 255, 255, 0.14), 0 28px 0 rgba(255, 255, 255, 0.1);
}

.social-badge-mail {
  top: 124px;
  left: 20px;
  width: 92px;
  height: 58px;
  background: linear-gradient(180deg, rgba(86, 219, 255, 0.28), rgba(119, 225, 255, 0.18));
}

.social-badge-mail::before,
.social-badge-mail::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  border-top: 2px solid rgba(209, 248, 255, 0.9);
}

.social-badge-mail::before {
  top: 17px;
  transform: skewY(24deg);
}

.social-badge-mail::after {
  top: 17px;
  transform: skewY(-24deg);
}

.social-badge-code {
  right: 34px;
  bottom: 30px;
  padding: 14px 28px;
  color: #bfe1ff;
  font-size: 2rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(67, 93, 255, 0.22), rgba(84, 163, 255, 0.18));
}

.social-badge-send {
  left: 50%;
  bottom: 78px;
  width: 38%;
  min-width: 210px;
  padding: 14px 22px;
  transform: translateX(-6%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  text-align: center;
  background: linear-gradient(90deg, #ff4fa5, #ffb45a);
}

.social-figure-instagram {
  left: 34px;
  bottom: 0;
  width: 42%;
  min-width: 180px;
  aspect-ratio: 0.82;
  background:
    radial-gradient(circle at 60% 21%, #ffccae 0 14%, transparent 14.5%),
    radial-gradient(circle at 58% 23%, #2c245e 0 20%, transparent 20.5%),
    radial-gradient(circle at 60% 23%, #4e2cb0 0 24%, transparent 24.5%),
    linear-gradient(180deg, transparent 0 30%, #6b42d9 30% 74%, #5130b3 74% 100%);
  border-radius: 48% 48% 12% 12% / 38% 38% 10% 10%;
  box-shadow: 0 22px 34px rgba(27, 15, 83, 0.24);
}

.social-figure-instagram::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 18%;
  width: 28%;
  aspect-ratio: 1;
  border: 6px solid #9b87ff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(210, 219, 255, 0.25);
}

.social-figure-instagram::after {
  content: "";
  position: absolute;
  top: 5%;
  left: 70%;
  width: 44px;
  height: 30px;
  border-radius: 0 0 20px 20px;
  background: rgba(243, 246, 255, 0.76);
}

.social-bubble {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
}

.social-bubble::before {
  content: "";
  position: absolute;
}

.social-bubble-globe {
  top: 74px;
  left: 54px;
  border-radius: 50%;
}

.social-bubble-globe::before {
  inset: 11px;
  border: 2px solid rgba(51, 79, 99, 0.65);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px transparent;
}

.social-bubble-idea {
  top: 24px;
  left: 154px;
}

.social-bubble-idea::before {
  top: 10px;
  left: 17px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(97, 161, 186, 0.85);
  border-radius: 50%;
  box-shadow: 0 21px 0 -7px rgba(97, 161, 186, 0.85);
}

.social-bubble-play {
  top: 26px;
  right: 64px;
  background: #f54c7d;
}

.social-bubble-play::before {
  top: 13px;
  left: 19px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
}

.social-bubble-gear {
  top: 108px;
  right: 88px;
  width: 64px;
  height: 64px;
  background: transparent;
}

.social-bubble-gear::before,
.social-bubble-gear::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 7px, #5a3474 7px 100%),
    conic-gradient(from 0deg, #5a3474 0 12%, transparent 12% 24%, #5a3474 24% 36%, transparent 36% 48%, #5a3474 48% 60%, transparent 60% 72%, #5a3474 72% 84%, transparent 84% 96%, #5a3474 96% 100%);
}

.social-bubble-gear::before {
  top: 0;
  left: 20px;
}

.social-bubble-gear::after {
  top: 24px;
  left: 0;
}

.social-figure-facebook {
  left: 50%;
  bottom: 12px;
  width: 208px;
  height: 236px;
  transform: translateX(-14%);
  background:
    radial-gradient(circle at 50% 18%, #ffb38e 0 16%, transparent 16.5%),
    linear-gradient(180deg, transparent 0 20%, #5148a1 20% 78%, transparent 78%),
    radial-gradient(circle at 44% 20%, #23244a 0 8%, transparent 8.5%),
    radial-gradient(circle at 56% 20%, #23244a 0 8%, transparent 8.5%);
  border-radius: 42% 42% 18% 18% / 30% 30% 12% 12%;
}

.social-figure-facebook::before {
  content: "";
  position: absolute;
  left: -58px;
  bottom: 22px;
  width: 32px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffb38e, #ffa07f);
  transform: rotate(-22deg);
  box-shadow: 44px -18px 0 0 #ffb38e;
}

.social-figure-facebook::after {
  content: "";
  position: absolute;
  left: -72px;
  bottom: 52px;
  width: 40px;
  height: 64px;
  border-radius: 10px;
  border: 4px solid #90a7be;
  background: linear-gradient(180deg, #f3fbff, #dceaf3);
  transform: rotate(-8deg);
  box-shadow: 172px 112px 0 18px rgba(61, 78, 92, 0.95), 250px 110px 0 8px #ffd85a;
}

.skills-section {
  padding-top: 92px;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.skill-card {
  min-height: 320px;
  padding: 30px 28px;
  border-radius: 22px;
  border: 1px solid rgba(166, 157, 255, 0.2);
  background: linear-gradient(180deg, rgba(29, 32, 53, 0.88), rgba(24, 30, 49, 0.94));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
}

.skill-card h3 {
  margin: 0 0 20px;
  color: #f8f8ff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.skill-line {
  margin-top: 18px;
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(143, 150, 224, 0.2);
}

.skill-line span {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(234, 241, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
}

.progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(115, 120, 166, 0.28);
  overflow: hidden;
}

.progress i {
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink));
  box-shadow: 0 0 16px rgba(226, 91, 170, 0.3);
}

.plain-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: rgba(216, 228, 254, 0.9);
}

.plain-list li {
  padding-left: 10px;
  position: relative;
}

.plain-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.skill-line + .skill-line {
  margin-top: 22px;
}

.skill-line span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink));
  box-shadow: 0 0 16px rgba(226, 91, 170, 0.26);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
  color: rgba(246, 248, 252, 0.9);
  line-height: 1.65;
}

.plain-list.roomy {
  gap: 22px;
}

.contact-section {
  padding-top: 104px;
}

.internships-section {
  padding-top: 92px;
  padding-bottom: 76px;
}

.internships-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.internship-card {
  background: linear-gradient(180deg, rgba(25, 35, 65, 0.96), rgba(18, 28, 50, 0.94));
  border: 1px solid rgba(107, 120, 200, 0.25);
  border-radius: 24px;
  padding: 32px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.internship-header {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1;
  grid-row: 1;
}

.internship-card h3 {
  margin: 0;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  font-weight: 700;
}

.internship-badge {
  background: rgba(107, 101, 255, 0.15);
  border: 1px solid rgba(107, 101, 255, 0.3);
  color: rgba(200, 190, 255, 0.9);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.internship-company {
  color: rgba(248, 251, 255, 0.85);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  grid-column: 1;
  grid-row: 2;
}

.internship-image {
  grid-column: 2;
  grid-row: 1 / 5;
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(107, 101, 255, 0.1), rgba(243, 79, 164, 0.1));
}

.internship-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.internship-description {
  margin: 0;
  color: rgba(224, 232, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.7;
  grid-column: 1;
  grid-row: 3;
}

.internship-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  grid-column: 1;
  grid-row: 4;
}

.internship-chip {
  background: rgba(75, 80, 150, 0.4);
  border: 1px solid rgba(100, 120, 200, 0.25);
  color: rgba(150, 170, 255, 0.9);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.moments-section {
  padding-top: 92px;
  padding-bottom: 76px;
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.moments-card {
  background: linear-gradient(180deg, rgba(25, 35, 65, 0.96), rgba(18, 28, 50, 0.94));
  border: 1px solid rgba(107, 120, 200, 0.25);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.moments-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.moments-card p {
  margin: 0;
  color: rgba(224, 232, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-grid {
  grid-template-columns: 0.94fr 1.06fr;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 22px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 110px;
  padding: 22px 24px;
}

.contact-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
  box-shadow: 0 12px 24px rgba(122, 98, 255, 0.16);
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.contact-card p {
  margin: 0;
  color: rgba(239, 243, 249, 0.86);
  word-break: break-word;
}

.site-footer {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 18, 35, 0.5);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.footer-icons {
  display: flex;
  gap: 28px;
}

.footer-icons a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-icons a:nth-child(2) {
  color: transparent;
}

.footer-inner p {
  margin: 0;
  text-align: center;
  color: rgba(247, 248, 253, 0.9);
  font-size: 0.96rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 110px;
  padding: 22px 24px;
}

.contact-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
  box-shadow: 0 12px 24px rgba(122, 98, 255, 0.16);
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.contact-card p {
  margin: 0;
  color: rgba(239, 243, 249, 0.86);
  word-break: break-word;
}

.contact-form {
  padding: 32px 30px 28px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: block;
  margin: 0 0 10px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  font: inherit;
}

.contact-form button {
  cursor: pointer;
  margin-top: 8px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.contact-form button:active {
  transform: translateY(0);
}


.contact-form label:not(:first-child) {
  margin-top: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(65, 214, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(65, 214, 255, 0.08);
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.site-footer {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 18, 35, 0.5);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.footer-icons {
  display: flex;
  gap: 28px;
}

.footer-icons a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-icons a:nth-child(2) {
  color: transparent;
}

.footer-inner p {
  margin: 0;
  text-align: center;
  color: rgba(247, 248, 253, 0.9);
  font-size: 0.96rem;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-reveal="hero"] {
  animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

[data-reveal="project"] {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-reveal="social"] {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-reveal="skill"] {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

[data-reveal="contact"] {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .contact-grid,
  .social-grid,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .identity-pill {
    left: 40px;
  }

  .portrait-frame {
    top: 120px;
    right: 40px;
    width: 270px;
    height: 325px;
  }

  .floating-bolt {
    top: 131px;
    left: 64px;
  }

  .floating-rocket {
    top: 295px;
    right: 14px;
    animation-delay: -2s;
  }

  .floating-bulb {
    top: 395px;
    left: 88px;
    animation-delay: -3.2s;
  }

  .floating-bolt {
    top: 30%;
    left: 15%;
  }

  .floating-rocket {
    top: 60%;
    right: 15%;
  }

  .floating-bulb {
    bottom: 20%;
    left: 10%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .internship-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 24px 20px;
  }

  .internship-header,
  .internship-company,
  .internship-description,
  .internship-chip-row {
    grid-column: 1;
  }

  .internship-image {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: 200px;
    margin-bottom: 12px;
  }

  .internship-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .internship-card h3 {
    font-size: 1.3rem;
  }

  .internship-company {
    margin-bottom: 16px;
  }

  .moments-grid {
    grid-template-columns: 1fr;
  }

  .moments-card img {
    height: 200px;
  }

  .nav {
    min-height: 78px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(17, 24, 44, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-text {
    line-height: 1.8;
  }

  .hero-visual {
    min-height: 280px;
  }

  .identity-pill {
    top: 28px;
    left: 10px;
    max-width: 230px;
    font-size: 0.8rem;
  }

  .portrait-frame {
    top: 60px;
    left: 30%;
    right: auto;
    transform: translateX(-50%);
    width: 180px;
    height: 220px;
    padding: 8px;
    border-radius: 48% 52% 58% 42% / 42% 36% 64% 58%;
  }

  .portrait-ring {
    border-radius: 46% 54% 58% 42% / 49% 43% 58% 54%;
    padding: 6px;
  }

  .portrait-image {
    border-radius: 38% 62% 64% 36% / 40% 44% 56% 60%;
  }

  .floating-bolt {
    top: 40px;
    left: 8px;
    font-size: 1.5rem;
  }

  .floating-bulb {
    top: 140px;
    left: 12px;
    font-size: 1.5rem;
  }

  .floating-rocket {
    top: 80px;
    right: 6px;
    font-size: 1.5rem;
  }

  .project-art {
    height: 170px;
  }

  .social-grid {
    gap: 28px;
  }

  .social-art {
    min-height: 250px;
  }

  .social-body {
    padding: 24px 20px 26px;
  }

  .social-body h3 {
    font-size: 1.85rem;
  }

  .social-badge-message {
    right: 20px;
    width: calc(100% - 160px);
    min-width: 150px;
  }

  .social-badge-send {
    left: 20px;
    right: 20px;
    width: auto;
    min-width: 0;
    transform: none;
  }

  .social-badge-code {
    right: 18px;
    bottom: 18px;
    padding: 10px 18px;
    font-size: 1.5rem;
  }

  .social-figure-instagram {
    left: 18px;
    width: 46%;
    min-width: 145px;
  }

  .social-figure-facebook {
    width: 170px;
    height: 202px;
    transform: translateX(-18%);
  }

  .project-body,
  .skill-card,
  .contact-form {
    padding-left: 22px;
    padding-right: 22px;
  }

  .contact-card {
    min-height: 96px;
    padding: 18px 20px;
  }

  .contact-card h3 {
    font-size: 1.15rem;
  }

  .footer-icons {
    gap: 16px;
  }

  .footer-inner p {
    font-size: 0.9rem;
  }
}
