:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --secondary: #34a853;
  --accent: #ea4335;
  --dark: #202124;
  --dark-gray: #5f6368;
  --light-gray: #f8f9fa;
  --border: #dadce0;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.12),
    0 10px 10px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--dark);
}

.code-font {
  font-family: "JetBrains Mono", monospace;
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.7rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--dark) !important;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--dark-gray) !important;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 3.5rem;
  color: var(--white);
}

.hero-section .lead {
  font-size: 1.4rem;
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-light {
  border: 2px solid var(--white);
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Section Styling */
section {
  padding: 100px 0;
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* About Section */
.about-content {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.profile-img-container {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.profile-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  border-radius: 0 0 12px 12px;
  color: var(--white);
}

.contact-info {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.contact-info i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Experience Section */
.experience-card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.experience-card .card-header {
  background: var(--white);
  color: var(--dark);
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.company-logo {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  margin-right: 15px;
}

.date-badge {
  background: var(--light-gray);
  color: var(--dark-gray);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 15px;
  border: 1px solid var(--border);
}

.achievement-list {
  list-style-type: none;
  padding-left: 0;
}

.achievement-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.achievement-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Skills Section */
.skill-category {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--border);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary);
  font-size: 1.5rem;
}

.skill-badge {
  background: var(--light-gray);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 20px;
  margin: 5px;
  display: inline-block;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Projects Section */
.project-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-img {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.project-tech-badge {
  background: var(--light-gray);
  color: var(--dark-gray);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Metrics Section */
.metrics-section {
  background: var(--light-gray);
}

.metric-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
}

.metric-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.metric-label {
  color: var(--dark-gray);
  font-weight: 500;
}

/* Contact Section */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  margin: 0 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 70px 0;
  }

  .about-content {
    padding: 25px;
  }
}
