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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --accent: #10b981;
  --accent-dark: #059669;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-colored: 0 10px 40px rgba(99, 102, 241, 0.3);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo a {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: transform 0.3s;
}

.logo a:hover {
  transform: scale(1.05);
}

.prime {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width 0.3s;
}

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

.nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--gradient-1);
  color: white;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Sections */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Section */
.about {
  background: var(--bg-gray);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--bg-white), var(--bg-gray));
}

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

.lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.8;
}

.about-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.project-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: white;
  position: relative;
  overflow: hidden;
}

.project-header::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.project-icon-large {
  font-size: 3rem;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.project-tag {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.project-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.project-description {
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-features {
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-stats {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.btn-project {
  margin: 0 1.5rem 1.5rem;
  background: var(--gradient-1);
  color: white !important;
  padding: 0.8rem 1.5rem !important;
  display: inline-block;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.btn-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Services Section */
.services {
  background: var(--dark);
  color: white;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--bg-gray), var(--dark));
}

.services .section-title {
  background: linear-gradient(135deg, #ffffff 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.service-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* Contact Section */
.contact {
  background: var(--bg-gray);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--dark), var(--bg-gray));
}

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

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.contact-info a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Project Hero */
.project-hero {
  background: var(--gradient-1);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  opacity: 0.8;
}

.project-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-tagline {
  font-size: 1.5rem;
  opacity: 0.95;
  font-weight: 400;
}

/* Project Content */
.project-content {
  padding: 5rem 0;
}

.content-section {
  margin-bottom: 4rem;
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 4px solid;
  border-image: var(--gradient-1) 1;
  padding-bottom: 0.5rem;
}

.content-section p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-list li {
  background: var(--bg-gray);
  padding: 2rem;
  border-radius: 15px;
  border-left: 5px solid;
  border-image: var(--gradient-1) 1;
  transition: all 0.3s;
}

.feature-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.feature-list strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-list p {
  color: var(--text-light);
  margin: 0;
  font-size: 1rem;
}

.tech-list {
  list-style: none;
  padding-left: 0;
}

.tech-list li {
  padding: 1rem 0;
  border-bottom: 2px solid var(--bg-gray);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s;
  padding-left: 1rem;
  border-left: 4px solid transparent;
}

.tech-list li:hover {
  border-left-color: var(--primary);
  color: var(--text-dark);
  padding-left: 1.5rem;
}

.download-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover::after {
  width: 100%;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

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

.feature-box {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-box p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

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

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Team Section */
.team {
  background: var(--bg-gray);
  padding: 6rem 0;
}

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

.team-member {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

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

  .nav ul {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .project-title {
    font-size: 2.5rem;
  }

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

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

  .about-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

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

  .project-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

/* Dark Theme Styles for Static HTML */
:root {
  --bg-dark: #16151f;
  --bg-card: #1f1d2b;
  --bg-hover: #2d2d3d;
  --border-dark: #2d2d3d;
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --accent-color: #818cf8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

.flex {
  display: flex;
}

.h-screen {
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 16rem;
  min-width: 16rem;
  max-width: 16rem;
  background: var(--bg-card);
  border-right: 1px solid var(--border-dark);
  padding: 1rem;
  overflow-y: auto;
  position: relative;
  z-index: 40;
  transition: none !important;
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: 5rem;
  min-width: 5rem;
  max-width: 5rem;
  padding: 1rem 0.5rem;
  transition: none !important;
}

/* Desktop: скрывать текст и показывать иконки при collapsed */
@media (min-width: 769px) {
  .sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0.5rem;
  }

  .sidebar.collapsed .logo {
    display: none;
  }

  .sidebar.collapsed .nav-item span {
    display: none;
  }

  .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
  }

  .sidebar.collapsed .nav-icon {
    margin-right: 0;
  }

  .sidebar.collapsed .sidebar-footer {
    display: none;
  }

  .sidebar.collapsed .nav-item.active {
    border-left: none;
    border-radius: 0.5rem;
    background: var(--bg-hover);
  }
}

/* Mobile Sidebar */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 16rem;
    z-index: 1000;
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: none !important;
  }

  .sidebar.collapsed {
    width: 4rem;
    padding: 1rem 0.5rem;
    transition: none !important;
  }

  .sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0.5rem;
  }

  .sidebar.collapsed .logo {
    display: none;
  }

  .sidebar.collapsed .toggle-btn {
    display: none;
  }

  .sidebar.collapsed .sidebar-close-btn {
    display: none;
  }

  .sidebar.collapsed .nav-item span {
    display: none;
  }

  .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
  }

  .sidebar.collapsed .nav-icon {
    margin-right: 0;
  }

  .sidebar.collapsed .sidebar-footer {
    display: none;
  }

  .sidebar.collapsed .nav-item.active {
    border-left: none;
    border-radius: 0.5rem;
    background: var(--bg-hover);
  }

  /* Скрывать сайдбар полностью только если не collapsed */
  .sidebar:not(.collapsed) {
    transform: translateX(-100%);
    transition: none !important;
  }

  .sidebar:not(.collapsed).mobile-open {
    transform: translateX(0);
    transition: none !important;
  }

  /* Overlay для мобильной версии */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Кнопка открытия меню на мобильных - показывать только когда сайдбар collapsed */
  .mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: var(--text-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    left: 5rem; /* Справа от collapsed сайдбара (4rem + 1rem) */
    z-index: 998;
    transition: all 0.3s;
  }

  /* Показывать кнопку когда сайдбар collapsed */
  .mobile-menu-btn.show {
    display: flex;
  }

  .mobile-menu-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
  }

  .mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Скрыть кнопку toggle внутри сайдбара на мобильных */
  .sidebar .toggle-btn {
    display: none;
  }

  /* Добавить кнопку закрытия в сайдбар на мобильных */
  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.3s;
  }

  .sidebar-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
  }

  /* Отступ для контента на мобильных */
  .main-content {
    margin-left: 4rem; /* Отступ для collapsed сайдбара */
    width: calc(100% - 4rem);
    transition: none !important;
  }

  .sidebar:not(.collapsed) ~ .main-content,
  .sidebar.mobile-open ~ .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 0.5rem 0.75rem;
    padding-top: 0.5rem;
  }

  /* Когда сайдбар полностью открыт, добавляем оверлей */
  .sidebar:not(.collapsed).mobile-open ~ .main-content {
    margin-left: 0;
  }

  /* Topbar на мобильных */
  .topbar {
    padding-top: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
  }

  /* Улучшенная видимость кнопки меню */
  .mobile-menu-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn,
  .sidebar-overlay,
  .sidebar-close-btn {
    display: none !important;
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-decoration: none;
}

