@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

header {
  background-color: #f0f0f0;
  width: 100%;
  position: fixed;
  display: flex;
  justify-content: space-between;
  z-index: 999;
  align-items: center;
  padding: 10px 200px;
}

.logo {
  text-decoration: none;
  font-size: 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  color: black;
}

.navigation a {
  padding-left: 30px;
  color: black;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
}

.navigation a:hover {
  color: #3a6cf4;
}

section {
  padding: 100px 200px;
}

.main {
  background-color: rgb(105, 75, 35);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url(images/programming\ 2.jpg) no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.text-content {
  flex: 1;
  max-width: 600px;
}

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

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #f0f0f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: 0.7s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.profile-photo img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.main h2 {
  color: black;
  font-size: 1.3em;
  font-weight: 700;
}

.main h2 span {
  display: inline-block;
  margin-top: 10px;
  color: black;
  font-size: 2.3em;
  font-weight: 600;
}

.main h3 {
  color: rgba(0, 0, 0);
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 10px 0 30px 0;
}

.main-btn {
  text-decoration: none;
  color: white;
  background-color: black;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 15px;
  display: inline-block;
  padding: 0.9375em 2.1875em;
  margin-bottom: 40px;
  transition: 0.7s ease;
}

.main-btn:hover {
  background-color: rgba(0, 0, 0, 0.31);
  transform: scale(1.1);
}

.social-icons a {
  color: #f0f0f0;
  font-size: 1.7em;
  padding-right: 30px;
}

.title {
  display: flex;
  justify-content: center;
  color: black;
  font-size: 1.8em;
  font-weight: 800;
  margin-bottom: 30px;
}

.content {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
  border-radius: 15px;
  padding: 25px;
  transition: 0.7s ease;
  box-sizing: border-box;
}

.card:hover {
  transform: scale(1.1);
}

.icon {
  font-size: 8em;
  text-align: center;
  color: #3a6cf4;
}

.info {
  text-align: center;
}

.info h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin: 10px;
}

.contact .info a {
  text-decoration: none;
  color: black;
  font-size: 1.3em;
}

.contact .icon {
  font-size: 4.5em;
}

.footer {
  background-color: black;
  display: flex;
  justify-content: space-between;
  padding: 2em;
}

.footer-title {
  color: white;
  font-size: 1.3em;
  font-weight: 400;
}

.footer-title span {
  font-weight: 800;
}

/* About Section Styles */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-intro {
  margin-bottom: 60px;
}

.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
  transition: 0.7s ease;
}

.profile-section:hover {
  transform: scale(1.02);
}

.profile-icon {
  font-size: 4em;
  color: #3a6cf4;
  flex-shrink: 0;
}

.profile-info h3 {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: black;
}

.profile-info p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #666;
}

/* Timeline Section */
.timeline-section {
  margin-bottom: 60px;
}

.timeline-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: 800;
  margin-bottom: 50px;
  color: black;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3a6cf4;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: #3a6cf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5em;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.timeline-content {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
  margin: 0 30px;
  flex: 1;
  transition: 0.7s ease;
}

.timeline-content:hover {
  transform: scale(1.05);
}

.timeline-content h4 {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: black;
}

.timeline-date {
  font-size: 0.9em;
  color: #3a6cf4;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
}

/* Skills Section */
.skills-section {
  margin-bottom: 40px;
}

.skills-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: 800;
  margin-bottom: 50px;
  color: black;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
  transition: 0.7s ease;
}

.skill-category:hover {
  transform: scale(1.05);
}

.skill-category h4 {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 20px;
  color: black;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h4 i {
  color: #3a6cf4;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  background: #3a6cf4;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  transition: 0.3s ease;
}

.skill-item:hover {
  background: #2a5bd4;
  transform: translateY(-2px);
}

/* Tech Stack Tags */
.tech-stack {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: #2a5bd4;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  cursor: default;
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Section Dividers */
.section-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #2a5bd4 50%,
    transparent 100%
  );
  margin: 60px auto;
  max-width: 800px;
  opacity: 0.6;
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  background: #2a5bd4;
  border-radius: 2px;
}

/* Email Card Link Styling */
.email-card-link,
.telefon-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
  margin: 15px;
  width: 250px;
}

.email-card-link:hover {
  transform: translateY(-5px);
}

.email-card-link .card {
  cursor: pointer;
}

.email-card-link .card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.email-card-link .info span {
  color: #2a5bd4;
  font-weight: 500;
}

/* Contact Info Styling */
.contact .info span {
  color: #2a5bd4;
  font-weight: 500;
}

