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

:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #1a56db;
  --accent-dark: #0a1628;
  --accent-light: #eef2ff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4fa 100%);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}

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

.nav-links button {
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.nav-links button:hover {
  color: var(--accent);
}

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

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-name {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--accent-dark);
}

.hero-name span {
  color: var(--accent);
}

.hero-role {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 60px;
}

.hero-role .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2rem;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-bio {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-dark);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.photo-frame {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

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

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  font-size: 2rem;
}

/* Modal/Popup Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

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

.modal-content {
  background: var(--bg);
  border-radius: 24px;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--accent-dark);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--accent);
}

/* Grid layouts */
.skills-grid, .cert-grid, .projects-grid, .blog-grid, .events-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card, .cert-card, .project-card, .blog-card, .event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}

.skill-card:hover, .cert-card:hover, .project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.skill-card h3, .project-card h3, .cert-card h3, .blog-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.skill-card p, .project-card p, .blog-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.skill-tag {
  font-size: 0.7rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
}

.cert-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 16px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
}

.cert-issuer {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

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

.cert-link, .project-link, .blog-read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project-links {
  margin-top: 12px;
}

.event-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.event-date {
  min-width: 70px;
  font-weight: 700;
  color: var(--accent);
}

.event-info h3 {
  margin-bottom: 4px;
}

.event-venue {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 4px;
}

.blog-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cv-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  margin-top: 20px;
}

.cv-banner .cv-title {
  color: white;
  font-weight: 600;
}

.contact-item {
  margin: 16px 0;
  padding: 8px 0;
}

.social-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
}

/* Admin Bar */
.admin-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  padding: 12px 24px;
  display: none;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 200;
}

.admin-bar.show {
  display: flex;
}

.admin-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.7rem;
  cursor: pointer;
}

.admin-btn:hover {
  background: var(--accent);
}

.admin-btn.danger:hover {
  background: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* Modal inputs */
.modal-content input, .modal-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.modal-content input:focus, .modal-content textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero-name {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid, .cert-grid, .projects-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 20px;
    width: 95%;
  }
}
