:root {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --text-primary: #211c1c;
  --text-secondary: #65676b;
  --accent: #1877f2;
  --border: #e4e6eb;
  --hover: #f5f0f0;
  
}

[data-theme="dark"] {
  --bg-primary: #18191a;
  --bg-secondary: #242526;
  --text-primary: #e4e6eb;
  --text-secondary: #b0b3b8;
  --border: #3e4042;
  --hover: #3a3b3c;
}

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

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 56px;
  background: var(--bg-secondary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  /* border-bottom: 1px solid var(--border); */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.logo-text {
  color:var(--accent) ;
  font-size: 18px;
  font-weight: 600;
}



.search-box {
  display: none;
}

.nav-middle {
  display: flex;
  gap: 8px;
}

.nav-middle a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 42px;
  border-radius: 8px;
}

.nav-middle a:hover {
  background: var(--hover);
}

.nav-middle a.active {
  color: var(--accent);
  /* border-bottom: 3px solid var(--accent); */
  background: var(--hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-right a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
}

.profile-pic img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.profile-container {
  margin-top: 56px;
  background: var(--bg-secondary);
}

.cover-photo {
  position: relative;
  height: 460px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.edit-cover {
  position: absolute;
  bottom: 16px;
  right: 32px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
}

.profile-info {
  padding: 0 425px;
  margin-top: -28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-picture {
  position: relative;
  margin-bottom: 16px;
}

.profile-picture img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  /* border: 3px solid  var(--text-primary); */
  object-fit: cover;
}

.change-photo {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--hover);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.profile-details {
  text-align: center;
  margin-bottom: 16px;
}

.profile-details h1 {
  font-size: 20px;
  margin-bottom: 8px;
}

.profile-details p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
  max-width: 500px;
  margin: 0 auto;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.primary-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background:#1464d7;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color:#feffff ;
  border-color: #ffffff;
  border: 0.1px solid;
  font-size: 18px;
  transition: 0.5s;
}
.primary-btn:hover {
  
  background:#0f0f10;  
  border-color: #ffffff;
  border: 0.1px solid;
  font-size: 20px;
}





.secondary-btn {
  background: var(--hover);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
}

.more-btn {
  background: var(--hover);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
}

.profile-nav {
  display: flex;
  gap: 8px;
  padding: 0 32px;
  border-top: 1px solid var(--border);
  justify-content: center;
}

.profile-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 16px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-nav a i {
  font-size: 16px;
  pointer-events: none;
}

.profile-nav a.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

.profile-nav a.active i {
  color: var(--accent);
}

.content-container {
  display: flex;
  gap: 16px;
  padding: 16px 32px;
  max-width: 1000px;
  margin: 0 auto;
  user-select: none;
}

.left-sidebar {
  flex: 0 0 360px;
}

.main-content {
  flex: 1;
}

.intro-card {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.intro-card h2 {
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--text-primary);
}

.intro-card p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.intro-card p i {
  width: 20px;
  color: var(--text-secondary);
}

.skills-card p i {
  font-size: 16px;
}

.create-post {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.post-input {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.post-input input {
  flex: 1;
  background: var(--hover);
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  color: var(--text-primary);
}

.post-types {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.post-types button {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

.post {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.post-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.post-info h3 {
  margin-bottom: 4px;
}

.post-info span {
  color: var(--text-secondary);
  font-size: 13px;
}

.post-image {
  width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

.post-content {
  margin-bottom: 16px;
}

.post-content p {
  font-size: 15px;
  line-height: 1.4;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.post-actions {
  display: flex;
  justify-content: space-between;
}

.post-actions button {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

.post-actions button:hover {
  background: var(--hover);
  border-radius: 4px;
}

.post-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-input img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.stories-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-secondary);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 100;
  transition: background 0.3s ease, opacity 0.3s ease;
  color: var(--text-primary);
  opacity: 0.8;
  display: flex !important;
}

.carousel-arrow:hover {
  background: var(--hover);
  opacity: 1;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-arrow i {
  color: var(--text-secondary);
  font-size: 20px;
}

.carousel-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stories-carousel {
  display: flex;
  gap: 10px;
  padding: 20px 32px;
  background: var(--bg-secondary);
  overflow-x: auto;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  max-width: 1100px;  
  margin: 0 auto;     
  justify-content: flex-start; 
  scroll-behavior: smooth;
  scroll-padding-right: 32px; 
  padding-right: calc(32px + 10px); 
}

.stories-carousel .story:last-child {
  margin-right: 32px;
}

.story {
  flex: 0 0 200px;
  height: 350px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 3px solid transparent;
}

.story:hover {
  transform: scale(1.02);
  border-color: var(--accent);
}

.story-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.model-story {
  position: relative;
  transition: transform 0.3s ease;
}

.model-story .model-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.model-story .model-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-story .view-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: background 0.3s ease;
}

.model-story:hover .view-button {
  background: var(--accent);
}

.animation-story:hover .play-button {
  background: var(--accent);
}

.modal-title {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 500;
}

.content-container {
  display: flex;
  justify-content: center;
  align-items:flex-start;
  margin-top: 15px;
}

.cover-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 10px 10px;
}

.watch-now-btn {
  position: absolute;
  bottom: 16px;
  right: 32px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.watch-now-btn:hover {
  background:#1464d7 ;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 12, 12, 0.979);
  z-index: 2000;
}

.modal-content {
  position: relative;
  background-color: var(--bg-secondary);
  margin: 7% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 100;
}

.close-modal:hover {

color: #1877f2;
}

.gallery-showcase .gallery-nav:hover{

color: #1877f2;
}

.youtube-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.youtube-link:hover {
  text-decoration: underline;
}

.gallery-card {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.certificates-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/2;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-modal-content {
  padding: 20px;
  max-width: 1000px;
  width: 90%;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.gallery-carousel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.gallery-nav:hover {
  background: var(--hover);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.software-skills-card {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.software-skills-card h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--text-primary);
}

.software-category {
  margin-bottom: 16px;
}

.software-category:last-child {
  margin-bottom: 0;
}

.software-category h3 {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.software-category h3 i {
  color: var(--text-secondary);
}

.software-category p {
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding-left: 24px;
}

.software-category p i {
  color: var(--accent);
  font-size: 14px;
}

.resume-card {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  
}

.resume-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--text-primary);
}

.resume-card h2 i {
  color: var(--text-secondary);
}

.resume-content {
  max-height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.resume-content::-webkit-scrollbar {
  width: 8px;
}

.resume-content::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 4px;
}

.resume-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.resume-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.resume-content p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-size: 14px;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: background 0.3s ease;
}

.game-story {
  position: relative;
  transition: transform 0.3s ease;
}

.game-story .game-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.game-story .game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-story .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: background 0.3s ease;
}

.game-story:hover .play-button {
  background: var(--accent);
}

.game-story .game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none;
}

.game-story .game-info h4,
.game-story .game-info p {
  display: none;
}

.game-story .story-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.game-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.game-info p {
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.game-demo-modal .modal-content {
  max-width: 800px;
  width: 90%;
}

.game-demo-description {
  margin-top: 16px;
  color: var(--text-primary);
}

.game-demo-description h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.game-demo-description p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.game-demo-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.game-demo-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.game-demo-button:hover {
  background: #1464d7;
}

.game-info:hover {
  transform: translateY(0);
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.game-link:hover {
  background: #1464d7;
}

.model-modal-content {
  width: 90%;
  height: 80vh;
  max-width: 1200px;
  padding: 20px;
}

#model-viewer {
  width: 100%;
  height: calc(100% - 40px);
  background: #1a1a1a;
  border-radius: 8px;
}

.game-story.demo-only .primary-button,
.game-story.play-only .secondary-button {
  display: none;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hover);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: white;
}

.theme-toggle i {
  font-size: 18px;
}

.social-modal-content {
  max-width: 400px;
  /* height: 60vh; */
  padding: 30px;
  margin-top: 160px;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 15px;
  
}

.social-link {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 5px;
 
  padding: 5px;
  padding-bottom: 40px;
  
  
  text-decoration: none;
  color: var(--text-primary);
 
  border-radius: 10px;
  transition: all 0.3s ease;
}


.social-link:hover {
  transform: translateX(10px);
  
  color: white;
}

.social-link i {
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.social-link span {
  font-size: 16px;
  font-weight: 500;
}



.social-link:hover i {
  color: #1e64d7;
}

.video-container {
  width: 100%;
  margin-top: 20px;
}

#productionVideoPlayer {
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.production-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 32px;
  padding-top: 30px;
  height:100%;
 
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.production-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  transition: transform 0.3s ease;
}

.production-card:hover {
  transform: translateX(10px);
}

.production-image {
  flex: 0 0 200px;
  
}



.production-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.5;
  transition: opacity 0.3s ease;  */
  transition: transform 0.3s ease;
}

.production-image img:hover {
  
  transform: scale(1.1);
  /* opacity: 1;  */
}

.production-info {
  padding: 20px;
  flex: 1;
}

.production-info h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin-bottom: 10px;
}

.production-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.see-more-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.see-more-btn:hover {
  background: #1464d7;
}

.academy-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 32px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;  
  

}



.course-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  
}

/* p {  
  text-align: justify;
  text-justify: inter-word;
  word-spacing: 0.4px; 
  letter-spacing: 0.1px;   
    
} */

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

.course-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.course-info {
  padding: 20px;
}

.course-info h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin-bottom: 10px;
}

