/* ============================================================
   COMING SOON PORTFOLIO — Harun, AI (Software) Engineer
   Light & Dark Theme System with CSS Custom Properties
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  cursor: none;
}

/* ---------- Dark Theme (Default) ---------- */
[data-theme="dark"] {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111133;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-muted: rgba(240, 240, 245, 0.35);
  --accent-1: #00d4ff;
  --accent-2: #7b61ff;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --tag-bg: rgba(0, 212, 255, 0.08);
  --tag-border: rgba(0, 212, 255, 0.2);
  --tag-text: #00d4ff;
  --social-bg: rgba(255, 255, 255, 0.05);
  --social-border: rgba(255, 255, 255, 0.1);
  --social-hover-bg: rgba(0, 212, 255, 0.1);
  --social-hover-border: rgba(0, 212, 255, 0.4);
  --social-color: rgba(240, 240, 245, 0.6);
  --social-hover-color: #00d4ff;
  --dot-color: rgba(255, 255, 255, 0.03);
  --cursor-color: #00d4ff;
  --cursor-ring: rgba(0, 212, 255, 0.3);
  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-border: rgba(255, 255, 255, 0.12);
  --toggle-hover-bg: rgba(255, 255, 255, 0.1);
  --toggle-color: rgba(240, 240, 245, 0.6);
  --status-dot: #00d4ff;
  --badge-bg: rgba(0, 212, 255, 0.06);
  --badge-border: rgba(0, 212, 255, 0.15);
  --badge-dot: #00d4ff;
  --countdown-bg: rgba(255, 255, 255, 0.04);
  --countdown-border: rgba(255, 255, 255, 0.08);
  --footer-text: rgba(240, 240, 245, 0.25);
  --particle-color: 0, 212, 255;
  --separator-color: rgba(240, 240, 245, 0.15);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #eeeef6;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-border: rgba(0, 0, 0, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.6);
  --text-muted: rgba(26, 26, 46, 0.35);
  --accent-1: #0066ff;
  --accent-2: #7b61ff;
  --accent-glow: rgba(0, 102, 255, 0.1);
  --tag-bg: rgba(0, 102, 255, 0.06);
  --tag-border: rgba(0, 102, 255, 0.15);
  --tag-text: #0055dd;
  --social-bg: rgba(0, 0, 0, 0.03);
  --social-border: rgba(0, 0, 0, 0.08);
  --social-hover-bg: rgba(0, 102, 255, 0.08);
  --social-hover-border: rgba(0, 102, 255, 0.3);
  --social-color: rgba(26, 26, 46, 0.5);
  --social-hover-color: #0066ff;
  --dot-color: rgba(0, 0, 0, 0.03);
  --cursor-color: #0066ff;
  --cursor-ring: rgba(0, 102, 255, 0.25);
  --toggle-bg: rgba(0, 0, 0, 0.04);
  --toggle-border: rgba(0, 0, 0, 0.1);
  --toggle-hover-bg: rgba(0, 0, 0, 0.08);
  --toggle-color: rgba(26, 26, 46, 0.6);
  --status-dot: #0066ff;
  --badge-bg: rgba(0, 102, 255, 0.05);
  --badge-border: rgba(0, 102, 255, 0.12);
  --badge-dot: #0066ff;
  --countdown-bg: rgba(255, 255, 255, 0.6);
  --countdown-border: rgba(0, 0, 0, 0.08);
  --footer-text: rgba(26, 26, 46, 0.3);
  --particle-color: 0, 102, 255;
  --separator-color: rgba(26, 26, 46, 0.12);
}

/* ---------- Body ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.4s ease;
  position: relative;
}

/* Dot pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  transition: background-image 0.5s ease;
}

/* ---------- Canvas ---------- */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Custom Cursor ---------- */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cursor-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.3s ease;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cursor-ring);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cursor-dot.hovering {
  width: 10px;
  height: 10px;
  background: var(--accent-2);
}

.cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: rgba(123, 97, 255, 0.4);
  background: rgba(123, 97, 255, 0.05);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--toggle-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--toggle-hover-bg);
  color: var(--accent-1);
  border-color: var(--accent-1);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Show/hide sun & moon icons based on theme */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ---------- Navigation ---------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.logo-bracket {
  color: var(--accent-1);
  transition: color 0.4s ease;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.4s ease;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-dot);
  animation: pulse-dot 2s ease-in-out infinite;
  transition: background 0.4s ease;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--badge-dot);
  animation: pulse-dot 2s ease-in-out infinite;
  transition: background 0.4s ease;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title span {
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 48px;
  transition: color 0.4s ease;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.4s ease;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 52px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 16px 12px;
  border-radius: 16px;
  background: var(--countdown-bg);
  border: 1px solid var(--countdown-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.countdown-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

.countdown-separator {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--separator-color);
  margin-top: -16px;
  transition: color 0.4s ease;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: left;
  margin-bottom: 40px;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.card-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

/* ---------- Skill Tags ---------- */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--tag-text);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-1px);
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--social-bg);
  border: 1px solid var(--social-border);
  color: var(--social-color);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: none;
}

.social-link:hover {
  background: var(--social-hover-bg);
  border-color: var(--social-hover-border);
  color: var(--social-hover-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px 40px 36px;
  font-size: 0.78rem;
  color: var(--footer-text);
  transition: color 0.4s ease;
}

/* ---------- Reveal Animations ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .nav-status {
    display: none;
  }

  .hero {
    padding: 40px 24px 30px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-item {
    min-width: 56px;
    padding: 12px 8px;
  }

  .countdown-value {
    font-size: 1.4rem;
  }

  .countdown-separator {
    font-size: 1.2rem;
  }

  .glass-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .theme-toggle {
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .countdown-item {
    min-width: 48px;
    padding: 10px 6px;
  }

  .countdown-value {
    font-size: 1.2rem;
  }

  .countdown-label {
    font-size: 0.58rem;
  }

  .social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  html, body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .social-link,
  .theme-toggle {
    cursor: pointer;
  }
}
