/* ===============================================
   Additional Styles from index.html
   Modal, About Background, Academic Excellence, 
   Certificates Flipbook, CAD Gallery, Research & Movie Modals
   =============================================== */

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

.modal.show {
  display: block !important;
}


.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e5e7eb;
  background: var(--gradient-primary);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 0;
  overflow: hidden;
}

.modal-body iframe {
  border: none;
  border-radius: 0;
  display: block;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.modal-footer .btn {
  margin: 0 5px;
}

/* YouTube Modal Styles */
.youtube-modal-content {
  max-width: 1200px;
  width: 95%;
}

.youtube-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #000;
  border-radius: 4px;
  margin-bottom: 20px;
}

.youtube-container iframe,
.youtube-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.google-drive-modal-content {
  max-width: 1200px;
  width: 95%;
}

.google-drive-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 20px;
}

.google-drive-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

/* Certificate Section - Clean Base Styles */
.certificates-section {
  position: relative;
  margin-top: 60px;
  padding-top: 40px;
  padding-bottom: 180px;
  overflow: visible;
}

.certificate-flip-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 400px;
  perspective: 1000px;
}

.certificate-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

.certificate-flip.flipped {
  transform: rotateY(180deg);
}

.certificate-front,
.certificate-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}

.certificate-back {
  transform: rotateY(180deg);
}

