@charset "utf-8";

:root {
  --main-color: #2fd3e9;
  --main-color-rgb: 47, 211, 233;
  --bg-dark: #07090e;
  --card-bg: rgba(14, 18, 28, 0.85);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-hover-border: rgba(47, 211, 233, 0.35);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-glow: rgba(47, 211, 233, 0.15);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(47, 211, 233, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--main-color);
}

/* ------------------------------------
   PRELOADER
------------------------------------ */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #05070a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader_line {
  position: relative;
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loader_line::after {
  content: '';
  position: absolute;
  left: -50%;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--main-color);
  box-shadow: 0 0 14px var(--main-color);
  animation: load 1.2s infinite ease-in-out;
}

@keyframes load {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* ------------------------------------
   AMBIENT BACKGROUND CANVAS & GLOW
------------------------------------ */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.bg-ambient-lights {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.bg-ambient-lights::before,
.bg-ambient-lights::after {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
}

.bg-ambient-lights::before {
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, var(--main-color), transparent 70%);
}

.bg-ambient-lights::after {
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, #3a00ff, transparent 70%);
}

/* ------------------------------------
   MAGIC CURSOR
------------------------------------ */
.mouse-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translateZ(0);
  visibility: hidden;
  z-index: 9999;
}

.cursor-inner {
  margin-left: -3px;
  margin-top: -3px;
  width: 6px;
  height: 6px;
  background-color: var(--main-color);
  box-shadow: 0 0 8px var(--main-color);
  transition: width 0.25s ease-out, height 0.25s ease-out, margin 0.25s ease-out, opacity 0.25s ease-out;
}

.cursor-inner.cursor-hover {
  margin-left: -25px;
  margin-top: -25px;
  width: 50px;
  height: 50px;
  background-color: rgba(47, 211, 233, 0.25);
  box-shadow: 0 0 20px rgba(47, 211, 233, 0.4);
}

.cursor-outer {
  margin-left: -16px;
  margin-top: -16px;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--main-color);
  opacity: 0.6;
  transition: all 0.08s ease-out;
}

.cursor-outer.cursor-hover {
  opacity: 0;
  transform: scale(1.4);
}

/* ------------------------------------
   DESKTOP HEADER
------------------------------------ */
.tm_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  z-index: 100;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.7);
  border-bottom: 1px solid var(--card-border);
}

.header_logo a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.header_logo .logo-dot {
  color: var(--main-color);
  font-size: 26px;
  line-height: 0;
}

.header_menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item a {
  position: relative;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 6px 0;
}

.nav-item a:hover {
  color: #fff;
}

.nav-item.active a {
  color: var(--main-color);
  font-weight: 600;
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
  border-radius: 2px;
}

/* ------------------------------------
   MOBILE TOPBAR & DRAWER
------------------------------------ */
.tm_topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  z-index: 120;
  padding: 0 20px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.9);
  border-bottom: 1px solid var(--card-border);
}

