/**
* Modern UI layer — Jineshkumar Patel Portfolio
* Additive stylesheet loaded AFTER style.css.
* Goal: modern, fast, responsive glass-UI refresh without touching the
* Bootstrap + jQuery tab/SPA architecture. Purely visual overrides.
*/

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
  --navy-900: #020a14;
  --navy-800: #071a30;
  --navy-700: #0b2440;

  /* Accent = silver / white (theme: navy + subtle white accent).
     The --green* names are kept as aliases so all existing rules
     that reference them flip to the silver accent automatically. */
  --accent: #e6edf5;
  --accent-bright: #ffffff;
  --green: var(--accent);
  --green-deep: #c3d0de;
  --green-soft: rgba(255, 255, 255, 0.10);

  --ink: #eaf1f8;
  --ink-dim: #9fb2c6;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(255, 255, 255, 0.42);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 12px 40px rgba(150, 180, 220, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/*--------------------------------------------------------------
# Layered background (depth, not flat)
--------------------------------------------------------------*/
body::before {
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(90, 130, 190, 0.20), transparent 60%),
    radial-gradient(1000px 700px at 100% 8%, rgba(40, 90, 150, 0.22), transparent 55%),
    radial-gradient(800px 800px at 85% 110%, rgba(120, 150, 200, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, #04162b 55%, var(--navy-900) 100%);
}

/* faint technical grid overlay for texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(180, 205, 235, 0.32);
  color: #fff;
}

/* Custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 215, 235, 0.45) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(200, 215, 235, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(220, 232, 248, 0.65); background-clip: content-box; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
.nav-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/*--------------------------------------------------------------
# Header / Home hero
--------------------------------------------------------------*/
#header h1 a,
#header h1 a:hover {
  background: linear-gradient(100deg, #ffffff 0%, #dbe6f2 45%, #9fb4cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

#header h1 {
  font-size: 62px;
}

#header h2 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Hero supporting block (only on the landing state) */
.hero-extra {
  max-width: 620px;
  margin-top: 22px;
  animation: heroRise 0.7s var(--ease) both;
}

.hero-tagline {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 22px 0;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 96px;
}

.hero-stats .num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  line-height: 1.1;
}

.hero-stats .label {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 3px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
}

