/* ==========================================
   IRMAK ERTAŞ PORTFOLIO — STYLE.CSS
   ========================================== */

/* ---- FONTS & RESET ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* ---- DESIGN TOKENS ---- */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-alt: #0f0f1a;
  --bg-card: #13131f;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #7a7a9a;
  --text-sub: #5a5a7a;
  --accent: #7c5cfc;
  --accent2: #c084fc;
  --accent3: #38bdf8;
  --grad-1: #7c5cfc;
  --grad-2: #c084fc;
  --nav-bg: rgba(10, 10, 15, 0.85);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glow: 0 0 40px rgba(124, 92, 252, 0.3);
}

[data-theme="light"] {
  --bg: #f8f7ff;
  --bg-alt: #f0eefe;
  --bg-card: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1a1a2e;
  --text-muted: #6b6b8a;
  --text-sub: #9a9ab0;
  --accent: #6d3ff5;
  --accent2: #a855f7;
  --accent3: #0ea5e9;
  --grad-1: #6d3ff5;
  --grad-2: #a855f7;
  --nav-bg: rgba(248, 247, 255, 0.85);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 32px rgba(109, 63, 245, 0.12);
  --glow: 0 0 40px rgba(109, 63, 245, 0.15);
}

/* ---- UTILITY ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.6);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.section {
  padding: 6rem 0;
  background: var(--bg);
  color: var(--text);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(192, 132, 252, 0.15));
  border: 1px solid rgba(124, 92, 252, 0.3);
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  box-shadow: 0 0 8px var(--accent);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin: 0 auto;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(124, 92, 252, 0.1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-active {
  color: var(--accent);
}

.lang-inactive {
  color: var(--text-sub);
}

.lang-divider {
  color: var(--border);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  padding-top: 70px;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--grad-1);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--grad-2);
  bottom: -100px;
  left: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--accent3);
  top: 40%;
  left: 35%;
  animation-delay: -5s;
  opacity: 0.2;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-typewriter {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  min-height: 2em;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 500px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 0.6s 0.5s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.avatar-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient glow behind the avatar */
.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, rgba(99, 102, 241, 0.35) 45%, transparent 72%);
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(1);
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin 12s linear infinite;
  z-index: 1;
  box-shadow: 0 0 16px rgba(124, 92, 252, 0.12), inset 0 0 16px rgba(192, 132, 252, 0.08);
}

.ring-1 {
  width: 340px;
  height: 340px;
  border-color: rgba(124, 92, 252, 0.3);
  animation-duration: 12s;
}

.ring-2 {
  width: 300px;
  height: 300px;
  border-color: rgba(192, 132, 252, 0.2);
  animation-direction: reverse;
  animation-duration: 18s;
}

.ring-3 {
  width: 260px;
  height: 260px;
  border-color: rgba(56, 189, 248, 0.15);
  animation-duration: 25s;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Orbiting glowing particles — inherit rotation from their parent ring */
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9d5ff, #8b5cf6 55%, #6366f1);
  pointer-events: none;
}

.orbit-dot.dot-1 {
  width: 11px;
  height: 11px;
  top: -5.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px 3px rgba(139, 92, 246, 0.75), 0 0 20px 6px rgba(99, 102, 241, 0.4);
  animation: dotTwinkle 3.2s ease-in-out infinite;
}

.orbit-dot.dot-2 {
  width: 7px;
  height: 7px;
  top: 50%;
  right: -3.5px;
  transform: translateY(-50%);
  box-shadow: 0 0 8px 2px rgba(192, 132, 252, 0.7), 0 0 16px 4px rgba(99, 102, 241, 0.35);
  animation: dotTwinkle 3.2s ease-in-out infinite 1.4s;
}

@keyframes dotTwinkle {

  0%,
  100% {
    opacity: 0.65;
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.25);
  }
}

.avatar-img-container.popout-container {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: visible;
  z-index: 2;
}

.popout-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--grad-1), var(--grad-2)) border-box;
  box-shadow: var(--glow);
  z-index: 1;
}

