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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, #68a7ae 0%, #4a8a93 100%);
  color: white;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.site-title {
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

nav {
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-start;
}

nav ul {
  list-style: none;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
}

nav li {
  flex: 1;
}

nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  text-align: center;
  transition: background-color 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom-color: white;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Intro section: use developerheader.jpeg as background with overlay */
.intro-section {
  position: relative;
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  background-image: url('img/developerheader.jpeg');
  background-size: cover;
  background-position: center;
}

/* dark / teal overlay to ensure text contrast */
.intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 50, 52, 0.55), rgba(74, 138, 147, 0.35));
  z-index: 1;
}

/* put children above overlay */
.intro-section > * {
  position: relative;
  z-index: 2;
}

/* text color override for readability on image */
.intro-section h1,
.intro-section p {
  color: #ffffff;
}

/* icon style override when on image background */
.intro-icon img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255,255,255,0.9);
}

.intro-icon {
  flex-shrink: 0;
}

.intro-content {
  flex: 1;
}

.container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

h1 {
  color: #68a7ae;
  margin-bottom: 20px;
  font-size: 28px;
}

h2 {
  color: #4a8a93;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 22px;
}

h3 {
  color: #68a7ae;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* App Cards */
.app-card {
  background: linear-gradient(135deg, rgba(104, 167, 174, 0.1) 0%, rgba(74, 138, 147, 0.1) 100%);
  padding: 30px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid #68a7ae;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.app-icon {
  flex-shrink: 0;
}

.app-icon img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-content {
  flex: 1;
}

.app-subtitle {
  font-size: 14px;
  color: #4a8a93;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: -10px;
}

.app-badge {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 700;
  background: rgba(231, 76, 60, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
  margin: 10px 0;
}

.app-card h3 {
  color: #68a7ae;
  margin-top: 0;
}

.app-card p {
  margin-bottom: 15px;
}

.other-apps-section {
  background: linear-gradient(135deg, rgba(104, 167, 174, 0.15) 0%, rgba(74, 138, 147, 0.15) 100%);
  padding: 30px;
  margin: 40px 0 20px 0;
  border-radius: 8px;
  border-left: 4px solid #68a7ae;
  text-align: center;
}

.other-apps-section p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.other-apps-section .btn {
  display: inline-block;
}

.download-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #68a7ae 0%, #4a8a93 100%);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(104, 167, 174, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #4a8a93 0%, #68a7ae 100%);
}

.btn.active {
  background: #333;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: flex-end;
}

/* Profile Section */
.profile-header {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.profile-image {
  flex-shrink: 0;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(104, 167, 174, 0.3);
  border: 3px solid #68a7ae;
}

.profile-header > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  flex: 1;
}

.profile-bio {
  padding: 20px;
  background: linear-gradient(135deg, rgba(104, 167, 174, 0.05) 0%, rgba(74, 138, 147, 0.05) 100%);
  border-radius: 8px;
  border-left: 4px solid #68a7ae;
}

.profile-bio h3 {
  margin-top: 0;
}

.profile-skills {
  padding: 20px;
  background: linear-gradient(135deg, rgba(74, 138, 147, 0.05) 0%, rgba(104, 167, 174, 0.05) 100%);
  border-radius: 8px;
  border-left: 4px solid #4a8a93;
}

.profile-skills h3 {
  margin-top: 0;
  color: #4a8a93;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 8px 0;
  color: #555;
}

.skill-list li:before {
  content: "▸ ";
  color: #68a7ae;
  font-weight: bold;
  margin-right: 8px;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  padding-left: 40px;
  margin: 15px 0;
  position: relative;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #68a7ae 0%, #4a8a93 100%);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #68a7ae;
}

.timeline-date {
  font-weight: bold;
  color: #68a7ae;
  margin-right: 10px;
}

.timeline-content {
  color: #555;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #68a7ae 0%, #4a8a93 100%);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.2s ease;
  font-size: 14px;
  font-weight: 600;
}

.social-links a:hover {
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #68a7ae 0%, #4a8a93 100%);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin-bottom: 10px;
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    flex: none;
  }

  .intro-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-icon {
    width: 100%;
  }

  .intro-icon img {
    width: 120px;
    height: 120px;
  }

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

  .profile-image img {
    width: 120px;
    height: 120px;
  }

  .profile-header > div:last-child {
    grid-template-columns: 1fr;
  }

  .app-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-icon {
    width: 100%;
  }

  .app-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: block;
  }

  .container {
    padding: 20px;
  }

  .download-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 20px;
  }

  nav a {
    padding: 12px 15px;
    font-size: 14px;
  }

  .app-card {
    padding: 20px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }
}
