/******************************************************************
  MODERNIZED STYLE.CSS — 2025 Edition (Enhanced)
  For: https://adarshpatil.in/timewarp/
  Ultra-modern design with fluid typography, animations, and accessibility
******************************************************************/

/* -------------------------------------------------
   1. Google Fonts — Modern & Beautiful
   ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;700;900&display=swap');

/* -------------------------------------------------
   2. CSS Variables — Easy theming with dark mode support
   ------------------------------------------------- */
:root {
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Colors - Light Mode */
  --text: #0f172a;
  --text-light: #475569;
  --text-lighter: #64748b;
  --accent: #e64a19;
  --accent-dark: #c63e0f;
  --accent-light: #ff6b35;
  --bg: #ffffff;
  --light: #f8fafc;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  
  /* Gradients */
  --accent-gradient: linear-gradient(135deg, #e64a19 0%, #ff6b35 100%);
  
  /* Glass effects */
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 20px 60px rgba(230, 74, 25, 0.15);
  --glow: 0 0 0 1px rgba(230, 74, 25, 0.1);
  
  /* Spacing & Layout */
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --sticky-offset: 0px;
}

/* Dark Mode Support
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;
    --bg: #0f172a;
    --light: #1e293b;
    --border: #334155;
    --card-bg: #1e293b;
    --glass: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(51, 65, 85, 0.5);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}*/

/* -------------------------------------------------
   3. Reset & Base Styles
   ------------------------------------------------- */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-offset);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* -------------------------------------------------
   4. Typography — Fluid & Responsive
   ------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

h1 { 
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
}
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 4vw, 2rem); }
h4 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p { 
  margin-bottom: 1.75rem; 
  color: var(--text-light);
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Enhanced Link Styles */
a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(transparent calc(100% - 2px), currentColor 2px);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--accent-dark);
  background-size: 100% 100%;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: var(--transition);
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}

/* -------------------------------------------------
   5. Layout — Responsive & Modern
   ------------------------------------------------- */
#header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}


#header-wrapper.scrolled {
  padding: 1rem 5%;
  box-shadow: var(--shadow-md);
}

#header {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

#header-text {
  flex: 1 1 auto;
}

.pic {
  flex-shrink: 0;
}

.pic img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Navigation */
#menu-wrapper {
  width: 100%;
}

#main-menu {
  position: relative;
  padding: 0;
  font-family: var(--font-serif);
}

#main-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

#main-menu li {
  margin: 0;
}

#main-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.5rem 0;
  position: relative;
  background: none;
  transition: var(--transition);
}

#main-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 0;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

#main-menu a:hover,
#main-menu .selected {
  color: var(--text);
}

#main-menu a:hover::after,
#main-menu .selected::after {
  width: 100%;
}

/* for mobile displays of menu items. */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.menu-toggle .bars {
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}

.menu-toggle .bars::before {
  top: -6px;
}

.menu-toggle .bars::after {
  top: 6px;
}

.menu-toggle .label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Main Content */
#content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 5% 1rem;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

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

/* -------------------------------------------------
   6. Content Elements — Enhanced Typography
   ------------------------------------------------- */
blockquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-light);
  border-left: 5px solid var(--accent);
  margin: 3rem 0;
  padding: 2rem 0 2rem 3.5rem;
  background: none;
  text-align: left;
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.15;
  font-family: var(--font-serif);
  line-height: 1;
  font-style: normal;
}

.dropcap {
  float: left;
  font-size: 4.5rem;
  line-height: 1;
  margin: 0.1em 0.15em 0 0;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-serif);
}

.spacer {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--border) 50%, 
    transparent 100%);
  margin: 3rem 0;
  border: none;
}

.star-divider {
  background: url(../images/star_divider.png) center no-repeat;
  height: 20px;
  margin: 3rem auto;
  width: 430px;
  max-width: 100%;
  opacity: 0.6;
}

