/* Global Styles */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  /* White background requested */
  color: #111111;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #007aff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #007aff;
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  border-left: 1px solid #eee;
  padding-left: 1.5rem;
  margin-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #999;
  padding: 4px 8px;
  border-radius: 4px;
}

.lang-btn.active {
  background: #f0f0f0;
  color: #111;
}

/* Hero Section (Centered "Like the image") */
.hero {
  min-height: 90vh;
  /* Reduced from 100vh for a tighter look */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 1.5rem 0;
  /* Top padding for fixed nav */
  background: radial-gradient(circle at 50% 50%, #fafafa 0%, #ffffff 100%);
}

.avatar-container {
  width: 140px;
  /* Slightly smaller avatar */
  height: 140px;
  margin-bottom: 1.5rem;
  /* Reduced from 2.5rem */
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ccc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
  color: #111;
  /* Optional: Subtle gradient text for the name if desired, keeping it dark/classy */
  background: linear-gradient(135deg, #111 0%, #444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* Sections */
.section {
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%);
}

/* Decorative Blobs */
.section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

#about::before {
  top: -100px;
  left: -100px;
}

#experience::before {
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Cards (White/Clean) */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.card {
  flex: 1 1 400px;
  /* Minimum width, but can grow */
  max-width: 500px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: auto;
  /* Ensure card grows with content */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.card:hover {
  transform: translateY(-5px);
  border-color: #e0e0e0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto;
  /* Center the card */
}

.about-description {
  margin: 0;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.card p {
  color: #666;
  font-size: 1rem;
}

.date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f7f9fc;
  color: #007aff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Contacts Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  padding: 1rem 0;
  height: auto;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-text p {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.contact-form-wrapper {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.contact-form-wrapper h3 {
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-container {
  overflow: hidden;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fdfdfd;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 120px;
  max-height: 400px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007aff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.05);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: #007aff;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.2);
}

.btn-icon {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer & Socials */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #eee;
  color: #333;
  transition: 0.3s;
}

.social-box:hover {
  background: #ffffff;
  border-color: #007aff;
  color: #007aff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.skills-highlight {
  padding: 1.5rem;
  background: #f8f9fc;
  border-radius: 12px;
  border-left: 4px solid #007aff;
}

.skills-highlight h4 {
  margin: 0 0 0.5rem;
  color: #111;
  font-size: 1.1rem;
}

.skills-highlight p {
  margin: 0;
  color: #444;
  font-weight: 500;
  line-height: 1.4;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #e0e0e0 0%, #f0f0f0 100%);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 5px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 2px solid #d1d1d1;
  border-radius: 50%;
  transform: translateX(-50%);
  margin-left: 1px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
  z-index: 2;
}

.timeline-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(10px);
}

.timeline-content .date {
  display: inline-block;
  padding: 4px 12px;
  background: #f5f5f7;
  font-size: 0.8rem;
  font-weight: 600;
  color: #86868b;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.experience-actions {
  margin-top: 1rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: #f5f5f7;
  color: #007aff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.link-btn:hover {
  background: #007aff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #111;
  font-weight: 700;
}

.timeline-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid #f5f5f5;
}

/* Form inputs if needed (not requested but good to have styled just in case) */
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Mobile */
.hamburger {
  display: none;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-links,
  .lang-switch {
    display: none;
  }

  /* Hamburger Animation to X */
  .main-nav.open .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .main-nav.open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .main-nav.open .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above drawer */
  }

  .hamburger span {
    width: clamp(24px, 4vw, 32px);
    height: 2px;
    background: #111;
    transition: all 0.3s ease;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 40vw;
    /* Ensure it doesn't get too narrow to read */
    min-width: fit-content;
    height: 100vh;
    background: white;
    padding: 6rem 1.5rem 5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    /* Reset desktop absolute positioning */
    left: auto;
  }

  /* Backdrop Overlay */
  .main-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }

  .main-nav.open::before {
    opacity: 1;
    visibility: visible;
  }

  .main-nav.open .nav-links {
    transform: translateX(0);
    visibility: visible;
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    color: #111;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid #f5f5f7;
    white-space: nowrap;
  }

  .lang-switch {
    display: flex;
    margin-right: 1.5rem;
    padding-left: 0;
    border-left: none;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

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