/* CURSOR */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px var(--green), 0 0 10px var(--green);
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74, 222, 128, 0.13) 0%, rgba(74, 222, 128, 0.04) 40%, transparent 70%);
}

/* DIVIDER */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.2), transparent);
  position: relative;
  z-index: 1;
}

/* TICKER */
.ticker-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding: 32px 0;
  background: rgba(0, 0, 0, 0.2);
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #050a05, transparent);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #050a05, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-ticker 38s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  opacity: 0.5;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.ticker-item:hover { opacity: 1; }

.ticker-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.ticker-item span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.t-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.45);
  flex-shrink: 0;
  margin: 0 2px;
}

/* SKILL CARDS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 60px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.skill-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.05);
  transform: translateY(-4px);
}

.skill-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* PROJECT CARDS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  cursor: none;
  transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover {
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateY(-6px);
}

.project-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0a1a0a, #1a3a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s;
}

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

.project-body { padding: 24px; }

.project-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.project-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  cursor: none;
}

.project-link:hover {
  color: var(--green);
  border-color: var(--green);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #0a120a;
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  transform: scale(0.92);
  transition: transform 0.3s;
  position: relative;
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: none;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--green); }

.modal-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.modal-links { display: flex; gap: 16px; }

.modal-link {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: background 0.2s, color 0.2s;
}

.modal-link.primary {
  background: var(--green);
  color: #000;
}

.modal-link.primary:hover { background: #fff; }

.modal-link.secondary {
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.modal-link.secondary:hover { background: rgba(74, 222, 128, 0.1); }

/* SCROLL TO TOP */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 20, 10, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.25);
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s, box-shadow 0.3s, border-color 0.3s;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#scrollTopBtn:hover {
  border-color: var(--green);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.55);
}

/* SOCIAL BUTTONS */
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  cursor: none;
}

.social-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px);
}

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

/* LANG BADGES */
.lang-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.lang-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 50px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.3s, background 0.3s;
}

.lang-item:hover {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.05);
}

.lang-flag { font-size: 1.2rem; }

.lang-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-level {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* CONTACT FORM */
.contact-form {
  margin-top: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(74, 222, 128, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form button {
  background: var(--green);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.2s, transform 0.2s;
}

.contact-form button:hover {
  background: #fff;
  transform: scale(1.02);
}

.form-success {
  display: none;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

/* TYPING CURSOR */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--green);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* HERO CHAR ANIMATION */
.hero-title .char { display: inline-block; }