/* Root Variables */
:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #e6f0ff;
  --secondary: #00bcd4;
  --secondary-light: #e0f7fa;
  --accent: #ff6b6b;
  --bg: #f8f9fa;
  --bg-light: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e0e0e0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Main Portfolio */
.portfolio {
  width: 100%;
  margin: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 50px 40px;
  text-align: center;
  padding-left: 20%;
  padding-right: 20%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-name {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-title {
  font-size: 20px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 24px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  opacity: 0.9;
}

.hero-contact a {
  color: white;
  font-weight: 500;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.hero-contact a:hover {
  border-bottom-color: white;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 40px;
  background-color: var(--bg-light);
  /* border-bottom: 1px solid var(--border); */
  padding-left: 20%;
  padding-right: 20%;
}

.section:nth-child(even) {
  background-color: var(--bg);
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Skills Section */
.skills-section {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: white;
  color: var(--text);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 2px solid var(--border);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.skill-tag.accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

/* Experience Section */
.experience-section {
  /* background: linear-gradient(180deg, var(--secondary-light) 0%, var(--bg-light) 100%); */
  background:  var(--secondary-light)
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.exp-item {
  padding: 18px;
  background-color: white;
  border-left: 5px none var(--secondary);
  transition: all 0.3s ease;
}

.exp-item:hover {
  /* transform: translateY(-8px); */
  /* box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1); */
  background-color: #ffdfdf;
  
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 12px;
}

.exp-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.exp-date {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.exp-company {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Education Section */
.education-section {
  /* background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-light) 100%); */
  background: #c6d5ff !important;
}

.education-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.edu-item {
  padding: 18px;
  background-color: white;
  /* border-left: 5px solid var(--primary); */
  transition: all 0.3s ease;
}

.edu-item:hover {
  /* transform: translateX(8px); */
  /* box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1); */
    background-color: #dfe4ff;

}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 12px;
}

.edu-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.edu-cgpa {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  /* background-color: var(--primary-light); */
  background-color: #dfe4ff;
  padding: 3px 10px;
  /* border-radius: 4px; */
}

.edu-school {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.edu-date {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0 0;
}

/* Certifications Section */
.certifications-section {
  /* background: linear-gradient(180deg, #fff5e6 0%, var(--bg-light) 100%); */
  background: #fff5e6;
}

.certifications-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
}

.cert-item {
  padding: 20px;
  background-color: white;
  /* border-top: 5px solid var(--accent); */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, transparent 100%);
  pointer-events: none;
  border-top: 5px solid rgba(149, 112, 252, 0);
}

.cert-item:hover {
  /* transform: translateY(-4px); */
  /* border-top-color: rgb(149, 112, 252) !important; */
  /* box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15); */
  background-color: #b6fab3;
}

.cert-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cert-item h3 a {
  color: var(--text);
  text-decoration: none;
}

.cert-item h3 a:hover {
  color: var(--primary);
}

.cert-item p {
  font-size: 12px;
  color: var(--primary);
  margin: 0;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 40px 24px;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-title {
    font-size: 16px;
  }

  .hero-contact {
    flex-direction: column;
    gap: 10px;
  }

  .section {
    padding: 30px 24px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .exp-header,
  .edu-header {
    flex-direction: column;
    gap: 6px;
  }

  .exp-date,
  .edu-cgpa {
    align-self: flex-start;
  }

  .certifications-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 28px;
  }

  .hero-title {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
  }

  .skill-tag {
    padding: 5px 10px;
    font-size: 11px;
  }
}