@media (min-width: 1133px) and (max-width: 1366) {
  .text-content {
    margin: 0 60px 0 -80px;
  }
}

@media (min-width: 1133px) {
  .projects .card {
    margin: 15px;
  }
}

@media (max-width: 1023px) {
  header {
    padding: 12px 20px;
  }

  .navigation a {
    padding-left: 10px;
  }

  .title {
    font-size: 1.8em;
  }

  section {
    padding: 80px 20px;
  }

  .main h2 {
    font-size: 1em;
  }

  .main h3 {
    font-size: 1.6em;
  }

  .content {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 832px) {
  .main {
    font-size: 0.9em;
  }
}

@media (max-width: 740px) {
  .main {
    font-size: 0.85em;
  }
}

@media (max-width: 690px) {
  .main {
    font-size: 0.8em;
  }
}

@media (max-width: 641px) {
  .main {
    font-size: 0.75em;
  }
}

@media (max-width: 300px) {
  body {
    font-size: 10px;
  }
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    margin-left: 30px;
  }

  .timeline-icon {
    position: absolute;
    left: -45px;
  }

  .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }

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

@media (max-width: 480px) {
  .profile-section {
    padding: 25px;
  }

  .profile-info h3 {
    font-size: 1.5em;
  }

  .timeline-content {
    padding: 20px;
  }

  .skill-category {
    padding: 25px;
  }
  .card {
    margin: 0;
  }
}

/* Responsive Design for Main Section */
@media (max-width: 1023px) {
  .main-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 30px;
  }

  .text-content {
    max-width: 100%;
  }

  .profile-photo {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 0 20px;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .main h2 span {
    font-size: 2em;
  }

  .main h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  .profile-photo {
    width: 180px;
    height: 180px;
  }

  .main h2 span {
    font-size: 1.8em;
  }

  .main h3 {
    font-size: 1.4em;
  }
}

/* Responsive adjustments for tech tags */
@media (max-width: 768px) {
  .tech-stack {
    gap: 6px;
  }

  .tech-tag {
    font-size: 0.7em;
    padding: 3px 10px;
  }
}

/* Responsive adjustments for section dividers */
@media (max-width: 768px) {
  .section-divider {
    margin: 40px auto;
    max-width: 90%;
  }
}

/* Comprehensive Responsive Design */

/* Large Desktop Screens (1400px and above) */
@media (min-width: 1400px) {
  .main-content {
    max-width: 1400px;
    padding: 0 80px;
  }

  .cards .content {
    max-width: 1400px;
    padding: 0 80px;
  }

  .about-content {
    max-width: 1400px;
    padding: 0 80px;
  }
}

/* Desktop Screens (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
  .main-content {
    padding: 0 30px;
  }

  .cards .content {
    padding: 0 60px;
  }

  .about-content {
    padding: 0 60px;
  }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  /* Header */
  header {
    padding: 20px 30px;
  }

  .navigation a {
    margin-left: 25px;
    font-size: 0.9em;
  }

  /* Main Section */
  .main-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 40px;
  }

  .text-content {
    max-width: 100%;
  }

  .profile-photo {
    width: 280px;
    height: 280px;
  }

  .main h2 {
    font-size: 1.2em;
  }

  .main h2 span {
    font-size: 2.1em;
  }

  .main h3 {
    font-size: 1.1em;
  }

  /* Cards Section */
  .cards .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 40px;
  }

  .cards .title {
    font-size: 1.8em;
    margin-bottom: 50px;
  }

  /* About Section */
  .about-content {
    padding: 0 40px;
  }

  .about-intro {
    flex-direction: column;
    gap: 30px;
  }

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

  .timeline-section {
    margin-top: 40px;
  }

  .skills-section {
    margin-top: 40px;
  }

  .skill-category {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact Section */
  .contact .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 40px;
  }
}