.course-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.course-info .see-more-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.course-info .see-more-btn:hover {
  background: #1464d7;
}

.academy-header {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 30px;
}

.academy-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.academy-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.academy-header p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
}

@media (max-width: 768px) {
  .academy-header {
    height: 200px;
  }
  
  .academy-header h1 {
    font-size: 24px;
  }
  
  .academy-header p {
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .content-container {
    padding: 16px;
  }
  
  .stories-carousel {
    gap: 8px;
  }
  
  .story {
    flex: 0 0 180px;
    height: 320px;
  }
  
  .profile-info {
    padding: 0 200px;
  }
}

@media (max-width: 992px) {
  .nav-middle a {
    padding: 10px 20px;
  }
  
  .content-container {
    flex-direction: column;
  }
  
  .left-sidebar {
    flex: none;
    width: 100%;
  }
  
  .story {
    flex: 0 0 160px;
    height: 280px;
  }
  
  .profile-info {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 8px;
  }
  
  .nav-middle a {
    padding: 10px;
  }
  
  .profile-info {
    padding: 0 50px;
  }
  
  .certificates-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .nav-middle {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 8px;
    justify-content: space-around;
    border-top: 1px solid var(--border);
  }
  
  .profile-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .profile-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .profile-nav a {
    white-space: nowrap;
    padding: 16px 12px;
  }

  .profile-nav a span {
    display: none; /* Hide text */
  }

  .profile-nav a i {
    font-size: 20px; /* Make icons slightly bigger */
    margin: 0; /* Remove any margin */
  }
  
  .content-container {
    padding: 8px;
  }
  
  .story {
    flex: 0 0 120px;
    height: 200px;
  }
  
  .profile-picture img {
    width: 120px;
    height: 120px;
  }
  
  .cover-photo {
    height: 200px;
  }
  
  .profile-info {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .production-container {
    
    height: 125%;
    
    
  }
  
  .production-image {
    flex: 0 0 50px;
  }
}

@media (max-width: 768px) {
  .production-card {
    flex-direction: column;
    
  }
  
  .production-image {
    flex: 0 0 50px;
  }
}

@media (max-width: 768px) {
  .academy-container {
    padding: 16px;
    padding-bottom: 60px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .watch-now-btn {
    display: none;
   
  }
    


}




.photo-gallery-modal {
  max-width: 1000px;
  width: 90%;
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
}

.gallery-showcase {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: 20px;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 3px;
}

.thumbnail {
  flex: 0 0 100px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--accent);
}

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

.gallery-showcase .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-showcase .gallery-nav:hover {
  opacity: 1;
}

.gallery-showcase .gallery-nav.prev {
  left: 10px;
}

.gallery-showcase .gallery-nav.next {
  right: 10px;
}

.cover-photo-proyect{
  display: none; 
  position: relative;
  height: 460px;
  max-width: 1100px;
  margin: 0 auto;
  
}   

.cover-photo-proyect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
 
  /* border-radius: 0 0 10px 10px; */
}

/* Modern styles for the contact form */
.modal-content.contact-form-content {
  background: #1e1e2f00;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
  max-width: 500px;
  /* height: 100%; */
  padding-top: 30px;
  margin: auto;
}

.modal-content.contact-form-content .modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
  padding-bottom: 20px;
  color: #0464f3;
}

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

.modal-content.contact-form-content label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.modal-content.contact-form-content input,
.modal-content.contact-form-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #33333463;
  color: #8e8d8d;
  font-size: 0.8rem;
  resize: none;
}

.modal-content.contact-form-content input:focus,
.modal-content.contact-form-content textarea:focus {
  outline: none;
  border-color: #6c63ff;
  box-shadow: 0 0 5px rgba(108, 99, 255, 0.5);
}

.btn-enviar{

  display: flex;
  flex-direction: row;
  justify-content: center;
 
  

}

.enviar-btn {
  background: #073477;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 5px; 
  
}

.enviar-btn:hover {
  background: #0066ff;
  
  
}




.modal-content.contact-form-content .primary-btn:hover {
  background: #5750d4;
}

.modal-content.contact-form-content .close-modal {
  font-size: 1.2rem;
  cursor: pointer;
  float: right;
  color: #fff;
}

#confirmationMessage{

  padding-top: 5px;
  justify-self: center;

}