/* 
=========================
Main Styles for johnwardosu.com
Modern, High-End Academic/Professional Website
=========================
*/

/* Import Google Fonts - Merriweather for headings and Open Sans for body */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Open+Sans:wght@300;400;600;700&display=swap');

/* CSS Variables for Color Scheme */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --accent-color: #F39C12;
  --light-color: #ECF0F1;
  --dark-color: #1A252F;
  --text-color: #34495E;
  --white: #FFFFFF;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

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

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  grid-gap: 2rem;
}

.flex {
  display: flex;
}

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

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 0.75rem;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-text span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(231, 76, 60, 0.8)), url('https://source.unsplash.com/random/1920x1080/?university,academia') no-repeat center center/cover;
  color: var(--white);
  text-align: center;
}

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

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

/* About Section */
.about-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-image {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2:after {
  margin: 0;
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.about-content li:before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Features Section */
.features {
  background-color: var(--light-color);
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--gradient);
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* Entertainment Section */
.entertainment {
  background-color: var(--white);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.link-item {
  padding: 1rem;
  background: var(--light-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.link-item:hover {
  background-color: rgba(231, 76, 60, 0.1);
}

/* Publications Section */
.publications {
  background-color: var(--light-color);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.publication-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.publication-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.publication-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.publication-authors {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.publication-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
}

/* Contact Section */
.contact {
  position: relative;
  overflow: hidden;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
}

.contact-form textarea {
  min-height: 150px;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 1rem;
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 0.75rem;
}

.footer-logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-about {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-favicon {
  width: 30px;
  height: 30px;
  margin: 0 auto 1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    height: 350px;
    margin-bottom: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .publication-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 0 0 1.5rem 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Animation Effects */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

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

/* Print Styles */
@media print {
  .header, 
  .footer,
  .hero-buttons,
  .contact-form,
  .mobile-nav-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
}
