@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap');
@import url('./empty-state.css');

:root {
  /* Core Colors - Developer Dark Theme */
  --bg-body: #050505; /* Darker, deeper black */
  --bg-surface: #0f0f10;
  --bg-surface-hover: #18181b;
  --bg-glass: rgba(10, 10, 10, 0.6); /* More transparent */
  
  /* Accents - More vibrant but controlled */
  --primary: #3b82f6;       
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.4);
  
  --secondary: #8b5cf6;     
  --secondary-glow: rgba(139, 92, 246, 0.4);
  
  --accent: #10b981;        
  --danger: #ef4444;
  
  /* Text */
  --text-main: #f4f4f5; /* Zinc 100 */
  --text-muted: #a1a1aa; /* Zinc 400 */
  --text-dim: #52525b; /* Zinc 600 */
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.08); /* Much more subtle */
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Layout */
  --container-width: 1280px; /* Wider for modern screens */
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Animation */
  --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 5px;
  border: 2px solid var(--bg-body); /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  /* Subtler Grid */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

/* App Layout - Sticky Footer */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#router-outlet {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }

.font-mono { font-family: var(--font-mono); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-danger { color: #ef4444; }
.text-warning { color: #f59e0b; }
.text-success { color: #10b981; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  background-color: transparent; /* Ensure no default gray bg */
  color: var(--text-main);
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s var(--ease-elastic);
  box-shadow: 0 4px 15px var(--primary-glow);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-modern:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--secondary-glow);
  filter: brightness(1.1);
}

.btn-modern i {
  transition: transform 0.3s ease;
}

.btn-modern:hover i {
  transform: translateX(4px);
}

.btn-modern.outline {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-modern.outline:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 8px 25px var(--secondary-glow);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-main);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  transition: all 0.2s;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-link {
  background: none;
  color: var(--primary);
  padding: 0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link:hover {
  text-decoration: none;
  color: var(--primary-hover);
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-modern:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  color: white;
}

/* Cards */
.card {
  background: rgba(15, 15, 16, 0.6); /* Translucent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(20, 20, 22, 0.8);
}

/* Header & Nav */
.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 3-Column Grid Layout */
.navbar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

/* 1. Left: Branding */
.nav-brand {
  justify-self: start;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.03em;
}

.badge-tech {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  position: relative;
  top: 1px;
  transition: all 0.3s ease;
}

.logo:hover .badge-tech {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
  border-color: var(--primary);
}

/* 2. Center: Navigation */
.nav-center {
  justify-self: center;
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 0.01em;
}

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

/* Animated Underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  transition: width 0.3s var(--ease-out);
  box-shadow: 0 0 10px var(--primary-glow);
  border-radius: 2px;
}

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

/* 3. Right: Actions */
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

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

.lang-option {
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 4px;
}

.lang-option:hover {
  color: var(--text-main);
}

.lang-option.active {
  color: var(--text-main);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.lang-switch .divider {
  color: var(--border);
  font-size: 0.8em;
}

.btn-icon {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Circle for buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.btn-icon:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.theme-btn:hover {
  color: #fbbf24; /* Amber for moon/sun */
  background: rgba(251, 191, 36, 0.1);
}

/* Mobile Controls */
.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .mobile-only {
    display: flex; /* Show only on mobile/tablet */
  }
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 993px) {
  .mobile-drawer {
    display: none !important;
  }
  .mobile-only {
    display: none !important;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  /* Navbar Adjustments */
  .nav-center {
    display: none;
  }
  
  .navbar-grid {
    display: flex;
    justify-content: space-between;
  }
  
  .nav-right {
    gap: 1rem;
  }
  
  .mobile-only {
    display: flex;
  }

  /* Hero & Layout Adjustments */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    margin-top: 3rem;
    transform: scale(0.9);
    display: flex;
    justify-content: center;
  }

  .code-window {
    transform: perspective(1000px) rotateY(0) rotateX(0); /* Remove 3D rotation on mobile */
    max-width: 100%;
  }

  /* Adjust floating icons positions to stay within bounds */
  .icon-html { right: -10px; top: -15px; }
  .icon-css { left: -10px; bottom: 20px; }
  .icon-js { right: -10px; }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .skills-grid-asymmetric {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .badge-tech {
    display: none;
  }
  
  .logo {
    font-size: 1.2rem;
  }

  .hero-visual {
    transform: scale(0.75); /* Aggressive scaling for small screens */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .code-window {
    font-size: 0.75rem; /* Smaller font code */
  }

  /* Pull icons completely inside or closer */
  .icon-html { right: 0; top: -20px; }
  .icon-css { left: 0; bottom: 10px; }
  .icon-js { right: 0; }
}

/* Sticky Header State */
.header-glass.scrolled {
  height: 60px; /* Reduced height */
  background: rgba(5, 5, 5, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Mobile Drawer */
.mobile-drawer {
  position: absolute; /* Changed from fixed to absolute relative to header */
  top: 100%; /* Align to bottom of header */
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95); /* Darker, more opaque */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.mobile-drawer.open {
  display: flex;
  animation: slideDown 0.3s var(--ease-out);
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mobile-drawer .nav-link:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Left side slightly wider */
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: slideUp 0.8s var(--ease-out) forwards;
}

/* Hero Status Badge */
.status-wrapper {
  margin-bottom: 2rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.status-badge:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: rgba(52, 211, 153, 0.2);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.d-block { display: block; }

.text-gradient {
  background: linear-gradient(to right, #fff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Hero Stats Strip */
.hero-stats {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 1rem 2rem;
  border-radius: 100px;
  gap: 2rem;
  backdrop-filter: blur(10px);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.25rem;
}

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

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

/* Code Window */
.code-window {
  background: #1e1e1e; /* VS Code dark bg */
  border-radius: var(--radius-md);
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
  background: #252526;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
  color: #999;
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: auto;
}

.window-content {
  padding: 1.5rem;
  line-height: 1.6;
  color: #d4d4d4;
  overflow-x: auto;
}

/* Syntax Highlighting */
.keyword { color: #569cd6; }
.variable { color: #9cdcfe; }
.string { color: #ce9178; }
.type { color: #4ec9b0; }
.property { color: #9cdcfe; }
.boolean { color: #569cd6; }
.comment { color: #6a9955; font-style: italic; }
.function { color: #dcdcaa; }
.method { color: #dcdcaa; }
.key { color: #9cdcfe; }

/* Floating Icons */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(30, 30, 35, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem; /* Aumentei um pouco */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 10; /* Garante que fique acima de tudo */
  animation: float 6s ease-in-out infinite;
}

.floating-icon i,
.floating-icon svg {
  /* Forçar renderização do ícone */
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  color: inherit; /* Garante que herde a cor do pai */
  font-size: inherit;
}

.icon-html { color: #e34f26; top: -20px; right: -20px; animation-delay: 0s; }
.icon-css { color: #1572b6; bottom: 40px; left: -30px; animation-delay: 2s; }
.icon-js { color: #f7df1e; top: 40%; right: -40px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
}

.section-header.center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

/* Skills Section - Centered */
.skills-grid-asymmetric {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.skill-card {
  flex: 0 1 380px; /* Optimal width for readability */
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  align-items: center;
  text-align: center;
}

.skill-card.featured {
  background: linear-gradient(145deg, var(--bg-surface), rgba(59, 130, 246, 0.05));
  border-color: rgba(59, 130, 246, 0.2);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  width: 64px; /* Slightly larger */
  height: 64px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.skill-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  justify-content: center; /* Center tags */
  width: 100%;
}

.tech-list span {
  font-size: 0.85rem;
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.tech-list span:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

/* Projects Grid - Professional */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Visual / Header Area */
.project-visual {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Gradients */
.visual-ecommerce { background: linear-gradient(135deg, #1e1b4b, #3b82f6); }
.visual-analytics { background: linear-gradient(135deg, #064e3b, #10b981); }
.visual-mobile { background: linear-gradient(135deg, #451a03, #f59e0b); }

/* Info Box Component */
.info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-box i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.info-box h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.info-box p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.info-box.warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.2);
}

.info-box.warning i {
  color: #ffc107;
}

.project-main-icon {
  font-size: 5rem;
  color: rgba(255,255,255,0.1);
  transition: transform 0.5s ease;
}

.project-card:hover .project-main-icon {
  transform: scale(1.2) rotate(-5deg);
  opacity: 0.05;
}

.project-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}

/* Hover Overlay with Links */
.project-links-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.link-btn {
  width: 45px;
  height: 45px;
  background: white;
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.link-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.project-card:hover .link-btn {
  transform: translateY(0);
}

.project-card:hover .link-btn:nth-child(2) {
  transition-delay: 0.05s;
}

/* Content */
.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

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

/* Mobile Adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .skills-grid-asymmetric {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tech Divider */
.tech-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 4rem 0;
  opacity: 0.5;
}

.divider-line {
  height: 1px;
  width: 150px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Footer - Professional Redesign */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg-surface), #000);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-desc {
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-brand .social-links {
  display: flex;
  gap: 1rem;
}

.footer-brand .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.3s;
  text-decoration: none;
}

.footer-brand .social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.footer-nav-group h5 {
  font-size: 1rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a,
.footer-link-static {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-link-static {
  cursor: default;
  color: var(--text-dim);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.admin-link-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-link-badge:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .brand-desc {
    margin: 0 auto 2rem auto;
  }
  
  .footer-brand .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- NEW LOADING SCREEN STYLES (APPENDED) --- */
#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* Use vw/vh for full viewport coverage */
  height: 100vh;
  background-color: var(--bg-body, #050505);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.8s;
  margin: 0; /* Reset margins */
  padding: 0; /* Reset padding */
}

.loader {
  position: relative;
  width: 80px;
  height: 80px;
  margin: auto; /* Ensure centering within flex container */
}

.loader-circle {
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px var(--primary-glow);
}

.loader-circle::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 3px solid transparent;
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
}

.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--text-main), var(--text-muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* App Transition */
#app.app-init-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#app.app-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- CONSTRUCTION PAGE STYLES --- */
.construction-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: calc(var(--header-height) + 2rem);
  animation: fadeIn 0.5s ease-out;
}

/* --- ADMIN & FORMS --- */
.admin-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem;
  padding-top: calc(var(--header-height) + 4rem);
  flex: 1; /* Allow to expand */
}

.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 4rem); /* Added gap */
  padding-bottom: 2rem;
}

.login-card {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem;
  border-color: var(--border-hover);
  background: rgba(15, 15, 16, 0.8);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

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

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-left: 3rem; /* Space for icon */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control:focus + .input-icon {
  color: var(--primary);
}

/* Dashboard */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h3 {
  font-size: 2rem;
  margin: 0;
  line-height: 1;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.dashboard-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s;
}

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

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.item-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.construction-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  max-width: 450px;
  width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.construction-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
}

.construction-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 0 30px var(--primary-glow);
}

.construction-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.construction-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

#toast-container > div {
  pointer-events: auto;
}

/* Toast Notification Modern Styles */
.toast-notification {
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: right center;
}

.toast-notification::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast-notification.success::before { background: #10b981; }
.toast-notification.error::before { background: #ef4444; }
.toast-notification.info::before { background: #3b82f6; }
.toast-notification.warning::before { background: #f59e0b; }

.toast-notification i {
  font-size: 1.2rem;
}

.toast-notification.success i { color: #10b981; }
.toast-notification.error i { color: #ef4444; }
.toast-notification.info i { color: #3b82f6; }
.toast-notification.warning i { color: #f59e0b; }

.toast-notification span {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

@keyframes slideInRight {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(120%) scale(0.9); opacity: 0; }
}

/* Elegant Divider */
.elegant-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  width: 100%;
  max-width: 600px;
  margin: 3rem auto;
  position: relative;
  opacity: 0.6;
}

.elegant-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-body);
  padding: 0 1rem;
  color: var(--primary);
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--bg-body); /* Blend better */
}


