:root {
  --primary: #1565c0;
  --accent: #009688;
  --bg: #f5f7fa;
  --text: #222;
  --shadow: rgba(23,105,170,0.10);
  --border-radius: 10px;
}

/* General */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3 {
  margin-top: 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5em 1em;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0.7em 1em;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--shadow);
}
.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.2em;
  margin: 0;
  padding: 0;
}
.nav-list li a {
  font-weight: 500;
  color: var(--primary);
  padding: 0.3em 0.6em;
  border-radius: 5px;
  transition: background 0.2s;
}
.nav-list li a:hover {
  background: var(--accent);
  color: #fff;
}
.menu-icon {
  display: none;
  font-size: 2em;
  cursor: pointer;
}
#menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  .nav-list {
    position: absolute;
    right: 0;
    top: 60px;
    background: #fff;
    flex-direction: column;
    align-items: flex-end;
    width: 200px;
    box-shadow: 0 2px 8px var(--shadow);
    display: none;
    padding: 1em 0.5em;
    z-index: 999;
  }
  .nav-list li {
    margin-bottom: 0.9em;
  }
  #menu-toggle:checked + .menu-icon + .nav-list {
    display: flex;
  }
  .menu-icon {
    display: block;
  }
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #1565c0 40%, #009688 100%);
  color: #fff;
  text-align: center;
  padding: 4em 1em 2em 1em;
}
.hero-btns {
  margin: 1.2em 0;
}
.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.8em 2em;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-right: 0.8em;
  transition: background 0.2s;
}
.btn.secondary {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin-top: 1.5em;
}
.stats > div {
  font-size: 1.2em;
  background: rgba(255,255,255,0.14);
  border-radius: var(--border-radius);
  padding: 0.8em 1.5em;
  min-width: 85px;
  box-shadow: 0 2px 8px var(--shadow);
}
.stat-num {
  font-size: 1.6em;
  font-weight: bold;
  color: #ffe082;
}
@media (max-width: 600px) {
  .hero {
    padding-top: 2.5em;
  }
  .stats {
    flex-direction: column;
    gap: 1em;
    align-items: center;
  }
}

/* About */
.about-flex {
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 40%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
}
.company-logos {
  margin-top: 1em;
  display: flex;
  align-items: center;
  gap: 1em;
}
.company-logos img {
  height: 34px;
  border-radius: 5px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px var(--shadow);
}
@media (max-width: 700px) {
  .about-flex {
    flex-direction: column;
    gap: 1em;
  }
}

/* Skills */
.skills-flex {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: space-between;
}
.skills-flex > div {
  flex: 1 1 180px;
}
.skills ul {
  padding-left: 1.1em;
}
.chart-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#skillsChart {
  margin-top: 0.5em;
}
@media (max-width: 900px) {
  .skills-flex {
    flex-direction: column;
    gap: 1em;
  }
}

/* Projects */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}
.project-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow);
  width: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.project-info {
  padding: 1em;
}
.project-info h3 {
  margin-top: 0;
}

/* Blog */
.blog-grid {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
}
.blog-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow);
  width: 300px;
  padding: 1.2em 1em;
}

/* FAQ */
.faq-list {
  max-width: 670px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 1em;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}
.faq-question {
  background: #e3f2fd;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1em 1em;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.15s;
}
.faq-question.active {
  background: var(--primary);
  color: #fff;
}
.faq-answer {
  background: #fff;
  padding: 0.8em 1.2em;
  font-size: 1em;
  display: none;
}
.faq-answer.active {
  display: block;
}

/* Testimonials */
.testimonials {
  background: #e3f2fd;
}
.testimonial-carousel {
  position: relative;
  min-height: 120px;
}
.testimonial {
  display: none;
  font-size: 1.1em;
  padding: 1em 1.2em;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow);
  margin: 0 auto;
  max-width: 480px;
  transition: opacity 0.3s;
}
.testimonial.active {
  display: block;
}
.carousel-controls {
  margin-top: 1em;
  text-align: center;
}
.carousel-controls button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2em;
  cursor: pointer;
  margin: 0 0.4em;
}

/* Contact */
.contact-grid {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 2em;
}
.contact-map {
  flex: 2 1 320px;
  min-width: 220px;
  max-width: 500px;
}
.contact-info {
  flex: 2 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info ul {
  list-style: none;
  padding: 0;
}
.contact-info li {
  margin-bottom: 1em;
  font-size: 1.1em;
}
.contact-links {
  margin-top: 1em;
}
.contact-links a {
  margin-right: 1em;
  color: var(--primary);
  font-weight: bold;
}
@media (max-width: 800px) {
  .contact-grid {
    flex-direction: column;
    gap: 1.2em;
  }
  .contact-map, .contact-info {
    max-width: 100%;
  }
}

/* Floating social */
.floating-social {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.floating-social a img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px var(--shadow));
  background: #fff;
  border-radius: 7px;
  padding: 2px;
}
@media (max-width: 600px) {
  .floating-social {
    bottom: 8px;
    right: 8px;
    gap: 7px;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--shadow);
  display: none;
  z-index: 990;
}
.back-to-top.visible {
  display: block;
}

/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1.2em 0;
  font-size: 1em;
}