:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a26;

    --text-primary: #f5f5f5;
    --text-secondary: #a1a1aa;

    --primary: #c084fc;
    --primary-light: #d8b4fe;
    --accent: #a78bfa;

    --border: #27272a;

    --gradient-main: linear-gradient(135deg, #c084fc, #a78bfa);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 2rem;
  background: radial-gradient(circle at 70% 50%, rgba(192, 132, 252, 0.15), transparent 40%), var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(167,139,250,0.15), transparent 50%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.12;
  z-index: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  z-index: 2;
  position: relative;
}

.hero-content {
  max-width: 520px;
  z-index: 2;
}

.hero-greeting {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0.2rem 0 1rem;
}

.highlight {
  background: linear-gradient(90deg, #c084fc, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.code, .semicolon {
  color: var(--primary-light);
  font-family: 'Fira Code', monospace;
}

.hero-subtitle {
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.hero-description {
  margin-top: 1.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.05rem;
  max-width: 460px;
}

.hero-buttons {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.95rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 10px 30px rgba(192, 132, 252, 0.35);
  position: relative;
  overflow: hidden;
}

.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: 0.5s;
}

.btn.primary:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.btn.secondary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

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

.btn.secondary:hover {
  background: rgba(192, 132, 252, 0.08);
}

/* VISUAL */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
}

.circle-glow {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 
    0 0 25px var(--primary),
    0 0 90px rgba(192, 132, 252, 0.45),
    inset 0 0 50px rgba(192, 132, 252, 0.25);
  animation: pulse 5s infinite ease-in-out;
}

.orbit {
  position: absolute;
  width: 440px;
  height: 440px;
  animation: rotateOrbit 25s linear infinite;
}

.orbit .floating-card {
  position: absolute;
  transform-origin: center;
  padding: 0.75rem 1.3rem;
  font-size: 0.8rem;
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.07); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}

/* RESPONSIVIDADE HERO */
@media (max-width: 992px) {
  .hero-container {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 110px 1.5rem 4rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  .hero-visual {
    height: 320px;
  }

  .circle-glow {
    width: 260px;
    height: 260px;
  }

  .orbit {
    width: 340px;
    height: 340px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

.solution-card {
    background: rgba(26, 26, 38, 0.7);
    border: 1px solid var(--border);
    padding: 1.8rem;
    border-radius: 16px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.solution-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(192, 132, 252, 0.2);
}

.solution-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.solution-card span {
    display: block;
    margin-top: 1.2rem;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.8rem;
    letter-spacing: -1px;
}

.hero-description {
    line-height: 1.6;
}

.orbit {
    position: absolute;
    width: 420px;
    height: 420px;
    animation: rotateOrbit 20s linear infinite;
}

.orbit .floating-card {
    position: absolute;
    transform-origin: center;
}

.orbit .floating-card span {
    display: inline-block;
    animation: counterRotate 20s linear infinite;
}

@keyframes counterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orbit .floating-card {
    position: absolute;
}

.orbit .floating-card:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit .floating-card:nth-child(2) { top: 25%; right: 0; }
.orbit .floating-card:nth-child(3) { bottom: 25%; right: 0; }
.orbit .floating-card:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit .floating-card:nth-child(5) { bottom: 25%; left: 0; }
.orbit .floating-card:nth-child(6) { top: 25%; left: 0; }

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mouse-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192,132,252,0.25), transparent 60%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.btn:active {
    transform: scale(0.96);
}

.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(192,132,252,0.15), transparent 70%);
    opacity: 0;
    transition: 0.3s;
}

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

.terminal {
    white-space: pre-line;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: rgba(26, 26, 38, 0.7);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 18px;
    transition: 0.3s;
    backdrop-filter: blur(12px);
    position: relative;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(192, 132, 252, 0.2);
}

.solution-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.solution-card span {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.solution-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    background: linear-gradient(120deg, transparent, rgba(192,132,252,0.3), transparent);
    opacity: 0;
    transition: 0.3s;
}

.solution-card:hover::after {
    opacity: 1;
}

.section {
    padding: 100px 2rem;
}

.section-container {
    max-width: 1100px;
    margin: auto;
}

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

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 5%;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.15);
  transition: all 0.4s ease;
}

