/* ============================================================
   MIKIN_DEV — PREMIUM DARK THEME v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;600;700;800&display=swap');

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

:root {
  --bg:        #080810;
  --bg2:       #0e0e1a;
  --surface:   #13131f;
  --surface2:  #1a1a28;
  --border:    rgba(255,255,255,0.07);
  --red:       #e63946;
  --red-glow:  rgba(230,57,70,0.35);
  --red-soft:  #ff6b6b;
  --white:     #f0f0f8;
  --muted:     #7070a0;
  --accent:    #b48cff;
  --mono:      'Space Mono', monospace;
  --sans:      'Syne', sans-serif;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.0, 0, 0.2, 1);
  --shadow-red: 0 0 40px rgba(230,57,70,0.2);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s var(--ease), opacity 0.3s;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(230,57,70,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.15s var(--ease), width 0.3s, height 0.3s, opacity 0.3s;
  transform: translate(-50%, -50%);
}

body:hover .cursor { opacity: 1; }

/* ===== NOISE TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== GLOBAL ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50%       { box-shadow: 0 0 30px 10px var(--red-glow); }
}
@keyframes scanline {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100vh); }
}
@keyframes gradFlow {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes glitch {
  0%   { clip-path: inset(40% 0 61% 0); transform: translateX(-4px); }
  20%  { clip-path: inset(92% 0 1% 0);  transform: translateX(4px); }
  40%  { clip-path: inset(43% 0 1% 0);  transform: translateX(-4px); }
  60%  { clip-path: inset(25% 0 58% 0); transform: translateX(4px); }
  80%  { clip-path: inset(54% 0 7% 0);  transform: translateX(-4px); }
  100% { clip-path: inset(58% 0 43% 0); transform: translateX(0); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

/* ===== HIGHLIGHT TEXT ===== */
.highlight {
  color: var(--red);
  position: relative;
  display: inline-block;
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  padding-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--red-glow);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
    padding: 14px 30px;
    min-width: 160px;
    border-radius: 999px;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-15deg);
  transition: left 0.5s var(--ease);
}

.btn:hover::after { left: 160%; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--red-glow);
  background: var(--red-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
header {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(8,8,16,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(8,8,16,0.95);
  border-bottom: 1px solid var(--border);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  transition: all 0.6s var(--ease);
  box-shadow: 0 0 10px var(--red-glow);
}

.logo:hover .logo-img {
  transform: rotate(360deg);
  box-shadow: 0 0 20px var(--red-glow);
}

.logo-name {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-name span { color: var(--red); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease);
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s var(--ease);
  box-shadow: 0 0 8px var(--red-glow);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  cursor: none;
  flex-direction: column;
  gap: 5px;
}

.bar {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

/* ===== FOOTER ===== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 80px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  background-size: 200% 100%;
  animation: gradFlow 4s ease infinite;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  box-shadow: 0 0 10px var(--red-glow);
  flex-shrink: 0;
}

.footer-logo span {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-section p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease);
}

.footer-section ul li a:hover { color: var(--red); padding-left: 4px; }

.footer-section ul li i {
  color: var(--red);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 4px 15px var(--red-glow);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  .navbar { padding: 0.9rem 4%; }
  .logo-name { font-size: 1rem; }

  .hamburger { display: flex; }

  .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    position: fixed;
    top: 70px; left: -100%;
    flex-direction: column;
    background: rgba(8,8,16,0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    padding: 2rem 0;
    gap: 0;
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    border-bottom: 1px solid var(--border);
    transition: left 0.35s var(--ease);
  }

  .nav-menu.active { left: 0; }
  .nav-menu li { text-align: center; padding: 1rem 0; }
  .nav-menu a { font-size: 1rem; }

  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  .footer-section ul li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .footer-section ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
  .footer-section ul li a:hover { padding-left: 0; }
  .footer-section p { max-width: 36ch; }
  .social-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
    padding: 0 10px;
  }

  .logo-name { font-size: 0.9rem; }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}
