/* ===========================
   VARIABLES & THEME COLORS
   =========================== */

:root {
  --primary: #2563eb;
  --secondary: #38bdf8;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --lighter: #f1f5f9;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --dark: #0f172a;
  --darker: #020617;
  --light: #1e293b;
  --lighter: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border: #334155;
}

/* ===========================
   GLOBAL STYLES
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  transition: var(--transition);
}

/* ===========================
   CONTAINERS & LAYOUT
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-google {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--light);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-google:hover {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05),
    rgba(56, 189, 248, 0.05)
  );
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 10px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-admin {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 14px;
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.theme-toggle {
  background: var(--lighter);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(56, 189, 248, 0.05) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(56, 189, 248, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

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

.hero-content {
  text-align: left;
  animation: slideInLeft 0.8s ease;
}

.profile-image-container {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--lighter);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.hero-animation {
  position: relative;
  height: 400px;
  animation: slideInRight 0.8s ease;
}

.floating-card {
  animation: float 3s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.code-block {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 40px;
  border-radius: 15px;
  color: white;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-line {
  display: block;
}

/* ===========================
   SECTIONS
   =========================== */

.github-section,
.projects-section,
.skills-section,
.about-section,
.contact-section {
  padding: 100px 20px;
  position: relative;
}

.github-section {
  background: var(--light);
}

.projects-section {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.02) 0%,
    rgba(56, 189, 248, 0.02) 100%
  );
}

.skills-section {
  background: var(--light);
}

.about-section {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.02) 0%,
    rgba(56, 189, 248, 0.02) 100%
  );
}

.contact-section {
  background: var(--light);
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ===========================
   GITHUB SECTION
   =========================== */

.github-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  background: var(--darker);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
}

.stat-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 32px;
  color: white;
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.contribution-graph {
  background: var(--darker);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contribution-graph h3 {
  color: white;
  margin-bottom: 30px;
  font-size: 20px;
}

.graph-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.repositories-section {
  margin-bottom: 60px;
}

.repositories-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.repo-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.search-input,
.sort-select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--light);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.search-input:focus,
.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.repo-card {
  background: var(--darker);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.repo-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.repo-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.repo-star {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.repo-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.repo-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: var(--text-secondary);
}

.repo-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.repo-footer {
  display: flex;
  gap: 10px;
}

.repo-footer a {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

/* ===========================
   ACTIVITY TIMELINE
   =========================== */

.activity-timeline {
  background: var(--darker);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-timeline h3 {
  color: white;
  margin-bottom: 30px;
  font-size: 20px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  padding: 15px;
  border-left: 3px solid var(--primary);
  background: rgba(37, 99, 235, 0.05);
  border-radius: 6px;
}

.activity-type {
  font-weight: 700;
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.activity-title {
  color: white;
  font-weight: 600;
  margin-bottom: 5px;
}

.activity-time {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.project-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.project-card {
  background: var(--darker);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-techs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tech-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.project-links a:hover {
  background: var(--primary);
  color: white;
}

/* ===========================
   SKILLS SECTION
   =========================== */

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

.skill-card {
  background: var(--darker);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.skill-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
}

.skill-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.about-stats .stat {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: white;
}

.about-stats .stat h4 {
  font-size: 28px;
  margin-bottom: 5px;
}

.about-stats .stat p {
  font-size: 12px;
  opacity: 0.9;
}

.about-interests {
  background: var(--darker);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-interests h3 {
  color: white;
  margin-bottom: 20px;
}

.interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--light);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  background: var(--darker);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary);
  margin-top: 5px;
}

.contact-item h4 {
  color: white;
  margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.contact-item a:hover {
  color: var(--primary);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--dark);
  color: var(--text-secondary);
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.visitor-counter {
  margin-top: 15px;
  font-size: 14px;
}

/* ===========================
   AUTHENTICATION
   =========================== */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.auth-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.3;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -10%;
  left: -5%;
  animation: blob-animation 8s infinite;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  top: 50%;
  right: -5%;
  animation: blob-animation 8s infinite 2s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -10%;
  left: 50%;
  animation: blob-animation 8s infinite 4s;
}

@keyframes blob-animation {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 30px);
  }
}

.auth-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 50px;
  width: 100%;
  max-width: 400px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin: 0 auto 20px;
}

.auth-header h1 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.auth-form input {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: white;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 13px;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--secondary);
}

