/* style.css - Portfolio Design System & Typography */

/* Import Fonts: Playfair Display (Serif for titles), Inter (Body text), Outfit (Subheadings) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* Color Variables and Theme tokens */
:root {
  --bg-color: #0d131f;
  --bg-gradient: radial-gradient(circle at 50% 50%, #151d30 0%, #080b12 100%);
  
  --panel-bg: rgba(22, 32, 53, 0.45);
  --panel-border: rgba(255, 255, 255, 0.1);
  --panel-shadow: rgba(0, 0, 0, 0.5);
  
  --text-primary: #ffffff;
  --text-secondary: #9ab0d3;
  --text-muted: #5f7597;
  
  --primary: #06b6d4; /* Wave Cyan */
  --primary-hover: #22d3ee;
  --accent: #d97706; /* Gold sand */
  --accent-light: #eab308;
  --teal-accent: #0d9488;
  
  --font-title: 'Playfair Display', serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

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

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

/* Header & Navigation (mockup style) */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 1.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: capitalize;
}

.logo-icon {
  color: #c92a2a; /* Stanford Cardinal Red */
  font-weight: 900;
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  font-family: var(--font-body);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  border-bottom: 2px solid var(--accent);
}

.nav-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-social-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.nav-social-link:hover {
  color: var(--text-primary);
}

.nav-social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Wavy Swelling Background Line Graphics */
.waves-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

/* Hero Section Split Layout */
.hero-sec {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6.5rem;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 5;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Huge Glowing Stacked Title */
.hero-name {
  font-family: var(--font-title);
  font-size: 4.75rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(13, 148, 136, 0.25), 
               0 0 80px rgba(6, 182, 212, 0.15);
  text-transform: uppercase;
}

.hero-uni-tag {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-subtags {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Double-Panel Profile Glass Container */
.profile-panel-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 60px var(--panel-shadow);
  border-radius: 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

/* Left Panel: Profile Photo + Intro */
.panel-left {
  padding: 2.25rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(217, 119, 6, 0.4));
  padding: 3px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: calc(1rem - 3px);
  object-fit: cover;
  background: #111827;
}

.panel-left h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.panel-left p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Right Panel: Focus Items + Publications */
.panel-right {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(8, 12, 20, 0.2);
}

.panel-section-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.panel-focus-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-focus-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-focus-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.panel-focus-icon svg {
  width: 12px;
  height: 12px;
}

.panel-focus-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.panel-pub-blurb {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Publications Grid Section (Bottom of mockup) */
.pubs-sec {
  padding: 3rem 0 6rem 0;
  position: relative;
  z-index: 3;
}

.pubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pub-card {
  padding: 1.75rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
}

.pub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(26, 37, 60, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.pub-card-top {
  display: flex;
  flex-direction: column;
}

.pub-card-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--primary);
  opacity: 0.7;
}

.pub-card-icon svg {
  width: 18px;
  height: 18px;
}

.pub-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
  color: var(--text-primary);
}

.pub-card-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
  margin-top: auto;
}

.pub-card-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.pub-card-date svg {
  width: 12px;
  height: 12px;
}

.pub-card-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pub-card:hover .pub-card-action {
  color: #f59e0b; /* brighter gold */
}

/* Inner Page Header adjustments */
.research-header {
  padding-top: 10rem;
  padding-bottom: 3.5rem;
  background-image: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--panel-border);
}

.research-title {
  font-family: var(--font-title);
  font-size: 3.25rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.research-meta {
  display: flex;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.research-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.research-meta-item svg {
  width: 15px;
  height: 15px;
}

.research-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 3.5rem;
}

.research-main {
  font-size: 1.025rem;
  color: var(--text-secondary);
}

.research-main h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.research-main p {
  margin-bottom: 1.25rem;
}

.research-main ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.research-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  padding: 1.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-value {
  font-size: 2.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* Accordion Component */
.accordion {
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 2rem;
}

.accordion-item {
  border-bottom: 1px solid var(--panel-border);
}

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

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
  background: rgba(8, 12, 20, 0.2);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
  padding: 1.15rem 1.5rem;
}

/* Tables */
.results-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--panel-border);
  margin: 2rem 0;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.results-table th {
  background: rgba(13, 19, 31, 0.8);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--panel-border);
}

.results-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

/* Flowchart */
.flowchart-container {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
}

.flowchart-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.flowchart-step::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -20px;
  width: 2px;
  background: rgba(6, 182, 212, 0.2);
}

.flowchart-step:last-child::after {
  display: none;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
}

.step-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Callouts / Alerts */
.callout {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
  background: rgba(6, 182, 212, 0.05);
  margin: 1.5rem 0;
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* About Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 3.5rem;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Contact Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.contact-icon-wrapper {
  background: rgba(6, 182, 212, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.contact-text h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-form {
  padding: 2.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: rgba(8, 12, 20, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal-accent) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Footer */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 3rem 0;
  background: rgba(8, 12, 20, 0.8);
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 3;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-logo span {
  color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-left {
    text-align: center;
    align-items: center;
  }
  
  .hero-name {
    font-size: 4rem;
  }
  
  .pubs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-grid,
  .research-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-socials {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .profile-panel-container {
    grid-template-columns: 1fr;
  }
  
  .panel-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  section {
    padding: 3rem 0;
  }
}


/* ==========================================================================
   Projects Index Custom Horizontal Layout (Beautified)
   ========================================================================== */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-card {
  display: flex;
  flex-direction: row;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 280px;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 179, 8, 0.25);
  box-shadow: var(--shadow-md);
}

.project-image-wrapper {
  width: 35%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.04); /* Slight zoom on hover */
}

.project-content {
  width: 65%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.project-link:hover {
  gap: 0.75rem;
  color: var(--accent-light);
}

.project-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}

@media (max-width: 992px) {
  .project-image-wrapper {
    width: 40%;
  }
  .project-content {
    width: 60%;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    min-height: auto;
  }
  .project-image-wrapper {
    width: 100%;
    height: 200px;
  }
  .project-content {
    width: 100%;
    padding: 1.5rem;
  }
}