/* Award Card Styling */
.award-card {
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.award-img {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.black-color {
  color: var(--text-primary) !important;
}

.fw-600 {
  font-weight: 600;
}

.secondary-black {
  color: var(--text-secondary);
}

.line-height-7 {
  line-height: 1.4;
}

.small {
  font-size: 0.85rem;
}

.award-year {
  margin-top: 0.5rem;
}

.badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.text-white {
  color: white !important;
}

/* Certificate Controls */
.certificate-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.cert-btn {
  width: 35px;
  height: 35px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.cert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.cert-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cert-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--card-bg);
  padding: 6px 12px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .certificate-flip-container {
    max-width: 300px;
    height: 360px;
  }
  
  .award-img {
    max-width: 160px;
    max-height: 120px;
  }
  
  .h5 {
    font-size: 1rem;
  }
  
  .small {
    font-size: 0.8rem;
  }
  
  .cert-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  .certificate-controls {
    gap: 12px;
    margin-top: 15px;
  }
  
  .cert-counter {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

/* Team Photos Grid Styles - Legacy (being overridden by main styles) */
.team-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.team-photo-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.team-photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.photo-caption {
  padding: 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  background: white;
}

@media (max-width: 768px) {
  .team-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
  }
  
  .team-photo-item img {
    height: 150px;
  }
  
  .photo-caption {
    padding: 12px;
    font-size: 13px;
  }
}

/* Responsive Book Animation */
@media (max-width: 768px) {
  .book-container {
    max-width: 100%;
    height: 350px;
    margin: 0 auto;
  }
  
  .flipbook-container {
    max-width: 100%;
    height: 300px;
    margin: 0 auto;
  }
  
  .page-content, .flipbook-content {
    padding: 3px;
  }
  
  .page-content h4, .flipbook-content h4 {
    font-size: 0.9rem;
  }
  
  .page-content p, .flipbook-content p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .book-container {
    height: 300px;
  }
  
  .flipbook-container {
    height: 250px;
  }
  
  .page-content, .flipbook-content {
    padding: 2px;
  }
  
  .page-content img, .flipbook-content img {
    max-height: 75%;
  }
  
  .page-content h4, .flipbook-content h4 {
    font-size: 0.8rem;
  }
  
  .page-content p, .flipbook-content p {
    font-size: 0.7rem;
  }
}

/* Lightbox Styles */
.lightbox-trigger {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.lightbox-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.lightbox-trigger:active {
  transform: scale(0.98);
  transition: all 0.1s ease;
}

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lightbox-modal.show {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10001;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-in-out 0.1s;
}

.lightbox-header.loaded {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-counter {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.lightbox-close {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-body {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-body {
  position: relative;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease-in-out;
}

.lightbox-body img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-body.loading::before {
  opacity: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lightbox-caption {
  margin-top: 20px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out 0.2s;
}

.lightbox-caption.loaded {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease-in-out 0.3s;
}

.lightbox-controls.loaded {
  opacity: 1;
}

.lightbox-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Improve modal visibility */
.modal-content {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 102, 255, 0.2);
}

.modal-body {
  background: #f8f9fa;
  padding: 10px;
}

.modal-header {
  padding: 15px 20px;
}

.modal-footer {
  padding: 15px 20px;
}

.modal-footer .btn {
  padding: 8px 16px;
  font-size: 14px;
  margin: 0 3px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
  .modal-header {
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 1001;
    background: var(--gradient-primary);
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
  
  .modal-body {
    padding: 5px;
    height: calc(100vh - 120px);
    overflow: hidden;
    background: #f8f9fa;
  }
  
  .youtube-container {
    height: calc(100vh - 140px);
    padding-bottom: 0;
  }
  
  .youtube-container iframe {
    height: 100%;
  }
  
  .modal-footer {
    padding: 10px 15px;
    position: sticky;
    bottom: 0;
    z-index: 1001;
    background: #f9fafb;
    flex-direction: row;
    gap: 5px;
  }
  
  .modal-footer .btn {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 2px;
    flex: 1;
  }
  
  /* Make hero buttons block-level on mobile */
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-cta .btn {
    width: 100%;
    min-width: auto;
    margin: 0;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  
  /* Hero stats horizontal layout on mobile */
  .hero-stats {
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
  }
  
  .hero-stats .stat-item {
    flex: 1;
    text-align: center;
  }
  
  .hero-stats .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.8rem;
  }
  
  .close {
    font-size: 24px;
  }
  
  /* Team Slider Mobile */
  .team-slider-container {
    gap: 10px;
    margin: 20px 0;
  }
  
  .team-photo-item img {
    height: 200px;
  }
  
  .photo-caption {
    padding: 12px;
    font-size: 13px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
  
  .slider-indicators {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Lightbox Mobile */
  .lightbox-content {
    padding: 10px;
  }
  
  .lightbox-header {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  
  .lightbox-counter {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .lightbox-close {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .lightbox-body {
    max-width: 95%;
    max-height: 70%;
  }
  
  .lightbox-body img {
    max-height: 100%;
  }
  
  .lightbox-caption {
    font-size: 14px;
    margin-top: 15px;
    padding: 6px 12px;
  }
  
  .lightbox-controls {
    padding: 0 10px;
  }
  
  .lightbox-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
  .modal-header {
    padding: 8px 12px;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 3px;
    height: calc(100vh - 110px);
  }
  
  .youtube-container {
    height: calc(100vh - 130px);
  }
  
  .modal-footer {
    padding: 8px 12px;
  }
  
  .modal-footer .btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .close {
    font-size: 20px;
  }
  
  /* Hero buttons for small mobile */
  .hero-cta .btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  /* Hero stats for small mobile */
  .hero-stats .stat-number {
    font-size: 1.3rem;
  }
  
  .hero-stats .stat-label {
    font-size: 0.7rem;
  }
}

/* Ensure modal is above sidebar on mobile */
@media (max-width: 768px) {
  .modal {
    z-index: 9999;
  }
  
  .modal-content {
    z-index: 10000;
    margin: 15px;
    width: calc(100% - 30px);
  }
}

/* About Section Background */
section#about.about {
  position: relative !important;
  background: url('../images/about-bg.png') center center / cover no-repeat !important;
  background-color: #0a0e27 !important; /* Fallback color */
  min-height: 100vh !important;
}

/* Mobile background styling */
@media (max-width: 768px) {
  section#about.about {
    background: url('../images/about-bg.png') center center / cover no-repeat !important;
    background-color: #0a0e27 !important;
  }
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#about .container {
  position: relative;
  z-index: 2;
}

/* Academic Excellence Section Styles */
.academic-excellence {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid var(--border-color);
}

.academic-excellence h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
  font-weight: 600;
}

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

.academic-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.academic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.academic-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.academic-icon i {
  font-size: 24px;
  color: var(--text-primary);
}

.academic-content h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.academic-content p {
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.academic-year {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

  .academic-card {
    padding: 20px;
  }
}

/* Certificates Flipbook Styles - Legacy (Overridden by new styles) */

.certificates-section h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #2c1810;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.certificates-flipbook {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto 40px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.certificate-page {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.certificate-page:not(:first-child) {
  transform: rotateY(180deg);
}

.certificate-page.active {
  transform: rotateY(0deg);
  z-index: 10;
}

.certificate-page.prev {
  transform: rotateY(-180deg);
  z-index: 5;
}

.certificate-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.certificate-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

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

.certificate-info {
  padding: 20px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.certificate-info h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 600;
}

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

.cert-date {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.certificate-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.cert-btn {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.cert-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cert-counter {
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  min-width: 80px;
  text-align: center;
}

/* Flip Animation */
@keyframes flipPage {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(-90deg);
  }
  100% {
    transform: rotateY(-180deg);
  }
}

.certificate-page.flipping {
  animation: flipPage 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .certificates-flipbook {
    height: 400px;
    max-width: 100%;
  }

  .certificate-controls {
    flex-direction: column;
    gap: 20px;
  }

  .cert-btn {
    width: 100%;
    justify-content: center;
  }

  .certificate-image {
    padding: 15px;
  }

  .certificate-info {
    padding: 15px;
  }

  .certificate-info h4 {
    font-size: 1.1rem;
  }
}

/* CAD Gallery Modal Styles */
.cad-gallery-content {
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
}

.cad-gallery {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px 0;
}

.cad-section {
  margin-bottom: 40px;
}

.cad-section h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.cad-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.cad-image-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.cad-image-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.cad-image-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
  transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
  .cad-images-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }

  .cad-image-item {
    padding: 10px;
  }

  .cad-image-item img {
    height: 150px;
  }

  .cad-section h4 {
    font-size: 1.2rem;
  }
}

/* Team Photos Section Styles */
.team-photos {
  background: var(--darker-bg);
  padding: 100px 0;
}

.team-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.team-photo-item {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-photo-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

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

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

.photo-caption {
  padding: 20px;
  text-align: center;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}

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

/* Tablet view - maintain 4 columns on medium tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  .team-photos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}

/* Small tablet view - reduce to 3 columns */
@media (max-width: 768px) and (min-width: 481px) {
  .team-photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .team-photo-item img {
    height: 200px;
  }
}

/* Mobile view - 2 columns */
@media (max-width: 480px) {
  .team-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .team-photo-item img {
    height: 180px;
  }
}

/* Building and Competition Gallery Modal Styles */
.building-gallery-content,
.competition-gallery-content {
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
}

.building-gallery,
.competition-gallery {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px 0;
}

.building-section,
.competition-section {
  margin-bottom: 40px;
}

.building-section h4,
.competition-section h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.building-images-grid,
.competition-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.building-image-item,
.competition-image-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.building-image-item:hover,
.competition-image-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.building-image-item img,
.competition-image-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.building-image-item img:hover,
.competition-image-item img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .building-images-grid,
  .competition-images-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }

  .building-image-item,
  .competition-image-item {
    padding: 10px;
  }

  .building-image-item img,
  .competition-image-item img {
    height: 150px;
  }

  .building-section h4,
  .competition-section h4 {
    font-size: 1.2rem;
  }
}
.research-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.research-info h4 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.research-journal {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.research-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.research-highlights h5 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.research-highlights ul {
  color: var(--text-secondary);
  padding-left: 20px;
}

.research-highlights li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.research-document {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--border-color);
}

.movie-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.movie-info h4 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.movie-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

.movie-features h5 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.feature-item span {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .research-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .research-document iframe {
    height: 300px;
  }

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

  .feature-item {
    padding: 12px;
  }
}

/* CSS Variables */
:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --accent-color: #ff6b35;
    --dark-bg: #0a0e27;
    --darker-bg: #050714;
    --sidebar-bg: #0f1430;
    --card-bg: #151b3d;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #64748b;
    --border-color: #1e2749;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #f39c12 100%);
    --shadow-sm: 0 2px 10px rgba(0, 102, 255, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 102, 255, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 102, 255, 0.2);
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.robot-loader {
    margin-bottom: 30px;
}

.loading-robot {
    width: 80px;
    height: 80px;
    animation: robotFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.5));
}

.loader-text {
    color: var(--primary-color);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 3px;
    animation: pulse 1.5s ease-in-out infinite;
    width: 48px;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

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

.sidebar-header {
    padding: 20px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    filter: brightness(1.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: none;
}

.sidebar-toggle:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    overflow-y: auto;
    padding: 15px 0;
}

/* Sidebar Social Section */
.sidebar-social-section {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-links-nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 auto;
}

.social-link-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.social-link-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    z-index: -1;
}

.social-link-nav:hover {
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.social-link-nav:hover::before {
    width: 100%;
    height: 100%;
}

/* Platform-specific colors on hover */
.social-link-nav[href*="github"]:hover {
    border-color: #333;
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.4);
}

.social-link-nav[href*="linkedin"]:hover {
    border-color: #0077b5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-link-nav[href*="youtube"]:hover {
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-link-nav[href*="medium"]:hover {
    border-color: #00ab6c;
    box-shadow: 0 5px 15px rgba(0, 171, 108, 0.4);
}

.nav-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 102, 255, 0.15);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.nav-link i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 6px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
    padding: 0;
    max-width: 160px;
    margin: 0 auto 12px;
}
.social-links-contact {
    display: flex;
    gap: 8px 6px;
    justify-content: center;
}

.social-link {
    width: 32px;
    height: 32px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
}

.social-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


.sidebar-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    justify-content: center;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hide mobile menu button when sidebar is active */
.sidebar.active ~ .mobile-menu-btn {
    opacity: 0;
    pointer-events: none;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 102, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 50px 50px, 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 100px 100px, -150px -150px, 50px 50px, 50px 50px; }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
}

.floating-elements::before {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation: float1 15s ease-in-out infinite;
}

.floating-elements::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation: float2 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(0.9); }
}

.hero-container {
    width: 100%;
    padding: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.greeting {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.role-item {
    padding: 8px 16px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: flex-start;
}

.hero-cta .btn {
    flex: 0 0 auto;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
    min-width: 160px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.hero-stats .stat-item {
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-container {
    position: relative;
    z-index: 2;
}

.profile-frame {
    position: relative;
    width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 25px;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 80px rgba(0, 102, 255, 0.4);
    border: 3px solid rgba(0, 102, 255, 0.2);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 90px rgba(0, 102, 255, 0.5);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.15);
    border: 2px solid rgba(0, 102, 255, 0.4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
}

.tech-icon-1 {
    top: 15%;
    right: -40px;
    animation: techFloat1 6s ease-in-out infinite;
}

.tech-icon-2 {
    bottom: 25%;
    left: -40px;
    animation: techFloat2 8s ease-in-out infinite 1s;
}

.tech-icon-3 {
    top: 5%;
    left: -30px;
    animation: techFloat3 7s ease-in-out infinite 2s;
}

.tech-icon-4 {
    bottom: 5%;
    right: -30px;
    animation: techFloat4 9s ease-in-out infinite 3s;
}

@keyframes techFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes techFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-8deg); }
}

@keyframes techFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(12deg); }
}

@keyframes techFloat4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-10deg); }
}

