/* =========================================
   Swetha Vijayakumar — Portfolio
   ========================================= */

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

html { font-size: 16px; }

body {
  font-family: 'Lora', serif;
  background: #F5F1EC;
  color: #1A1A1A;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ---------- Wrapper ---------- */
.site-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* ---------- Header ---------- */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.site-name {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1A1A1A;
  display: inline-block;
  border-bottom: 3px solid #1A1A1A;
  padding-bottom: 4px;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.site-name a {
  color: inherit;
}

.site-name a:hover {
  opacity: 0.75;
}

.site-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #555;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0.75rem 0;
}

.nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A1A1A;
  transition: color 0.2s;
}

.nav-link:hover { color: #E8651A; }
.nav-link.active { color: #E8651A; }

/* ---------- Page heading ---------- */
.page-heading {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 2rem;
  text-align: center;
}

/* ---------- About ---------- */
.about-bio {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
  max-width: 680px;
}

/* ---------- Video grid ---------- */

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.video-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 2px;
}

.video-duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 2px;
}

.video-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.05em;
}

.video-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.35;
}

.video-card:hover .video-title { color: #E8651A; }

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 480px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #999;
  padding: 0.5rem 0;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #E8651A;
}

.form-group textarea { resize: vertical; min-height: 90px; }

.submit-btn {
  align-self: flex-start;
  background: #1A1A1A;
  color: #F5F1EC;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover { background: #E8651A; }

.form-success {
  display: none;
  font-size: 0.88rem;
  color: #E8651A;
}

/* ---------- Video grid: 2-wide cards ---------- */
.video-card--wide {
  grid-column: span 1;
}

/* Two-wide row: make 5th and 6th items span wider by using subgrid trick */
.video-grid .video-card:nth-child(4),
.video-grid .video-card:nth-child(5) {
  /* In a 3-col grid these two fill columns 1 and 2; we nudge them wider */
}

/* Redefine: use a 6-col grid so wide cards can span 3 each */
.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.video-grid .video-card {
  grid-column: span 2; /* default: span 2 of 6 = 3 cards per row */
}

.video-grid .video-card--wide {
  grid-column: span 3; /* wide: span 3 of 6 = 2 cards per row */
}

/* ---------- Thumbnail themes ---------- */

/* Motion Graphics Reel 2018 */
.thumb-reel2018 {
  background: #1A4A44;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-inner {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reel-rule {
  width: 100%;
  height: 1px;
  background: #7ECECE;
}

.reel-title-block {
  text-align: center;
  padding: 6px 0;
}

.reel-arrow {
  font-size: 0.45rem;
  color: #7ECECE;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.reel-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.1em;
}

.reel-email {
  font-size: 0.45rem;
  color: #7ECECE;
  margin-top: 2px;
}

/* Salesforce CRM Analytics */
.thumb-salesforce-crm {
  background: #1B2A3B;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.crm-columns {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  gap: 3px;
  padding: 0 6px 0;
}

.crm-col {
  flex: 1;
  font-size: 0.3rem;
  font-weight: 700;
  color: #fff;
  padding: 4px 2px;
  text-align: center;
  line-height: 1.3;
}

.crm-col:nth-child(1) { height: 55%; }
.crm-col:nth-child(2) { height: 70%; }
.crm-col:nth-child(3) { height: 85%; }
.crm-col:nth-child(4) { height: 65%; }
.crm-col:nth-child(5) { height: 75%; }

/* Hydrostatic Force */
.thumb-hydrostatic {
  background: linear-gradient(180deg, #87CEEB 50%, #4A90D9 100%);
  position: relative;
}

/* 3D Animation Reel 2017 */
.thumb-3dreel {
  background: linear-gradient(180deg, #4A0A0A 0%, #8B1A1A 50%, #C41E3A 100%);
  position: relative;
}

.thumb-3dreel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.6) 100%);
}

/* Motion Graphics Demoreel for Education */
.thumb-edureel {
  background: #E8E4DC;
  position: relative;
}

.thumb-edureel::after {
  content: '⚙';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(100,80,60,0.2);
}

/* Experience Cloud */
.thumb-expcloud {
  background: linear-gradient(135deg, #C8E6F5 0%, #A8D4F0 100%);
  position: relative;
}

.video-tag-pill {
  position: absolute;
  top: 8px; left: 8px;
  background: #0176D3;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Unavailable */
.thumb-unavailable {
  background: #D0D0D0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MFA */
.thumb-mfa {
  background: linear-gradient(135deg, #1A3A4A 0%, #0A5A5A 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.mfa-text { color: #fff; }

.mfa-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: #7ECECE;
  margin-bottom: 2px;
}

.mfa-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.3;
}

/* @salesforcedocs cards */
.thumb-whatsapp,
.thumb-nlp {
  background: linear-gradient(160deg, #4A8FA8 0%, #2A6A80 60%, #1A4A5A 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 10px;
}

.sf-doc-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

.sf-headline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  align-self: flex-end;
}

/* Short codes */
.thumb-shortcodes {
  background: linear-gradient(160deg, #7BC67A 0%, #4A8A4A 50%, #2A6A60 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 10px;
}

.sc-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
}

.sc-headline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ============================================
   CAROUSEL OVERLAY
   ============================================ */

.carousel-overlay[hidden] { display: none !important; }

.carousel-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 18, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.carousel-overlay.visible { opacity: 1; }

/* Close button */
.carousel-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.2s;
}
.carousel-close:hover { color: #fff; }

/* Prev / Next arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  line-height: 1;
  width: 3rem;
  height: 5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-nav:hover { background: rgba(255,255,255,0.18); color: #fff; }
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

/* Main body: player + info */
.carousel-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 5.5rem 1rem;
  min-height: 0;
}

.carousel-player-wrap {
  flex: 0 0 60%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.carousel-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Placeholder shown when no YouTube ID */
.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  flex-direction: column;
  gap: 0.75rem;
}
.carousel-placeholder-icon { font-size: 2.5rem; opacity: 0.3; }

/* Info panel */
.carousel-info {
  flex: 1;
  color: #fff;
  min-width: 0;
}

.carousel-index {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.carousel-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.6rem;
}

.carousel-duration {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.carousel-desc {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}

/* Bottom thumbnail strip */
.carousel-strip-wrap {
  padding: 0.75rem 5.5rem 1.25rem;
  overflow: hidden;
}

.carousel-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.carousel-strip::-webkit-scrollbar { height: 4px; }
.carousel-strip::-webkit-scrollbar-track { background: transparent; }
.carousel-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.strip-thumb {
  flex: 0 0 120px;
  height: 68px;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  overflow: hidden;
  position: relative;
}

.strip-thumb:hover { opacity: 0.75; }
.strip-thumb.active { opacity: 1; border-color: #fff; }

.strip-thumb .video-thumb {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid .video-card { grid-column: span 1; }
  .video-grid .video-card--wide { grid-column: span 1; }
  .site-nav { gap: 1.5rem; }
}

@media (max-width: 400px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid .video-card,
  .video-grid .video-card--wide { grid-column: span 1; }
}
