/* ============================================================
   UTPAL.PRO — Professional Portfolio
   Stylesheet v1.0
   ============================================================ */

/* ---------- CSS Reset & Variables ---------- */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  --bg:         #090e18;
  --bg-2:       #0d1526;
  --bg-card:    #111827;
  --bg-card2:   #141e30;
  --accent:     #3b82f6;
  --accent-2:   #60a5fa;
  --accent-glow:#1d4ed8;
  --teal:       #14b8a6;
  --purple:     #a78bfa;
  --text:       #e2e8f0;
  --text-2:     #94a3b8;
  --text-3:     #64748b;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(59,130,246,0.25);
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.6);
  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --nav-h:      68px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

::selection { background: rgba(59,130,246,0.3); color: #fff; }

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

/* ---------- Utility ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.dot { color: var(--accent); }

/* ---------- Navbar ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(9,14,24,0.75);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(9,14,24,0.95);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -1px;
  color: #fff; flex-shrink: 0;
}
.nav-links {
  display: flex; list-style: none; gap: 28px; margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--accent-2);
  box-shadow: 0 0 20px rgba(59,130,246,0.5);
  transform: translateY(-1px);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 6vw 60px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px; top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 60%);
}
.orb-2 {
  width: 500px; height: 500px; top: 30%; right: -100px;
  background: radial-gradient(circle, rgba(20,184,166,0.12), transparent 60%);
  animation-delay: -4s;
}
.orb-3 {
  width: 400px; height: 400px; bottom: -100px; left: 30%;
  background: radial-gradient(circle, rgba(167,139,250,0.1), transparent 60%);
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-10px, 10px); }
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(20,184,166,0.3);
  background: rgba(20,184,166,0.08);
  color: var(--teal); font-size: 0.8rem; font-weight: 500;
  margin-bottom: 24px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-name {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -3px; margin-bottom: 16px;
  color: #fff;
}
.hero-title-wrap {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--accent-2); margin-bottom: 24px; min-height: 1.5em;
}
.cursor { animation: blink 1s step-end infinite; opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc {
  font-size: 1.05rem; color: var(--text-2); line-height: 1.75;
  max-width: 500px; margin-bottom: 36px;
}
.hero-desc strong { color: var(--text); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 30px rgba(59,130,246,0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: rgba(59,130,246,0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-large { padding: 16px 40px; font-size: 1rem; }
.hero-stats {
  display: flex; align-items: center; gap: 28px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 2rem; font-weight: 800; color: #fff; line-height: 1;
}
.plus { color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Terminal Card */
.hero-visual { position: relative; z-index: 1; }
.terminal-card {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(59,130,246,0.1);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.t-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }
.t-title {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-3); margin-left: 8px;
}
.terminal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.t-line {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.5;
  animation: fadeInLine 0.3s ease forwards;
}
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-output { color: var(--teal); padding-left: 16px; }
.t-blink { opacity: 1; }
.blink-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-2);
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-3); font-size: 0.75rem; z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-hint svg { width: 18px; height: 18px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Section Common ---------- */
section { padding: 100px 0; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--accent); letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: #fff; line-height: 1.15;
  letter-spacing: -1px;
}
.section-sub {
  margin-top: 14px; font-size: 1.05rem;
  color: var(--text-2); line-height: 1.7;
}

/* ---------- About ---------- */
#about { background: var(--bg-2); }
.about-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 60px; align-items: start;
}
.about-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.photo-frame {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 8px rgba(59,130,246,0.2),
              0 0 60px rgba(59,130,246,0.2);
}
.photo-frame::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--teal), var(--purple), var(--accent));
  z-index: -1; animation: rotateBorder 4s linear infinite;
}
@keyframes rotateBorder { to { transform: rotate(360deg); } }
.photo-initials {
  font-size: 4rem; font-weight: 900; color: #fff;
  letter-spacing: -3px;
}
.about-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-3);
}
.about-location svg { width: 14px; height: 14px; fill: var(--accent); }
.about-lead {
  font-size: 1.15rem; font-weight: 600; color: var(--text);
  line-height: 1.6; margin-bottom: 16px;
}
.about-text p { color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.about-text p strong { color: var(--text); }
.about-highlights { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.highlight-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-2);
}
.highlight-item svg { width: 16px; height: 16px; stroke: var(--teal); flex-shrink: 0; }

