/* Modern and elegant design with green accents */
:root {
  /* Color palette */
  --primary-green: #10b981;
  --light-green: #34d399;
  --dark-green: #059669;
  --emerald: #047857;
  
  /* Gray scale - light theme */
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  
  /* Theme variables - Light mode defaults */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f3f4f6;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border-color: #d1d5db;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --hero-gradient: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --navbar-bg: rgba(17, 24, 39, 0.95);
  --hero-gradient: linear-gradient(135deg, #1f2937 0%, #064e3b 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-logo a {
  text-decoration: none;
  color: inherit;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-green);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

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

.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);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  width: 50px;
  height: 28px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.theme-toggle:hover {
  border-color: var(--primary-green);
}

.theme-toggle-circle {
  width: 20px;
  height: 20px;
  background: var(--primary-green);
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

[data-theme="dark"] .theme-toggle-circle {
  transform: translateX(20px);
}

.theme-icon {
  font-size: 12px;
  color: var(--bg-primary);
}

/* Hero Section */
.hero {
  background: var(--hero-gradient);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

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

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Hero Animation */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-animation {
  width: 300px;
  height: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.code-line {
  height: 12px;
  background: var(--primary-green);
  border-radius: 6px;
  margin-bottom: 15px;
  animation: typing 2s ease-in-out infinite;
}

.code-line:nth-child(2) {
  width: 70%;
  animation-delay: 0.5s;
}

.code-line:nth-child(3) {
  width: 50%;
  animation-delay: 1s;
}

@keyframes typing {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Sections */
.featured-section,
.blog-section {
  padding: 80px 0;
}

.blog-section {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.projects-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Project Cards */
.project-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--dark-green);
}

/* Blog Cards */
.blog-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-green);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-date {
  color: var(--primary-green);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.blog-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto;
}

.blog-link:hover {
  color: var(--dark-green);
}

/* Blog Article Styles */
.blog-article {
  padding-top: 100px;
  background: var(--bg-primary);
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-date,
.article-category {
  background: var(--bg-secondary);
  color: var(--primary-green);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.article-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-image {
  margin: 2rem 0;
}

.article-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem 0;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem 0;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.code-block {
  background: var(--gray-900);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.code-block pre {
  color: var(--border-color);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.code-block code {
  color: var(--light-green);
}

.commit-types {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.commit-type {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-green);
}

.commit-type h4 {
  margin: 0 0 0.5rem 0;
}

.commit-type code {
  background: var(--primary-green);
  color: var(--bg-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.example {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tool-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
}

.tool-card h4 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.best-practices-box {
  background: var(--hero-gradient);
  border: 2px solid var(--light-green);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.best-practices-box h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* SOLID Principles Specific Styles */
.solid-principles-overview {
  background: var(--hero-gradient);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  border: 2px solid var(--light-green);
}

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

.principle-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.principle-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.principle-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.principle-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.principle-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.warning-box {
  background: linear-gradient(135deg, #fef2f2, #fef7f7);
  border: 2px solid #fecaca;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.warning-box h3,
.warning-box h4 {
  color: #dc2626;
  margin-bottom: 1rem;
}

.warning-box ul {
  margin: 1rem 0;
}

.warning-box li {
  color: #7f1d1d;
  margin-bottom: 0.5rem;
}

.next-steps-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 2px solid #93c5fd;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.next-steps-box h3 {
  color: #1d4ed8;
  margin-bottom: 1rem;
}

.next-steps-box ol {
  margin: 1rem 0;
}

.next-steps-box li {
  color: #1e3a8a;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.code-snippet {
  background: var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--primary-green);
  border-left: 3px solid var(--primary-green);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--primary-green);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  background: var(--bg-secondary);
  color: var(--primary-green);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--primary-green);
  color: var(--bg-primary);
}

/* Project Detail Styles */
.project-detail {
  padding-top: 100px;
  background: var(--bg-primary);
}

.project-header {
  text-align: center;
  margin-bottom: 4rem;
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-category,
.project-status {
  background: var(--bg-secondary);
  color: var(--primary-green);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.project-status {
  background: var(--primary-green);
  color: var(--bg-primary);
}

.project-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-hero-image {
  margin: 2rem 0;
}

.project-hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.project-content {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 12px;
}

.tech-icon {
  font-size: 2rem;
}

.tech-item h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.tech-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.mode-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.mode-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
}

.mode-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.theme-card {
  text-align: center;
}

.theme-preview {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.theme-classic { background: linear-gradient(45deg, #fbbf24, #f59e0b); }
.theme-dark { background: linear-gradient(45deg, #374151, #1f2937); }
.theme-neon { background: linear-gradient(45deg, #ec4899, #8b5cf6); }
.theme-minimal { background: linear-gradient(45deg, #e5e7eb, #9ca3af); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.metric-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--primary-green);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0.5rem 0;
}

.project-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.nav-btn {
  background: var(--bg-secondary);
  color: var(--primary-green);
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.nav-btn:hover {
  background: var(--primary-green);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Utilities */
.text-center {
  text-align: center;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .article-header h1,
  .project-header h1 {
    font-size: 2.5rem;
  }
  
  .projects-grid,
  .blog-grid,
  .feature-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 1rem;
    display: block;
  }
  
  .theme-toggle {
    position: fixed;
    top: 15px;
    right: 120px;
    z-index: 1001;
  }
  
  .article-footer,
  .project-navigation {
    flex-direction: column;
    text-align: center;
  }
  
  .project-navigation {
    gap: 1rem;
  }
}

/* Portfolio Page Specific Styles */
.portfolio-hero {
  background: var(--hero-gradient);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
}

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

.portfolio-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-preview {
  width: 200px;
  height: 350px;
  background: var(--gray-900);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-screen {
  font-size: 4rem;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

.preview-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  bottom: 20px;
}

.preview-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.preview-dots span:nth-child(2) {
  animation-delay: 0.5s;
}

.preview-dots span:nth-child(3) {
  animation-delay: 1s;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.all-projects-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.technologies-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.tech-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tech-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tech-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.tag {
  background: var(--primary-green);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .project-preview {
    width: 160px;
    height: 280px;
  }
  
  .preview-screen {
    font-size: 3rem;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog Page Specific Styles */
.blog-hero {
  background: var(--hero-gradient);
  padding: 120px 0 80px;
  overflow: hidden;
}

.blog-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: flex-start;
}

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

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

.blog-illustration {
  font-size: 8rem;
  text-align: center;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

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

.blog-posts-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Blog page cards */
.blog-posts-section .blog-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

/* Homepage blog cards - ensure consistent height */
.blog-section .blog-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-green);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
}

.blog-posts-section .blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-green);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.blog-section .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-card-date {
  background: var(--bg-secondary);
  color: var(--primary-green);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card-category {
  background: var(--primary-green);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.15rem; /* Ensure consistent title height (3 lines * 1.4 line-height * 0.75rem) */
}

/* Homepage blog card text - limit to 4 lines */
.blog-section .blog-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* Blog page card text */
.blog-posts-section .blog-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.blog-card-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--dark-green);
}

/* Tag Filter Styles */
.tag-filter-section {
  margin: 2rem 0;
  text-align: center;
}

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

.tag-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.tag-filter {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag-filter:hover {
  background: var(--primary-green);
  color: var(--bg-primary);
  border-color: var(--primary-green);
}

.tag-filter.active {
  background: var(--primary-green);
  color: var(--bg-primary);
  border-color: var(--primary-green);
}

/* Tag Groups Styles */
.tag-groups-section {
  margin: 3rem 0 2rem 0;
  text-align: left;
}

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

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

.tag-group {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tag-group:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.tag-group-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-green);
}

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

.tag-group .tag-filter {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

.show-all-btn {
  font-size: 1rem !important;
  padding: 0.6rem 2rem !important;
  font-weight: 600 !important;
  background: var(--primary-green) !important;
  color: var(--bg-primary) !important;
  border-color: var(--primary-green) !important;
}

/* Blog Card Tags */
.blog-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.blog-card-tags .tag {
  font-size: 0.75rem;
}

/* Pagination Styles */
.pagination-section {
  margin: 3rem 0 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.pagination-item {
  margin: 0;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-link:hover:not(.disabled) {
  background: var(--primary-green);
  color: var(--bg-primary);
  border-color: var(--primary-green);
}

.pagination-link.active {
  background: var(--primary-green);
  color: var(--bg-primary);
  border-color: var(--primary-green);
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0 1rem;
}

.newsletter-section {
  background: var(--bg-secondary);
  padding: 60px 0;
}

.newsletter-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.newsletter-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
  .blog-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .blog-illustration {
    font-size: 6rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination-section {
    margin-top: 1rem;
  }
  
  .pagination {
    gap: 0.25rem;
  }
  
  .pagination-link {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
  
  .pagination-info {
    font-size: 0.75rem;
    margin: 0 0.5rem;
  }
  
  .newsletter-card {
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .blog-hero .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* About Page Styles */

/* About Preview Section for Homepage */
.about-preview-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-content h2 {
  margin-bottom: 1.5rem;
}

.about-preview-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-preview-highlights {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

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

.highlight-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.25rem;
}

.highlight-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-preview-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-preview-skills h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.skills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.skill-preview-tag {
  background: var(--primary-green);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.experience-item-preview {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.experience-company {
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 0.25rem;
}

.experience-role {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.experience-period {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.about-hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(16, 185, 129, 0.05) 100%);
  padding: 120px 0 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.profile-illustration {
  font-size: 8rem;
  text-align: center;
  background: var(--bg-primary);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* Personal Info Section */
.personal-info-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.personal-card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.personal-title {
  font-size: 1.25rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 2rem;
}

.personal-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-icon {
  font-size: 1.2rem;
}

.personal-quote {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-muted);
  border-left: 4px solid var(--primary-green);
  padding-left: 1rem;
  margin: 2rem auto 0;
  max-width: 600px;
  text-align: left;
}

/* Skills Section */
.skills-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

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

.skill-category {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-category-icon {
  font-size: 2rem;
  min-width: 2.5rem;
  text-align: center;
}

.skill-category-header h3 {
  margin-bottom: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: var(--primary-green);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Soft Skills Section */
.soft-skills-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.soft-skill-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.soft-skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.soft-skill-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.soft-skill-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Experience Section */
.experience-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-green);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 41px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-green);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 4px var(--light-green);
}

.timeline-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bg-secondary) transparent transparent;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-position {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.timeline-company {
  color: var(--primary-green);
  font-weight: 600;
  margin: 0.25rem 0;
}

.timeline-period {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

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

.timeline-achievements {
  margin-bottom: 1.5rem;
}

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

.achievement-list {
  list-style: none;
  padding: 0;
}

.achievement-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.achievement-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 600;
}

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

.tech-badge {
  background: var(--primary-green);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tech-icon {
  font-size: 0.875rem;
  line-height: 1;
}

/* Education & Achievements Section */
.education-achievements-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

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

.education-item,
.achievement-item {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.education-item h4,
.achievement-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.education-institution,
.achievement-year {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-year {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.education-description,
.achievement-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Languages & Interests Section */
.languages-interests-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.languages-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.language-name {
  color: var(--text-primary);
  font-weight: 600;
}

.language-level {
  color: var(--primary-green);
  font-weight: 500;
  font-size: 0.875rem;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.interest-tag {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.interest-tag:hover {
  background: var(--primary-green);
  color: var(--bg-primary);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

.cta-card {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.cta-content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-preview-highlights {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .highlight-number {
    font-size: 2rem;
  }
  
  .about-stats {
    justify-content: center;
    gap: 1rem;
  }
  
  .personal-details {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-item::before {
    left: 11px;
  }
  
  .timeline-content::before {
    display: none;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-illustration {
    width: 150px;
    height: 150px;
    font-size: 6rem;
  }
  
  .personal-card {
    padding: 2rem;
  }
  
  .skills-grid,
  .soft-skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Language Toggle Styles */
.language-toggle {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.language-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.language-option {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.language-option:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.language-option.active {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

/* Privacy Policy Styles */
.privacy-policy {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.privacy-content h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-content h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-green);
}

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

.privacy-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.privacy-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.privacy-content a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-content a:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

.contact-info {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  border-left: 4px solid var(--primary-green);
}

.contact-info p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 500;
}

/* Contact Page Styles */
.contact-hero {
  padding: 120px 0 60px;
  background: var(--hero-gradient);
}

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

.contact-hero .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

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

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 2rem;
  line-height: 1;
}

.contact-text h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.contact-form-container {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
}

.btn-submit:hover {
  cursor: pointer;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* Mobile Responsive for Privacy Policy */
@media (max-width: 768px) {
  .privacy-policy {
    padding: 2rem 0;
  }
  
  .privacy-content {
    padding: 0 1rem;
  }
  
  .privacy-content h1 {
    font-size: 2rem;
  }
  
  .privacy-content h2 {
    font-size: 1.25rem;
  }
  
  .language-options {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-info {
    padding: 1.5rem;
  }

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

  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-hero {
    padding: 100px 0 40px;
  }

  .contact-form-section {
    padding: 60px 0;
  }
}
