/*****************************************************************************/
/*
/* Modern Portfolio Styles
/*
/*****************************************************************************/

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.4em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin: 0.6em 0;
  line-height: 1.65;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.5rem 0;
}

.bg-light {
  background-color: #f8fafc;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #7DD5EC 0%, #1DAFC8 45%, #0D8BA6 100%);
  color: white;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero-content {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(0, 15, 35, 0.38);
  border-radius: 1.5rem;
  padding: 2rem 2.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.hero-content h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.tagline {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 0.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: white;
  color: #0D6F82;
}

.btn-primary:hover {
  background-color: #f0fbfd;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #0D6F82;
  text-decoration: none;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.skill-category {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
  color: #0D6F82;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e2e8f0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.skill-category li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

.skill-category li:last-child {
  border-bottom: none;
}

/* Experience Timeline - left-aligned */
#experience {
  position: relative;
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0 1rem 0;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #7DD5EC 0%, #1DAFC8 45%, #0D8BA6 100%);
  z-index: 1;
}

.experience-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 56px;
  padding-right: 0;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  z-index: 2;
}

.experience-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.experience-content {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.experience-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(53, 116, 200, 0.15);
  border-color: #1DAFC8;
}

/* Dot on the timeline line */
.experience-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -46px;
  right: auto;
  width: 16px;
  height: 16px;
  background: #1DAFC8;
  border: 3px solid white;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px #1DAFC8;
  z-index: 3;
}

.experience-item h3 {
  color: #0D6F82;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.experience-item h4 {
  color: #666;
  font-weight: 500;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.experience-item p {
  color: #555;
  line-height: 1.6;
  margin: 0.4em 0;
  font-size: 0.95rem;
}

.experience-item strong {
  color: #0D6F82;
}

/* Contact */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border-color: #1DAFC8;
  text-decoration: none;
  color: #0D6F82;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 1rem;
  }

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

  .btn {
    width: 180px;
    text-align: center;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .contact-link {
    width: 240px;
    justify-content: center;
  }

  .timeline-line {
    left: 14px;
  }

  .experience-item {
    padding-left: 44px;
  }

  .experience-content::before {
    left: -36px;
  }

  .experience-content {
    padding: 1rem 1.25rem;
  }
}
