/* Modern Dark Portfolio Theme */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-light: #808080;
  --border-color: #2a2a2a;
  --accent: #000000;
  --accent-hover: #1a1a1a;
  --card-bg: #0a0a0a;
  --card-border: #2a2a2a;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);
}

h2 {
  font-size: clamp(1.35rem, 1rem + 2vw, 2.5rem);
}

h3 {
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
}

h4 {
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.25rem);
}

h5 {
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.1rem);
}

h6 {
  font-size: clamp(0.9rem, 0.75rem + 0.5vw, 1rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Enhanced typography for all heading levels */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  }
  
  h2 {
    font-size: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  }
  
  h3 {
    font-size: clamp(1rem, 0.8rem + 1vw, 1.35rem);
  }
  
  h4 {
    font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.15rem);
  }
  
  h5 {
    font-size: clamp(0.9rem, 0.75rem + 0.5vw, 1rem);
  }
  
  h6 {
    font-size: clamp(0.85rem, 0.7rem + 0.5vw, 0.95rem);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.35rem, 0.9rem + 2vw, 2.25rem);
  }
  
  h2 {
    font-size: clamp(1.15rem, 0.8rem + 1.5vw, 1.75rem);
  }
  
  h3 {
    font-size: clamp(0.95rem, 0.75rem + 1vw, 1.2rem);
  }
  
  h4 {
    font-size: clamp(0.9rem, 0.75rem + 0.5vw, 1.05rem);
  }
  
  h5 {
    font-size: clamp(0.85rem, 0.7rem + 0.5vw, 0.95rem);
  }
  
  h6 {
    font-size: clamp(0.8rem, 0.65rem + 0.5vw, 0.9rem);
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: clamp(1.25rem, 0.8rem + 2vw, 2rem);
  }
  
  h2 {
    font-size: clamp(1.05rem, 0.7rem + 1.5vw, 1.5rem);
  }
  
  h3 {
    font-size: clamp(0.9rem, 0.7rem + 1vw, 1.1rem);
  }
  
  h4 {
    font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1rem);
  }
  
  h5 {
    font-size: clamp(0.8rem, 0.65rem + 0.5vw, 0.9rem);
  }
  
  h6 {
    font-size: clamp(0.75rem, 0.6rem + 0.5vw, 0.85rem);
  }
}

/* Enhanced typography scaling for all devices */
@media (max-width: 768px) {
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 320px) {
  p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Ultra-wide screen typography */
@media (min-width: 1800px) {
  h1 {
    font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  }
  
  h2 {
    font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  }
  
  h3 {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  }
  
  p {
    font-size: 1.1rem;
    line-height: 1.8;
  }
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  max-height: 90vh;
  width: 70px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.5rem;
  gap: 0.25rem;
  z-index: 30;
  transition: width 0.3s ease, border-radius 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 50px;
}

.sidebar:hover {
  width: 240px;
  border-radius: 30px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  width: calc(100% - 1.5rem);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}

.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  min-width: 20px;
}

.sidebar-item span {
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.75rem;
  white-space: nowrap;
}

.sidebar:hover .sidebar-item span {
  opacity: 1;
}

/* Enhanced mobile sidebar for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    left: 10px;
    width: 60px;
  }
  
  .sidebar:hover {
    width: 200px;
  }
  
  .sidebar-item {
    padding: 0.5rem 0.6rem;
  }
  
  .sidebar-item svg {
    width: 18px;
    height: 18px;
  }
}

/* Enhanced sidebar for small tablets and large phones */
@media (max-width: 1024px) and (orientation: landscape) {
  .sidebar {
    width: 50px;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .sidebar:hover {
    width: 180px;
  }
  
  .sidebar-item {
    padding: 0.4rem 0.5rem;
    gap: 0.75rem;
  }
  
  .sidebar-item svg {
    width: 16px;
    height: 16px;
  }
  
  .sidebar-item span {
    font-size: 0.8rem;
  }
}

/* Touch-friendly enhancements for interactive elements */
@media (max-width: 768px) {
  .sidebar-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  .mobile-menu-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  .filter-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.25rem;
  }
  
  .skill-pill {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.25rem;
  }
  
  .badge {
    min-height: 32px;
    min-width: 32px;
    padding: 0.5rem 1rem;
  }
}