/* Styled Lists */
.styled-list-check li,
.styled-list-dot li,
.styled-list-star li {
  background-position: left 0.6em;
  background-repeat: no-repeat;
  padding-left: 32px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

#news-updates li {
    display:none;
}

#news-updates li:nth-child(-n+10) {
    display:list-item;
}

/* -------------------------------------------------
   7. Cards — Portfolio, Blog, Projects
   ------------------------------------------------- */
#container li,
.blog-item,
.one-third,
.one-third-last,
.recent-item,
.recent-item-last,
.aboutimage {
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  position: relative;
  animation: fadeInUp 0.6s ease-out backwards;
}
.project-summary,
.recent-summary,
.about {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;      /* keeps things tidy on narrow screens */
}

.project-summary, .one-third, .one-third-last,
.recent-summary .recent-item,
.recent-summary .recent-item-last,
.about .aboutimage {
  flex: 1 1 300px;      /* share the row, but shrink/wrap if needed */
}

/* Staggered animations */
.blog-item:nth-child(1),
.project:nth-child(1) { animation-delay: 0.1s; }
.blog-item:nth-child(2),
.project:nth-child(2) { animation-delay: 0.2s; }
.blog-item:nth-child(3),
.project:nth-child(3) { animation-delay: 0.3s; }
.blog-item:nth-child(4),
.project:nth-child(4) { animation-delay: 0.4s; }

/* Gradient overlay on hover */
.blog-item::before,
.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,0.03) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  pointer-events: none;
}

#container li:hover,
.blog-item:hover,
.recent-item:hover,
.recent-item-last:hover,
.aboutimage:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-accent), var(--glow);
}

.blog-item:hover::before {
  opacity: 1;
}

#container li img,
.blog-item img,
.recent-item img,
.recent-item-last img,
.aboutimage img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

#container li:hover img,
.blog-item:hover img,
.recent-item:hover img,
.recent-item-last:hover img,
.aboutimage:hover img {
  transform: scale(1.08);
}

#container #stage {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: flex-start;
}

#container #stage li {
  flex: 1 1 300px;
  margin-bottom: 0;
}

#container ul {
	overflow:hidden;
}
#container ul.hidden {
	display:none;
}

#container #stage h6 { margin: 1rem 0 0.5rem; }
#container #stage p { margin-bottom: 0.75rem; }

#container ul {
	overflow:hidden;
}
#container ul.hidden {
	display:none;
}

/* Card Content */
.blog-item .content {
  padding: 1.5rem;
}

.blog-item h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.blog-item-info {
  margin-top: 1rem;
}

.user, 
.comments,
.tags {
	margin-right: 1.5rem;
	display: inline;
	text-decoration: none;
	font-size: 1rem;
	height: 2rem;
	color: #444444;
	padding-left: 1.25rem;
	background-repeat: no-repeat
}

.user {
  background-image: url(../images/user.png);
}
.comments {
  background-image: url(../images/comments.png);
}
.tags {
  background-image: url(../images/tags.png);
}
/*.comments {
	background-image: url(../images/comments.png);
	background-position: 0 1px;
	padding-bottom: 1px;
	margin-right: 15px;
	display: inline;
	text-decoration: none;
	font-size: 18px;
	height: 20px;
	color: #444444;
	padding-left: 20px;
	background-repeat: no-repeat
}

.tags {
	background-image: url(../images/tags.png);
	background-position: 0 1px;
	padding-bottom: 1px;
	margin-right: 15px;
	display: inline;
	text-decoration: none;
	font-size: 18px;
	height: 20px;
	color: #444444;
	padding-left: 20px;
	background-repeat: no-repeat
}*/

/* Portfolio Filter */
#filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  justify-content: center;
}

#filter a {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: var(--light);
  transition: var(--transition);
  border: 2px solid transparent;
  background-image: none;
}

#filter a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#filter a.active {
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

#work {
	margin-top: 15px;
	border-left: 1px;
	border-style: solid;
	border-color: #c9c9c9;
	float: right;
	padding-left: 40px;
}

