/* styles.css */

/* Root Variables for Material Design 3 */
:root {
  --md-primary: #6750a4;
  --md-secondary: #625b71;
  --md-surface: #f5f5f5;
  --md-background: #ffffff;
  --md-on-primary: #ffffff;
  --md-on-surface: #1c1b1f;
  --md-border-radius: 12px;
  --md-card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --md-font: 'Roboto', sans-serif;
}

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

body {
  font-family: var(--md-font);
  background-color: var(--md-background);
  color: var(--md-on-surface);
  line-height: 1.6;
  padding: 1rem;
}

/* Header & Navigation */
.md-header, .page-header {
  background-color: var(--md-primary);
  padding: 1rem 2rem;
  border-radius: var(--md-border-radius);
  margin-bottom: 2rem;
}

.md-top-nav ul,
.main-navigation ul {
  display: flex;
  list-style: none;
  justify-content: flex-end;
  gap: 1.5rem;
}

.md-nav-link,
.navigation-list__item {
  color: var(--md-on-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.md-nav-link:hover,
.navigation-list__item:hover {
  color: #cbbaff;
}

/* Main Section */
.md-profile,
.profile {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.md-avatar {
  width: 300px; /* larger size */
  height: 350px;
  object-fit: cover;
  margin-bottom: 1rem;
  transform: skew(-15deg); /* gives the parallelogram effect */
  border-radius: 12px; /* optional: rounded corners instead of a circle */
  box-shadow: var(--md-card-shadow);
}


.md-headline {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.md-body {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Button */
.md-button,
.button {
  display: inline-flex;
  align-items: center;
  background-color: var(--md-primary);
  color: var(--md-on-primary);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--md-border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  gap: 0.5rem;
}

.md-button:hover,
.button:hover {
  background-color: #7c5dc0;
}

/* Footer */
.md-footer,
.page-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

.md-social-icons,
.social-media {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.md-social-icons img,
.social-media img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.md-social-icons img:hover,
.social-media img:hover {
  transform: scale(1.1);
}

/* Cards Grid for Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.project-card {
  background-color: var(--md-surface);
  border-radius: var(--md-border-radius);
  box-shadow: var(--md-card-shadow);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.project-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #444;
}

.project-image {
  width: 100%;
  border-radius: var(--md-border-radius);
  margin-bottom: 1rem;
  object-fit: cover;
  height: 180px;
}

/* Show full foodsharing image without cropping */
.project-image--contain {
  object-fit: contain;
  background-color: #fff; /* fills the empty bands (“letterboxing”) */
}

/* foodsharing image natural height */
.project-image--natural {
  height: auto;
}


.project-video {
  width: 100%;
  border-radius: var(--md-border-radius);
  margin-bottom: 1rem;
  height: 180px;
  object-fit: cover;
}

/* Contact page */
.contact-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-text a {
  color: var(--md-primary);
  text-decoration: none;
}

.contact-text a:hover {
  text-decoration: underline;
}





.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 1rem auto;
  display: block;
}

.intro-text {
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: center;
}

.skills-list {
  list-style: none;
  padding-left: 0;
  text-align: center;
  font-size: 1.05rem;
  margin: 1rem 0;
}

.skills-list li {
  margin: 0.5rem 0;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* About Grid Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center */
  align-items: center;     /* horizontally center */
  text-align: center;
  padding: 2rem;
}

.about-right {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-section {
  background: var(--md-surface);
  padding: 1.5rem;
  border-radius: var(--md-border-radius);
  box-shadow: var(--md-card-shadow);
}

.info-section h2 {
  margin-bottom: 0.75rem;
  color: var(--md-secondary);
}

/* Frame Container */
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 450px; 
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--md-border-radius);
  box-shadow: var(--md-card-shadow);
}

/* Image Styling */
.parallelogram-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 550px; 
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* Responsive Layout */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    max-width: 100%;
  }
}

.main-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: var(--md-on-surface); /* Optional, if using Material Design vars */
}

.main-text {
  background-color: var(--md-surface-container-high);
  padding: 1rem;
  border-radius: var(--md-border-radius);
}

h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--md-primary);
}