/* Robot showcase removed for better visual clarity */

/* Section Styles */
section {
    padding: 50px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.intro-text {
    margin-bottom: 50px;
}
.intro-text p {
    color: var(--text-secondary);
}

.lead {
    font-size: 22px;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
}

.story-blocks {
    display: grid;
    gap: 30px;
}

.story-block {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.story-block:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.story-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.story-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Timeline */
.about-timeline h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border: 3px solid var(--darker-bg);
    border-radius: 50%;
}

.timeline-year {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.achievement-card {
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.achievement-card.featured {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-color: var(--primary-color);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
}

.achievement-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.achievement-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.achievement-year {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Projects Section */
.projects {
    background: var(--darker-bg);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

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

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    grid-auto-rows: 1fr;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 0;
    width: 100%;
}

.project-card.large {
    grid-column: span 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.project-card.large .project-image {
    height: 180px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.project-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-tag {
    padding: 4px 8px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 22px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info span:first-child {
    font-weight: 500;
}

.skill-info span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 2s ease-in-out;
}

/* Certifications */
.certifications h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

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

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    transition: var(--transition);
}

.cert-item:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-3px);
}

.cert-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.cert-item span {
    font-weight: 500;
    font-size: 14px;
}

/* Logos & Icons Section */
.logos-icons-section {
    margin-top: 60px;
}

.logos-icons-section .section-heading-middle {
    text-align: center;
    margin-bottom: 50px;
}

.logos-icons-section .sub-heading {
    justify-content: center;
    margin-bottom: 20px;
}

.logos-icons-section .sub-heading img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.logos-icons-section .sub-heading p {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-icons-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.partner-list-container {
    margin-top: 50px;
}

.logo-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-card {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.partner-card:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-3px);
}

.partner-img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive adjustments for logos */
@media (max-width: 768px) {
    .logo-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-card {
        padding: 20px;
        max-width: 200px;
    }
    
    .partner-img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .logo-carousel {
        grid-template-columns: 1fr;
    }
}

/* Certificates Section - Legacy (Overridden by new styles) */

.certificates-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

/* Realistic Book Container */
.certificate-book-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.certificate-book {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    perspective: 2000px;
    perspective-origin: center center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(0, 102, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
    overflow: visible;
}

/* Book Spine */
.book-spine {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% - 40px);
    background: linear-gradient(to bottom, 
        rgba(0, 102, 255, 0.3) 0%, 
        rgba(0, 102, 255, 0.6) 50%, 
        rgba(0, 102, 255, 0.3) 100%);
    border-radius: 2px;
    z-index: 100;
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.4);
}

/* Book Spreads - BookBlock Style */
.book-spread {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-spread.bb-current {
    display: flex;
    z-index: 10;
}

/* BookBlock Flip States with Animate.css */
.book-spread.bb-flip-next {
    display: flex;
    z-index: 15;
    transform-origin: right center;
    transform: rotateY(-180deg);
}

.book-spread.bb-flip-prev {
    display: flex;
    z-index: 15;
    transform-origin: left center;
    transform: rotateY(180deg);
}

/* Animate.css enhancements for BookBlock */
.book-spread.animate__rotateOutY {
    transform-origin: right center;
    --animate-duration: 1s;
}

.book-spread.animate__rotateOutUpLeft {
    transform-origin: left center;
    --animate-duration: 1s;
}

.book-spread.animate__fadeInUp {
    --animate-duration: 0.8s;
    --animate-delay: 0.2s;
}

/* Enhanced certificate book entrance */
.certificate-book-container.animate__fadeInUp {
    --animate-duration: 1.2s;
}

.certificate-book.animate__zoomIn {
    --animate-duration: 1s;
    --animate-delay: 0.3s;
}

/* Individual Pages within Spreads */
.book-page {
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 2px 2px 15px rgba(0, 102, 255, 0.08);
    position: relative;
}

.book-page.left-page {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transform-origin: right center;
}

.book-page.right-page {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    transform-origin: left center;
}

/* Page Flip Animations - BookBlock Style */
.book-spread.bb-flip-next {
    display: flex;
    z-index: 15;
    animation: bbFlipNext 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.book-spread.bb-flip-prev {
    display: flex;
    z-index: 15;
    animation: bbFlipPrev 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Smooth fade-in for incoming spread */
.book-spread.bb-fade-in {
    display: flex;
    z-index: 10;
    animation: fadeInSpread 500ms ease-out forwards;
}

/* BookBlock Shadow Overlays for Realism */
.book-spread::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        transparent 20%, 
        transparent 80%, 
        rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 500ms ease;
    pointer-events: none;
    z-index: 100;
    border-radius: 15px;
}

.book-spread.bb-flip-next::before,
.book-spread.bb-flip-prev::before {
    animation: shadowFlipEffect 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Shadow animation during page flip */
@keyframes shadowFlipEffect {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Page Shadows for Realism */
.book-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.1) 0%, 
        transparent 5%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 10px;
}


/* Enhanced page lighting effects during flip */
.book-spread.bb-flip-next .book-page::before,
.book-spread.bb-flip-prev .book-page::before {
    animation: pageHighlightEffect 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Page highlight animation during flip */
@keyframes pageHighlightEffect {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
    }
}

/* Year Tag */
.cert-year-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

/* Page Content */
.page-content {
    padding: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Cover Page */
.certificate-cover {
    text-align: center;
}

.cover-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 102, 255, 0.3);
}

.certificate-cover h4 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.certificate-cover p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cover-subtitle {
    font-size: 13px;
    color: var(--primary-color);
    font-style: italic;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Certificate Display */
.certificate-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.certificate-display.image-only {
    justify-content: center;
}

.certificate-display.text-only {
    justify-content: flex-start;
    padding: 20px;
}

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

.cert-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.15);
    border: 2px solid rgba(0, 102, 255, 0.2);
}

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

.cert-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cert-info p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.8;
    text-align: justify;
}

/* Navigation Controls */
.book-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.book-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056cc 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
}

