@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #55826f; /* Sage Green */
  --primary-dark: #3a6250;
  --secondary-color: #f0f6f3; /* Light Sage / Cream */
  --accent-color: #317a78; /* Teal */
  --text-main: #2b3642; /* Charcoal */
  --text-light: #5f7082;
  --bg-color: #fdfdfd;
  --white: #ffffff;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(85, 130, 111, 0.08);
  --shadow-hover: 0 8px 30px rgba(85, 130, 111, 0.15);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Base Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: padding 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(255,255,255,0) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  padding-right: 5rem;
}

.hero-subtitle {
  font-size: 1.75rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 0;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 30px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--white);
}

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

.hero-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(85, 130, 111, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* About Section */
.about-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-card p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Timeline (Education & Experience) */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--primary-color);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

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

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-color);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.timeline-date {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.timeline-subtitle {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content ul {
  padding-left: 1.2rem;
  color: var(--text-light);
}

.timeline-content li {
  margin-bottom: 0.5rem;
}

/* Experience Layout (LinkedIn Style variations) */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exp-item {
  display: flex;
  gap: 1.5rem;
}

.exp-logo-placeholder {
  width: 56px;
  height: 56px;
  background-color: var(--secondary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
  flex-shrink: 0;
}

.exp-details {
  flex: 1;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 2rem;
}

.exp-item:last-child .exp-details {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.exp-company {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.exp-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.exp-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

.exp-desc ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.exp-desc li {
  margin-bottom: 0.4rem;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.skills-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.skills-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary-color);
  color: var(--white);
}

.lang-item {
  margin-bottom: 1rem;
}

.lang-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.lang-bar {
  height: 8px;
  background: var(--secondary-color);
  border-radius: 4px;
  overflow: hidden;
}

.lang-progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
}

/* Contact Section & Footer */
.contact {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 7rem 0 4rem;
  position: relative;
}

.contact .section-title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact .section-title::after {
  background-color: rgba(255, 255, 255, 0.3);
}

.contact p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 4rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.contact-item a {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-item:hover .contact-icon {
  background: var(--white);
  color: var(--primary-dark);
  transform: scale(1.1);
}

footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 7rem;
  }
  
  .hero-content {
    padding-right: 0;
    margin-top: 3rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    margin: 0 auto 2rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-dot {
    left: 1px;
  }
  
  .exp-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .exp-logo-placeholder {
    width: 48px;
    height: 48px;
  }
}
