@font-face {
  font-family: 'TT Travels Next';
  src: url('TT_Travels_Next_Trial_Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

:root {
  --glass-bg:      rgba(255,255,255,0.08);
  --glass-border:  rgba(255,255,255,0.15);
  --active-bg:     rgba(255,255,255,0.18);
  --active-border: rgba(255,255,255,0.35);
  --text-dim:      rgba(255,255,255,0.50);
  --text-bright:   rgba(255,255,255,0.97);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  cursor: default;
}

body {
  background-color: #110c26;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(56, 91, 191, 0.85) 0%, rgba(56, 91, 191, 0.3) 35%, transparent 70%),
    radial-gradient(ellipse at var(--b1x) var(--b1y), #ff4db8 0%, transparent 55%),
    radial-gradient(ellipse at var(--b2x) var(--b2y), #ffe033 0%, transparent 45%),
    radial-gradient(ellipse at var(--b3x) var(--b3y), #33ff99 0%, transparent 50%),
    radial-gradient(ellipse at var(--b4x) var(--b4y), #3399ff 0%, transparent 52%),
    radial-gradient(ellipse at var(--b5x) var(--b5y), #aa44ff 0%, transparent 48%),
    radial-gradient(ellipse at var(--b6x) var(--b6y), #00eeff 0%, transparent 45%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-attachment: fixed;
}

#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 1;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

#scrollArea {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
}

.simplebar-scrollbar::before {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: background 0.2s ease, opacity 0.3s ease;
}

.simplebar-scrollbar.simplebar-visible::before {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.simplebar-track.simplebar-vertical {
  width: 8px;
  right: 8px;
}

.simplebar-track.simplebar-vertical .simplebar-scrollbar::before {
  top: 2px;
  bottom: 2px;
  left: 1px;
  right: 1px;
}

.page-content {
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 5vh auto 0;
  padding: 40px 0 160px 0;
  transition: max-width 0.4s ease, width 0.4s ease;
}

.page-content.wide-layout {
  max-width: 1200px;
  width: 95%;
}

.hero-section {
  text-align: left;
  margin-bottom: 0.5rem;
}

.hero-flex-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cosmic-icon-wrapper {
  position: relative;
  width: clamp(65px, 11vw, 85px);
  height: clamp(65px, 11vw, 85px);
  flex-shrink: 0;
}

.cosmic-icon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(17, 12, 38, 0.9) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(56, 91, 191, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.1);
  z-index: 2;
  animation: floatIcon 6s ease-in-out infinite;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cosmic-icon-wrapper:hover .cosmic-icon {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.7);
  border-style: solid;
  background: rgba(255, 255, 255, 0.08);
}

.cosmic-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(56, 91, 191, 0.8) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
  animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.15); opacity: 1; }
}

.page-title {
  font-family: 'TT Travels Next', serif;
  font-size: clamp(2.3rem, 7.5vw, 4.5rem);
  color: rgba(255,255,255,0.95);
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: opacity 0.3s ease;
}

#mainContent {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.projects-grid-layout {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
}

.about-text {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
}

.intro-para { margin-bottom: 1.5rem; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.info-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.info-table tr:last-child td { border-bottom: none; }

.label-cell {
  color: rgba(255, 255, 255, 0.4);
  width: 35%;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
}

.value-cell {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'DM Sans', sans-serif;
}

.clock-container {
  margin-bottom: 1rem;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backdrop-filter: blur(5px);
  width: 100%;
}

#clock-time {
  font-family: 'DM Sans', monospace;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.clock-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.project-card:hover { transform: translateY(-5px); }

.project-card.split-card {
  flex-direction: row;
  align-items: center;
}

.project-banner-container {
  width: 100%;
  aspect-ratio: 1840 / 838;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-banner-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'TT Travels Next', serif;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #2b1f5c 0%, #150e2b 100%);
  pointer-events: none;
}

.split-card .project-banner-container {
  width: 30%;
  aspect-ratio: 1 / 1;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.project-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 2;
}

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

.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-card h3 {
  font-family: 'TT Travels Next', serif;
  font-size: 1.8rem;
  color: white;
}

.project-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.project-link-btn {
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-link-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.social-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.15);
  border: none;
  background-clip: padding-box;
  position: relative;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(56, 91, 191, 0.3);
}

.btn-icon-png { width: 20px; height: 20px; object-fit: contain; }
.btn-spotify  { background-color: #1DB954; background-image: linear-gradient(135deg, #1DB954 0%, #111111 100%); }
.btn-discord  { background-color: #5865F2; background-image: linear-gradient(135deg, #5865F2 0%, #3a45c3 100%); }
.btn-valorant { background-color: #ff4655; background-image: linear-gradient(135deg, #ff4655 0%, #bd3944 100%); }
.btn-github   { background-color: #9333ea; background-image: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%); }
.btn-roblox   { background-color: #000000; background-image: linear-gradient(135deg, #000000 0%, #444444 100%); }
.btn-passportdex { background-color: #4b4d62; background-image: linear-gradient(135deg, #bbbdcf 0%, #1a1a1e 100%); color: #ffffff !important; }
.btn-gmail { 
  background-color: #4285F4; 
  background-image: linear-gradient(135deg, #ea4335 0%, #ea4335 20%, #fbbc05 50%, #34a853 78%, #4285f4 100%); 
}

.btn-label { display: flex; align-items: center; gap: 14px; z-index: 2; }
.btn-arrow  { opacity: 0.7; font-size: 0.8rem; z-index: 2; display: flex; align-items: center; }

/* Nav */
.nav-wrap {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: auto;
  max-width: 90vw;
}

.nav-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
}

.nav-indicator {
  position: absolute; top: 8px;
  height: calc(100% - 16px);
  border-radius: 40px;
  background: var(--active-bg);
  border: 1px solid var(--active-border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none; z-index: 0;
}

.nav-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 24px;
  border-radius: 40px; border: none; background: transparent;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav-btn span { display: inline-block; position: relative; }
.nav-btn span::after {
  content: attr(data-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
  color: var(--text-bright);
  pointer-events: none;
}
.nav-btn.active { color: var(--text-bright); }
.nav-btn i { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 768px) {
  body {
    background-image:
      radial-gradient(circle at 50% 12%, rgba(56, 91, 191, 0.9) 0%, rgba(56, 91, 191, 0.2) 40%, transparent 75%),
      radial-gradient(ellipse at var(--b1x) var(--b1y), #ff4db8 0%, transparent 55%),
      radial-gradient(ellipse at var(--b2x) var(--b2y), #ffe033 0%, transparent 45%),
      radial-gradient(ellipse at var(--b3x) var(--b3y), #33ff99 0%, transparent 50%),
      radial-gradient(ellipse at var(--b4x) var(--b4y), #3399ff 0%, transparent 52%),
      radial-gradient(ellipse at var(--b5x) var(--b5y), #aa44ff 0%, transparent 48%),
      radial-gradient(ellipse at var(--b6x) var(--b6y), #00eeff 0%, transparent 45%);
  }
  #scrollArea { height: 100dvh; }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid-layout { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .page-content { padding: 40px 0 160px 0; margin-top: 0; width: 92%; }
  .page-content.wide-layout { width: 96% !important; }
  .hero-flex-container { gap: 1rem; }
  .project-card.split-card { flex-direction: column; }
  .split-card .project-banner-container { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-wrap { bottom: 20px; width: 95vw; }
  .nav-bar { gap: 2px; padding: 4px; justify-content: space-around; }
  .nav-btn { padding: 12px; gap: 0; flex: 1; justify-content: center; flex-direction: column; font-size: 0.7rem; }
  .nav-btn span { display: block; margin-top: 4px; }
  .nav-btn i { width: 20px; height: 20px; }
  .nav-indicator { top: 4px; height: calc(100% - 8px); }
  .simplebar-track.simplebar-vertical { width: 4px; right: 3px; }
}