.topbar_logo a {
  font-family: var(--font-heading);
  font-size: clamp(14px, 4.1vw, 18px);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.hamburger {
  cursor: pointer;
  width: 32px;
  height: 24px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background: var(--main-color);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background: var(--main-color);
}

.tm_mobile_menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(10, 13, 20, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 24px;
  z-index: 110;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.tm_mobile_menu.opened {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile_menu_list ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile_menu_list a {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile_menu_list .active a {
  color: var(--main-color);
}

/* ------------------------------------
   MAIN CONTENT CONTAINER
------------------------------------ */
.tm_content {
  position: fixed;
  width: 940px;
  top: 95px;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.tm_section {
  position: absolute;
  inset: 0;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  transform: translateY(20px);
}

.tm_section.animated.fadeInUp {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tm_section.hidden {
  display: none;
}

/* ------------------------------------
   HEADINGS & TITLES
------------------------------------ */
.section_title {
  margin-bottom: 34px;
}

.section_title h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.coloring {
  color: var(--main-color);
  text-shadow: 0 0 20px rgba(47, 211, 233, 0.3);
}

.section_subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ------------------------------------
   BUTTONS & BADGES
------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--main-color);
  color: #07090e;
  box-shadow: 0 4px 18px rgba(47, 211, 233, 0.35);
}

.btn-primary:hover {
  background: #4ae0f5;
  box-shadow: 0 6px 26px rgba(47, 211, 233, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: rgba(47, 211, 233, 0.08);
  transform: translateY(-2px);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 211, 233, 0.1);
  border: 1px solid rgba(47, 211, 233, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--main-color);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ------------------------------------
   HOME SECTION (#home)
------------------------------------ */
.home_inner {
  min-height: 100%;
  height: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.home_name {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1.2px;
}

.home_job {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-words-wrapper {
  position: relative;
  display: inline-block;
  color: var(--main-color);
}

.cd-words-wrapper b {
  display: none;
  font-weight: 700;
}

.cd-words-wrapper b.is-visible {
  display: inline-block;
  animation: fadeInWord 0.5s ease forwards;
}

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

.home_bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 34px;
}

.home_actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.home_socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.social-icon-btn:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #07090e;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(47, 211, 233, 0.4);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ------------------------------------
   ABOUT SECTION (#about)
------------------------------------ */
.about_wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.about_left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author_avatar {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.author_avatar img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.author_avatar:hover img {
  transform: scale(1.04);
}

.avatar_overlay_badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
}

.quick_info_card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.quick_info_card ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.quick_info_card ul li:last-child {
  border-bottom: none;
}

.quick_info_card .label {
  color: var(--text-dim);
  flex-shrink: 0;
}

.quick_info_card .val {
  color: #fff;
  font-weight: 500;
  text-align: right;
}

.quick_info_card .val a:hover {
  color: var(--main-color);
}

.about_right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about_bio_text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.specialties_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.specialty_box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all 0.25s ease;
}

.specialty_box:hover {
  border-color: var(--card-hover-border);
  background: rgba(47, 211, 233, 0.03);
}

.specialty_box h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specialty_box p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.skills_container {
  margin-top: 10px;
}

.skills_title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.skill_item {
  margin-bottom: 14px;
}

.skill_header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.skill_bar_bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill_bar_fill {
  height: 100%;
  background: linear-gradient(90deg, #3a00ff, var(--main-color));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(47, 211, 233, 0.5);
}

/* ------------------------------------
   CONHECIMENTOS / HABILIDADES SECTION (#skills)
------------------------------------ */
.skills_main_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.skill-category-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  background: rgba(47, 211, 233, 0.025);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.cat_header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cat_icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(47, 211, 233, 0.1);
  border: 1px solid rgba(47, 211, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  flex-shrink: 0;
}

.cat_icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cat_header h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.cat_skills_list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill_topic {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.skill_topic_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill_topic_title strong {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.skill_badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--main-color);
  background: rgba(47, 211, 233, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.skill_topic p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.skill_topic p code {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  background: rgba(47, 211, 233, 0.1);
  color: var(--main-color);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* ------------------------------------
   SERVICES SECTION (#services)
------------------------------------ */
.services_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  background: rgba(47, 211, 233, 0.025);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.service_icon_wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(47, 211, 233, 0.1);
  border: 1px solid rgba(47, 211, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(47, 211, 233, 0.2);
}

.service_icon_wrap svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.service_title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.service_desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service_features li {
  font-size: 12px;
  color: #cbd5e1;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service_features li::before {
  content: '✓';
  color: var(--main-color);
  font-weight: 700;
}

/* ------------------------------------
   CONTACT SECTION (#contact)
------------------------------------ */
.contact_wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.contact_left ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact_info_box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.contact_info_box:hover {
  border-color: var(--card-hover-border);
  background: rgba(47, 211, 233, 0.03);
}

.contact_icon_circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(47, 211, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  flex-shrink: 0;
}

.contact_icon_circle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact_text h5 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact_text a, .contact_text span {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contact_right form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form_group input,
.form_group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.form_group textarea {
  height: 130px;
  resize: vertical;
}

.form_group input:focus,
.form_group textarea:focus {
  border-color: var(--main-color);
  background: rgba(47, 211, 233, 0.04);
  box-shadow: 0 0 16px rgba(47, 211, 233, 0.15);
}

.return-message {
  display: none;
  background: rgba(47, 211, 233, 0.12);
  border: 1px solid var(--main-color);
  color: var(--main-color);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

/* ------------------------------------
   MODAL POPUPS
------------------------------------ */
.tm_modalbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.tm_modalbox.opened {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(14px);
}

.modal-window {
  position: relative;
  width: 760px;
  max-width: 90vw;
  max-height: 85vh;
  background: #0d121c;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 40px;
  z-index: 10;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.tm_modalbox.opened .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--main-color);
  color: #07090e;
}

/* Timeline in About Modal */
.timeline_block {
  margin-top: 24px;
}

.timeline_title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 8px;
}

.timeline_list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline_item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--main-color);
}

.timeline_item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--main-color);
  box-shadow: 0 0 8px var(--main-color);
}

.timeline_item .year {
  font-size: 12px;
  color: var(--main-color);
  font-weight: 600;
}

.timeline_item h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 3px 0;
}

.timeline_item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------
   RESPONSIVE DESIGN (Media Queries)
------------------------------------ */
@media (max-width: 1040px) {
  html, body {
    overflow-y: auto;
    height: auto;
  }

  .mouse-cursor {
    display: none !important;
  }

  .tm_header {
    display: none;
  }

  .tm_topbar {
    display: flex;
  }

  .tm_mobile_menu {
    display: block;
  }

  .tm_content {
    position: relative;
    width: 100%;
    top: 65px;
    bottom: auto;
    left: auto;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    margin-bottom: 80px;
  }

  .tm_section {
    position: relative;
    inset: auto;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    margin-bottom: 24px;
    scroll-margin-top: 80px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
  }

  .about_wrap,
  .contact_wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .author_avatar img {
    height: 260px;
  }

  .skills_main_grid,
  .services_grid,
  .specialties_grid,
  .form_row {
    grid-template-columns: 1fr;
  }

  .home_name {
    font-size: clamp(28px, 7.5vw, 36px);
  }

  .home_job {
    font-size: 20px;
  }
}