.book-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-counter {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificate-book {
        height: 450px;
        padding: 15px;
    }
    
    .page-content {
        padding: 25px;
    }
    
    .certificate-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .cert-image-container {
        flex: none;
    }
    
    .cert-image {
        max-width: 250px;
        max-height: 200px;
    }
    
    .cert-info {
        padding-left: 0;
        text-align: center;
    }
    
    .cert-info h4 {
        font-size: 20px;
    }
    
    .cert-info p {
        font-size: 14px;
        text-align: center;
    }
    
    .book-controls {
        gap: 20px;
    }
    
    .book-btn span {
        display: none;
    }
    
    .cover-icon {
        font-size: 50px;
    }
    
    .certificate-cover h4 {
        font-size: 24px;
    }
}

/* Video Section */
.media {
    background: var(--darker-bg);
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.content-section-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
}

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

.media-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.media-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
}

.media-card:hover .media-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    cursor: pointer;
}

.play-button a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 11;
}

.media-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

.media-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: white;
    font-weight: 500;
}

.media-info {
    padding: 20px;
}

.media-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.media-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.media-stats i {
    margin-right: 4px;
}


.media-cta {
    text-align: center;
}

.media-cta .btn {
    animation: none !important;
}

.media-cta .btn * {
    animation: none !important;
}

