/* Flutter Developer Portfolio - Modern Dark Theme Design System */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(28, 39, 64, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(2, 136, 209, 0.4);

  --flutter-blue: #02569B;
  --flutter-cyan: #01B5D8;
  --flutter-accent: #54C5F8;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(1, 181, 216, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--flutter-cyan);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(9, 13, 22, 0.85);
  border-bottom-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--flutter-cyan), var(--flutter-blue));
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
  display: inline-block;
  transform: rotate(-15deg);
}

.logo span {
  background: linear-gradient(90deg, #54C5F8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--flutter-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flutter-cyan), var(--neon-purple));
  transition: var(--transition);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #01B5D8 0%, #02569B 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(1, 181, 216, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(1, 181, 216, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--flutter-accent);
  color: var(--flutter-accent);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(1, 181, 216, 0.1);
  border: 1px solid rgba(1, 181, 216, 0.3);
  color: var(--flutter-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #54C5F8 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.avatar-img-container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

/* Shimmer Skeleton Loading */
.avatar-img-container.shimmer-loading {
  background: linear-gradient(90deg,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(30, 41, 59, 0.9) 20%,
      rgba(51, 65, 85, 0.9) 40%,
      rgba(30, 41, 59, 0.9) 60%,
      rgba(15, 23, 42, 0.9) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: opacity 0.4s ease, filter 0.3s ease, transform 0.3s ease;
}

.avatar-img-container:hover .avatar-img {
  filter: brightness(0.85);
}

.avatar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.5) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.avatar-img-container:hover .avatar-overlay {
  opacity: 1;
}

.avatar-upload-btn {
  background: linear-gradient(135deg, #00D2FF 0%, #0072FF 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
  transition: all 0.25 ease;
  backdrop-filter: blur(4px);
}

.avatar-upload-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.55);
}

.avatar-upload-btn:active {
  transform: translateY(0) scale(0.98);
}

.avatar-reset-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.avatar-reset-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  color: #ffffff;
  transform: scale(1.08);
}

.avatar-upload-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.3s ease;
}

.avatar-upload-toast.success {
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.avatar-upload-toast.error {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.avatar-upload-toast.loading {
  background: rgba(0, 210, 255, 0.85);
  color: #ffffff;
  border: 1px solid rgba(0, 210, 255, 0.5);
}

/* Floating Widget Cards */
.floating-widget {
  position: absolute;
  padding: 12px 18px;
  background: rgba(18, 26, 43, 0.9);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
}

.widget-1 {
  top: -20px;
  left: -30px;
  animation-delay: 0s;
}

.widget-2 {
  bottom: 20px;
  right: -30px;
  animation-delay: 2s;
}

@keyframes float {

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

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

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

.widget-text h4 {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
}

.widget-text p {
  font-size: 0.75rem;
  color: var(--flutter-cyan);
}

/* Stats Section */
.stats-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--flutter-accent);
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--flutter-cyan);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

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

/* Skills Section */
.skills-section {
  padding: 100px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-50px 0);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(1, 181, 216, 0.15);
}

.skill-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(1, 181, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--flutter-accent);
}

.skill-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Projects Section */
.projects-section {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--flutter-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.store-buttons-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 16px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-store i {
  font-size: 1.1rem;
}

.btn-playstore {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.btn-playstore:hover {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-appstore {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #60a5fa;
}

.btn-appstore:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.project-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 0.8rem;
  color: var(--flutter-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tech-badge {
  background: rgba(2, 86, 155, 0.2);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* API Playground Section */
.api-section {
  padding: 100px 0;
}

.api-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #090d16;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.code-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.code-block {
  background: #060911;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  padding: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
  height: 280px;
}

.api-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  background: #05080e;
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--flutter-cyan);
  color: #fff;
  transform: translateY(-3px);
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Admin Panel Styles */
.admin-body {
  background-color: #050811;
  min-height: 100vh;
}

.admin-badge {
  font-size: 0.72rem;
  background: linear-gradient(135deg, #00D2FF 0%, #a855f7 100%);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.admin-container {
  max-width: 1240px;
  width: 95%;
  margin: 110px auto 60px;
  padding: 0 20px;
}

.admin-card {
  background: rgba(18, 26, 43, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  position: relative;
}

.login-card {
  max-width: 460px;
  margin: 40px auto;
}

.admin-header {
  text-align: center;
  margin-bottom: 24px;
}

.admin-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 210, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--flutter-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

.demo-credentials-box {
  background: rgba(9, 13, 22, 0.85);
  border: 1px dashed rgba(0, 210, 255, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.admin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

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

.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-icon-wrapper select {
  appearance: none;
  cursor: pointer;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus {
  border-color: var(--flutter-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gradient-icon {
  background: linear-gradient(135deg, #00D2FF, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-user-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-photo-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.photo-upload-container {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}

.photo-preview-wrapper {
  position: relative;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--flutter-cyan);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
  flex-shrink: 0;
}

.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

.photo-preview-wrapper:hover .photo-upload-overlay {
  opacity: 1;
}

.photo-instructions h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.photo-instructions p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
  max-width: 400px;
}

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

.error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
}

.admin-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.admin-toast.success {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.admin-toast.error {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Responsive */
@media (max-width: 992px) {

  .hero-grid,
  .api-box {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.8rem;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .photo-upload-container {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Flatpickr Datepicker Customization */
.flatpickr-calendar {
  background: #0f172a !important;
  border: 1px solid var(--border-glow) !important;
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.2) !important;
  border-radius: var(--radius-md) !important;
  font-family: inherit !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
  background: var(--flutter-blue) !important;
  border-color: var(--flutter-cyan) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.flatpickr-day:hover {
  background: rgba(0, 210, 255, 0.15) !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: var(--flutter-cyan) !important;
  color: var(--flutter-cyan) !important;
}

/* Admin Drawer Navigation System */
.admin-drawer-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-drawer-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-drawer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
}

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

.admin-drawer-btn.active {
  background: rgba(1, 181, 216, 0.15);
  border-color: rgba(1, 181, 216, 0.4);
  color: var(--flutter-cyan);
  font-weight: 600;
}

.admin-drawer-btn i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* Horizontal Scrollable Skills Grid on Portfolio Website */
.skills-grid.horizontal-scroll {
  display: flex;
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 16px 4px 24px;
  margin-top: -16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--flutter-cyan) var(--bg-dark);
}

@media (max-width: 1250px) {
  .skills-grid.horizontal-scroll {
    justify-content: flex-start;
  }
}

.skills-grid.horizontal-scroll .skill-card {
  min-width: 320px;
  max-width: 380px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}



/* Job Experience & Timeline Section */
.experience-section {
  padding: 90px 0;
  background: rgba(9, 13, 22, 0.4);
}

.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 40px auto 0;
  padding-left: 30px;
  border-left: 2px dashed rgba(0, 210, 255, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--flutter-cyan);
  border: 3px solid #050811;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.12);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.timeline-duration {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--flutter-cyan);
}

.timeline-subheader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.timeline-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--flutter-cyan);
}

.timeline-location {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-highlights-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style-type: disc;
}

.timeline-highlights-list li {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.65;
}

.timeline-highlights-list li::marker {
  color: var(--flutter-cyan);
  font-size: 1.1rem;
}