.btn-modern.primary {
  background: linear-gradient(135deg, #ffffff 0%, #d5e0ee 100%);
  color: #0a1a2f;
  box-shadow: var(--shadow-glow);
}

.btn-modern.primary:hover {
  transform: translateY(-2px);
  color: #0a1a2f;
  box-shadow: 0 16px 44px rgba(160, 190, 225, 0.30);
}

.btn-modern.ghost {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-modern.ghost:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
  color: #fff;
}

/* Hide hero extras once collapsed to the top bar */
#header.header-top .hero-extra {
  display: none;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Landing social links as glass chips */
#header .social-links a {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

#header .social-links a:hover {
  background: var(--green-soft);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Navigation — glass pill
--------------------------------------------------------------*/
.nav-menu ul {
  gap: 4px;
  padding: 7px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-menu li + li {
  margin-left: 0;
}

.nav-menu a {
  font-size: 15.5px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

/* replace underline indicator with a soft pill */
.nav-menu a:before { display: none; }

.nav-menu a:hover,
.nav-menu li:hover > a {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-menu .active > a {
  background: var(--green-soft);
  color: var(--green);
}

/* Collapsed top bar */
#header.header-top {
  background: rgba(4, 15, 28, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/*--------------------------------------------------------------
# Section titles
--------------------------------------------------------------*/
.section-title {
  margin-bottom: 26px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-transform: none;
  color: #fff;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  margin: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
}

/*--------------------------------------------------------------
# Reusable glass surface for card-like blocks
--------------------------------------------------------------*/
.about-me .content,
.interests .icon-box,
.services .icon-box,
.contact .info-box,
.portfolio .portfolio-wrap {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
/* Make the photo panel and the text card equal height so the two boxes
   line up top and bottom. Image is centered inside its panel. */
.about-me .row {
  align-items: stretch;
}

.about-me .col-lg-4 {
  display: flex;
}

.about-me .content {
  padding: 22px 26px;
}

.about-me .content p {
  color: #d3deea;
  line-height: 1.62;
  font-size: 14.5px;
  margin-bottom: 12px;
}

.about-me .content ul li {
  color: var(--ink);
  padding-bottom: 6px;
  font-size: 14.5px;
}

.about-me .content ul i {
  color: var(--green);
}

.about-me img.img-fluid {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #ffffff;            /* matches the photo's own backdrop */
  padding: 6px;
}

/* When columns stack (tablet/mobile), size the photo naturally */
@media (max-width: 991.98px) {
  .about-me .col-lg-4 { display: block; }
  .about-me img.img-fluid {
    height: auto;
    max-height: 420px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
}

/*--------------------------------------------------------------
# Core Expertise tiles
--------------------------------------------------------------*/
.interests .icon-box {
  border-radius: var(--radius-sm);
  padding: 16px 18px !important;
  height: 100%;
}

.interests .icon-box:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-strong) !important;
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
}

.interests .icon-box i,
.interests .icon-box svg {
  transition: transform 0.3s var(--ease);
}

.interests .icon-box:hover i,
.interests .icon-box:hover svg {
  transform: scale(1.12);
}

.interests .icon-box h3 {
  font-size: 15px;
  letter-spacing: 0.2px;
}

/*--------------------------------------------------------------
# Services-style cards (Education / Experience / Skills)
--------------------------------------------------------------*/
.services .icon-box {
  text-align: left;
  padding: 28px 30px !important;
  margin: 12px 0 !important;
}

.services .icon-box:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-strong) !important;
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
}

.services .icon-box h4,
.services .icon-box h4 a {
  color: var(--green);
}

.services .icon-box ul li {
  color: #cdd9e6;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Education: equal-height flex pair instead of inline-block */
#education .row > .col-lg-12 {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

#education .col-md-4.icon-box {
  border-radius: var(--radius) !important;
  margin: 0 !important;
  width: calc(50% - 12px);
  max-width: 520px;
  padding: 18px 22px 20px !important;      /* real inner breathing room */
  display: flex;
  flex-direction: column;
}

#education .col-md-4.icon-box img {
  border-radius: 10px;
  margin-bottom: 12px;
  max-height: 150px;
  width: auto;
  align-self: flex-start;
}

/* Compact, tidy coursework text so all items fit the box */
#education .col-md-4.icon-box p em { font-size: 15px; }
#education .col-md-4.icon-box h5 { font-size: 13px; }
#education .col-md-4.icon-box h6 { font-size: 14px; margin-bottom: 6px; }

#education .col-md-4.icon-box ul {
  padding-left: 18px !important;
  margin-bottom: 0;
}

#education .col-md-4.icon-box ul li {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 3px;
  padding: 0 10px;
}

/* keep the inner text elements flush to card padding, not double-padded */
#education .col-md-4.icon-box p,
#education .col-md-4.icon-box h5,
#education .col-md-4.icon-box h6 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/*--------------------------------------------------------------
# Experience — prominent timeline
--------------------------------------------------------------*/
#experience .icon-box {
  position: relative;
  padding-left: 34px !important;
}

/* accent rail */
#experience .icon-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green), rgba(255, 255, 255, 0.04));
}

#experience .icon-box > h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

#experience .icon-box > h4 a {
  color: var(--green) !important;
}

/* company period pill */
#experience .icon-box > h5 {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-dim) !important;
  background: var(--green-soft);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

/* role sub-blocks (the left-bordered divs) */
#experience .icon-box div[style*="border-left"] {
  border-left-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px !important;
}

#experience .icon-box div[style*="border-left"] p em {
  color: #fff;
}

#experience .icon-box div[style*="border-left"] h5 {
  color: var(--green) !important;
  font-size: 14px;
}

/* Normalize job/degree titles — some use <em> (italic), some don't.
   Keep them all upright for a consistent look. */
#experience em,
#education em {
  font-style: normal;
}

/*--------------------------------------------------------------
# Certifications (portfolio-wrap cards)
--------------------------------------------------------------*/
.portfolio .portfolio-wrap {
  border-radius: var(--radius-sm);
  padding: 14px;
}

.portfolio .portfolio-wrap:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
}

.portfolio .portfolio-wrap img {
  border-radius: 8px;
}

/* Uniform certification cards — badges are square, some certs (e.g. ITIL)
   are landscape. Give every cert card the same square frame and center
   the image with object-fit so they all line up regardless of ratio. */
#education .portfolio .portfolio-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

