:root {
  --red: #C3110C;
  --orange: #E6501B;
  --dark: #280905;
  --border: #740A03;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: #0f0201;
  color: #fff;
  overflow-x: hidden;
}

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

section {
  padding-top: 100px;
  padding-left: 25px;
  padding-right: 25px;
  color: #fff;
}

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

/* ---------------- NAVBAR ---------------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  padding: 32px 0;
  transition: all 0.4s ease;
}
.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991px) {
  .nav-links {
    flex-direction: column;
    gap: 20px;
    padding: 24px 0;
  }
}

nav.scrolled {
  background: rgba(40, 9, 5, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.logo-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(var(--red), transparent, var(--red));
  animation: spin 4s linear infinite;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: black;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 5px var(--red);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.nav-links {
  display: flex;
  gap: 40px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #aaa;
}

.nav-links a:hover {
  color: var(--orange);
}

/* ---------------- HERO ---------------- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  animation: pulse 4s infinite;
}

.glow.left {
  width: 600px;
  height: 600px;
  background: rgba(230, 80, 27, 0.1);
  top: 20%;
  left: -200px;
}

.glow.right {
  width: 500px;
  height: 500px;
  background: rgba(195, 17, 12, 0.1);
  bottom: 20%;
  overflow: hidden;
  right: -200px;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.6
  }

  50% {
    opacity: 1
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) invert(1) contrast(1.2);
}

.hero-content {
  max-width: 900px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: rgba(40, 9, 5, 0.8);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--orange);
  margin-bottom: 32px;
}

h1 {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 32px;
}

.gradient {
  background: linear-gradient(to right, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 700px;
  margin: auto;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 48px;
}

.buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 20px 40px;
  background: var(--red);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(195, 17, 12, 0.4);
}

.btn-primary:hover {
  background: var(--orange);
}

.btn-outline {
  padding: 20px 40px;
  border: 2px solid var(--border);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.btn-outline:hover {
  background: rgba(116, 10, 3, 0.2);
}

/* ---------------- SKILLS ---------------- */
.skills {
  padding: 160px 24px;
  background: rgba(26, 5, 3, 0.5);
}

.skills-container {
  max-width: 1200px;
  margin: auto;
}

.skills-title {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 16px;
}

.underline {
  width: 96px;
  height: 4px;
  background: var(--orange);
  margin-bottom: 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 64px;
}

.category h3 {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--orange);
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-bottom: 32px;
}

.skill {
  margin-bottom: 24px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.bar {
  height: 4px;
  background: var(--dark);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--border), var(--orange));
  width: 0;
  transition: width 1s ease;
}


.card {
  transition: .4s;
}

.card:hover {
  box-shadow: 0 0 30px rgba(116, 10, 3, .3)
}

.mono {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

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

/* PROJECTS */
.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(1);
  transition: .6s;
}

.card:hover .project-img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* EXPERIENCE */
.timeline .entry {
  display: flex;
  gap: 40px;
}

.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 225px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--border), transparent);
}
@media (max-width: 767px) {
  .timeline::before  {display: none;}
}
@media (max-width: 569px) {
  .timeline{
    padding-left: 0;
  }
  .timeline .content {
    padding-left: 0;
}
.timeline .entry {
  display: block;
}
.timeline .content {
  /* border-left: 2px solid var(--border); */
  padding-left: 40px;
}
}
.timeline h3 {
  font-size: 28px;
  margin-bottom: 6px
}

.timeline .company {
  color: var(--red);
  font-weight: 700;
  font-size: 12px
}

.timeline ul {
  margin-top: 16px
}

.timeline li {
  list-style: none;
  color: #aaa;
  margin-bottom: 8px
}

/* PARTICIPATION */
.rotate-box {
  width: 90px;
  height: 90px;
  border: 2px solid var(--orange);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
}

.rotate-box span {
  transform: rotate(-45deg);
  font-weight: 900
}

/* CONTACT */
form input,
textarea {
  width: 100%;
  background: var(--dark);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px;
  color: #fff;
  outline: none;
}

form textarea {
  resize: none
}

form button {
  padding: 20px;
  background: var(--red);
  border: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: .3em;
  margin-top: 20px;
  cursor: pointer;
}

form button:hover {
  background: var(--orange)
}

/* SENSEI CHAT */
#senseiBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: var(--red);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(195, 17, 12, .6);
}

#chatBox {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 320px;
  height: 450px;
  background: var(--dark);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
}

#chatHeader {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 900;
}

#messages {
  flex: 1;
  padding: 16px;
  overflow: auto;
}

.msg {
  margin-bottom: 12px;
  font-size: 14px;
}

.user {
  color: #fff;
  text-align: right
}

.ai {
  color: #aaa
}

#chatInput {
  border: none;
  border-top: 1px solid var(--border);
  background: #1a0503;
  color: #fff;
  padding: 12px;
  outline: none;
}

.field {
  margin-bottom: 16px;
}

.error {
  color: #ff4d4d;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.summon-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 999;
}

.summon-modal.active {
  opacity: 1;
  pointer-events: all;
}

.summon-box {
  background: #111;
  border: 1px solid var(--red);
  padding: 40px 60px;
  text-align: center;
  color: #fff;
  border-radius: 10px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #333;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.bottom-bar {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.bottom-bar svg{
  fill: var(--orange);
    width: 35px;
    height: 35px;
}