/* Ensure all interactive elements meet minimum touch target sizes */
.skill-pill,
.badge,
.filter-btn,
.btn-primary,
.btn-secondary {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  main {
    margin-left: 0;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover svg {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Enhanced mobile menu toggle for different screen sizes */
@media (max-width: 480px) {
  .mobile-menu-toggle {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
  
  .mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
  }
}

/* Ensure mobile menu toggle meets accessibility standards */
.mobile-menu-toggle:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 90;
  padding: 5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 480px) {
  .mobile-menu {
    padding: 4.5rem 1rem 1.5rem;
  }
}

.mobile-menu.show {
  display: flex;
  transform: translateX(0);
}

/* Mobile menu close button */
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-close:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.mobile-menu-close:hover svg {
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .mobile-menu-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
  
  .mobile-menu-close svg {
    width: 22px;
    height: 22px;
  }
}

.mobile-menu-close:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  min-height: 44px;
  transform: translateX(-20px);
  opacity: 0;
  animation: slideInMenuItem 0.4s ease-out forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.6s; }
.mobile-menu-item:nth-child(7) { animation-delay: 0.7s; }
.mobile-menu-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInMenuItem {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .mobile-menu-item {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.mobile-menu-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-menu-item:hover svg {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .mobile-menu-item svg {
    width: 20px;
    height: 20px;
  }
}

/* Enhanced mobile menu accessibility */
.mobile-menu-item:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 480px) {
  .mobile-menu-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .mobile-menu-close svg {
    width: 22px;
    height: 22px;
  }
}

/* Main content */
main {
  margin-left: 0;
  transition: margin-left 0.3s ease;
  padding-top: 20px; /* Add some top padding for better spacing */
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 769px) {
  main {
    margin-left: 110px; /* Account for sidebar width + spacing */
    padding-left: 0;
    padding-right: 0;
  }
}

/* Enhanced main content for mobile */
@media (max-width: 768px) {
  main {
    padding-top: 15px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 480px) {
  main {
    padding-top: 10px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Enhanced main content for very small screens */
@media (max-width: 320px) {
  main {
    padding-top: 8px;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
}

/* Container */
.container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 1024px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1800px) {
  .container {
    max-width: 1400px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Small screen support */
@media (max-width: 320px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Hero Section */
.hero-section {
  padding: 3rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0;
  }
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .profile-image {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 80px;
    height: 80px;
  }
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.profile-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(90deg, #ffffff, #cccccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.profile-card .subtitle {
  margin: 0;
  color: var(--text-light);
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.profile-card .bio {
  max-width: 700px;
  margin: 1rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-primary {
  animation: fadeInUp 0.8s ease-out 0.3s both;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

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

@media (max-width: 768px) {
  .profile-card .bio {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .profile-card .bio {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0;
  }
}

/* Enhanced hero section for small screens */
@media (max-width: 320px) {
  .profile-image {
    width: 70px;
    height: 70px;
  }
  
  .profile-card h1 {
    font-size: 1.25rem;
  }
  
  .profile-card .subtitle {
    font-size: 0.8rem;
  }
  
  .profile-card .bio {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Enhanced profile card responsiveness for small screens */
@media (max-width: 320px) {
  .profile-image {
    width: 70px;
    height: 70px;
  }
  
  .profile-card h1 {
    font-size: 1.25rem;
  }
  
  .profile-card .subtitle {
    font-size: 0.8rem;
  }
  
  .profile-card .bio {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Sections */
.content-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  margin-left: 100px;
}

@media (max-width: 768px) {
  .content-section {
    padding: 2.5rem 0;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 2rem 0;
    margin-left: 0;
  }
}

/* Enhanced content section for mobile */
@media (max-width: 320px) {
  .content-section {
    padding: 1.5rem 0;
  }
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .section-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
}

/* Enhanced section responsiveness for small screens */
@media (max-width: 320px) {
  .content-section {
    padding: 1.5rem 0;
  }
  
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .section-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
}

/* About Section */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin: 0;
  max-width: 600px;
}

.about-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  margin: 0;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-gallery {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Journey Section */
.journey-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.journey-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journey-item h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-primary);
}

.journey-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.journey-images img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.75rem;
}

.journey-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Featured Tools Grid */
.featured-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Enhanced featured tools grid responsiveness */
@media (max-width: 1200px) {
  .featured-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .featured-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .featured-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1800px) {
  .featured-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tool Stack Grid - New Style */
.tool-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .tool-stack-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Enhanced tool stack responsiveness */
@media (max-width: 1200px) {
  .tool-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .tool-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .tool-stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1800px) {
  .tool-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Improved mobile responsiveness for tool stack */
@media (max-width: 360px) {
  .tool-stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .tool-stack-item {
    padding: 0.875rem 0.5rem;
    gap: 0.4rem;
  }
  
  .tool-stack-icon {
    width: 28px;
    height: 28px;
  }
  
  .tool-stack-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .tool-stack-name {
    font-size: 0.7rem;
  }
}

@media (max-width: 320px) {
  .tool-stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }
  
  .tool-stack-item {
    padding: 0.75rem 0.4rem;
    gap: 0.3rem;
  }
  
  .tool-stack-icon {
    width: 24px;
    height: 24px;
  }
  
  .tool-stack-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .tool-stack-name {
    font-size: 0.65rem;
  }
}

.tool-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-stack-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tool-stack-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-stack-icon svg {
  width: 48px;
  height: 48px;
}

.tool-stack-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

/* Enhanced tool stack item responsiveness */
@media (max-width: 768px) {
  .tool-stack-item {
    padding: 1.25rem 0.75rem;
    gap: 0.75rem;
  }
  
  .tool-stack-icon {
    width: 40px;
    height: 40px;
  }
  
  .tool-stack-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .tool-stack-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tool-stack-item {
    padding: 1rem 0.5rem;
    gap: 0.5rem;
  }
  
  .tool-stack-icon {
    width: 32px;
    height: 32px;
  }
  
  .tool-stack-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .tool-stack-name {
    font-size: 0.75rem;
  }
}

/* Enhanced tool stack for very small screens */
@media (max-width: 320px) {
  .tool-stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .tool-stack-item {
    padding: 0.875rem 0.5rem;
    gap: 0.4rem;
  }
  
  .tool-stack-icon {
    width: 28px;
    height: 28px;
  }
  
  .tool-stack-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .tool-stack-name {
    font-size: 0.7rem;
  }
}

.featured-tool {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-tool:hover {
  border-color: var(--accent);
  background-color: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

.featured-tool svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--text-primary);
}

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

/* Enhanced featured tool responsiveness */
@media (max-width: 768px) {
  .featured-tool {
    padding: 1.25rem;
  }
  
  .featured-tool svg {
    width: 28px;
    height: 28px;
  }
  
  .tool-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .featured-tool {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .featured-tool svg {
    width: 24px;
    height: 24px;
  }
  
  .tool-name {
    font-size: 0.8rem;
  }
}

/* Other Tools Section */
.other-tools-section {
  margin-top: 3rem;
}

.other-tools-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Featured Tools */
.featured-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.featured-tool {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.featured-tool:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

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

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1.5rem;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.tool-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-primary);
  color: #000000;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Enhanced button responsiveness */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border-radius: 0.4rem;
  }
}

/* Touch-friendly minimum sizes for buttons */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* Enhanced card responsiveness */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1rem;
  }
}

/* Project Card */
.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background-color: var(--bg-tertiary);
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.project-content p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Enhanced project card responsiveness */
@media (max-width: 768px) {
  .project-content {
    padding: 1.25rem;
  }
  
  .project-content h3 {
    font-size: 1rem;
  }
  
  .project-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 1rem;
  }
  
  .project-content h3 {
    font-size: 0.95rem;
  }
  
  .project-content p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .project-meta {
    font-size: 0.8rem;
  }
}

/* Enhanced project card for very small screens */
@media (max-width: 320px) {
  .project-card {
    border-radius: 0.625rem;
  }
  
  .project-content {
    padding: 0.875rem;
  }
  
  .project-content h3 {
    font-size: 0.9rem;
  }
  
  .project-content p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .project-meta {
    font-size: 0.75rem;
  }
}

/* Side Projects List */
.side-projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-project-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.side-project-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
}

.side-project-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.side-project-icon svg {
  width: 40px;
  height: 40px;
}

.side-project-info {
  flex: 1;
}

.side-project-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.side-project-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.side-project-arrow {
  color: var(--text-light);
  font-size: 1.2rem;
}

/* Enhanced side projects responsiveness */
@media (max-width: 768px) {
  .side-project-item {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .side-project-icon {
    width: 40px;
    height: 40px;
  }
  
  .side-project-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .side-project-info h3 {
    font-size: 0.95rem;
  }
  
  .side-project-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .side-projects-list {
    gap: 0.75rem;
  }
  
  .side-project-item {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .side-project-icon {
    width: 36px;
    height: 36px;
  }
  
  .side-project-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .side-project-info h3 {
    font-size: 0.9rem;
  }
  
  .side-project-info p {
    font-size: 0.75rem;
  }
  
  .side-project-arrow {
    font-size: 1rem;
  }
}

/* Spotlight List */
.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spotlight-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.spotlight-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-tertiary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.spotlight-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.spotlight-content p {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spotlight-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.spotlight-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Enhanced spotlight list responsiveness */
@media (max-width: 768px) {
  .spotlight-item {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .spotlight-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .spotlight-content h3 {
    font-size: 0.95rem;
  }
  
  .spotlight-content p {
    font-size: 0.8rem;
  }
  
  .spotlight-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .spotlight-list {
    gap: 1rem;
  }
  
  .spotlight-item {
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
  }
  
  .spotlight-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .spotlight-content h3 {
    font-size: 0.9rem;
  }
  
  .spotlight-content p {
    font-size: 0.75rem;
  }
  
  .spotlight-link {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 32px;
  min-width: 32px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

.skill-pill:hover {
  background-color: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Enhanced accessibility for interactive elements */
.skill-pill:focus,
.badge:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Forms */
.label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.input::placeholder {
  color: var(--text-light);
}

.input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

/* Links */
.link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Filter buttons */
.filter-btn {
  padding: 0.5rem 1rem;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Enhanced filter button accessibility */
.filter-btn:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Enhanced grid layouts for mobile */
.grid-1, .grid-2, .grid-3 {
  transition: all 0.3s ease;
}

/* Enhanced grid for better mobile responsiveness */
.grid-responsive {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 1200px) {
  .grid-responsive {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-responsive {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-responsive {
    gap: 1rem;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1800px) {
  .grid-responsive {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* Enhanced responsive grid for all screen sizes */
@media (max-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-1,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid {
    gap: 1rem;
  }
  
  .grid-1,
  .grid-2,
  .grid-3 {
    gap: 1rem;
  }
}

/* Ultra-wide screen support */
@media (min-width: 1800px) {
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Enhanced grid layouts for small screens */
@media (max-width: 360px) {
  .grid {
    gap: 0.75rem;
  }
  
  .grid-1,
  .grid-2,
  .grid-3 {
    gap: 0.75rem;
  }
}

@media (max-width: 320px) {
  .grid {
    gap: 0.5rem;
  }
  
  .grid-1,
  .grid-2,
  .grid-3 {
    gap: 0.5rem;
  }
}

/* Gradient Cards Section */
.gradient-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 20px;
  min-height: 100vh;
  background-color: var(--bg-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.gradient-card {
  position: relative;
  width: 320px;
  height: 400px;
  margin: 40px 30px;
  transition: all 0.5s ease;
}

/* Skewed gradient panels */
.gradient-panel {
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: all 0.5s ease;
}

.gradient-panel.blur {
  filter: blur(30px);
}

/* Animated blurs */
.animated-blobs {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 8px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
  width: 0;
  height: 0;
}

.blob.top {
  top: 0;
  left: 0;
}

.blob.bottom {
  bottom: 0;
  right: 0;
}

/* Content */
.card-content {
  position: relative;
  z-index: 20;
  left: 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  color: white;
  transition: all 0.5s ease;
}

.card-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.card-link {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: black;
  background: white;
  padding: 12px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card-link:hover {
  background: #ffcf4d;
  border: 1px solid rgba(255, 0, 88, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hover effects */
.gradient-card:hover .gradient-panel {
  transform: skewX(0);
  left: 20px;
  width: calc(100% - 90px);
}

.gradient-card:hover .blob.top {
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.gradient-card:hover .blob.bottom {
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.gradient-card:hover .card-content {
  left: -25px;
  padding: 60px 40px;
}

/* Animation keyframes */
@keyframes blob {
  0%, 100% {
    transform: translateY(10px);
  }
  50% {
    transform: translate(-10px);
  }
}

.animate-blob {
  animation: blob 2s ease-in-out infinite;
}

.animation-delay-1000 {
  animation-delay: -1s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gradient-card {
    width: 280px;
    height: 350px;
    margin: 30px 20px;
  }
  
  .card-content h2 {
    font-size: 20px;
  }
  
  .card-content p {
    font-size: 16px;
  }
  
  .card-link {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gradient-cards-container {
    padding: 20px 10px;
  }
  
  .gradient-card {
    width: 90%;
    height: 320px;
    margin: 20px 10px;
  }
  
  .card-content {
    padding: 15px 20px;
  }
  
  .card-content h2 {
    font-size: 18px;
  }
  
  .card-content p {
    font-size: 14px;
  }
  
  .card-link {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Gradient Cards */
.gradient-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 20px;
  min-height: 100vh;
  background-color: var(--bg-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.gradient-card {
  position: relative;
  width: 320px;
  height: 400px;
  margin: 40px 30px;
  transition: all 0.5s ease;
}

/* Skewed gradient panels */
.gradient-panel {
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: all 0.5s ease;
}

.gradient-panel.blur {
  filter: blur(30px);
}

/* Animated blurs */
.animated-blobs {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 8px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
  width: 0;
  height: 0;
}

.blob.top {
  top: 0;
  left: 0;
}

.blob.bottom {
  bottom: 0;
  right: 0;
}

/* Content */
.card-content {
  position: relative;
  z-index: 20;
  left: 0;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  color: white;
  transition: all 0.5s ease;
}

.card-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.card-link {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: black;
  background: white;
  padding: 12px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card-link:hover {
  background: #ffcf4d;
  border: 1px solid rgba(255, 0, 88, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hover effects */
.gradient-card:hover .gradient-panel {
  transform: skewX(0);
  left: 20px;
  width: calc(100% - 90px);
}

.gradient-card:hover .blob.top {
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.gradient-card:hover .blob.bottom {
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.gradient-card:hover .card-content {
  left: -25px;
  padding: 60px 40px;
}

/* Animation keyframes */
@keyframes blob {
  0%, 100% {
    transform: translateY(10px);
  }
  50% {
    transform: translate(-10px);
  }
}

.animate-blob {
  animation: blob 2s ease-in-out infinite;
}

.animation-delay-1000 {
  animation-delay: -1s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gradient-card {
    width: 280px;
    height: 350px;
    margin: 30px 20px;
  }
  
  .card-content h2 {
    font-size: 20px;
  }
  
  .card-content p {
    font-size: 16px;
  }
  
  .card-link {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gradient-cards-container {
    padding: 20px 10px;
  }
  
  .gradient-card {
    width: 90%;
    height: 320px;
    margin: 20px 10px;
  }
  
  .card-content {
    padding: 15px 20px;
  }
  
  .card-content h2 {
    font-size: 18px;
  }
  
  .card-content p {
    font-size: 14px;
  }
  
  .card-link {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  footer {
    padding: 2rem 0;
    margin-top: 2rem;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-content {
    gap: 1rem;
  }
}

.footer-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content p {
    font-size: 0.85rem;
  }
}

.social-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .social-links {
    gap: 1rem;
  }
}

/* Enhanced footer for mobile devices */
@media (max-width: 480px) {
  footer {
    padding: 1.5rem 0;
    margin-top: 1.5rem;
  }
  
  .footer-content {
    gap: 0.75rem;
  }
  
  .footer-content p {
    font-size: 0.8rem;
  }
  
  .social-links {
    gap: 0.75rem;
  }
}

@media (max-width: 320px) {
  footer {
    padding: 1rem 0;
    margin-top: 1rem;
  }
  
  .footer-content {
    gap: 0.5rem;
  }
  
  .footer-content p {
    font-size: 0.75rem;
  }
  
  .social-links {
    gap: 0.5rem;
  }
}

/* Enhanced footer for mobile */
@media (max-width: 480px) {
  footer {
    padding: 1.5rem 0;
    margin-top: 1.5rem;
  }
  
  .footer-content {
    gap: 0.75rem;
  }
  
  .footer-content p {
    font-size: 0.8rem;
  }
  
  .social-links {
    gap: 0.75rem;
  }
}

@media (max-width: 320px) {
  footer {
    padding: 1rem 0;
    margin-top: 1rem;
  }
  
  .footer-content {
    gap: 0.5rem;
  }
  
  .footer-content p {
    font-size: 0.75rem;
  }
  
  .social-links {
    gap: 0.5rem;
  }
}

/* Enhanced footer responsiveness */
@media (max-width: 480px) {
  footer {
    padding: 1.5rem 0;
    margin-top: 1.5rem;
  }
  
  .footer-content {
    gap: 0.75rem;
  }
  
  .footer-content p {
    font-size: 0.8rem;
  }
  
  .social-links {
    gap: 0.75rem;
  }
}

@media (max-width: 320px) {
  footer {
    padding: 1rem 0;
    margin-top: 1rem;
  }
  
  .footer-content {
    gap: 0.5rem;
  }
  
  .footer-content p {
    font-size: 0.75rem;
  }
  
  .social-links {
    gap: 0.5rem;
  }
}

/* Social Cards Grid */
.social-links-grid {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .social-links-grid {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .social-links-grid {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 50px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  opacity: 1;
}

.social-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-card svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-card:hover svg {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .social-card {
    width: 60px;
    height: 45px;
  }
  
  .social-card svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .social-card {
    width: 50px;
    height: 40px;
  }
  
  .social-card svg {
    width: 20px;
    height: 20px;
  }
}

/* Enhanced social cards for mobile */
@media (max-width: 360px) {
  .social-links-grid {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .social-card {
    width: 45px;
    height: 35px;
  }
  
  .social-card svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 320px) {
  .social-links-grid {
    gap: 0.4rem;
    margin-bottom: 0.6rem;
  }
  
  .social-card {
    width: 40px;
    height: 32px;
  }
  
  .social-card svg {
    width: 16px;
    height: 16px;
  }
}

/* Enhanced social cards for very small screens */
@media (max-width: 320px) {
  .social-links-grid {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .social-card {
    width: 45px;
    height: 35px;
  }
  
  .social-card svg {
    width: 18px;
    height: 18px;
  }
}

/* Enhanced social cards responsiveness for small screens */
@media (max-width: 320px) {
  .social-links-grid {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .social-card {
    width: 40px;
    height: 35px;
  }
  
  .social-card svg {
    width: 18px;
    height: 18px;
  }
}

.social-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.social-links a:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

/* Utility classes */
.text-center {
  text-align: center;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* List styles */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.list li strong {
  color: var(--text-primary);
}

/* Image cover */
.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

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

/* Loader */
#loader {
  background-color: var(--bg-primary);
}

#loader::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--card-border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* Social Validation */
.social-validation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.validation-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.validation-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.validation-icon {
  font-size: 2.5rem;
}

.validation-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.validation-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.validation-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.author-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.newsletter-form .btn-primary {
  white-space: nowrap;
}

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

/* Side Project Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-secondary);
  margin: 10% auto;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

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

.close {
  color: var(--text-light);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 10;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: var(--text-primary);
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.modal-icon {
  margin: 0 auto 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 60px;
  height: 60px;
}

.modal-title {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.modal-description {
  margin: 0 0 25px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
