:root{
  --bg:#1a1a1a;
  --fg:#e0e0e0;
  --accent:#66ff99;
  --accent-soft:rgba(102,255,153,0.3);
  --muted:#bdbdbd;
  --card:#222;
  --card-border:#2b2b2b;
  --shadow:rgba(0,0,0,0.3);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html,body{
  background-color:var(--bg);
  color:var(--fg);
  font-family:Arial, sans-serif;
  line-height:1.6;
}

a{ color:var(--fg); text-decoration:none; }
img{ display:block; max-width:100%; height:auto; }

.site-header{
  position:sticky; top:0; z-index:10;
  background:#141414;
  border-bottom:1px solid var(--card-border);
}

.nav{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; gap:14px;
  padding:12px 16px;
}

.nav a{
  opacity:.9;
  padding:6px 10px;
  border-radius:8px;
}
.nav a:hover{ color:var(--accent); }

.cta-link{
  margin-left:auto;
  border:1px solid var(--accent);
  color:var(--accent);
  border-radius:10px;
  padding:6px 12px;
}

.menu-toggle{
  display:none;
  margin-left:8px;
  background:transparent; color:var(--fg);
  border:1px solid var(--card-border);
  border-radius:8px; padding:6px 10px; cursor:pointer;
}

.section{
  max-width:1100px;
  margin:0 auto;
  padding:56px 16px;
  border-bottom:1px solid var(--card-border);
}

.section-title{
  font-size:1.8rem;
  font-weight:800;
  margin-bottom:20px;
  color:var(--accent);
  text-shadow:2px 2px 4px var(--shadow);
}

.subheading{
  font-size:1rem;
  color:var(--accent);
  margin:18px 0 10px 0;
}

.intro{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
}

.title{
  font-size:2rem; font-weight:bold; color:var(--accent);
  text-shadow:2px 2px 4px var(--shadow);
}
.subtitle{ color:var(--muted); margin:6px 0 8px; }
.message{ font-size:1rem; opacity:.9; }

.media-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px; margin:16px 0 10px;
}
.media-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:12px;
}
.media-placeholder{
  width:100%; aspect-ratio:16/9;
  display:flex; align-items:center; justify-content:center;
  background:#151515;
  border-radius:8px;
  margin-bottom:10px;
  cursor: pointer;
  position: relative;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #0a0a0a;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.spinner{
  width:80px; height:80px;
  border:8px solid var(--accent-soft);
  border-top:8px solid var(--accent);
  border-radius:50%;
  animation:spin 2s linear infinite;
  margin:0 auto;
}
@keyframes spin{ 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
.media-caption{ font-size:.9rem; color:var(--muted); }

.pill-list{
  list-style:none; display:flex; flex-wrap:wrap; gap:8px;
}
.pill{
  border:1px solid var(--accent);
  color:var(--accent);
  padding:6px 10px; border-radius:999px;
  font-size:.9rem;
  background:rgba(102,255,153,0.06);
}
.pill:hover{ background:rgba(102,255,153,0.12); }
.pill-list.center{ justify-content:center; }

.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:16px;
  box-shadow:0 6px 16px rgba(0,0,0,0.25);
}

.card-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
  max-height: 200px;
}

.card-title{ font-weight:700; margin-bottom:6px; }
.card-role{ color:var(--accent); margin-bottom:4px; }
.card-desc{ color:var(--muted); }

.skills-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.skill-group{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:16px;
}

.button{
  display:inline-block;
  background:var(--accent);
  color:#0a0a0a;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--accent);
  font-weight:700;
}
.button:hover{ filter:brightness(0.95); }
.button.ghost{
  background:transparent;
  color:var(--accent);
  border:1px solid var(--accent);
}

.cta-buttons{
  display:flex; gap:12px; flex-wrap:wrap; justify-content:center;
}

/* Custom Video Player Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.video-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.video-player-container {
  position: relative;
  width: 100%;
  background: #000;
}

.video-player {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px 15px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player-container:hover .video-controls,
.video-controls.show {
  opacity: 1;
}

.play-pause-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s;
}

.play-pause-btn:hover {
  background: rgba(255,255,255,0.2);
}

.progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.time-display {
  color: white;
  font-size: 14px;
  min-width: 80px;
  text-align: center;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.volume-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s;
}

.volume-btn:hover {
  background: rgba(255,255,255,0.2);
}

.volume-slider {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.quality-selector {
  position: relative;
}

.quality-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.quality-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quality-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 5px 0;
  min-width: 80px;
  display: none;
  margin-bottom: 5px;
}

.quality-menu.show {
  display: block;
}

.quality-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--fg);
  transition: background 0.2s;
}

.quality-option:hover {
  background: rgba(102,255,153,0.1);
}

.quality-option.active {
  color: var(--accent);
  background: rgba(102,255,153,0.1);
}

.fullscreen-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s;
}

.fullscreen-btn:hover {
  background: rgba(255,255,255,0.2);
}

.video-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

video:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  object-fit: contain; 
  background: #000;
}

.video-player-container:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.video-player-container:fullscreen .video-player {
  flex: 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.video-player-container:fullscreen .video-controls {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.video-close:hover {
  background: rgba(0,0,0,0.8);
  color: var(--accent);
}

@media (max-width: 900px){
  .media-grid{ grid-template-columns:1fr 1fr; }
  .cards{ grid-template-columns:1fr 1fr; }
  .skills-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px){
  .nav a{ display:none; }
  .menu-toggle{ display:block; }
  .media-grid,
  .cards,
  .skills-grid{ grid-template-columns:1fr; }
  .intro{ flex-direction:column; text-align:center; }
  
  .video-modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .video-controls {
    padding: 15px 10px 10px;
    gap: 8px;
  }
  
  .time-display {
    font-size: 12px;
    min-width: 70px;
  }
  
  .volume-slider {
    width: 40px;
  }
}