.header.scrolled {
  padding: 0.9rem 5%;
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-bracket {
  color: var(--primary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background: var(--primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Menu Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2rem 2rem;
    gap: 1.8rem;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  /* Animação do hamburger */
  .menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

#about {
  padding: 120px 2rem;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.about-text:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #about {
    padding: 100px 1.5rem;
  }
  
  .about-text {
    font-size: 1.02rem;
  }
}

.about-section {
  padding: 140px 2rem;
  background: var(--bg-secondary);
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text-block p {
  margin-bottom: 1.6rem;
}

.about-text-block p:last-child {
  margin-bottom: 0;
}

.about-code-block {
  position: relative;
}

.code-window {
  background: #0f0f17;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.code-header {
  background: #1a1a26;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.code-window pre {
  margin: 0;
  padding: 1.8rem 1.6rem;
  color: var(--primary-light);
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  overflow-x: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  background: rgba(26, 26, 38, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Responsividade */
@media (max-width: 868px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-section {
    padding: 110px 1.5rem;
  }
}

.solutions-section {
    padding: 80px 2rem 100px;
}

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

.solutions-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: rgba(26, 26, 38, 0.7);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 45px rgba(192, 132, 252, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.4rem;
}

.card-tech {
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.6px;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(192, 132, 252, 0.12);
}

@media (max-width: 768px) {
  .solutions-section {
    padding: 90px 1.5rem;
  }
  
  .solution-card {
    padding: 1.6rem 1.4rem;
  }
}

.tech-section {
    padding: 110px 2rem;
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.skill-card {
    background: rgba(26, 26, 38, 0.85);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    transition: all 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(192, 132, 252, 0.12);
}

.skill-card h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.6rem;
    font-size: 1.3rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill span {
    font-size: 1rem;
    font-weight: 500;
}

.progress-bar {
    height: 5px;
    background: rgba(39, 39, 42, 0.8);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 8px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #c084fc, #a78bfa);
    border-radius: 50px;
}

/* Responsividade para Tecnologias */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .marquee-track {
        gap: 2.8rem;
        animation-duration: 28s;
    }

    .tech-item {
        min-width: 92px;
    }

    .tech-item img,
    .tech-item svg {
        width: 58px;
        height: 58px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
  .tech-section {
    padding: 90px 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
  }
  
  .tech-card {
    padding: 1.4rem 1rem;
  }
}

#projects, #projetos {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(26, 26, 38, 0.85);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(192, 132, 252, 0.15);
}

.project-image {
    height: 200px;
    background: #0f0f17;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-img {
    color: #666;
    font-size: 1rem;
    text-align: center;
}

.project-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-light);
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.project-tech {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.4rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-small.primary {
    background: var(--gradient-main);
    color: white;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.contact-section {
  padding: 120px 2rem;
  background: var(--bg-secondary);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

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

.info-card {
  background: rgba(26, 26, 38, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(192, 132, 252, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.info-card h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.info-card a,
.info-card p {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(26, 26, 38, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.15);
}

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

.contact-btn {
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 500;
  align-self: flex-start;
}

/* Responsividade */
@media (max-width: 868px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-section {
    padding: 100px 1.5rem;
  }
}

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 80px 2rem 40px;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-text {
  max-width: 420px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
  .footer {
    padding: 60px 1.5rem 30px;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,15,0.85));
}

.project-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.01);
}

.btn-small {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-card:hover .btn-small {
  opacity: 1;
}

.project-links a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-links a:first-child {
  color: var(--text-secondary);
}

.project-links a.primary {
  font-weight: 600;
}

.project-links a:hover {
  color: var(--primary-light);
}

.project-image img {
  filter: brightness(0.9) contrast(1.05) saturate(1.1);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1) saturate(1.2);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(192,132,252,0.15), transparent 70%);
  opacity: 0;
  transition: 0.4s;
}

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

.project-info {
  transform: translateY(10px);
  transition: 0.4s;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

/* Compact, responsive project grid and accessible language control. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: hidden; }
.header { z-index: 1200; }
.nav-container { gap: 1.25rem; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.logo { text-decoration: none; color: var(--text-primary); font-family: 'Fira Code', monospace; font-size: 1.2rem; white-space: nowrap; }
.language-toggle { display: inline-flex; align-items: center; gap: .42rem; padding: .48rem .65rem; color: var(--text-secondary); background: transparent; border: 1px solid var(--border); border-radius: 8px; font: 600 .82rem 'Inter', sans-serif; cursor: pointer; }
.language-toggle .active { color: var(--primary-light); }
.language-toggle:hover, .language-toggle:focus-visible { border-color: var(--primary); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }
.projects-section { padding: 100px 2rem; background: var(--bg-secondary); }
.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.project-card { position: relative; height: auto; cursor: default; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.project-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 28px rgba(192,132,252,.12); }
.project-image { height: auto; aspect-ratio: 16 / 9; }
.project-image img { object-fit: cover; }
.project-card:hover img { transform: scale(1.025); }
.project-info { padding: 1.15rem; transform: none; }
.project-card:hover .project-info { transform: none; }
.project-info h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.project-info p { margin: 0 0 .7rem; font-size: .9rem; line-height: 1.5; }
.project-tech { margin: 0 0 .85rem; font-size: .78rem; }
.project-links { gap: .55rem; align-items: center; flex-wrap: wrap; }
.btn-small { display: inline-flex; align-items: center; padding: .48rem .8rem; font-size: .82rem; }
.project-links a.github { color: var(--text-secondary); }
.link-placeholder { color: var(--text-secondary); font-size: .78rem; line-height: 1.4; }
.link-placeholder[hidden] { display: none; }
.projects-section .section-header { margin-bottom: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a1a1aa; opacity: 1; }
.menu-toggle { border: 0; padding: 4px 0; background: transparent; }
@media (min-width: 769px) and (max-width: 1050px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .nav-container { padding-inline: 1.25rem; }
  .nav-links { z-index: 1100; }
  .nav-actions { margin-left: auto; }
  .projects-section { padding: 80px 1.25rem; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2.7rem, 12vw, 4rem); }
}
@media (max-width: 540px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero { padding-inline: 1.25rem; }
  .hero-description { font-size: .98rem; }
  .hero-buttons { gap: .75rem; }
  .btn { padding: .8rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Final visual refinement, keeping the original animated orbit. */
:root { --border: #252431; }
html { scroll-padding-top: 76px; }
.hero { min-height: 100svh; padding: 112px 2rem 3rem; }
.hero-container { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(2rem, 5vw, 4.5rem); max-width: 1160px; }
.hero-content { max-width: 560px; }
.hero-greeting { margin-bottom: .75rem; font-size: .96rem; letter-spacing: .04em; }
.hero-title { max-width: 620px; margin: 0 0 1.25rem; font: 600 clamp(2.15rem, 4vw, 3.35rem)/1.12 'Inter', sans-serif; letter-spacing: -.045em; }
.hero-description { max-width: 490px; margin-top: 0; font-size: 1.02rem; line-height: 1.7; }
.hero-buttons { margin-top: 1.8rem; gap: .75rem; }
.btn { padding: .78rem 1.2rem; border-radius: 9px; }
.btn.primary { box-shadow: 0 5px 18px rgba(192,132,252,.16); }
.btn:hover { transform: translateY(-2px); }
.hero-visual { width: min(100%, 460px); height: 420px; margin-inline: auto; }
.circle-glow { width: 270px; height: 270px; border: 1px solid rgba(192,132,252,.66); background: radial-gradient(circle at 50% 50%, rgba(192,132,252,.12), rgba(10,10,15,.08) 47%, transparent 70%); box-shadow: 0 0 42px rgba(192,132,252,.12), inset 0 0 34px rgba(192,132,252,.1); }
.orbit { width: 380px; height: 380px; animation-duration: 30s; }
.orbit .floating-card { padding: 0; font: 500 .82rem/1 'Inter', sans-serif; color: var(--text-primary); }
.orbit .floating-card span { display: block; padding: .5rem .75rem; border: 1px solid rgba(192,132,252,.22); border-radius: 999px; background: rgba(18,18,26,.93); box-shadow: 0 4px 18px rgba(0,0,0,.18); white-space: nowrap; animation: counterRotate 30s linear infinite; }
.orbit .floating-card:nth-child(1) { top: 3%; left: 50%; transform: translateX(-50%); }
.orbit .floating-card:nth-child(2) { top: 27%; right: 0; }
.orbit .floating-card:nth-child(3) { bottom: 27%; right: 0; }
.orbit .floating-card:nth-child(4) { bottom: 3%; left: 50%; transform: translateX(-50%); }
.orbit .floating-card:nth-child(5) { bottom: 27%; left: 0; }
.orbit .floating-card:nth-child(6) { top: 27%; left: 0; }
.mouse-glow { display: none; }
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: -.025em; }
.about-section, .tech-section { padding-block: 88px; }
.about-grid { max-width: 1080px; gap: clamp(2rem, 5vw, 4rem); }
.about-text-block { font-size: 1rem; line-height: 1.75; }
.about-text-block p { margin-bottom: 1rem; }
.solutions-section { padding-block: 76px; }
.solutions-grid, .skills-grid { gap: 1.1rem; }
.solution-card, .skill-card { border-color: rgba(192,132,252,.12); border-radius: 14px; box-shadow: none; backdrop-filter: none; }
.solution-card { padding: 1.45rem; }
.solution-card:hover, .skill-card:hover { transform: translateY(-3px); border-color: rgba(192,132,252,.4); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.solution-card h3, .skill-card h3 { font-size: 1.08rem; }
.solution-card p { line-height: 1.55; }
.tech-section { padding-block: 82px; }
.projects-section { padding-block: 82px; }
.project-card { border-color: rgba(192,132,252,.14); border-radius: 14px; background: #14141d; }
.project-card::before, .project-image::after { display: none; }
.project-card:hover { border-color: rgba(192,132,252,.45); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.project-image img { filter: none; }
.project-card:hover img { filter: none; }
.project-info h3 { color: #dfc7f6; }
.project-info p { min-height: 2.8em; }
.project-tech { color: #c5a4e2; }
.btn-small { padding: .45rem .7rem; border-radius: 7px; }
.btn-small.primary { border: 0; }
.contact-section { padding: 78px 2rem; }
.contact-container { max-width: 980px; gap: 2rem; }
.contact-info { gap: .65rem; }
.info-card { padding: .8rem 1rem; gap: .85rem; border-color: rgba(192,132,252,.11); border-radius: 12px; backdrop-filter: none; }
.info-card:hover { transform: translateY(-1px); border-color: rgba(192,132,252,.35); }
.info-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(192,132,252,.07); }
.info-card h3 { margin: 0 0 .2rem; font-size: .9rem; }
.info-card a, .info-card p { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.contact-form form { gap: .75rem; }
.contact-form input, .contact-form textarea { padding: .75rem .9rem; border-color: rgba(255,255,255,.1); border-radius: 9px; background: #171720; font-size: .92rem; }
.contact-form textarea { min-height: 105px; }
.contact-btn { margin-top: 0; padding: .7rem 1.1rem; }
.footer { padding: 52px 1.5rem 28px; }
.footer-container { gap: 1.4rem; }
.footer-copyright { padding-top: 1.2rem; }
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-container { grid-template-columns: 1fr; gap: 1rem; }
  .hero-content { margin: 0 auto; text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { height: 390px; }
  .contact-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 104px 1.25rem 2.25rem; }
  .hero-container { gap: .35rem; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-visual { display: flex; width: min(100%, 380px); height: 340px; }
  .circle-glow { width: 224px; height: 224px; }
  .orbit { width: 310px; height: 310px; }
  .orbit .floating-card { font-size: .72rem; }
  .orbit .floating-card span { padding: .42rem .6rem; }
  .about-section, .tech-section, .projects-section, .solutions-section, .contact-section { padding: 68px 1.25rem; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .hero { padding-inline: 1rem; }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .hero-description { font-size: .94rem; }
  .hero-visual { height: 300px; }
  .circle-glow { width: 190px; height: 190px; }
  .orbit { width: 270px; height: 270px; }
  .orbit .floating-card { font-size: .67rem; }
  .orbit .floating-card span { padding: .38rem .5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-section { padding-inline: 1rem; }
}
