/* Modern CSS for Peace Shillong Website */

/* CSS Variables for theming */
:root {
  --primary-color: #1eaedb;
  --secondary-color: #0fa0ce;
  --dark-bg: #222;
  --light-bg: #dae3ef;
  --text-dark: #222;
  --text-light: #fff;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, #737373 0%, #555 100%);
  background-image: url('assets/images/background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-image {
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}

.profile {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--text-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  transition: transform 0.3s ease;
}

.profile:hover {
  transform: scale(1.05) translateY(-10px);
}

.hero-text {
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
  font-family: 'Satisfy', cursive;
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.availability-notice {
  background: #ffeb3b;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  display: inline-block;
  margin: 1rem 0;
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: #33c3f0;
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #1eaedb;
  color: var(--text-dark);
}

/* Sections */
section {
  padding: 4rem 0;
}

.bg1 {
  background-color: var(--light-bg);
  color: var(--text-dark);
}

.bg2 {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.bg {
  background-color: #737373;
  padding: 20px;
  background: url(../images/background.webp) no-repeat center top;
  background-attachment: fixed;
  color: #efefef;
}

/* Cards */
.card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease-out;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.bg2 .card {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Targets Section */
.target-list {
  list-style: none;
  padding: 0;
}

.target-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  transition: var(--transition);
  animation: slideInLeft 0.6s ease-out backwards;
}

.target-item:nth-child(1) { animation-delay: 0.1s; }
.target-item:nth-child(2) { animation-delay: 0.2s; }
.target-item:nth-child(3) { animation-delay: 0.3s; }
.target-item:nth-child(4) { animation-delay: 0.4s; }

.target-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(10px);
}

.target-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.target-item.success .target-indicator {
  background-color: #4bb543;
}

.target-item.primary .target-indicator {
  background-color: #0064ff;
}

.target-content {
  flex: 1;
}

.target-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.target-status {
  font-size: 0.875rem;
  color: #666;
}

/* Books Section */
.book-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.book-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease-out;
  transition: var(--transition);
}

.book-image img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Projects Section */
.projects-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Experience Section */
.experience-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Highlights */
.highlight {
  font-weight: 700;
  color: var(--primary-color);
}

.highlight-education {
  font-weight: 700;
  color: var(--text-dark);
}

/* Awards Section */
.awards-list {
  margin-top: 1.5rem;
}

.award-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(30, 174, 219, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  transition: var(--transition);
}

.award-item:hover {
  background: rgba(30, 174, 219, 0.1);
  transform: translateX(5px);
}

.award-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.award-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.award-field {
  font-size: 0.95rem;
  color: #555;
}

/* Quotes Section */
blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1rem 0;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  left: -20px;
  top: -10px;
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
}

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

.link-group h4 {
  margin-bottom: 0.5rem;
}

.link-group p {
  line-height: 1.8;
}

/* Certificates */
.certificates {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.certificates img {
  max-width: 150px;
  height: auto;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--text-dark);
  color: var(--text-light);
  text-align: center;
  padding: 5px;
  border-radius: 4px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Back to Top */
.back-to-top {
  text-align: center;
  margin-top: 2rem;
}

.back-to-top a {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content,
  .projects-content,
  .experience-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .book-content {
    grid-template-columns: 1fr;
  }

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

  .book-details .btn {
    display: block;
    margin-bottom: 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  section {
    padding: 2rem 0;
  }

  .card {
    padding: 1rem;
  }

  .certificates {
    flex-direction: column;
    gap: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

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

  .profile {
    width: 120px;
    height: 120px;
  }

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

/* Print Styles */
@media print {
  .hero {
    background: none !important;
    color: var(--text-dark) !important;
  }

  .btn {
    display: none;
  }
}