/*
Theme Name: AjayCeIndia Academic Portfolio
Theme URI: https://ajayceindia.com
Author: Ajay Kumar Samariya
Author URI: https://ajayceindia.com
Description: A clean, modern academic portfolio theme for Economics, Public Policy, and Management scholars. Features custom post types for publications, research projects, and teaching. Navy Blue & Gold color scheme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ajayceindia
Tags: academic, portfolio, one-column, custom-menu, custom-logo, featured-images, theme-options

Navy Blue + Gold Academic Theme
*/

/* ========== CSS Variables ========== */
:root {
  --navy: #1B2A4A;
  --navy-light: #2C3E6B;
  --navy-dark: #0F1A2E;
  --gold: #C4A35A;
  --gold-light: #D4B96E;
  --gold-dark: #A88B3D;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --light-gray: #F0EDE8;
  --mid-gray: #8A8A8A;
  --text: #2D2D2D;
  --text-light: #5A5A5A;
  --border: #E0DDD6;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== Header & Navigation ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.site-logo .gold-dot {
  color: var(--gold);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--gold);
  background: rgba(196, 163, 90, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,163,90,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196,163,90,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.hero-text {
  color: var(--white);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-name .gold {
  color: var(--gold);
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.hero-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196,163,90,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid rgba(196,163,90,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-photo::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 2px solid rgba(196,163,90,0.2);
  border-radius: 8px;
  z-index: -1;
}

/* ========== Sections ========== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.8rem auto 0;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ========== Research Interests ========== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.research-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27,42,74,0.1);
}

.research-card:hover::before {
  transform: scaleX(1);
}

.research-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(27,42,74,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--navy);
}

.research-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.research-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== Publications ========== */
.publication-list {
  max-width: 900px;
  margin: 0 auto;
}

.publication-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.2rem;
  transition: all var(--transition);
  position: relative;
  padding-left: 2.5rem;
}

.publication-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.publication-item:hover {
  box-shadow: 0 4px 20px rgba(27,42,74,0.08);
}

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

.pub-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.pub-type-journal {
  background: rgba(27,42,74,0.08);
  color: var(--navy);
}

.pub-type-chapter {
  background: rgba(196,163,90,0.15);
  color: var(--gold-dark);
}

.pub-type-working {
  background: rgba(90,196,130,0.12);
  color: #2D7D4F;
}

.pub-type-conference {
  background: rgba(163,90,196,0.1);
  color: #7D2D9E;
}

.publication-item h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.publication-item h3 a:hover {
  color: var(--gold);
}

.pub-meta {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.pub-meta .journal {
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}

.pub-meta .indexing {
  display: inline-block;
  background: rgba(27,42,74,0.05);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.3rem;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--mid-gray);
  margin-top: 0.3rem;
}

/* ========== Education Timeline ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  transform: translateX(-5px);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.timeline-institution {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.timeline-detail {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}

/* ========== Awards ========== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.award-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
}

.award-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27,42,74,0.08);
}

.award-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.award-card h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.award-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========== Teaching ========== */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.teaching-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition);
}

.teaching-card:hover {
  box-shadow: 0 6px 25px rgba(27,42,74,0.08);
}

.teaching-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.teaching-institution {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.teaching-courses {
  list-style: none;
}

.teaching-courses li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.teaching-courses li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

/* ========== Conferences ========== */
.conference-list {
  max-width: 800px;
  margin: 0 auto;
}

.conference-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.conference-item:last-child {
  border-bottom: none;
}

.conf-date {
  min-width: 90px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
  padding-top: 0.2rem;
}

.conf-details h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.conf-details p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(27,42,74,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid-gray);
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

/* ========== Single / Pages ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

.page-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ========== CV Download Section ========== */
.cv-download {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 700px;
}

.cv-download h2 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.cv-download p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-photo {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .hero-photo img {
    width: 220px;
    height: 270px;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-dark);
    padding: 5rem 2rem 2rem;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.3rem;
  }

  .main-nav a {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  h2 { font-size: 1.8rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-photo img { width: 180px; height: 220px; }
}

/* ========== Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ========== Stat Counter ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ========== Ongoing Research ========== */
.ongoing-research-list {
  max-width: 900px;
  margin: 0 auto;
}

.ongoing-item {
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(196,163,90,0.04);
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
}

.ongoing-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.ongoing-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========== WordPress Defaults ========== */
.wp-block-image {
  margin: 1.5rem 0;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
