:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --nav-text: #333;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
.dark-mode {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-color: #e0e0e0;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --header-bg: rgba(18, 18, 18, 0.95);
  --nav-text: #ffffff;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--header-bg);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: var(--transition);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-left, .nav-right {
  flex: 1;
}

.nav-center {
  text-align: center;
}

.nav-right {
  text-align: right;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a, .nav-brand, .contact-btn, .dropdown-content a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:after, .dropdown-content a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover:after, .dropdown-content a:hover:after {
  width: 100%;
}

.nav-links a:hover, .nav-brand:hover, .dropdown-content a:hover {
  color: var(--primary-color);
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.contact-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  margin-right: 1rem;
  border-radius: 50px;
  font-weight: 600;
  transform-origin: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Hamburger menu */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--nav-text);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

.hamburger.open span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--card-bg);
  z-index: 1000;
  transition: var(--transition);
  padding: 5rem 2rem 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  min-width: 160px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 0.5rem 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.75rem 1rem;
  display: block;
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* Theme Switch */
.theme-switch {
  position: relative;
  width: 60px;
  height: 30px;
  margin-left: 1rem;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 0px;
 //** background-color: white;**//
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: #c9c5c5;
}

input:focus + .switch-slider {
  box-shadow: 0 0 1px #ffffff;
}

input:checked + .switch-slider:before {
  transform: translateX(30px);
}

.switch-slider i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
  color: #ffffff;/**petit soleil**/
}

.fa-sun {
  right: 7px;
  opacity: 0;
  
}

.fa-moon {
  left: 7px;
  opacity: 1;
  color: #121212;
}

input:checked + .switch-slider .fa-sun {
  opacity: 1;
}

input:checked + .switch-slider .fa-moon {
  opacity: 0;
}

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

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom right, rgba(52, 152, 219, 0.2), transparent 70%),
              radial-gradient(ellipse at top left, rgba(46, 204, 113, 0.2), transparent 70%);
  z-index: -1;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.hero-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

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

.primary-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

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

.primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--primary-color);
  font-size: 2rem;
  cursor: pointer;
}

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

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

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  width: 100%;
  display: block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  opacity: 0.9;
}

/* Project Section */
.project-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.project-img {
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: var(--transition);
}

.project-content {
  padding: 1rem;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.project-title:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.project-title:hover:after {
  width: 100%;
}

.project-description {
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .portfolio-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    scroll-padding: 1rem;
    flex-direction: row;
  }

  .portfolio-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
  }

  .blog-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    scroll-padding: 1rem;
    flex-direction: row;
  }

  .blog-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
  }
}

/* Styles spécifiques pour les pages d'articles */
.article-page {
  @media (max-width: 768px) {
    main {
      padding: 1rem !important;
    }

    article {
      padding: 1rem !important;
      margin: 0.5rem !important;
    }

    .prose {
      font-size: 16px !important;
    }

    .section-container {
      padding: 0 0.5rem;
    }
  }
}

@media (max-width: 576px) {
  main {
    padding: 0.5rem !important;
  }

  article {
    padding: 0.75rem !important;
    margin: 0.25rem !important;
  }

  .section-container {
    padding: 0 0.25rem;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-description {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-details {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.portfolio-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  transform: translateY(0);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-category {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.portfolio-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.portfolio-link:hover {
  gap: 0.75rem;
}

/* Blog Section */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .blog-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    scroll-padding: 1rem;
  }

  .blog-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
  }
}

.blog-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-item:hover .blog-img img {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: var(--transition);
}

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

.blog-excerpt {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.blog-link:hover {
  gap: 0.75rem;
}

/* Vlog Section */
.vlog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .vlog-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    scroll-padding: 1rem;
  }

  .vlog-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
  }
}

.vlog-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.vlog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.vlog-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.vlog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.vlog-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.vlog-item:hover .vlog-thumbnail img {
  transform: scale(1.1);
}

.vlog-item:hover .vlog-play {
  background-color: var(--primary-color);
}

.vlog-item:hover .vlog-play i {
  color: white;
}

.vlog-content {
  padding: 1.5rem;
}

.vlog-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.vlog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vlog-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-text p, .contact-text a {
  color: var(--text-color);
  transition: var(--transition);
}

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

.contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 6px;
  background-color: transparent;
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.submit-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Social Media Section */
.social-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-item {
  width: 50px;
  height: 50px;
  background-color: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.25rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.social-item:hover {
  transform: translateY(-8px);
  color: white;
}

.social-item.twitter:hover {
  background-color: #1DA1F2;
}

.social-item.linkedin:hover {
  background-color: #0077B5;
}

.social-item.github:hover {
  background-color: #333;
}

.social-item.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

/* Footer */
footer {
  background-color: var(--card-bg);
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

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

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-social-item {
  width: 40px;
  height: 40px;
  background-color: rgba(128, 128, 128, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
}

.footer-social-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
}

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

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

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

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

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

.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .project-container {
      grid-template-columns: 1fr;
      gap: 3rem;
  }

  .contact-container {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
      display: none;
  }

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

  .nav-center {
      font-size: 1rem;
      margin-right: auto;
  }

  .nav-right {
      display: flex;
      align-items: center;
      gap: 0.25rem;
  }

  .contact-btn {
      padding: 0.35rem 0.75rem;
      font-size: 0.85rem;
      margin: 0;
  }

  .theme-switch {
      margin: 0 0.25rem;
  }

  .hamburger {
      display: block;
      margin: 0;
  }

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

  section {
      padding: 4rem 0;
  }

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

  .portfolio-container, .blog-container, .vlog-container {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .nav-center {
      font-size: 1.25rem;
  }

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

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

  .hero-buttons {
      flex-direction: column;
      gap: 1rem;
  }

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

  .social-container {
      gap: 1rem;
  }

  .social-item {
      width: 40px;
      height: 40px;
      font-size: 1rem;
  }

  .back-to-top {
      width: 40px;
      height: 40px;
      font-size: 1rem;
      bottom: 20px;
      right: 20px;
  }

  .modal {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.modal.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}


  .prose h1, .prose h2, .prose h3 {
    color: var(--primary-color);
  }

  .prose img {
    border-radius: 12px;
    box-shadow: var(--box-shadow);
  }

  .prose blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    font-style: italic;
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.03);
  }

}