/* Global Styles */
:root {
  --primary-color: #6c5ce7;
  --primary-dark: #5649c0;
  --accent-color: #fd79a8;
  --dark-color: #2d3436;
  --light-color: #f5f6fa;
  --gray-color: #636e72;
  --success-color: #00b894;
  --danger-color: #d63031;
  --warning-color: #fdcb6e;
  --info-color: #0984e3;
  --modal-bg: rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  background-color: white;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-content {
  flex: 1;
}

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

section {
  padding: 80px 0;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

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

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

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

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #e84393;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-link:hover {
  color: var(--primary-dark);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1.1rem;
}

.text-center {
  margin-top: 50px;
  text-align: center;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: white;
    color: var(--dark-color);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 5px solid var(--success-color);
}

.toast.info {
    border-left: 5px solid var(--info-color);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.info .toast-icon {
    color: var(--info-color);
}

/* Header Styles */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav {
  display: block; /* Shown on larger screens */
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  color: var(--dark-color);
  transition: color 0.3s;
}

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

.header-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.hamburger {
  display: none; /* Hidden on larger screens */
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark-color);
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 70px; /* Adjust based on header height */
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
}

.mobile-menu nav a {
  font-weight: 600;
  color: var(--dark-color);
  display: block;
  padding: 10px;
  transition: background-color 0.2s;
}

.mobile-menu nav a:hover {
  background-color: #f0f0f0;
}

.mobile-auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, rgba(108, 92, 231, 0.9), rgba(253, 121, 168, 0.6)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh;
}

.hero-content {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  padding: 20px;
}

.short {
  max-width: 350px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  margin: 0 auto;
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
}

.short i {
  color: var(--accent-color);
  font-size: 15px;
  margin-right: 5px;
}

.hero h1 {
  font-size: 4rem;
  margin-top: 50px;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 17px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  color: white;
}

.stats i {
  color: #FDCC0D ;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 14px;
  letter-spacing: 1px;
}

.search-bar-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 0 15px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  min-width: 250px;
  flex: 1;
}

.search-bar i {
  color: var(--gray-color);
  font-size: 1.2rem;
  margin-right: 10px;
}

.search-bar input,
.search-bar select {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px 0;
  font-size: 1rem;
}

.search-bar input::placeholder {
  color: #a0a0a0;
}

.filter-bar {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 0 15px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  flex: 1;
}

.filter-bar select {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px 0;
  font-size: 1rem;
  cursor: pointer;
}

.filter-bar i {
  color: var(--gray-color);
  font-size: 1.2rem;
  margin-right: 10px;
}

.filter-bar select option {
  padding: 10px;
  background-color: white;
  color: var(--dark-color);
  text-align: left;
}

#search-btn {
  padding: 12px 25px;
  border-radius: 10px;
  flex: 0 0 auto;
}

/* About Section */
.about-section {
  background-color: white;
}

.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--dark-color);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.about-card:hover {
  transform: translateY(-10px);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-card p {
  font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 20px;
}

/* Categories Section */
.categories-section {
  background-color: #f9f9f9;
}

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
}

.section-header p {
  font-size: 1rem;
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-card {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8rem;
}

.bg-blue {
  background-color: var(--info-color);
}
.bg-purple {
  background-color: var(--primary-color);
}
.bg-orange {
  background-color: #e17055;
}
.bg-green {
  background-color: var(--success-color);
}
.bg-red {
  background-color: var(--danger-color);
}
.bg-yellow {
  background-color: var(--warning-color);
}

.category-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.category-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--gray-color);
}

.pill {
  display: inline-block;
  padding: 5px 15px;
  background-color: #f0e6ff;
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-pill {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f0e6ff;
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Featured Skills Section */
.featured-section {
  background-color: white;
}

.featured-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  margin-bottom: 30px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  position: relative;
}

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

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.service-content .provider {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.service-content .price {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-content .contact-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.service-content .contact-btn:hover {
  background: var(--primary-dark);
}

.no-results {
  text-align: center;
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--gray-color);
}

/* How It Works Section */
.how-it-works {
  background-color: #f9f9f9;
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.step-icon {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(to left, rgba(108, 92, 231, 0.9), rgba(253, 121, 168, 0.6));
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Footer */
.main-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: var(--accent-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-50px);
  opacity: 0;
  animation: modal-fade-in 0.3s forwards;
}

@keyframes modal-fade-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.2s;
}

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

.modal h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input[type="file"] {
    border: none;
    padding: 0;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236c5ce7%22%20d%3D%22M287%20117.8l-131-131c-4.4-4.4-11.4-4.4-15.8%200l-131%20131c-4.4%204.4-4.4%2011.4%200%2015.8l6.4%206.4c4.4%204.4%2011.4%204.4%2015.8%200l109.5-109.5%20109.5%20109.5c4.4%204.4%2011.4%204.4%2015.8%200l6.4-6.4c4.4-4.4%204.4-11.4%200-15.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-options label {
  font-weight: normal;
  font-size: 0.9rem;
}

.forgot-password {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: underline;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

/* Adjustments for shorter signup form */
#register-modal .modal-content {
    padding: 20px;
}

#register-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#register-modal .form-group label {
    font-size: 0.85rem;
}

#register-modal .form-group input,
#register-modal .form-group select {
    padding: 8px 12px;
    font-size: 0.9rem;
}

#register-modal .btn-primary {
    padding: 10px 20px;
}

/* Profile and Chat Sections */
.main-section {
  display: none;
  padding: 60px 0;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-pic-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.matric-number {
  font-size: 1.1rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.profile-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.profile-skills h3 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.skill-item {
  background: #f0f4f8;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.skill-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.skill-item p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.skill-item-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.skill-item-buttons .edit-btn,
.skill-item-buttons .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-color);
    transition: color 0.2s;
}

.skill-item-buttons .delete-btn {
    color: var(--danger-color);
}

.profile-skills form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

.profile-messages h3 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  position: relative;
}

.badge {
  position: absolute;
  top: -5px;
  right: 0;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversation-item {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.conversation-item:hover {
  background-color: #f0f4f8;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 80vh;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.chat-header {
  padding: 20px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 70%;
  padding: 12px 15px;
  border-radius: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.sent {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.received {
  background-color: white;
  color: var(--dark-color);
  align-self: flex-start;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  display: flex;
  align-items: flex-end;
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
  position: relative;
}

.chat-input-area textarea {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 15px;
  resize: none;
  overflow-y: hidden;
  font-size: 1rem;
}

.btn-icon {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-color);
  cursor: pointer;
  padding: 0 10px;
  transition: color 0.2s;
}

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

.send-btn {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.attachment-dropdown {
  position: absolute;
  bottom: 60px;
  left: 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  z-index: 10;
  padding: 10px 0;
}

.attachment-dropdown.active {
  display: flex;
}

.attachment-dropdown a {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-color);
  transition: background-color 0.2s;
}

.attachment-dropdown a:hover {
  background-color: #f0f4f8;
}

/* Public Profile Section */
#public-profile-section {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    flex-wrap: wrap;
  }
  
  .step {
    flex: 1 1 300px;
  }
}

@media (max-width: 768px) {
  .main-nav, .header-buttons {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .categories-grid, .about-cards {
    grid-template-columns: 1fr;
  }
  
  .profile-content {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .search-bar-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar, .filter-bar {
    width: 100%;
    max-width: 100%;
  }
  
  #search-btn {
    width: 100%;
  }
  
  .stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    text-align: center;
  }
}