/* Tablet Portrait (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
  /* Header */
  header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 1.8em;
  }

  .navigation a {
    margin-left: 20px;
    font-size: 0.85em;
  }

  /* Main Section */
  .main-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 30px;
  }

  .text-content {
    max-width: 100%;
  }

  .profile-photo {
    width: 250px;
    height: 250px;
  }

  .main h2 {
    font-size: 1.1em;
  }

  .main h2 span {
    font-size: 1.9em;
  }

  .main h3 {
    font-size: 1em;
  }

  .main-btn {
    padding: 12px 25px;
    font-size: 0.9em;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
  }

  /* Cards Section */
  .cards .content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 30px;
  }

  .cards .title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .card {
    padding: 25px;
  }

  .card .icon {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
  }

  .card h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }

  .card p {
    font-size: 0.9em;
    line-height: 1.6;
  }

  /* About Section */
  .about-content {
    padding: 0 30px;
  }

  .about-intro {
    flex-direction: column;
    gap: 25px;
  }

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

  .profile-section h3 {
    font-size: 1.3em;
  }

  .profile-section p {
    font-size: 0.9em;
  }

  .timeline-section {
    margin-top: 30px;
  }

  .timeline-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .timeline-item h4 {
    font-size: 1.1em;
  }

  .timeline-item p {
    font-size: 0.85em;
  }

  .skills-section {
    margin-top: 30px;
  }

  .skill-category {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skill-category h4 {
    font-size: 1.1em;
  }

  .skill-tags {
    gap: 8px;
  }

  .skill-tag {
    font-size: 0.8em;
    padding: 6px 12px;
  }

  /* Contact Section */
  .contact .content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 30px;
  }

  .contact .title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  /* Tech Stack Tags */
  .tech-stack {
    gap: 6px;
  }

  .tech-tag {
    font-size: 0.7em;
    padding: 3px 10px;
  }

  /* Section Dividers */
  .section-divider {
    margin: 40px auto;
    max-width: 90%;
  }
}

/* Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 12px 15px;
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    font-size: 1.6em;
  }

  .navigation {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navigation a {
    margin: 5px 10px;
    font-size: 0.8em;
  }

  /* Main Section */
  .main-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    margin-right: 100px;
  }

  .text-content {
    max-width: 100%;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .main h2 {
    font-size: 1em;
  }

  .main h2 span {
    font-size: 1.7em;
  }

  .main h3 {
    font-size: 0.9em;
  }

  .main-btn {
    padding: 10px 20px;
    font-size: 0.85em;
  }

  .social-icons {
    gap: 15px;
  }

  .social-icons a {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  /* Cards Section */
  .cards .content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .cards .title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .card {
    padding: 20px;
  }

  .card .icon {
    width: 50px;
    height: 50px;
    font-size: 1.3em;
  }

  .card h3 {
    font-size: 1.1em;
    margin-bottom: 12px;
  }

  .card p {
    font-size: 0.85em;
    line-height: 1.5;
  }

  /* About Section */
  .about-content {
    padding: 0 20px;
  }

  .about-intro {
    flex-direction: column;
    gap: 20px;
  }

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

  .profile-section h3 {
    font-size: 1.2em;
  }

  .profile-section p {
    font-size: 0.85em;
  }

  .timeline-section {
    margin-top: 25px;
  }

  .timeline-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .timeline-item h4 {
    font-size: 1em;
  }

  .timeline-item p {
    font-size: 0.8em;
  }

  .skills-section {
    margin-top: 25px;
  }

  .skill-category {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-category h4 {
    font-size: 1em;
  }

  .skill-tags {
    gap: 6px;
  }

  .skill-tag {
    font-size: 0.75em;
    padding: 5px 10px;
  }

  /* Contact Section */
  .contact .content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .contact .title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Tech Stack Tags */
  .tech-stack {
    gap: 5px;
  }

  .tech-tag {
    font-size: 0.65em;
    padding: 2px 8px;
  }

  /* Section Dividers */
  .section-divider {
    margin: 30px auto;
    max-width: 95%;
  }

  /* Footer */
  .footer {
    padding: 20px;
    text-align: center;
  }

  .footer p {
    font-size: 0.8em;
  }
}

/* Extra Small Mobile Devices (below 320px) */
@media (max-width: 319px) {
  /* Header */
  header {
    padding: 10px;
  }

  .logo {
    font-size: 1.4em;
  }

  .navigation a {
    font-size: 0.75em;
    margin: 3px 8px;
  }

  /* Main Section */
  .main-content {
    padding: 0 15px;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }

  .main h2 {
    font-size: 0.9em;
  }

  .main h2 span {
    font-size: 1.5em;
  }

  /* Cards Section */
  .cards .content {
    padding: 0 15px;
  }

  .cards .title {
    font-size: 1.6em;
  }

  .card {
    padding: 15px;
  }

  /* About Section */
  .about-content {
    padding: 0 15px;
  }

  /* Contact Section */
  .contact .content {
    padding: 0 15px;
  }

  /* Tech Stack Tags */
  .tech-tag {
    font-size: 0.6em;
    padding: 2px 6px;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .main-content {
    flex-direction: row;
    gap: 20px;
  }

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

  .main h2 {
    font-size: 0.9em;
  }

  .main h2 span {
    font-size: 1.4em;
  }

  .cards .content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .profile-photo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

@media (max-width: 1024px) {
  .main {
    background-attachment: scroll; /* funktioniert auf Mobile */
  }
}
