/* Light Minimalist Portfolio CSS */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

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

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section:nth-child(even) {
  background-color: #f5f5f5;
}

section:nth-child(odd) {
  background-color: #ffffff;
}

/* Home Section */
.home {
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #333;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.badge {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.badge:hover {
  background-color: #333;
  color: #fff;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #555;
}

/* About Section */
.about h2,
.insights h2,
.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
  text-align: center;
}

.experience-timeline {
  position: relative;
  padding: 2rem 0;
}

.experience-item {
  margin-bottom: 3rem;
  padding-left: 2rem;
  border-left: 2px solid #ddd;
  position: relative;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  background-color: #333;
  border-radius: 50%;
}

.experience-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
}

.experience-company {
  font-size: 1rem;
  color: #666;
  margin-top: 0.25rem;
}

.experience-date {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.5rem;
}

.experience-description {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.skills-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-item {
  background-color: #f0f0f0;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  color: #555;
}

.education-item {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.education-item h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.education-item p {
  font-size: 0.95rem;
  color: #666;
}

.resume-download {
  text-align: center;
  margin-top: 2rem;
}

/* Insights Section */
.insights-container {
  width: 100%;
}

.carousel-section {
  margin-bottom: 4rem;
}

.carousel-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #333;
  text-align: center;
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.carousel-grid:has(.carousel-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.carousel-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.carousel-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.carousel-content {
  padding: 1.5rem;
}

.carousel-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.carousel-title-card {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.carousel-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more-btn {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #666;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #333;
}

.full-content {
  display: none;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  margin-top: 1rem;
}

.full-content.active {
  display: block;
}

.timeline-section {
  margin-top: 3rem;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #333;
  text-align: center;
}

.timeline {
  position: relative;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #ddd;
}

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

.timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: 52%;
}

.timeline-item:nth-child(even) {
  text-align: left;
  padding-left: 52%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 3px solid #333;
  border-radius: 50%;
  z-index: 10;
}

.timeline-content {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.timeline-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.timeline-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.timeline-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  padding: 1.5rem;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.contact-item h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contact-item p {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #666;
}

.contact-form {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #333;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #555;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }

  section {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  nav {
    padding: 0.75rem 1rem;
  }

  .nav-brand {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .skills-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

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

  .carousel-image {
    height: 200px;
  }

  .carousel-content {
    padding: 1.2rem;
  }

  .carousel-title-card {
    font-size: 1.1rem;
  }

  .carousel-excerpt {
    font-size: 0.9rem;
  }

  .carousel-indicators {
    gap: 0.5rem;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

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

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 0;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-post-title {
    font-size: 1rem;
  }

  .timeline-date {
    font-size: 0.8rem;
  }

  .timeline-excerpt {
    font-size: 0.85rem;
  }

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

  .skill-category h3 {
    font-size: 1.2rem;
  }

  .skill-list {
    gap: 0.5rem;
  }

  .skill-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .experience-item {
    padding: 1.2rem;
  }

  .experience-title {
    font-size: 1.1rem;
  }

  .experience-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-item h3 {
    font-size: 0.9rem;
  }

  .contact-item p {
    font-size: 1rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .form-submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .social-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  section {
    padding: 2rem 1rem;
    min-height: auto;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  nav {
    padding: 0.5rem 0.75rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.75rem;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.4rem 0.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .skills-badges {
    gap: 0.4rem;
    row-gap: 0.6rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  h3 {
    font-size: 1rem;
  }

  .experience-item {
    padding: 0.9rem;
  }

  .experience-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .experience-company {
    font-size: 0.85rem;
  }

  .experience-date {
    font-size: 0.75rem;
  }

  .experience-description {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .carousel-image {
    height: 150px;
  }

  .carousel-content {
    padding: 0.9rem;
  }

  .carousel-date {
    font-size: 0.75rem;
  }

  .carousel-title-card {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .carousel-excerpt {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .read-more-btn {
    font-size: 0.8rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 0.8rem;
  }

  .contact-item h3 {
    font-size: 0.8rem;
  }

  .contact-item p {
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 0.6rem;
  }

  .helper-text {
    font-size: 0.7rem;
    margin-top: 0.3rem;
  }

  .form-submit {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-link {
    font-size: 0.85rem;
  }

  section {
    padding: 1.5rem 0.75rem;
  }
}
