/* Custom styles moved from inline <style> */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #131318;
  color: #e4e1e9;
}
.font-headline { font-family: 'Newsreader', serif; }
.font-label { font-family: 'Space Grotesk', sans-serif; }

/* Toast */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  z-index: 60;
  transition: transform 200ms ease, opacity 200ms ease;
}
.toast.hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.toast.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Mobile nav visible class */
#nav-links.mobile-visible { display: flex; flex-direction: column; gap: 0.5rem; position: absolute; left: 1rem; top: 64px; background: rgba(19,19,24,0.9); padding: 1rem; border-radius: 6px; }

/* Dock-style Navigation Bar */
.dock-nav {
  animation: dock-float 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
}

@keyframes dock-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.dock-nav-item {
  position: relative;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 220, 229, 0.15);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -1;
}

.dock-nav-item:hover::before {
  opacity: 1;
  transform: scale(1);
}

.dock-nav-item.active {
  color: #00dce5;
  background: rgba(0, 220, 229, 0.15);
  box-shadow: 0 0 20px rgba(0, 220, 229, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.dock-nav-item.active::before {
  opacity: 1;
  transform: scale(1);
}

/* Small helper for focus-visible improvements */
:focus { outline: 2px solid rgba(99, 247, 255, 0.12); outline-offset: 2px; }

/* Reduce selection highlight on Windows high-contrast */
::selection { background-color: #caf300; color: #002021; }

/* Make images lazy by default where possible */
img { display: block; max-width: 100%; height: auto; }

/* Ensure forms look good on small screens */
input, textarea { -webkit-font-smoothing: antialiased; }

/* Hero editor controls */
.hero-controls {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 30;
}
.hero-controls .hero-upload input { display: none; }
.hero-controls .hero-upload {
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero-controls .hero-btn {
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero-hint {
  position: absolute;
  left: 1rem;
  bottom: 0.5rem;
  color: rgba(228,225,233,0.7);
  font-size: 12px;
  z-index: 20;
}

/* Drop target styling when dragging */
.hero-drop-over { outline: 3px dashed rgba(99,247,255,0.25); }

/* Skill card content block: single unified box (removed internal divider) */
.skill-content {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Colorful underline for section headings (used for Skills) */
.section-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 1.25rem; /* space for the underline */
}
.section-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 9rem;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00dce5 0%, #caf300 33%, #ffb4ab 66%, #8b5cf6 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Projects grid and card styles */
.projects-grid { margin-top: 1.5rem; }
.project-card { 
  display: flex; 
  flex-direction: column; 
  min-height: 320px; 
  backface-visibility: hidden;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.project-card:hover::before {
  left: 100%;
}

.project-thumb { 
  height: 160px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card:hover .project-thumb {
  background: linear-gradient(135deg, rgba(0,220,229,0.15), rgba(202,243,0,0.1)) !important;
}

.project-thumb .material-symbols-outlined { 
  opacity: 0.95;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-card:hover .project-thumb .material-symbols-outlined {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.project-body { display: flex; flex-direction: column; }
.project-card:hover { 
  transform: translateY(-8px) scale(1.01); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 30px rgba(0,220,229,0.1);
}
.project-btn { 
  font-weight: 600; 
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.project-btn:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 16px rgba(0,220,229,0.3);
}

/* Reveal animation for cards */
.reveal { 
  opacity: 0; 
  transform: translateY(18px); 
  transition: opacity 560ms cubic-bezier(.2,.9,.2,1), transform 560ms cubic-bezier(.2,.9,.2,1); 
}
.reveal.in-view { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Highlight skill card borders to make each card stand out */
.skills-card {
  border: none;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

/* Make skill cards rectangular (landscape) while keeping good responsive behavior */
.skills-card {
  aspect-ratio: 16 / 9; /* wide rectangle */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Border color utilities for Skills cards (no two adjacent cards use the same color by pattern) */
.border-c1 { border-color: #00dce5; }
.border-c2 { border-color: #caf300; }
.border-c3 { border-color: #ffb4ab; }
.border-c4 { border-color: #8b5cf6; }

/* Outer boundary around the entire top row (first 4 cards) */
/* outer top-row border removed per user request */

.skills-card:hover {
  box-shadow: 0 10px 30px rgba(0,220,229,0.08);
  transform: translateY(-4px);
  z-index: 2;
}

/* Section reveal animations */
section {
  opacity: 0;
  transform: translateY(30px);
  animation: sectionReveal 0.8s ease-out forwards;
}

@keyframes sectionReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animations for sections */
#hero {
  animation-delay: 0.1s;
}

#about {
  animation-delay: 0.2s;
}

#skills {
  animation-delay: 0.3s;
}

#projects {
  animation-delay: 0.4s;
}

#education {
  animation-delay: 0.5s;
}

#contact {
  animation-delay: 0.6s;
}
