/* ========================================================== style.css — Professional, 
modern stylesheet for Daniel's site - Theme variables for quick customization - Accessible 
focus styles and reduced-motion support - Loader, hero, glass-card, banner, cards, and responsive
rules ========================================================== */ /* ---------- Variables (theme) ---------- 
*/ :root{ --bg: #050c22; --surface: rgba(255,255,255,0.04); --glass: rgba(255,255,255,0.12); --glass-border: rgba(255,255,255,0.14); --primary: #1e90ff; --primary-2: #3aa3ff; --muted: #b3c4ff; --muted-2: #8fa6d1; --text: #e4eeff; --danger: #ff3b30; --danger-dark: #cc2e25; --radius-lg: 14px; --radius-md: 10px; --max-content-width: 1200px; --transition-fast: 180ms cubic-bezier(.2,.9,.3,1); --glass-blur: 10px; } /* ---------- Base Reset & Accessibility ---------- */ * { box-sizing: border-box; margin: 0; padding: 0; } html,body { height: 100%; } body { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: radial-gradient(1200px 600px at 10% 10%, rgba(30,144,255,0.06), transparent 12%), linear-gradient(180deg, var(--bg), #020417 120%); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.45; overflow-x: hidden; } /* Respect user preference for reduced motion */ @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } } /* Utility */ 
.hidden { display: none !important; } .container { max-width: var(--max-content-width); margin: 0 auto; } /* ---------- Header / Nav ---------- */ header { width: 100%; max-width: var(--max-content-width); margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(0,0,30,0.18); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 90; border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); } .logo { font-size: 1.125rem; font-weight: 800; color: var(--primary); letter-spacing: 0.2px; } nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } nav a { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 9px; font-weight: 600; transition: color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast); } nav a:hover { color: #fff; transform: translateY(-2px); background: rgba(255,255,255,0.02); } nav a:focus-visible { outline: 3px solid rgba(30,144,255,0.14); outline-offset: 3px; border-radius: 9px; }

/* ---------- HERO ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 100px 8%;
  gap: 28px;
  max-width: var(--max-content-width);
  margin: 0 auto;
}
.hero .glass-box { max-width: 520px; width: 100%; }
.hero h1 {
  font-size: 2.25rem;
  line-height: 1.02;
  margin-bottom: 8px;
  color: linear-gradient(90deg,var(--text), #fff);
  letter-spacing: -0.2px;
}
.hero h3 { color: #9bb4ff; margin: 10px 0 14px; font-weight: 500; }

/* Buttons (generic) */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.btn:focus-visible {
  outline: 3px solid rgba(30,144,255,0.14);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Primary button — used for main CTAs */
.btn--primary,
.btn { /* default .btn maps to primary for index usage */
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(30,144,255,0.14);
}
.btn--primary:hover,
.btn:hover { transform: translateY(-3px) scale(1.02); }

/* Secondary / neutral */
.btn--neutral {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.04);
}
.btn--neutral:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.36); transform: translateY(-2px); }

/* ---------- Profile Picture ---------- */
.profile-pic img {
  width: 260px;
  max-width: 100%;
  border-radius: 12%;
  border: 3px solid var(--primary);
  box-shadow: 0 12px 40px rgba(30,144,255,0.18);
  display: block;
}

/* ---------- Sections ---------- */
section {
  padding: 60px 8%;
  text-align: center;
}
h2 {
  font-size: 1.375rem;
  margin-bottom: 20px;
  color: var(--primary);
}

/* About & glass card */
.glass-box {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 18px;
  padding: 30px;
  color: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 26px rgba(0,0,0,0.28);
  margin: 10px auto;
}

