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

:root {
  --base-font-size: 16px;
  --text-color: #c9d1d9;
  --accent-color: #58a6ff;
  --header-color: #79c0ff;
  --background: #0d1117;
  --card-bg: #161b22;
  --sidebar-bg: #161b22;
}

html {
  font-size: 100%;
}

body {
  font-family: 'Rubik', sans-serif;
  background: var(--background);
  color: var(--text-color);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
}

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

/* CV Container */
.cv-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 2.5rem auto;
  background: var(--card-bg);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  background: var(--sidebar-bg);
  padding: 2rem;
  flex: 1 1 300px;
}

.sidebar h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.sidebar p,
.sidebar li {
  font-size: 1rem;
  margin: 0.3rem 0;
  color: var(--text-color);
}

.sidebar .section {
  margin-top: 2rem;
}

.sidebar .section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #30363d;
  padding-bottom: 0.3rem;
  color: var(--header-color);
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li i {
  margin-right: 0.5rem;
}

/* Profile Photo */
.profile {
  text-align: center;
}
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  margin-bottom: 1rem;
}

/* Main Content */
.main-content {
  flex: 2 1 600px;
  padding: 2.5rem;
  background: var(--background);
}

.main-content section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2c2c2c;
}

.main-content h2 {
  color: var(--header-color);
  font-size: 1.6rem;
  border-bottom: 2px solid #30363d;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.main-content p,
.main-content ul li {
  font-size: 1rem;
}

/* Job Experience */
.job h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.job ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* Projects */
.project h3 a {
  font-size: 1.2rem;
  color: var(--accent-color);
  text-decoration: none;
}

.project h3 a:hover {
  text-decoration: underline;
  color: var(--header-color);
}

.project p {
  font-size: 1rem;
  margin-top: 0.3rem;
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 90%;
  }

  .cv-container {
    flex-direction: column;
    margin: 1rem;
  }

  .sidebar,
  .main-content {
    flex: 1 1 100%;
    padding: 1.5rem;
  }

  .main-content h2,
  .sidebar h1 {
    font-size: 1.4rem;
  }

  .sidebar .section h2,
  .job h3 {
    font-size: 1.1rem;
  }

  .sidebar p,
  .sidebar li,
  .main-content p,
  .job ul li {
    font-size: 0.95rem;
  }
}