#work li {
	line-height: 1.6em;
	text-decoration: none;
	color: #666;
	background-position: left center;
	background-repeat: no-repeat;
}

/* -------------------------------------------------
   8. Buttons & Forms — Modern & Interactive
   ------------------------------------------------- */
.button,
#comment-button,
.submitbtn {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  position: relative;
  overflow: hidden;
  /*box-shadow: 0 4px 15px rgba(230, 74, 25, 0.3); */
  background-image: none;
}

.button::before,
#comment-button::before,
.submitbtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover,
#comment-button:hover,
.submitbtn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(230, 74, 25, 0.4);
}

.button:hover::before,
#comment-button:hover::before,
.submitbtn:hover::before {
  width: 300px;
  height: 300px;
}

.button:active,
#comment-button:active,
.submitbtn:active {
  transform: translateY(-1px);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 74, 25, 0.1);
  background: white;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* -------------------------------------------------
   9. Social Icons & Footer
   ------------------------------------------------- */
#social-box,
#footer {
  font-size: 0.95rem;
  color: var(--text-lighter);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0rem;
  padding: 1rem 5%;
}

#social-box ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  justify-content: center;
}

#social-box li {
  margin: 0;
}

#social-box a,
#footer a {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-position: center;
  background-repeat: no-repeat;
}

#social-box .footer-copyright {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-lighter);
}

#social-blog-buttons {
  display:inline;
}

.scholar,
.github,
.linkedin {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.scholar { background-image: url('../images/scholar.png'); }
.github { background-image: url('../images/github.png'); }
.linkedin { background-image: url('../images/linkedin.png'); }

.scholar:hover,
.github:hover,
.linkedin:hover {
  background-size: contain;
}
/* -------------------------------------------------
   10. Utility Classes
   ------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.readmore { float: right; }

/* -------------------------------------------------
   11. Responsive Design
   ------------------------------------------------- */
@media (max-width: 900px) {
  #header-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 5%;
  }
  
  #main-menu ul {
    justify-content: center;
    gap: 1.5rem;
  }
  
  #main-menu a {
    font-size: 1rem;
  }
  
  #content {
    padding: 4rem 5% 6rem;
  }
  
  h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
  
  blockquote { 
    font-size: 1.3rem; 
    padding-left: 2.5rem; 
  }
  
  blockquote::before {
    font-size: 4rem;
  }
}

@media (max-width: 600px) {
  #header-wrapper {
    padding: 1rem 5%;
  }
  
  #main-menu ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  #content { 
    padding: 3rem 5% 5rem; 
  }
  
  p {
    font-size: 1rem;
  }
  
  .button,
  #comment-button,
  .submitbtn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
  }
  
  #filter {
    gap: 0.5rem;
  }
  
  #filter a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  #main-menu {
    width: 100%;
  }

  #main-menu ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  #main-menu.open ul {
    display: flex;
  }
}

/* -------------------------------------------------
   12. Accessibility — Reduced Motion
   ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------
   13. Print Styles
   ------------------------------------------------- */
@media print {
  #header-wrapper,
  #main-menu,
  #social-box,
  #footer,
  .button {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  #content {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* -------------------------------------------------
   14. Container Queries (Progressive Enhancement)
   ------------------------------------------------- */
@supports (container-type: inline-size) {
  .blog-item {
    container-type: inline-size;
  }
  
  @container (min-width: 400px) {
    .blog-item h3 {
      font-size: 1.5rem;
    }
  }
}

/* -------------------------------------------------
   15. Custom Scrollbar (Webkit)
   ------------------------------------------------- */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-lighter);
  border-radius: 6px;
  border: 3px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* -------------------------------------------------
   16. Additional Interactive Elements
   ------------------------------------------------- */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--text);
  color: white;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.tooltip:hover::after {
  opacity: 1;
}

/* Badge/Tag styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--light);
  color: var(--text);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.25rem;
}

.badge-accent {
  background: var(--accent-gradient);
  color: white;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

/* -------------------------------------------------
   END OF STYLESHEET
   ------------------------------------------------- */