.dot {
  color: var(--primary-color);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

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

.nav-menu {
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-left: 3px solid var(--primary-color);
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  stroke-width: 1.5;
}

.nav-icon.sky {
  color: #0ea5e9;
}
.nav-icon.violet {
  color: #a855f7;
}
.nav-icon.pink {
  color: #ec4899;
}
.nav-icon.orange {
  color: #f97316;
}
.nav-icon.emerald {
  color: #10b981;
}
.nav-icon.gray {
  color: #6b7280;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--bg-hover);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: var(--bg-hover);
}

.logout-btn svg {
  width: 1rem;
  height: 1rem;
}

.logout-btn p:first-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.logout-btn p:last-child {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  transition: none !important;
  min-width: 0; /* Позволяет контенту сжиматься при необходимости */
  width: 0; /* Важно для flexbox - позволяет контенту занимать оставшееся пространство */
}

.content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  padding-right: 0;
}

@media (min-width: 768px) {
  .content-wrapper {
    padding: 0.75rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .content-wrapper {
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 1280px) {
  .content-wrapper {
    padding-right: 21.25rem; /* 340px for right sidebar */
  }
}

/* TopBar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-top: 0.75rem;
  padding-left: 0.5rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .topbar {
    margin-bottom: 1.75rem;
    padding-top: 1rem;
  }
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 28rem;
  display: none;
}

@media (min-width: 768px) {
  .search-box {
    display: block;
  }
}

.search-box svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background: var(--bg-card);
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all 0.3s;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary-color);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: 0.5rem;
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.notification-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.divider {
  height: 1.5rem;
  width: 1px;
  background: var(--border-dark);
  display: none;
}

@media (min-width: 768px) {
  .divider {
    display: block;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
}

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

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* Page Content */
.page-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .page-content {
    padding: 0 1rem;
  }
}

.header {
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  width: 100%;
}

@media (min-width: 768px) {
  .filter-tabs {
    width: auto;
  }
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0 0.25rem;
  padding-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--primary-color);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
  }
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.tabs-wrapper {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.5rem;
  overflow-x: auto;
  width: 100%;
}