/* YouTube Channel Section */
.youtube-channel-section {
    margin-top: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 102, 255, 0.05);
    border-radius: 20px;
}

.channel-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.channel-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.channel-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

.channel-cta {
    text-align: center;
}

.youtube-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    animation: none !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.youtube-btn * {
    animation: none !important;
}

.youtube-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .channel-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 0 20px;
    }
    
    .channel-info h3 {
        font-size: 20px;
    }
    
    .channel-info p {
        font-size: 14px;
    }
    
    .youtube-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* YouTube Channel Modal */
.youtube-channel-modal {
    max-width: 600px;
    width: 95%;
}

.channel-preview {
    padding: 20px 0;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.channel-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    flex-shrink: 0;
}

.channel-details h4 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.channel-handle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.subscriber-count {
    color: var(--text-secondary);
    font-size: 16px;
}

.channel-description {
    margin-bottom: 25px;
}

.channel-description h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.channel-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.channel-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.channel-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.channel-features li i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.channel-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 10px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.stat-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.channel-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.channel-actions .btn {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .youtube-channel-modal {
        width: 98%;
        margin: 5px auto;
    }
    
    .channel-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .channel-avatar {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .channel-stats {
        gap: 20px;
    }
    
    .channel-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .channel-actions .btn {
        max-width: 100%;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-intro h3 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 16px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Enhanced Contact Links */


.contact-text span {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: var(--transition);
    resize: vertical;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 480px) {
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
}

.form-group select {
    padding: 15px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: var(--transition);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
    padding: 10px;
}

.form-actions {
    display: flex;
    margin-top: 20px;
    justify-content: center;
    max-width: 100%;
}

.form-actions .btn {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 25px;
    min-width: 180px;
}

@media (max-width: 768px) {
    .form-actions .btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 14px;
    }
}









/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 260px;
    }

    .hero-content {
        gap: 60px;
    }

    .project-card.large {
        grid-column: span 1;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        display: grid;
        flex-direction: column;
    }

    .hero-visual {
        order: -1;
    }

    .hero-text {
        order: 1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-container {
        padding: 40px;
    }

    .profile-frame {
        width: 350px;
        height: 350px;
    }

}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Adjust social section for mobile */
    .sidebar-header {
        padding: 15px 15px;
    }
    
    .sidebar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .nav-link i {
        font-size: 14px;
        width: 16px;
    }
    
    .sidebar-social-section {
        padding: 10px 15px;
    }
    
    .social-links-nav {
        gap: 8px;
    }
    
    .social-link-nav {
        width: 26px;
        height: 26px;
        font-size: 10px;
        border-width: 1px;
    }
    
    .sidebar-footer {
        padding: 10px 15px;
    }
    
    .social-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px 4px;
        margin-bottom: 8px;
        max-width: 140px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-width: 1px;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Show the sidebar close button on mobile */
    .sidebar-toggle {
        display: block;
    }

    .hero-container {
        padding: 20px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

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

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    .profile-frame {
        width: 280px;
        height: 280px;
    }

    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .contact-content {
        gap: 40px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .contact-details {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-intro h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .contact-intro p {
        font-size: 0.95rem;
    }

    .story-block {
        flex-direction: column;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin-bottom: 25px;
    }

    .contact-icon {
        margin-bottom: 10px;
    }

    .contact-text h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .contact-text a,
    .contact-text .location-text {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
    }

    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Certificate Magazine Book Styles */
.certificates-header {
    width: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(37, 99, 235, 0.02) 100%);
    padding: 60px 20px 40px;
    margin-bottom: 40px;
    margin-top: -40px;
    border-bottom: 2px solid var(--border-color);
    z-index: 100;
    box-sizing: border-box;
}

.certificates-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.certificates-header .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certificates-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.certificates-header .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.book-container {
    perspective: 2000px;
    width: 100%;
    max-width: 1400px;
    height: 650px;
    position: relative;
    margin: 20px auto 0;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    padding: 30px;
    z-index: 1;
}

.book {
    width: 50%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: left center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.page-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Full image page content styling */
.page:not(.cover-page) .page-content:has(.certificate-image-full) {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual page styles */
.page1 { z-index: 8; }
.page2 { z-index: 7; }
.page3 { z-index: 6; }
.page4 { z-index: 5; }
.page5 { z-index: 4; }
.page6 { z-index: 3; }
.page7 { z-index: 2; }
.page8 { z-index: 1; }
.page9 { z-index: 0; }

/* Certificate Page Styling */
.certificate-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.certificate-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.certificate-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.9;
}

.certificate-image {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.certificate-image:hover {
    transform: scale(1.02);
}

.certificate-image-full {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.certificate-image-full:hover {
    transform: scale(1.01);
}

.video-certificate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.video-certificate-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.video-certificate-player {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.video-certificate-player iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
}

.video-certificate-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

.certificate-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.achievement-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
}

.achievement-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.achievement-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.page-number {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    opacity: 0.8;
}

/* Cover Page */
.cover-page .page-content {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.cover-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cover-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.author-info {
    margin-top: 40px;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-title {
    font-size: 1rem;
    opacity: 0.8;
}

/* Stats section for achievements */
.achievement-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,102,255,0.2);
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
    opacity: 0.9;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page entrance animations */
.page-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInContent 0.6s ease forwards;
}

.page-content > *:nth-child(1) { animation-delay: 0.1s; }
.page-content > *:nth-child(2) { animation-delay: 0.2s; }
.page-content > *:nth-child(3) { animation-delay: 0.3s; }
.page-content > *:nth-child(4) { animation-delay: 0.4s; }

/* Old Certificate Page Styling */
.old-certificate-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.certificate-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.certificate-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.certificate-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    background: white;
    padding: 10px;
}

.certificate-image:hover {
    transform: scale(1.02);
}

.certificate-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    overflow: auto;
}

.achievement-info {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.achievement-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.achievement-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.page-number {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    opacity: 0.8;
}

/* Cover Page */
.cover-page .page-content {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.cover-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cover-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.author-info {
    margin-top: 40px;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-title {
    font-size: 1rem;
    opacity: 0.8;
}

/* Navigation */
.nav-controls {
    position: absolute;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    z-index: 10;
    justify-items: center;
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    width: 100%;
    max-width: 900px;
}

.nav-btn {
    padding: 12px 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 180px;
}

.nav-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-btn:hover:before,
.nav-btn.active:before {
    left: 0;
}

.nav-btn:hover,
.nav-btn.active {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Page turning states */
.page.turned {
    transform: rotateY(-180deg);
    opacity: 1 !important;
    visibility: visible !important;
}

.page.turning {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1 !important;
    visibility: visible !important;
}

.page:not(.turned) {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hover effects */
.page:not(.turned):hover {
    transform: rotateY(-10deg) translateZ(20px);
    box-shadow: var(--shadow-heavy);
}

/* Stats section for achievements */
.achievement-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.achievement-stats .stat-item {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border: 1px solid #e5e7eb;
}

.achievement-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,102,255,0.2);
}

.achievement-stats .stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
    opacity: 0.9;
}

/* Content animations - Simplified */
.page-content .certificate-header,
.page-content .achievement-title,
.page-content .page-number {
    opacity: 1;
    transform: none;
}

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

@keyframes fadeInScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Simplified Page Content */
.simple-cover {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.simple-cover .cover-icon {
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.8;
}

.simple-cover h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.simple-cover p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.simple-page {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.simple-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c1810;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.simple-date {
    font-size: 0.8rem;
    color: #666666;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.simple-image {
    width: 90%;
    max-width: 300px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.simple-desc {
    font-size: 0.9rem;
    color: #555555;
    margin: 0;
    padding: 0 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

/* Responsive design for certificate magazine */
@media (max-width: 1000px) {
    .book-container {
        width: 100%;
        max-width: none;
        height: 60vh;
        min-height: 500px;
        margin: 20px 0;
        padding: 10px;
    }
    
    .certificates-header .section-title {
        font-size: 2.4rem;
    }
    
    .certificates-header .section-subtitle {
        font-size: 1.1rem;
    }
    
    .cover-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .certificates-header {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .certificates-section {
        padding-bottom: 250px;
    }
    
    .certificates-header .section-title {
        font-size: 1.8rem;
    }
    
    .certificates-header .section-subtitle {
        font-size: 0.9rem;
    }
    
    .book-container {
        width: 100%;
        max-width: none;
        padding: 10px;
        height: 55vh;
        min-height: 450px;
        margin: 15px 0;
    }
    
    .page-content {
        padding: 15px;
    }
    
    /* Maintain padding for full image pages on mobile */
    .page:not(.cover-page) .page-content:has(.certificate-image-full) {
        padding: 15px;
    }
    
    .nav-controls {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        max-width: 100%;
        padding-bottom: 20px;
        bottom: -180px;
        padding-top: 25px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 6px;
        max-width: none;
    }
    
    .certificate-title {
        font-size: 1.4rem;
    }
    
    .cover-title {
        font-size: 1.6rem;
        word-break: break-word;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .author-name {
        font-size: 1.2rem;
    }
    
    .author-title {
        font-size: 0.9rem;
    }
    
    .cover-subtitle {
        font-size: 1rem;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .book-container {
        width: 100%;
        max-width: none;
        padding: 8px;
        margin: 10px 0;
    }
    
    /* Maintain padding for full image pages on smaller mobile */
    .page:not(.cover-page) .page-content:has(.certificate-image-full) {
        padding: 12px;
    }
    
    .nav-controls {
        grid-template-columns: repeat(5, 1fr);
        bottom: -200px;
        gap: 4px;
        max-width: 100%;
        padding-bottom: 25px;
        padding-top: 25px;
    }
    
    .nav-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        gap: 4px;
        max-width: none;
    }
    
    .achievement-stats {
        grid-template-columns: 1fr;
    }
    
    .cover-title {
        font-size: 1.4rem !important;
        letter-spacing: 1px;
        word-break: break-word;
        line-height: 1.1;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .certificates-header {
        padding: 30px 0;
    }
    
    .certificates-header .section-title {
        font-size: 1.8rem;
    }
    
    .certificates-header .section-subtitle {
        font-size: 0.95rem;
    }
    
    .certificates-header .section-title::after {
        width: 60px;
        height: 2px;
    }
    
    .book-container {
        padding: 5px;
        margin: 5px 0;
        height: 50vh;
        min-height: 400px;
    }
    
    .cover-title {
        font-size: 1.3rem !important;
        letter-spacing: 0.5px;
        word-break: break-word;
        line-height: 1.1;
        margin-bottom: 10px;
    }
    
    .cover-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-title {
        font-size: 0.8rem;
    }
    
    .page-content {
        padding: 12px;
    }
    
    .nav-controls {
        bottom: -200px;
        padding-top: 30px;
        padding-bottom: 30px;
        gap: 3px;
    }
    
    .nav-btn {
        padding: 5px 6px;
        font-size: 0.65rem;
        gap: 3px;
    }
    
    .certificates-section {
        padding-bottom: 280px;
    }
}