.popout-body-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}

.popout-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  left: 0;
  top: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-img-container:hover .popout-img {
  transform: scale(1.08);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  z-index: 3;
  white-space: nowrap;
}

.badge-1 {
  top: 10%;
  left: -10%;
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-2 {
  bottom: 15%;
  right: -5%;
  animation: floatBadge 4s ease-in-out infinite 2s;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ==========================================
   ABOUT
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.about-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.info-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 1.4rem;
}

.info-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

/* Code Card */
.code-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red {
  background: #ff5f57;
}

.code-dot.yellow {
  background: #febc2e;
}

.code-dot.green {
  background: #28c840;
}

.code-filename {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-sub);
  font-family: monospace;
}

.code-body {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.83rem;
  line-height: 1.75;
  overflow-x: auto;
}

.c-purple {
  color: #bd93f9;
}

.c-blue {
  color: #8be9fd;
}

.c-green {
  color: #50fa7b;
}

.c-pink {
  color: #ff00cc;
}

.c-orange {
  color: #ffb86c;
}

/* ==========================================
   SKILLS
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.skill-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 15%, transparent);
}

.skill-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.skill-info {
  flex: 1;
}

.skill-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.skill-proj {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.skill-bar {
  height: 6px;
  background: var(--bg-glass);
  border-radius: 50px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 70%, white));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================
   EDUCATION / TIMELINE
   ========================================== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--grad-1), var(--grad-2), transparent);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg), var(--glow);
}

.timeline-dot::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
}

.timeline-card {
  flex: 1;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.timeline-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(192, 132, 252, 0.15));
  border: 1px solid rgba(124, 92, 252, 0.3);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.timeline-badge.complete {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.timeline-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
}

.timeline-org {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.timeline-date {
  color: var(--text-sub);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ==========================================
   PROJECTS
   ========================================== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.project-card.hidden {
  display: none;
}

.project-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-card);
  transition: transform 0.4s;
}

.project-img-contain {
  object-fit: contain;
  background: #ffffff;
}

.project-card:hover .project-img-placeholder,
.project-card:hover .project-img {
  transform: scale(1.05);
}

.proj-emoji {
  font-size: 4rem;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.proj-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: white;
  color: #111;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.proj-link:hover {
  transform: scale(1.05);
}

.proj-link svg {
  width: 14px;
  height: 14px;
}

.project-info {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tag-mobile {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.tag-web {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-game {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ==========================================
   CERTIFICATES
   ========================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cert-info {
  flex: 1;
}

.cert-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.cert-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cert-date {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.cert-link {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.cert-link:hover {
  color: var(--accent2);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 252, 0.08);
  transform: translateX(4px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-sub);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-made {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: flex;
    margin-bottom: 2.5rem;
    order: -1;
  }

  .avatar-wrapper {
    width: 260px;
    height: 260px;
  }

  .avatar-glow {
    width: 220px;
    height: 220px;
  }

  .ring-1 {
    width: 230px;
    height: 230px;
  }

  .ring-2 {
    width: 200px;
    height: 200px;
  }

  .ring-3 {
    width: 170px;
    height: 170px;
  }

  .avatar-img-container.popout-container {
    width: 150px;
    height: 150px;
  }

  .hero-desc {
    max-width: none;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .about-info-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .stat-divider {
    display: none;
  }
}

/* ==========================================
   PROJECT MODAL STYLE
   ========================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 2.5rem;
}

.project-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: auto;
  background: #141416;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

.browser-header {
  height: 24px;
  background: #1e1e24;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-dot.red {
  background: #ff5f56;
}

.browser-dot.yellow {
  background: #ffbd2e;
}

.browser-dot.green {
  background: #27c93f;
}

.modal-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.modal-slider {
  width: 100%;
  display: flex;
}

.modal-slider img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.slider-arrows {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 10;
}

.slider-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s;
}

.slider-arrow:hover {
  background: var(--accent);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
}

.modal-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-tech span {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--accent);
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-features-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.modal-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-features-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
}

.modal-features-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-body {
    gap: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
}