.back-link {
  color: var(--text-secondary) !important;
}

.back-link:hover {
  color: var(--primary) !important;
}

/* ===========================
   ADMIN PANEL
   =========================== */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--light);
}

.admin-sidebar {
  width: 280px;
  background: var(--dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.sidebar-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 15px;
}

.sidebar-header h3 {
  color: white;
  font-size: 20px;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.nav-item {
  padding: 15px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.nav-item i {
  width: 20px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.admin-main {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: var(--darker);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

#adminAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info p {
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.user-info span {
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: var(--darker);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.card-content h4 {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-value {
  color: white;
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

.admin-form {
  background: var(--darker);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.admin-form h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: white;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 8px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.form-actions .btn {
  flex: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--darker);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table thead {
  background: rgba(37, 99, 235, 0.1);
}

.admin-table th {
  padding: 15px;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-buttons button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-edit {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.skills-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.skill-admin-card {
  background: var(--darker);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.skill-admin-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 10px;
}

.skill-admin-card h4 {
  color: white;
  margin-bottom: 5px;
}

.skill-admin-card p {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 0;
}

.skill-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
}

.skill-admin-card:hover .skill-delete {
  display: block;
}

.messages-container {
  background: var(--darker);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.messages-list {
  max-height: 600px;
  overflow-y: auto;
}

.message-item {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-item:last-child {
  border-bottom: none;
}

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

.message-from {
  color: white;
  font-weight: 600;
}

.message-email {
  color: var(--primary);
  font-size: 12px;
}

.message-date {
  color: var(--text-secondary);
  font-size: 12px;
}

.message-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.delete-message {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  opacity: 0.5;
  margin-bottom: 15px;
}

.empty-state p {
  font-size: 16px;
}

.table-responsive {
  overflow-x: auto;
}

.text-center {
  text-align: center;
}

/* ===========================
   MODAL
   =========================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--darker);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 25px;
  color: var(--text-secondary);
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.modal-footer .btn {
  flex: 1;
}

/* ===========================
   TOAST NOTIFICATIONS
   =========================== */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--darker);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  animation: slideIn 0.3s ease;
}

.toast.show {
  display: flex;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.toast.info {
  border-color: rgba(37, 99, 235, 0.3);
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===========================
   LOADING
   =========================== */

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.spinner {
  border: 4px solid rgba(37, 99, 235, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.hidden {
  display: none;
}

/* ===========================
   ANIMATIONS
   =========================== */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* ===========================
   RESPONSIVE
   =========================== */

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

  .hero-content {
    text-align: center;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .admin-sidebar {
    width: 250px;
  }

  .admin-main {
    margin-left: 250px;
  }
}

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

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 36px;
  }

  .project-filters {
    flex-wrap: wrap;
  }

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

  .admin-sidebar {
    position: fixed;
    left: -280px;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .admin-sidebar.open {
    left: 0;
  }

  .admin-sidebar-close {
    display: block;
  }

  .admin-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
  }

  .repo-filters {
    flex-direction: column;
  }

  .repo-filters input,
  .repo-filters select {
    width: 100%;
  }
}

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

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .social-links {
    justify-content: center;
  }

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

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

  .auth-card {
    padding: 30px;
  }

  .admin-content {
    padding: 20px;
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
  }

  .section-header h2 {
    font-size: 24px;
  }

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

  .modal {
    width: 95%;
  }
}
