/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #1e3a5f;
  --accent-color: #4a90e2;
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-light);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--bg-white);
  padding: 4rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--bg-white);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  opacity: 0.95;
}

.hero-affiliation {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: var(--bg-white);
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  color: var(--bg-white);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ===========================
   Main Content
   =========================== */
.main-content {
  padding: 3rem 0;
}

.section {
  background-color: var(--bg-white);
  margin-bottom: 2rem;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.section:hover {
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  color: var(--secondary-color);
}

.section-content {
  color: var(--text-secondary);
}

/* ===========================
   About Section
   =========================== */
.bio {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-item {
  padding: 1rem;
  background-color: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

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

.research-list li {
  padding: 1rem 1.5rem;
  background-color: var(--bg-light);
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.research-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

/* ===========================
   Publications
   =========================== */
.publication {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.publication:last-child {
  border-bottom: none;
  margin-bottom: 1rem;
}

.pub-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.pub-venue {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.pub-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pub-status.accepted {
  background-color: #d4edda;
  color: #155724;
}

.pub-status.published {
  background-color: #cce5ff;
  color: #004085;
}

.pub-link {
  margin-top: 0.5rem;
}

.pub-link a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.view-all {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 1.1rem;
}

.view-all a {
  font-weight: 600;
}

/* ===========================
   AWS Certification Highlight
   =========================== */
.certification-highlight {
  background: linear-gradient(135deg, #FF9900 0%, #FF9900 100%);
  background-color: #232F3E;
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.certification-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.certification-highlight .section-title {
  color: white;
  border-bottom-color: #FF9900;
  font-size: 1.75rem;
}

.cert-highlight-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.cert-badge {
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.cert-info {
  flex: 1;
}

.cert-highlight-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cert-validation-highlight {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cert-validation-highlight code {
  background-color: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #232F3E;
  font-weight: 600;
}

.cert-verify-btn {
  margin-top: 1.5rem;
}

.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #FF9900 0%, #FF7700 100%);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-verify:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 153, 0, 0.6);
  background: linear-gradient(135deg, #FF7700 0%, #FF9900 100%);
  color: white;
}

.btn-verify svg {
  width: 24px;
  height: 24px;
}

/* ===========================
   Additional Certifications
   =========================== */
.certification-item {
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border-left: 5px solid var(--accent-color);
}

.cert-name {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.cert-details {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.cert-verify-link {
  margin-top: 1rem;
}

.cert-verify-link a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cert-verify-link a:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* ===========================
   Experience
   =========================== */
.experience {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.experience:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.exp-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.exp-org {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.exp-duration {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.exp-highlights {
  list-style-position: inside;
  margin-left: 0;
}

.exp-highlights li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  color: var(--text-secondary);
}

/* ===========================
   Skills
   =========================== */
.skill-category {
  margin-bottom: 1.5rem;
}

.skill-cat-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.skill-list {
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 6px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===========================
   Education
   =========================== */
.education {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border-left: 5px solid var(--accent-color);
}

.education:last-child {
  margin-bottom: 0;
}

.edu-degree {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.edu-institution {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.edu-details {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.edu-specialization {
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

/* ===========================
   Coursework
   =========================== */
.coursework-list {
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 6px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 2.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--bg-white);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--bg-white);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .bio {
    font-size: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .research-list {
    grid-template-columns: 1fr;
  }

  .cert-highlight-box {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: center;
  }

  .btn-verify {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .social-link span {
    display: none;
  }

  .social-link {
    padding: 0.75rem;
  }

  .section {
    padding: 1rem;
  }

  .certification-highlight .section-title {
    font-size: 1.25rem;
  }

  .cert-highlight-box {
    padding: 1rem;
  }

  .btn-verify {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .cert-validation-highlight code {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.5rem;
  }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
  .hero {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: none;
  }

  .hero-title {
    color: var(--secondary-color);
  }

  .social-links {
    display: none;
  }

  .section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--border-color);
  }

  a {
    text-decoration: underline;
  }

  .footer {
    background-color: var(--bg-white);
    color: var(--text-primary);
  }
}