@media (min-width: 768px) {
  .tabs-wrapper {
    width: auto;
  }
}

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

@media (min-width: 768px) {
  .projects-list {
    gap: 1.25rem;
  }
}

.project-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 768px) {
  .project-item {
    padding-bottom: 1.25rem;
  }
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-header-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .project-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }
}

.project-header-row > div {
  flex: 1;
}

.project-item h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .project-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
  }
}

.project-item p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .project-item p {
    font-size: 0.9375rem;
  }
}

.progress-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .progress-section {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.project-meta svg {
  width: 14px;
  height: 14px;
}

.progress-section .progress-bar {
  flex: 1;
  max-width: 28rem;
  height: 0.5rem;
  background: var(--border-dark);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 767px) {
  .progress-section .progress-bar {
    max-width: 100%;
  }
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 9999px;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.progress-section span {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.project-header-row .btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .project-header-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.project-image {
  width: 100%;
  min-height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .project-image {
    width: 33.333333%;
    min-width: 33.333333%;
    min-height: 150px;
  }
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  opacity: 0.1;
  filter: blur(3rem);
  border-radius: 50%;
}

.project-image img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 200px;
  border-radius: 0.5rem;
}

/* Right Sidebar */
.right-sidebar {
  width: 20rem;
  background: var(--bg-card);
  padding: 1rem;
  border-left: 1px solid var(--border-dark);
  height: 100%;
  position: fixed;
  right: 0;
  top: 0;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}

@media (min-width: 1280px) {
  .right-sidebar {
    padding: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .right-sidebar {
    display: flex;
  }
}

/* Mobile Right Sidebar - скрыт на мобильных */
@media (max-width: 1279px) {
  .right-sidebar {
    display: none !important;
  }

  .content-wrapper {
    padding-right: 1rem !important;
  }
}

.sidebar-section {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .sidebar-section {
    margin-bottom: 1.25rem;
  }
}

.user-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

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

.user-info h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
  cursor: pointer;
  transition: color 0.3s;
}

.user-info h3:hover {
  color: var(--accent-color);
}

.user-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.3s;
}

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

.sidebar-section h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}

.project-item:hover {
  background: rgba(45, 45, 61, 0.5);
  border-color: rgba(61, 61, 77, 1);
}

.project-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.project-item:hover .project-icon {
  background: var(--primary-color);
  color: white;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-info h5 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.project-item:hover .project-info h5 {
  color: var(--accent-color);
}

.project-info .progress-bar {
  height: 0.375rem;
  background: var(--bg-hover);
  border-radius: 9999px;
  overflow: hidden;
}

.project-info .progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary-hover), var(--accent-color));
  border-radius: 9999px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .cards-grid {
    gap: 1.25rem;
    margin-top: 1.25rem;
  }
}

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

.card {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
}

@media (min-width: 768px) {
  .card {
    padding: 1.25rem;
  }
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .card h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
}

.card-content {
  color: var(--text-muted);
  line-height: 1.75;
}

.card-content p {
  margin-bottom: 1rem;
}

.card.compact {
  padding: 1rem;
}

.card.compact h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card.compact p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .card.compact {
    padding: 1.25rem;
  }
  
  .card.compact h3 {
    font-size: 1.125rem;
  }
  
  .card.compact p {
    font-size: 0.875rem;
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .projects-grid {
    gap: 1.25rem;
    margin-top: 1.25rem;
  }
}

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

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card-grid {
  border-radius: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  cursor: pointer;
  height: 100%;
}

@media (min-width: 768px) {
  .project-card-grid {
    padding: 1.25rem;
  }
}

.project-card-grid:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.project-card-image {
  position: relative;
  height: 8rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-dark);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .project-card-image {
    height: 10rem;
    margin-bottom: 1rem;
  }
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.5s;
}

.project-card-grid:hover .project-card-image img {
  opacity: 1;
  transform: scale(1.05);
}

.status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(31, 29, 43, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: white;
  font-weight: 500;
  border: 1px solid var(--border-dark);
}

