/* =====================
   RESET & VARIABLES
===================== */
:root {
  --bg: #0b0d12;
  --bg-soft: #121521;
  --card: #151a2e;
  --primary: #7f5cff;
  --secondary: #5eead4;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --radius: 16px;
  --transition: 0.3s ease;
}

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

/* LOCK TEXT SIZE SAME EVERYWHERE */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: radial-gradient(circle at top, #1d0752, #000000);
  color: var(--text);
  line-height: 1.6;
  width: 100%;
  position:;
}

/* =====================
   HEADER
===================== */
.header {
  position: fixed;
  top: 0;
  width: 1000px;
  z-index: 1000;
  background: rgba(10, 12, 25, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #f1f1dde5;
}

.logo-bracket {
  color: #f1f1dde5;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--primary);
  left: 0;
  bottom: -6px;
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* =====================
   BUTTONS
===================== */
.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(127,92,255,0.4);
}

.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #000;
}

/* =====================
   HERO
===================== */
.hero {
  padding: 140px 24px 80px;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  color: #f1f1dde5;
  letter-spacing: 2px;
  font-size: 14px;
  background-color: #23006ee5;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(127,92,255,0.4);
  font-family: "Inter", Arial, sans-serif;
  
  
  
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.1;
  margin: 14px 0;
}

.hero-text strong {
  color: var(--primary);
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* =====================
   PHOTO FRAME
===================== */
.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  padding: 8px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 40px rgba(127,92,255,0.6);
  animation: float 6s ease-in-out infinite;
}

.photo-frame img {
  width: 100%;
  max-width: 420px;
  border-radius: 26px;
  display: block;
}

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

/* =====================
   STACK TAGS
===================== */
.stack-tags {
  margin-top: 50px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.stack-tags span {
  background: rgba(255,255,255,0.06);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* =====================
   SECTIONS
===================== */
section {
  padding: 90px 24px;
}

.section-label {
  color: var(--secondary);
  font-size: 13px;
  letter-spacing: 2px;
}

.section-title {
  font-size: 38px;
  margin-top: 8px;
}

/* =====================
   ABOUT
===================== */
.about-container {
  max-width: 1200px;
  margin: auto;
}

.about-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.about-text {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
}

.info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.info-item {
  display: flex;
  justify-content: space-between;
}

/* =====================
   SERVICES
===================== */
.services-container {
  max-width: 1200px;
  margin: auto;
}

.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* =====================
   SKILLS
===================== */
.habilidades-grid {
  max-width: 1200px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.habilidade-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
}

.tag {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 6px 6px 0 0;
  font-size: 13px;
}

/* =====================
   PROJECTS
===================== */
.projetos-grid {
  max-width: 1200px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.projeto-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.projeto-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.projeto-content {
  padding: 24px;
  flex: 1;
}

.projeto-btn {
  margin: 16px;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #000;
  text-decoration: none;
}

/* =====================
   FOOTER
===================== */
.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* =====================
   RESPONSIVE (LAYOUT ONLY)
===================== */
@media (max-width: 900px) {
  .hero-content,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

/* =====================
   star effect
===================== */

.hero-text {
  position: relative;
  display: inline-block;
}

.hero-kicker {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
}

/* ⭐ Star */
.hero-kicker::after {
  content: "✦";
  position: absolute;
  top: 8px;
  right: 115px;
  font-size: 10px;
  color: #ffffff;
  animation: starGlow 2s ease-in-out infinite;
  text-shadow:
    0 0 5px #7f5cff,
    0 0 10px #7f5cff,
    0 0 20px #5eead4;
}

/* ✨ Glow Animation */
@keyframes starGlow {
  0% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
}
/* =========================
   TYPING TEXT
========================= */
.text {
  position: absolute;
  left: 30px;
  top: 260px;
  font-size: 50px;
  font-family: 'PressStart2P';
  color: #ddd;
}

#typing-text {
  font-size: 50px;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #ff3400,
    #ce12dd,
    #446687,
    #2b004c
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s linear infinite;
  text-shadow: 0 0 12px rgba(180,120,255,0.6);
}

@keyframes gradientMove {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}
/* text size*/
.emi{
    
}
/* ===============================
   MOBILE TOGGLE MENU
================================ */

/* Toggle button */
.menu-toggle {
  display: none;
  width: 34px;
  height: 26px;
  position: relative;
  cursor: pointer;
  z-index: 2000;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 4px;
  transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* X animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 11px;
}

/* ===============================
   MOBILE NAV OVERLAY
================================ */
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #0f172a, #020617);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.45s ease;
    z-index: 1500;
  }

  .nav.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: none;
  }

  .nav.active .nav-link {
    animation: navFade 0.6s ease forwards;
  }

  .nav.active .nav-link:nth-child(1) { animation-delay: 0.2s; }
  .nav.active .nav-link:nth-child(2) { animation-delay: 0.35s; }
  .nav.active .nav-link:nth-child(3) { animation-delay: 0.5s; }
  .nav.active .nav-link:nth-child(4) { animation-delay: 0.65s; }
  .nav.active .btn {
    animation: navFade 0.6s ease forwards;
    animation-delay: 0.8s;
  }
}

/* ===============================
   ANIMATION
================================ */
@keyframes navFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
