* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #0f172a;
    --bg-secondary-light: #1e293b;
    --text-light: #f1f5f9;
    --text-secondary-light: #cbd5e1;
    --border-light: #334155;
  }
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Header */
header {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-blue);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

/* CV Buttons Section */
.cv-section {
  margin-bottom: 4rem;
}

.cv-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cv-button {
  background: var(--bg-secondary-light);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cv-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
  border-color: var(--primary-blue);
}

.cv-button i {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.cv-button h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.cv-button p {
  color: var(--text-secondary-light);
  font-size: 0.9rem;
}

/* Videos Section */
.videos-section {
  margin-bottom: 4rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-container {
  background: var(--bg-secondary-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-container h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary-light);
  font-size: 1rem;
}

.video-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.video-placeholder-content {
  text-align: center;
}

/* 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.7);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-light);
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
  color: var(--primary-blue);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.modal-body h2 {
  font-size: 1.5rem;
}

.modal-body h3 {
  font-size: 1.2rem;
}

.modal-body p {
  margin-bottom: 1rem;
  color: var(--text-secondary-light);
}

.modal-body ul,
.modal-body ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary-light);
}

.modal-body strong {
  color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer */
footer {
  background: var(--bg-secondary-light);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary-light);
  border-top: 2px solid var(--primary-blue);
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .cv-buttons {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--bg-secondary-light);
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}