/* ---------- Skills ---------- */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.skill {
  background: rgba(30,144,255,0.07);
  border: 1px solid rgba(30,144,255,0.14);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  color: #cfe6ff;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.skill:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---------- Projects Grid & Cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}
.card h3 { font-size: 1.125rem; color: #f7fbff; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

/* ---------- Nova Banner (alert) ---------- */
.nova-banner {
  background: #fff;
  padding: 36px 20px;
  text-align: center;
  border: 3px solid var(--danger);
  border-radius: 16px;
  margin: 28px auto;
  box-shadow: 0 8px 30px rgba(255,0,0,0.12);
  color: #0b0b0b;
  animation: glow-red 2s ease-in-out infinite alternate;
}
.nova-banner h1 { font-size: 1.85rem; margin: 8px 0; font-weight: 900; }
.nova-banner h1 span { color: var(--danger); }
.nova-banner p { font-size: 1.05rem; color: #222; margin-bottom: 16px; }
.nova-btn {
  display: inline-block;
  background: var(--danger);
  padding: 12px 30px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 8px 28px rgba(255,0,0,0.18);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.nova-btn:hover { background: var(--danger-dark); transform: scale(1.03); }

/* Nova glow keyframes */
@keyframes glow-red {
  0% { box-shadow: 0 0 8px rgba(255,0,0,0.12); transform: translateY(0); }
  100% { box-shadow: 0 0 18px rgba(255,0,0,0.28); transform: translateY(-6px); }
}

/* ---------- Moving Arrows ---------- */
.moving-arrows {
  font-size: 32px;
  color: var(--danger);
  font-weight: 800;
  animation: slide 1.2s infinite linear;
  display: inline-block;
}
@keyframes slide {
  0%   { transform: translateY(0); opacity: 1; }
  50%  { transform: translateY(10px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.n-logo {
  position: relative;
  width: 80px;
  height: 80px;
}
.n-logo span {
  position: absolute;
  background: linear-gradient(180deg,var(--primary),var(--primary-2));
  border-radius: 6px;
  animation: glow-loader 1.6s infinite alternate;
}
.n-logo .left  { width: 10px; height: 100%; left: 4px; top: 0; animation-delay: 0s; }
.n-logo .mid   { width: 10px; height: 100%; left: 35px; top: 0; transform: skewX(-20deg); animation-delay: 0.45s; }
.n-logo .right { width: 10px; height: 100%; right: 4px; top: 0; animation-delay: 0.9s; }
#loader p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}
@keyframes glow-loader {
  0%   { box-shadow: 0 0 6px rgba(30,144,255,0.22); opacity: 0.6; transform: translateY(0); }
  100% { box-shadow: 0 0 28px rgba(30,144,255,0.48); opacity: 1; transform: translateY(-8px); }
}

/* ---------- Contact / Forms ---------- */
form { display: grid; gap: 10px; max-width: 650px; margin: 0 auto; }
label { font-size: 13px; color: var(--muted); font-weight: 700; }
input[type="text"],
input[type="email"],
textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  font-size: 14px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder { color: var(--muted-2); }

/* ---------- Footer & Utilities ---------- */
footer {
  background: rgba(0,0,30,0.6);
  text-align: center;
  padding: 20px;
  color: var(--muted);
}
.top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.top-btn:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 80px 6%; gap: 18px; }
  .hero h1 { font-size: 1.9rem; }
  .profile-pic img { width: 220px; }
  header { padding: 10px 14px; }
}

@media (max-width: 600px) {
  header .logo { width: 100%; text-align: center; order: 1; margin-bottom: 8px; }
  .hero { padding: 60px 6%; flex-direction: column-reverse; align-items: center; }
  .profile-pic img { width: 200px; }
  .nova-banner { padding: 22px 16px; margin: 20px 4%; }
  .glass-box { padding: 22px; border-radius: 14px; }
}

@media (max-width: 420px) {
  .hero { padding: 48px 6%; }
  .card { padding: 14px; }
  h2 { font-size: 1.125rem; }
  .moving-arrows { font-size: 28px; }
}

#social-dock {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 30px;
}

#social-dock li {
  position: relative;
}

#social-dock a {
  display: inline-block;
  position: relative;
}

#social-dock .tooltip {
  position: absolute;
  bottom: 90%;       /* above icon */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

#social-dock a:hover .tooltip {
  opacity: 1;
}


/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}

.timeline-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 60px 40px; /* vertical | horizontal */
  position: relative;
}

/* Timeline boxes */
.timeline-box {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.timeline-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.6);
}


/* Arrows logic */
/* left -> middle */
.timeline-box:nth-child(3n-2)::after {
  top: 50%;
  right: -20px;
}

/* middle -> right */
.timeline-box:nth-child(3n-1)::after {
  top: 50%;
  right: -20px;
}

/* right -> next row left */
.timeline-box:nth-child(3n)::after {
  bottom: -60px;
  left: 50%;
  width: 4px;
  height: 60px;
}


/* Responsive: stack vertically on small screens */
@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .timeline-box::after, .timeline-box::before {
    display: none;
  }
}














