/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f3f2ef;
}

#telegram-groups {
  background-color: white;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  margin-top: 40px;
  text-align: center;
}

#telegram-groups h2 {
  margin-bottom: 30px;
  font-size: 28px;
  color: #333;
}

.telegram-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 30px;
}

.telegram-logo {
  flex: 0 0 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.telegram-logo img {
  max-width: 80px;
  height: auto;
}

.telegram-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.telegram-card {
  background-color: #f3f2ef;
  color: #0077b5;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: normal;
  transition: background-color 0.3s ease;
}

.telegram-card:hover {
  background-color: #e6e6e6;
}



/* Download Resume Section */
#download-resume {
  text-align: center;
  padding: 40px 20px;
  background-color: white;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resume-container {
  display: flex;
  align-items: flex-start; /* Align text with the top of the image */
  justify-content: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.resume-preview {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.resume-content {
  flex: 1;
  font-size: 16px;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Styled Download Button */
.download-button {
  display: inline-block;
  background-color: #0077b5;
  color: white;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: flex-start; /* Moves button lower */
  margin-top: 20px; /* Adds spacing between text and button */
}

.download-button:hover {
  background-color: #005582;
  transform: translateY(-3px);
}

/* Responsive Layout for Small Screens */
@media (max-width: 768px) {
  .resume-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .resume-preview {
    max-width: 250px;
  }

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

  .download-button {
    align-self: center;
  }
}

/* Container Styling */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Section Divider */
.section-divider {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* Profile Header */
.profile-header {
  margin-bottom: 20px;
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: 200px;
  background-image: url('img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.white-section {
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: -40px;
}

/* Profile Content */
.profile-content {
  display: flex;
  align-items: center;
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  margin-right: 20px;
  object-fit: cover;
}

.contact-links {
  margin-top: 10px;
}

.contact-button {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  border-radius: 30px;
  background-color: #0077b5;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.contact-button:hover {
  background-color: #005582;
  transform: translateY(-3px);
}

/* Media Grid */
.media-grid {
  display: grid;
  gap: 10px;
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Photos Section */
.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

.media-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* LinkedIn Posts Section */
.linkedin-posts {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
}

#linkedin-activity {
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #0077b5, #00a0dc);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
}

/* Footer */
footer {
  margin-top: 20px;
  text-align: center;
  color: #777;
}
