/* ==========================================================================
   ROBOTİK TEKNOLOJİ & YAPAY ZEKÂ - MODERN DESIGN SYSTEM (LIGHT & DARK THEMES)
   ========================================================================== */

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

/* ==========================================================================
   THEME VARIABLES
   ========================================================================== */

/* Default: LIGHT THEME */
:root, [data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --border-glow: rgba(0, 119, 255, 0.2);
  --border-glow-hover: rgba(0, 119, 255, 0.45);
  
  --primary-cyan: #0077ff;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-purple: #7c3aed;
  
  --text-main: #334155;
  --text-muted: #64748b;
  --text-bright: #0f172a;

  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-blur: blur(16px);
  
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);

  /* Light Theme Orb Variables */
  --orb-color: #0077ff;
  --orb-bg-top: #ffffff;
  --orb-bg-bottom: #e2e8f0;
  --orb-border: rgba(0, 119, 255, 0.25);
  --orb-text: #0f172a;
  --orb-icon-color: #0077ff;
  --orb-node-color: #0077ff;
  --orb-shadow: 0 10px 25px rgba(0, 119, 255, 0.12);
}

/* DARK THEME OVERRIDE */
[data-theme="dark"] {
  --bg-dark: #070a12;
  --bg-card: rgba(13, 20, 36, 0.65);
  --bg-card-hover: rgba(20, 30, 54, 0.85);
  --border-glow: rgba(0, 240, 255, 0.2);
  --border-glow-hover: rgba(0, 240, 255, 0.5);
  
  --primary-cyan: #00f0ff;
  --accent-amber: #ffaa00;
  --accent-emerald: #00ff9d;
  --accent-purple: #9d4edd;
  
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;

  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.4);

  /* Dark Theme Orb Variables (Stunning Sci-Fi Titanium Core) */
  --orb-color: #00f0ff;
  --orb-bg-top: rgba(13, 20, 36, 0.95);
  --orb-bg-bottom: rgba(7, 10, 18, 0.98);
  --orb-border: rgba(0, 240, 255, 0.4);
  --orb-text: #ffffff;
  --orb-icon-color: #ffffff;
  --orb-node-color: #00f0ff;
  --orb-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Canvas & Grid */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 119, 255, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 85% 60%, rgba(217, 119, 6, 0.04) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] .bg-grid-overlay {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 60%, rgba(255, 170, 0, 0.04) 0%, transparent 50%);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* ==========================================================================
   NAVIGATION BAR & THEME SWITCHER
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.3);
  position: relative;
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

.brand-separator {
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0.4;
  font-size: 0.95rem;
  margin: 0 0.15rem;
}

.brand-domain {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-star {
  color: var(--accent-amber);
  font-size: 0.85rem;
  margin-left: 0.15rem;
  display: inline-block;
  animation: pulseStar 3s ease-in-out infinite alternate;
}

@keyframes pulseStar {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; text-shadow: 0 0 8px var(--accent-amber); }
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link .link-prefix {
  font-size: 0.75rem;
  color: var(--primary-cyan);
  opacity: 0.8;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--accent-amber));
  transition: var(--transition-normal);
  border-radius: 2px;
}

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

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.45rem 0.9rem;
  color: var(--text-bright);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  transform: translateY(-1px);
}

.theme-toggle-btn i {
  color: var(--accent-amber);
  font-size: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4rem 0 6rem 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

/* Left: Avatar Orbital Frame */
.hero-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orbital-ring {
  position: absolute;
  width: 108%;
  height: 108%;
  border-radius: 50%;
  border: 2px dashed rgba(0, 119, 255, 0.3);
  animation: rotateOrbital 30s linear infinite;
  pointer-events: none;
}

.hero-orbital-ring-2 {
  position: absolute;
  width: 118%;
  height: 118%;
  border-radius: 50%;
  border: 1px solid rgba(217, 119, 6, 0.25);
  animation: rotateOrbital 45s linear infinite reverse;
  pointer-events: none;
}

@keyframes rotateOrbital {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-avatar-frame {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent-amber), var(--primary-cyan), var(--accent-emerald));
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: brightness(1.03);
  transition: var(--transition-normal);
}

.hero-avatar-frame:hover .hero-avatar-img {
  transform: scale(1.04);
}

/* Floating Status Tag on Avatar */
.hero-status-tag {
  position: absolute;
  bottom: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--primary-cyan);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-bright);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Right: Bio & Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-subtitle-badge {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-subtitle-badge::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--primary-cyan);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--text-bright) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ==========================================================================
   HIGH-TECH FUTURISTIC ROBOTIC & AI ACTION ORBS (PERFECT LIGHT & DARK MODES)
   ========================================================================== */
.hero-action-orbs {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 2rem;
  flex-wrap: nowrap;
  width: 100%;
}

.orb-button {
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
  text-decoration: none;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--orb-shadow);
}

/* Outer HUD Spin Ring */
.orb-hud-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px dashed var(--orb-color);
  opacity: 0.6;
  animation: rotateHudRing 24s linear infinite;
  transition: opacity 0.3s ease, animation-duration 0.3s ease;
  pointer-events: none;
}

@keyframes rotateHudRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Laser Scanline Effect inside orb */
.orb-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orb-color), transparent);
  opacity: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Inner Container */
.orb-inner {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--orb-bg-top), var(--orb-bg-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border: 1px solid var(--orb-border);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.4s ease;
}