#education .portfolio .portfolio-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*--------------------------------------------------------------
# Skills — logo boards (kept light for logo legibility)
--------------------------------------------------------------*/
#skills .icon-box {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  padding: 24px 28px !important;
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#skills .icon-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#skills .icon-box h4 {
  color: #09203a !important;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(9, 32, 58, 0.12);
}

#skills .icon-box p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin: 18px 0 6px 0;
}

#skills .icon-box p img {
  height: 44px !important;
  width: auto !important;
  max-width: 120px;
  object-fit: contain;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
  filter: saturate(1);
}

#skills .icon-box p img:hover {
  transform: scale(1.12) translateY(-2px);
}

/*--------------------------------------------------------------
# Blogs
--------------------------------------------------------------*/
.blog-entry {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px !important;
}

.blog-entry:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow) !important;
}

.blog-title { color: var(--green) !important; font-weight: 600; }
.blog-description { color: #cdd9e6 !important; }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 26px !important;
}

.contact .info-box:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
}

.contact .info-box i.bx {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.contact .info-box h3 { color: var(--green); }

/*--------------------------------------------------------------
# Links section
--------------------------------------------------------------*/
#links .icon-box {
  text-align: center;
}

#links .icon-box .icon {
  background: var(--green-soft) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

#links .icon-box:hover .icon i { color: var(--green); }

/*--------------------------------------------------------------
# Mobile navigation — glass drawer
--------------------------------------------------------------*/
.mobile-nav {
  background: rgba(4, 15, 28, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius) !important;
}

.mobile-nav a {
  border-radius: 10px;
  margin: 2px 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
  background: var(--green-soft);
  color: var(--green) !important;
}

.mobile-nav-toggle {
  background: rgba(4, 15, 28, 0.6) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*--------------------------------------------------------------
# Footer refinement
--------------------------------------------------------------*/
.footer {
  background: rgba(3, 12, 24, 0.82) !important;
  border-top: 1px solid var(--glass-border) !important;
}

.quote-author { color: var(--green); }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1200px) {
  #header h1 { font-size: 52px; }
}

@media (max-width: 992px) {
  #header h1 { font-size: 42px; }
  .hero-extra { margin-left: auto; margin-right: auto; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-stats, .hero-cta { justify-content: center; }
  .section-title h2 { font-size: 26px; }
  #education .col-md-4.icon-box { width: 100%; }
}

@media (max-width: 768px) {
  #header h1 { font-size: 36px; }
  .hero-tagline { font-size: 15px; }
  .nav-menu ul { flex-wrap: wrap; justify-content: center; }
  .services .icon-box { padding: 22px 20px !important; }
  #experience .icon-box > h4 { font-size: 19px; }
  .section-title h2 { font-size: 23px; }
  #skills .icon-box p img { height: 36px !important; }
}

@media (max-width: 480px) {
  #header h1 { font-size: 30px; }
  .hero-stats li { flex: 1 1 40%; }
  .btn-modern { flex: 1 1 100%; justify-content: center; }
}

/*--------------------------------------------------------------
# Motion & data-saving preferences
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# Neutralize leftover green from base style.css (navy + white theme)
--------------------------------------------------------------*/
a { color: var(--accent); }
a:hover { color: var(--accent-bright); }

/* Landing typing role — was green/amber with green underline */
#header h2 { color: var(--accent); }
#header h2 span,
#header h2 span.typing {
  color: var(--accent-bright);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.skip-to-content { background: #0b2440; }

/* Services (Education/Experience/Skills) hover accents */
.services .icon-box .icon { background: rgba(255, 255, 255, 0.12); }
.services .icon-box:hover .icon i { color: var(--accent-bright); }
.services .icon-box:hover .icon::before { background: rgba(255, 255, 255, 0.3); }
.services .icon-box:hover h4 a,
.services .icon-box:hover p { color: var(--accent-bright); }

/* Experience company links (inline green in HTML) */
#experience .icon-box > h4 a { color: var(--accent) !important; }
#experience .icon-box > h4 a:hover { color: var(--accent-bright) !important; }

/* Contact + social hovers */
.contact .info-box h3 { color: var(--accent); }
.contact .info-box .social-links a:hover { color: var(--accent-bright); }

/* Portfolio filters + credits + footer author */
.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active { background: rgba(255, 255, 255, 0.16); }
.credits a { color: var(--accent); }
.credits a:hover { color: var(--accent-bright); }
.footer-text .author { color: var(--accent); }
.quote-author { color: var(--accent); }