/* ---------- Experience ---------- */
#experience { background: var(--bg); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 40px 1fr; gap: 24px; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.marker-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 12px rgba(59,130,246,0.6);
  flex-shrink: 0;
}
.marker-line {
  width: 2px; flex: 1; min-height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-top: 6px;
  opacity: 0.4;
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.timeline-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.08), var(--shadow);
  transform: translateX(4px);
}
.timeline-card.current {
  border-color: rgba(20,184,166,0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(20,184,166,0.04));
}
.card-badge {
  display: inline-flex; position: absolute; top: 16px; right: 20px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(20,184,166,0.15); color: var(--teal);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  border: 1px solid rgba(20,184,166,0.3);
}
.card-meta {
  display: flex; gap: 16px; margin-bottom: 10px;
  font-size: 0.8rem; color: var(--text-3); font-family: var(--mono);
}
.card-title {
  font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.card-company {
  font-size: 0.9rem; color: var(--accent-2); font-weight: 500; margin-bottom: 16px;
}
.card-duties {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px;
}
.card-duties li {
  font-size: 0.9rem; color: var(--text-2); padding-left: 18px; position: relative;
}
.card-duties li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-size: 0.8rem;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags span, .skill-tags span {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(59,130,246,0.1); color: var(--accent-2);
  font-size: 0.75rem; font-weight: 500;
  border: 1px solid rgba(59,130,246,0.15);
}

/* ---------- Skills ---------- */
#skills { background: var(--bg-2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.skill-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.08), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.skill-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,0.1); border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(59,130,246,0.15);
}
.skill-icon svg { width: 24px; height: 24px; stroke: var(--accent-2); }
.skill-card h3 {
  font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.skill-card p { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Education ---------- */
#education { background: var(--bg); }
.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.edu-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.edu-card.current-edu {
  border-color: rgba(167,139,250,0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(167,139,250,0.04));
}
.edu-icon {
  width: 52px; height: 52px;
  background: rgba(167,139,250,0.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(167,139,250,0.15);
}
.edu-icon svg { width: 26px; height: 26px; stroke: var(--purple); }
.edu-badge {
  position: absolute; top: 16px; right: 20px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(167,139,250,0.15); color: var(--purple);
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(167,139,250,0.3);
}
.edu-card h3 {
  font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px;
  line-height: 1.35;
}
.edu-institute {
  font-size: 0.9rem; color: var(--accent-2); font-weight: 600; margin-bottom: 12px;
}
.edu-note { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

/* ---------- Contact ---------- */
#contact { background: var(--bg-2); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.contact-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(59,130,246,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(59,130,246,0.15);
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--accent-2); }
.contact-card h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); margin-bottom: 8px;
}
.contact-card a, .contact-card span {
  font-size: 0.95rem; color: var(--text);
  transition: color 0.2s;
}
.contact-card a:hover { color: var(--accent-2); }
.contact-cta { text-align: center; }
.contact-cta p {
  font-size: 1.1rem; color: var(--text-2); margin-bottom: 20px;
}

/* ---------- Footer ---------- */
#footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; margin-bottom: 36px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .nav-logo { font-size: 1.8rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-3); line-height: 1.6; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.875rem; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); text-align: center; }

/* ---------- Scroll Animations ---------- */
[data-aos] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1; transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: calc(var(--nav-h) + 20px) 5vw 80px;
  }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { flex-direction: row; justify-content: flex-start; }
  .scroll-hint { display: none; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-photo-wrap { flex-direction: column; align-items: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  section { padding: 72px 0; }
  .timeline-card { padding: 20px; }
}
@media (max-width: 400px) {
  .hero-name { letter-spacing: -2px; }
  .contact-grid { grid-template-columns: 1fr; }
}