.orb-node-tag {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orb-node-color);
  opacity: 0.95;
  margin-bottom: 0.1rem;
}

.orb-icon {
  font-size: 1.4rem;
  color: var(--orb-icon-color);
  margin-bottom: 0.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .orb-icon {
  text-shadow: 0 0 10px var(--primary-cyan);
}

.orb-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--orb-text);
  letter-spacing: -0.01em;
}

/* Neon Backlight Glow Aura */
.orb-glow-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--orb-color);
  opacity: 0;
  filter: blur(20px);
  z-index: 0;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* HOVER EFFECTS */
.orb-button:hover {
  transform: translateY(-8px) scale(1.08);
}

.orb-button:hover .orb-inner {
  border-color: var(--orb-color);
}

.orb-button:hover .orb-hud-ring {
  opacity: 1;
  animation-duration: 6s;
  border-style: solid;
  box-shadow: 0 0 15px var(--orb-color);
}

.orb-button:hover .orb-scanline {
  opacity: 1;
  animation: scanlineWipe 1.8s ease-in-out infinite;
}

@keyframes scanlineWipe {
  0% { top: 10%; opacity: 0; }
  50% { opacity: 0.9; }
  100% { top: 90%; opacity: 0; }
}

.orb-button:hover .orb-icon {
  transform: scale(1.16);
  color: var(--primary-cyan);
}

.orb-button:hover .orb-glow-aura {
  opacity: 0.45;
  filter: blur(22px);
}

/* Node Tag Accent Colors in Light & Dark Mode */
.orb-hakkimda { --orb-node-color: var(--accent-amber); }
.orb-projelerim { --orb-node-color: var(--primary-cyan); }
.orb-blog { --orb-node-color: var(--accent-emerald); }
.orb-iletisim { --orb-node-color: var(--primary-cyan); }

/* ==========================================================================
   FEATURED TECH CARDS & INSIGHTS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header .section-tag {
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

.section-header .section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cyan), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tech-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 119, 255, 0.1);
  border: 1px solid rgba(0, 119, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link:hover {
  gap: 0.75rem;
}

/* ==========================================================================
   STATS COUNTER ROW
   ========================================================================== */
.stats-section {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 119, 255, 0.03);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-bright);
  background: linear-gradient(135deg, var(--text-bright), var(--primary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PAGES SPECIFIC STYLES (ABOUT, PROJECTS, CONTACT)
   ========================================================================== */
.page-header {
  padding: 4rem 0 2rem 0;
  text-align: center;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0 auto;
  padding-left: 2rem;
  border-left: 2px solid rgba(0, 119, 255, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}

/* Project Filter & Cards */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.filter-tab.active, .filter-tab:hover {
  background: rgba(0, 119, 255, 0.15);
  border-color: var(--primary-cyan);
  color: var(--text-bright);
}

.project-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(0, 119, 255, 0.1);
  color: var(--primary-cyan);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Form Controls */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-cyan), #0055ff);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 5px 20px rgba(0, 119, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.5);
}

/* ==========================================================================
   HIGH-END FLOATING POPUP TOAST NOTIFICATION
   ========================================================================== */
.toast-popup-container {
  position: fixed;
  top: 90px;
  right: 2rem;
  z-index: 9999;
  max-width: 420px;
  pointer-events: none;
}

.toast-popup {
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.98));
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.35), 0 0 25px rgba(0, 255, 157, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(120%) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  position: relative;
  overflow: hidden;
}

.toast-popup.active {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.toast-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.toast-body {
  flex-grow: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.toast-desc {
  font-size: 0.875rem;
  opacity: 0.95;
  line-height: 1.4;
}

.toast-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.toast-close-btn:hover {
  color: #ffffff;
}

.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  border-radius: 0 0 16px 16px;
  transform-origin: left;
  animation: toastCountdown 3.2s linear forwards;
}

@keyframes toastCountdown {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

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

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: rgba(0, 119, 255, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 119, 255, 0.3);
}

.copyright-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.footer-author-link {
  color: var(--primary-cyan);
  font-weight: 700;
  position: relative;
  transition: var(--transition-fast);
}

.footer-author-link:hover {
  color: var(--text-bright);
  text-shadow: 0 0 10px var(--primary-cyan);
}

.footer-domain-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE MOBILE & TABLET RULES
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-avatar-wrapper {
    order: -1;
  }

  .hero-avatar-frame {
    width: 320px;
    height: 320px;
  }

  .hero-subtitle-badge {
    justify-content: center;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-action-orbs {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 4rem 0;
    min-height: auto;
  }

  .brand-domain, .brand-separator {
    display: none;
  }

  .brand-logo .logo-icon {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .nav-right-group {
    gap: 0.75rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }

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

  .mobile-toggle {
    display: block;
  }

  .hero-avatar-frame {
    width: 260px;
    height: 260px;
  }

  .hero-action-orbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 290px;
    margin: 1.5rem auto 0 auto;
    justify-items: center;
  }

  .orb-button {
    width: 120px;
    height: 120px;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .contact-form {
    padding: 1.5rem;
  }

  .toast-popup-container {
    right: 1rem;
    left: 1rem;
    max-width: none;
    top: 75px;
  }
}

@media (max-width: 480px) {
  .hero-avatar-frame {
    width: 220px;
    height: 220px;
  }

  .orb-button {
    width: 110px;
    height: 110px;
  }

  .orb-icon {
    font-size: 1.2rem;
  }

  .orb-label {
    font-size: 0.8rem;
  }
}
