/* Modern Portfolio CSS */
/* ==================== */

/* CSS Custom Properties */
:root {
  /* Colors - Dark Professional Theme */
  --primary-color: #64ffda;
  --secondary-color: #1e3a8a;
  --accent-color: #f59e0b;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glow-color: rgba(100, 255, 218, 0.1);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Monaco, "Cascadia Code", monospace;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 2rem;
  --border-radius: 12px;
  --border-radius-sm: 8px;

  /* Animations */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Accessibility - Skip Navigation */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--bg-primary);
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-nav:focus {
  top: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  word-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Responsive utilities */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-responsive {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.no-scroll {
  overflow: hidden;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

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

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease-out;
}

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

.loading-logo {
  position: relative;
  margin-bottom: 2rem;
}

.loading-logo .logo-text {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.loading-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 4px 20px var(--shadow-color);
}

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

.nav-logo .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: all var(--transition-normal);
}

.logo-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  min-height: 44px; /* Minimum touch target size */
  touch-action: manipulation; /* Optimize for touch */
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: var(--glow-color);
}

.nav-link i {
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  min-width: 44px; /* Minimum touch target size */
  min-height: 44px;
  justify-content: center;
  align-items: center;
  touch-action: manipulation;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
  background-color: var(--glow-color);
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(100, 255, 218, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.hero-text {
  z-index: 2;
}

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

.title-line,
.title-name,
.title-role {
  display: block;
  line-height: 1.2;
}

.title-line {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
}

.title-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.title-role {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 500;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typing {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  height: 2rem;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-avatar {
  position: relative;
}

.avatar-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: all var(--transition-normal);
}

.avatar-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.avatar-border {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: rotate 10s linear infinite;
}

.avatar-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, var(--glow-color), transparent);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite alternate;
}

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

.floating-elements {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.float-element {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.float-element:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.float-element:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.float-element:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.float-element:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-muted);
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.text-block {
  margin-bottom: 2rem;
}

.block-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.text-block p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.personal-info {
  margin-top: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.info-item i {
  color: var(--primary-color);
  width: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-tertiary);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 255, 218, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.stat-card:hover::before {
  left: 100%;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.interests {
  margin-top: 4rem;
}

.interests-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

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

.interest-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.interest-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  background: var(--glow-color);
}

.interest-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.interest-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Experience Section */
.experience {
  padding: var(--section-padding);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 0.8rem;
  z-index: 2;
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  border-color: var(--primary-color);
  transform: translateX(10px);
}

.timeline-header {
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

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

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.timeline-description ul {
  list-style: none;
  padding-left: 0;
}

.timeline-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-description li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

/* Education Section */
.education {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.education-content {
  max-width: 800px;
  margin: 0 auto;
}

.education-item {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px var(--shadow-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.education-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px var(--shadow-color);
}

.education-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bg-primary);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.education-details {
  flex: 1;
}

.education-header {
  margin-bottom: 1.5rem;
}

.education-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.education-institution {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.education-period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.education-gpa {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 600;
  font-family: var(--font-mono);
}

.education-description {
  margin-bottom: 1.5rem;
}

.education-description p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.coursework {
  margin-top: 1rem;
}

.coursework h4 {
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
}

.coursework ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  list-style: none;
}

.coursework li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.2rem;
}

.coursework li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.education-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.education-skills .skill-tag {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--bg-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.education-skills .skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* Responsive Design for Education */
@media (max-width: 768px) {
  .education-item {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
  }

  .education-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    align-self: center;
  }

  .education-title {
    font-size: 1.3rem;
  }

  .coursework ul {
    grid-template-columns: 1fr;
  }
}

/* Certifications Section */
.certifications {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.achievements-section,
.certifications-subsection {
  margin-bottom: 4rem;
}

.subsection-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 600;
  position: relative;
}

.subsection-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.achievement-card {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

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

.achievement-card:hover::before {
  transform: scaleX(1);
}

.achievement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--bg-primary);
}

.achievement-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.achievement-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.achievement-date {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cert-card {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

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

.cert-card:hover::before {
  transform: scaleX(1);
}

.cert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--bg-primary);
}

.cert-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cert-issuer {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.cert-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.cert-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-skills .skill-tag {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Responsive Design for Certifications */
@media (max-width: 768px) {
  .achievements-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .achievement-card,
  .cert-card {
    padding: 1.5rem;
  }

  .subsection-title {
    font-size: 1.5rem;
  }

  .achievement-content h4,
  .cert-title {
    font-size: 1.2rem;
  }

  .achievement-icon,
  .cert-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Projects Section */
.projects {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
  font-weight: 500;
}

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

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

.project-card {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
}

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

.project-image {
  position: relative;
  height: auto;
  min-height: 200px;
  max-height: 300px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.project-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  transition: all var(--transition-normal);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Alternative: If you prefer cropped but better positioned images */
.project-image.cover-mode {
  height: 240px;
}

.project-image.cover-mode img {
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Focus on top of image */
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-normal);
}

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

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--bg-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.project-link:hover {
  transform: scale(1.1);
  background: var(--accent-color);
}

.project-content {
  padding: 2rem;
}

.project-category {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

/* Skills Section */
.skills {
  padding: var(--section-padding);
}

.skills-content {
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  margin-bottom: 4rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.category-title i {
  color: var(--primary-color);
}

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

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.skill-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-info {
  flex: 1;
}

.skill-name {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  width: 0%;
  transition: width 1s ease-out;
}

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

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  text-align: center;
}

.tool-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.tool-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.tool-item span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-details h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.contact-form {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: all var(--transition-normal);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--glow-color);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  pointer-events: none;
  background: var(--bg-secondary);
  padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  top: -0.5rem;
  left: 0.5rem;
  color: var(--primary-color);
  font-size: 0.8rem;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--text-muted);
}

.footer-text p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  max-width: 800px;
  margin: 2rem auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2001;
  transition: color var(--transition-normal);
}

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

.modal-body {
  padding: 3rem 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
    --container-padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transition: top var(--transition-normal);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    top: 80px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-start;
    font-size: 1.1rem;
  }

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

  .nav-link:hover {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .timeline {
    margin: 0 1rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 5px;
  }

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

  .project-image {
    max-height: 250px;
  }

  .project-image img {
    max-height: 250px;
  }

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

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0 0.75rem;
  }

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .nav-link {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .hero-title .title-name {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

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

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-marker {
    left: 3px;
    width: 12px;
    height: 12px;
  }

  .timeline::before {
    left: 9px;
    width: 2px;
  }

  .project-card,
  .skill-card {
    padding: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .projects-filter {
    flex-direction: column;
    align-items: center;
  }

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

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .about-content {
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .contact-content {
    gap: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Selection Styling */
::selection {
  background: var(--primary-color);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--bg-primary);
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.3);
}

/* Articles Section */
.articles {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.articles-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 3rem 0;
}

.articles-filter .filter-btn {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.articles-filter .filter-btn:hover,
.articles-filter .filter-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  justify-content: center;
}

.article-card {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

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

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.article-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-category {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--bg-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-badge {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

.article-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 32px rgba(100, 255, 218, 0.15);
}

.article-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(100, 255, 218, 0.25);
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.article-title {
  margin-bottom: 1rem;
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--transition-normal);
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-tags .tag {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.article-tags .tag:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
}

.article-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.article-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.articles-cta {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.articles-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(100, 255, 218, 0.05),
    rgba(129, 140, 248, 0.05)
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-buttons .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--bg-primary);
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.cta-buttons .btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cta-buttons .btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Medium screens - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .articles-grid {
    max-width: 600px;
    grid-template-columns: 1fr;
  }
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto 4rem auto;
  }

  .articles-filter {
    gap: 0.5rem;
  }

  .articles-filter .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .article-content {
    padding: 1.2rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .articles-cta {
    padding: 2rem 1rem;
  }

  .cta-content h3 {
    font-size: 1.5rem;
  }

  .article-image {
    height: 160px;
  }
}

/* Article Page Styles */
/* =================== */

.article-page {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding-top: 80px;
}

.article-header {
  background: var(--bg-secondary);
  padding: 2rem 0 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.page-title-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.articles-content {
  padding: 4rem 0;
}

.breadcrumb {
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.article-hero {
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-stats {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-stats .stat i {
  color: var(--primary-color);
}

.article-hero .article-image {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-hero .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-image-container {
  margin: 2.5rem 0;
  text-align: center;
}

.article-inline-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal);
}

.article-inline-image:hover {
  transform: scale(1.02);
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

.table-of-contents {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.table-of-contents h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  border-left: 2px solid transparent;
  padding-left: 1rem;
}

.toc-link:hover,
.toc-link.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.article-body {
  max-width: 800px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-body h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 3rem 0 1.5rem 0;
  font-weight: 700;
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
}

.article-body h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem 0;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-align: justify;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(255, 243, 205, 0.1),
    rgba(255, 193, 7, 0.1)
  );
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  font-weight: 500;
}

.tech-spec-box {
  background: linear-gradient(
    135deg,
    rgba(100, 255, 218, 0.05),
    rgba(129, 140, 248, 0.05)
  );
  border: 1px solid rgba(100, 255, 218, 0.2);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
}

.tech-spec-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.tech-spec-box ul {
  margin-bottom: 0;
}

.benchmark-table-container {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.benchmark-table th {
  background: var(--primary-color);
  color: var(--bg-primary);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.benchmark-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.benchmark-table tr:hover {
  background: var(--bg-tertiary);
}

.verdict-box {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(16, 185, 129, 0.1)
  );
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-left: 4px solid #22c55e;
  padding: 2rem;
  margin: 3rem 0;
  border-radius: var(--border-radius);
}

.verdict-box h2 {
  color: #22c55e;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.article-body blockquote {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius-sm);
  font-style: italic;
  position: relative;
}

.article-body blockquote p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.article-body blockquote cite {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.article-tags .tag {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.article-tags .tag:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.author-bio {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin: 3rem 0;
}

.author-bio-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
}

.author-bio-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.author-bio-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.author-social {
  display: flex;
  gap: 1rem;
}

.author-social a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color var(--transition-normal);
}

.author-social a:hover {
  color: var(--primary-color);
}

.related-articles {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-articles h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

.related-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
  border-color: var(--primary-color);
}

.related-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.related-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.related-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.article-cta {
  background: var(--bg-secondary);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.article-cta .cta-content h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.article-cta .cta-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Design for Article Page */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .table-of-contents {
    position: static;
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .article-page {
    padding-top: 60px;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .article-stats {
    justify-content: center;
  }

  .article-hero .article-image {
    height: 250px;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .related-card {
    flex-direction: column;
  }

  .related-card img {
    width: 100%;
    height: 150px;
  }

  .article-inline-image {
    max-width: 100%;
  }

  .image-caption {
    font-size: 0.85rem;
    padding: 0 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .article-header {
    padding: 1rem 0 2rem 0;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-hero .article-image {
    height: 200px;
  }

  .content-wrapper {
    padding: 2rem 0;
  }

  .highlight-box,
  .tech-spec-box,
  .verdict-box {
    padding: 1rem;
  }

  .benchmark-table th,
  .benchmark-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* Mobile Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-menu {
    height: calc(100vh - 60px);
    padding: 0.5rem 0;
  }

  .nav-menu.active {
    top: 60px;
  }

  .nav-link {
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
  }

  .nav-container {
    padding: 0.5rem 1rem;
  }

  .hero {
    min-height: 90vh;
  }
}

/* Ensure navbar is always on top */
.navbar {
  z-index: 1000;
}

.nav-menu.active {
  z-index: 999;
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-toggle .bar {
    height: 2px;
  }
}