.project-card-grid h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .project-card-grid h3 {
    font-size: 1.25rem;
  }
}

.project-card-grid:hover h3 {
  color: var(--accent-color);
}

.project-card-grid > p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-card-grid > p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

.tag {
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--bg-hover);
  color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .services-grid {
    gap: 1.25rem;
  }
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border-radius: 1rem;
  padding: 1rem;
  background: #1F1D2B;
  border: 1px solid #2D2D3D;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

@media (min-width: 768px) {
  .service-card {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .service-card {
    padding: 1.5rem;
  }
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover h3 {
  color: var(--accent-color);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card:hover .service-bg {
  background: rgba(99, 102, 241, 0.1);
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

.service-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .service-link {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    font-size: 0.875rem;
  }
}

.service-card:hover h3 {
  color: var(--accent-color);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card:hover .service-bg {
  background: rgba(99, 102, 241, 0.1);
}

.service-card a {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.3s;
}

.service-card:hover a {
  opacity: 1;
  transform: translateY(0);
}

.team-member-card a:hover {
  color: white;
  background: var(--primary-color);
}

.team-member-card a[href*="linkedin"]:hover {
  background: #0077b5;
}

.team-member-card a[href*="x.com"]:hover,
.team-member-card a[href*="twitter"]:hover {
  background: #1da1f2;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .team-grid {
    gap: 1.25rem;
  }
}

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

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-member-card {
  border-radius: 1rem;
  padding: 1rem;
  background: #1F1D2B;
  border: 1px solid #2D2D3D;
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .team-member-card {
    padding: 1.25rem;
  }
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-hover);
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary-color);
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

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

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* Utility Classes */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-bold {
  font-weight: 700;
}

.text-white {
  color: var(--text-primary);
}

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

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-start {
  align-items: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:items-center {
    align-items: center;
  }
  
  .md\:w-auto {
    width: auto;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid.stats-4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark);
}

/* ============================================
   Blog/News Page Styles
   ============================================ */

/* Hero Section */
.blog-hero {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.hero-content {
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 42rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.875rem;
  }
}

/* Featured Article */
.featured-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.featured-article:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
  .featured-article {
    grid-template-columns: 1.5fr 1fr;
  }
}

.featured-image {
  position: relative;
  min-height: 12rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .featured-image {
    min-height: 14rem;
  }
}

@media (min-width: 1024px) {
  .featured-image {
    min-height: 16rem;
  }
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  z-index: 10;
}

@media (min-width: 768px) {
  .featured-badge {
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.featured-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .featured-content {
    padding: 1.5rem;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.article-category {
  padding: 0.375rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
}

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

.featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.featured-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

@media (min-width: 768px) {
  .featured-title {
    font-size: 1.75rem;
  }
  
  .featured-excerpt {
    font-size: 0.9375rem;
  }
}

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

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

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

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

@media (max-width: 768px) {
  .featured-content {
    padding: 1.25rem;
  }
  
  .featured-title {
    font-size: 1.25rem;
  }
  
  .featured-excerpt {
    font-size: 0.8125rem;
  }
  
  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Categories Filter */
.blog-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.blog-categories::-webkit-scrollbar {
  height: 4px;
}

.category-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    gap: 1.25rem;
  }
}

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

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog Card */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 8rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-card-image {
    height: 10rem;
  }
}

.blog-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  z-index: 10;
}

@media (min-width: 768px) {
  .blog-badge {
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

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

@media (min-width: 768px) {
  .blog-card-content {
    padding: 1.25rem;
  }
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .blog-card-title {
    font-size: 1.25rem;
  }
}

.blog-card:hover .blog-card-title {
  color: var(--primary-color);
}

.blog-card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-card-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dark);
}

.article-author-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar-small {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.625rem;
  flex-shrink: 0;
}

.article-author-small span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s;
}

.read-more:hover {
  color: var(--accent-color);
  gap: 0.75rem;
}

.read-more svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s;
}

.read-more:hover svg {
  transform: translateX(2px);
}

/* Load More Button */
.blog-load-more {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
  padding: 0.75rem 2rem;
}

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

@media (max-width: 768px) {
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-card-title {
    font-size: 1rem;
  }
  
  .blog-card-image {
    height: 8rem;
  }
}
