/* ==========================================
   1. THEME VARIABLES (Midnight Navy & White)
   ========================================== */
.dark-mode {
  --bg-color: #1a1a1f;
  --text-color: #f8fafc;
  --hero-grad-1: #1a1a1f;
  --hero-grad-2: #1a1a1f;
  --school-color: #94a3b8;
  --card-bg: #222228;
  --card-border: #2e2e35;
  --card-hover-border: #3e3e48;
  --nav-bg: rgba(26, 26, 31, 0.85);
  --btn-border: #2e2e35;
  --btn-icon-color: #94a3b8;
}

.light-mode {
  --bg-color: #f8fafc;           
  --text-color: #0f172a;         
  --hero-grad-1: #f8fafc;
  --hero-grad-2: #f8fafc;
  --school-color: #475569;
  --card-bg: #ffffff;            
  --card-border: #e2e8f0;
  --card-hover-border: #94a3b8;
  --nav-bg: rgba(248, 250, 252, 0.85);
  --btn-border: #e2e8f0;
  --btn-icon-color: #475569;
}

/* ==========================================
   2. GLOBAL STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-color) !important;
  color: var(--text-color);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 1.15rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-color);
  padding: 0 80px;
  gap: 60px;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero h1 {
  font-size: clamp(4rem, 9vw, 9rem);
  letter-spacing: 3px;
  font-weight: 800;
  min-height: 1.2em;
  display: inline-block;
  white-space: pre;
  position: relative;
  cursor: pointer;
}

.hero-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-image {
  width: 300px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(249, 168, 212, 0.25);
  box-shadow: 0 0 0 4px rgba(249, 168, 212, 0.06), 0 0 30px rgba(249, 168, 212, 0.08);
}

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

.hero-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 320px;
}

.hero-image {
  width: 300px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.06), 0 0 30px rgba(96, 165, 250, 0.08);
}


.lang-tag {
  background: rgba(96, 165, 250, 0.07);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #94a3b8;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.lang-tag:hover {
  background: rgba(96, 165, 250, 0.13);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

.light-mode .lang-tag {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.15);
  color: #475569;
}

.light-mode .lang-tag:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

@media (max-width: 768px) {
  .hero-image {
    width: 200px;
    height: 240px;
  }
  .hero-langs {
    max-width: 220px;
  }
}

/* ==========================================
   4. LINK PREVIEW HOVER ENGINE
   ========================================== */
.preview-link {
  text-decoration: none !important; 
  position: relative;               
  font-weight: 400;                 
  display: inline-block;
  white-space: nowrap;              
  color: var(--school-color) !important; 
  transition: color 0.3s ease;
}

.preview-link .highlight-target {
  color: inherit !important;
  transition: color 0.3s ease;
}

.cs-boxed {
  font-weight: 700 !important;      
  color: #94a3b8 !important;        
  background-color: rgba(255, 255, 255, 0.05); 
  border: 0.5px solid rgba(240, 240, 240, 0.15); 
  padding: 4px 10px;                
  border-radius: 6px;               
  position: relative;
  z-index: 10;                     
  margin-right: 6px;               
}

.light-mode .cs-boxed {
  color: #475569 !important;        
  background-color: rgba(0, 0, 0, 0.04); 
  border: 0.5px solid rgba(15, 23, 42, 0.1);  
}

.hover-preview {
  position: absolute;         
  bottom: 130%;               
  left: 50%;                  
  width: 210px;               
  height: 120px;              
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;       
  z-index: 2000;              
  padding: 0; 
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%); 
  transform-origin: bottom center;
  will-change: transform, opacity;
  transition: opacity 0.15s ease, visibility 0.15s; 
}

.hover-preview.active {
  opacity: 1 !important;
  visibility: visible !important;
}

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

/* ==========================================
   5. NAVIGATION
   ========================================== */
.navbar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.nav-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.nav-toggle {
  background: var(--card-bg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--btn-icon-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.nav-toggle svg {
  width: 17px;
  height: 17px;
  display: block;
}

.nav-toggle:hover {
  background-color: var(--card-border);
  color: var(--text-color);
}

.nav-icon-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.nav-icon-btn {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--btn-icon-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-icon-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.nav-icon-btn:hover {
  background-color: var(--card-border);
  color: var(--text-color);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--card-bg), 0 0 0 5.5px var(--text-color);
}

/* ==========================================
   7. DESKTOP MEDIA QUERIES
   ========================================== */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-icon-group {
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-icon-group.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}
/* ==========================================
   6. CONTENT SECTIONS
   ========================================== */
section:not(.hero) {
  padding: 120px 24px;
  max-width: 960px;
  margin: 0 auto;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--card-border);
  padding-bottom: 12px;
  letter-spacing: 1px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--card-hover-border);
}

.card h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.card p {
  color: var(--school-color);
  line-height: 1.6;
}

.card a {
  color: #6ea8fe;
  text-decoration: none;
  font-weight: 600;
}

.light-mode .card a {
  color: #0284c7;
}

.link-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.link-buttons a {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.link-buttons a:hover {
  background: var(--card-border);
}

footer {
  text-align: center;
  padding: 60px 20px;
  color: var(--school-color);
  border-top: 1px solid var(--card-border);
}

/* ==========================================
   HERO TAGLINE & BULLETS
   ========================================== */
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-top: 24px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cycle-wrapper {
  display: inline-block;
  min-width: 200px;
}

.cycle-text {
  color: #60a5fa;
  font-style: italic;
  transition: opacity 0.4s ease;
}

.hero-bullets {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-bullets li {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--school-color);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bullet-arrow {
  color: var(--school-color);
  font-weight: 600;
  opacity: 0.5;
}

.bullet-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
}

.bullet-tag.orange {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.bullet-tag.blue {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.light-mode .bullet-tag.orange {
  background: rgba(234, 88, 12, 0.08);
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.2);
}

.light-mode .bullet-tag.blue {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--school-color);
  border-top: 1px solid var(--card-border);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

section:not(.hero) {
  padding: 60px 24px;
  max-width: 960px;
  margin: 0 auto;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--card-border);
  padding-bottom: 12px;
  letter-spacing: 2px;
  font-weight: 400;
  text-transform: lowercase;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================
   PROJECT CARDS
   ========================================== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: border-color 0.3s ease;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumbnail {
  border-color: var(--card-hover-border);
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.03);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title-row h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

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

.project-links a {
  color: var(--school-color);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.project-links a svg {
  width: 18px;
  height: 18px;
}

.project-links a:hover {
  color: var(--text-color);
}

.project-meta p {
  font-size: 0.95rem;
  color: var(--school-color);
  line-height: 1.6;
  font-weight: 400;
}

#links h2 {
  border-bottom: none;
  padding-bottom: 0;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 32px;
}

.connect-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.connect-item {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--school-color);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  transition: color 0.2s ease;
}

.connect-item svg {
  width: 22px;
  height: 22px;
  color: var(--school-color);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.connect-item:hover {
  color: #60a5fa;
}

.connect-item:hover svg {
  color: #60a5fa;
}



.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-hover-border);
}

.project-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

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

.project-meta {
  padding: 20px;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-title-row h3 {
  font-size: 1.2rem;
}

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

.project-links a {
  color: var(--btn-icon-color);
  transition: color 0.2s;
}

.project-links a:hover {
  color: var(--text-color);
}

.project-links svg {
  width: 18px;
  height: 18px;
  display: block;
}

.project-meta p {
  color: var(--school-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-thumbnail {
  position: relative;
}

.thumb-img,
.thumb-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-video {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb-video.playing {
  opacity: 1;
}

.project-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}